This file defines the p-adic integers ℤ_p as the subtype of ℚ_p with norm ≤ 1. We show that ℤ_p is a complete nonarchimedean normed local ring.
We introduce the notation ℤ_[p] for the p-adic integers.
Much, but not all, of this file assumes that p is prime. This assumption is inferred automatically by taking (prime p) as a type class argument.
Coercions into ℤ_p are set up to work with the norm_cast tactic.
p-adic, p adic, padic, p-adic integer
The p-adic integers ℤ_p are the p-adic numbers with norm ≤ 1.
Addition on ℤ_p is inherited from ℚ_p.
Multiplication on ℤ_p is inherited from ℚ_p.
Negation on ℤ_p is inherited from ℚ_p.
The inverse of a p-adic integer with norm equal to 1 is also a p-adic integer. Otherwise, the inverse is defined to be 0.