p-adic integers

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.

Important definitions

Notation

We introduce the notation ℤ_[p] for the p-adic integers.

Implementation notes

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.

References

Tags

p-adic, p adic, padic, p-adic integer


padic_int

The p-adic integers ℤ_p are the p-adic numbers with norm ≤ 1.

padic_int.add

Addition on ℤ_p is inherited from ℚ_p.

padic_int.mul

Multiplication on ℤ_p is inherited from ℚ_p.

padic_int.neg

Negation on ℤ_p is inherited from ℚ_p.

padic_int.inv

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.