Normalization of the p-adic absolute value #
These comparison lemmas let the generic normalized-valuation API interoperate with Mathlib's concrete p-adic norm and valuation APIs.
Main results #
Padic.toAdd_normalizedValuation_eq_valuationidentifies the additive normalized valuation withPadic.valuation.Padic.integerRingEquividentifies the ring of integers ofℚ_[p]withℤ_[p].Padic.natCard_residueFieldcomputes the residue-field cardinality ofℚ_[p].Padic.normalizedAbsoluteValue_eq_nnnormidentifies the normalized absolute value with Mathlib's norm onℚ_[p].Padic.natCastValuation_eq_padicValNatidentifies the normalized valuation of a natural number withpadicValNat, andPadic.natCastValuation_selfandPadic.natCastValuation_twoare the two values it takes on the residue prime and on2.TauCeti.Padic.irreducible_natCast_selfshows that the residue prime is a uniformizer of the integer ring.Padic.not_isSquare_neg_one_of_mod_four_eq_three:-1is nonsquare inℚ_[p]whenp ≡ 3 (mod 4).Padic.not_isSquare_intCast_of_not_isSquare_zmod: an integer that is not a square modulo a power ofpis not a square inℚ_[p];Padic.not_isSquare_five(5inℚ_[2]) andPadic.not_isSquare_neg_three(-3inℚ_[5]) are its two instances.Padic.irreducible_X_sq_add_X_add_one:X² + X + 1is irreducible overℚ_[5].
The Padic and residue-field constructions used here are part of Mathlib's upstream
NumberTheory/Padics development.
The ring of integers of ℚ_[p] for its valuative relation is Mathlib's subring of elements
of norm at most 1.
The ring of integers of ℚ_[p] for its valuative relation is ℤ_[p].
Equations
Instances For
The identification of the ring of integers of ℚ_[p] with ℤ_[p] is the identity on the
underlying p-adic numbers.
The residue field of ℚ_[p] has cardinality p.
The normalized valuation of the residue prime p in ℚ_[p] is 1; equivalently, ℚ_[p]
is absolutely unramified.
The normalized valuation of 2 in ℚ_[p] vanishes for every odd p.
If p ≡ 3 (mod 4), then -1 is not a square in ℚ_[p]. Combined with
TauCeti.anisotropic_binary_one_one_iff, this shows that the binary form ⟨1, 1⟩ is anisotropic
over ℚ_[p] for such primes.
5 is not a square in ℚ_[2], since no square is 5 modulo 8.
The prime 5, as a Fact, so that ℚ_[5] can be written.
-3 is not a square in ℚ_[5], since its residue 2 is not a square modulo 5.
X² + X + 1 is irreducible over ℚ_[5]: a root r would make (2r + 1)² = −3 a square.
The residue prime p is a uniformizer of the integer ring of ℚ_[p].