The areas / V12. Number theory
Mathlib.NumberTheory.Padics.PadicNumbers
151 declarations and 6 deprecated aliases. Mathlib docs · Source
p-adic numbers
This file defines the p-adic numbers (rationals) ℚ_[p] as
the completion of ℚ with respect to the p-adic norm.
We show that the p-adic norm on ℚ extends to ℚ_[p], that ℚ is embedded in ℚ_[p],
and that ℚ_[p] is Cauchy complete.
Important definitions
Padic: the type ofp-adic numberspadicNormE: the rational-valuedp-adic norm onℚ_[p]Padic.addValuation: the additivep-adic valuation onℚ_[p], with values inWithTop ℤ
Notation
We introduce the notation ℚ_[p] for the p-adic numbers.
Implementation notes
Much, but not all, of this file assumes that p is prime. This assumption is inferred automatically
by taking [Fact p.Prime] as a type class argument.
We use the same concrete Cauchy sequence construction that is used to construct ℝ.
ℚ_[p] inherits a field structure from this construction.
The extension of the norm on ℚ to ℚ_[p] is not analogous to extending the absolute value to
ℝ and hence the proof that ℚ_[p] is complete is different from the proof that ℝ is complete.
padicNormE is the rational-valued p-adic norm on ℚ_[p].
To instantiate ℚ_[p] as a normed field, we must cast this into an ℝ-valued norm.
The ℝ-valued norm, using notation ‖ ‖ from normed spaces,
is the canonical representation of this norm.
simp prefers padicNorm to padicNormE when possible.
Since padicNormE and ‖ ‖ have different types, simp does not rewrite one to the other.
Coercions from ℚ to ℚ_[p] are set up to work with the norm_cast tactic.
References
- [F. Q. Gouvêa, p-adic numbers][gouvea1997]
- [R. Y. Lewis, A formal proof of Hensel's lemma over the p-adic integers][lewis2019]
- https://en.wikipedia.org/wiki/P-adic_number
Tags
p-adic, p adic, padic, norm, valuation, cauchy, completion, p-adic completion
Valuation on PadicSeq
Valuation on ℚ_[p]
Various characterizations of open unit balls
theorem Int.padicValuation.congr_simp E1 #
∀ (p p_1 : ℕ) (e_p : p = p_1) [inst : Fact (Nat.Prime p)], Int.padicValuation p = Int.padicValuation p_1
theorem AddValuation.of.congr_simp E1 #
∀ {R : Type u_3} {Γ₀ : Type u_4} [inst : Ring R] [inst_1 : LinearOrderedAddCommMonoidWithTop Γ₀] (f f_1 : R → Γ₀)
(e_f : f = f_1) (h0 : f 0 = ⊤) (h1 : f 1 = 0) (hadd : ∀ (x y : R), min (f x) (f y) ≤ f (x + y))
(hmul : ∀ (x y : R), f (x * y) = f x + f y), AddValuation.of f h0 h1 hadd hmul = AddValuation.of f_1 ⋯ ⋯ ⋯ ⋯
theorem PadicSeq.stationaryPoint.congr_simp E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {f f_1 : PadicSeq p} (e_f : f = f_1) (hf : ¬f ≈ 0),
PadicSeq.stationaryPoint hf = PadicSeq.stationaryPoint ⋯
theorem PadicSeq.norm.congr_simp E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] (f f_1 : PadicSeq p), f = f_1 → f.norm = f_1.norm
theorem Rat.padicValuation.congr_simp E1 #
∀ (p p_1 : ℕ) (e_p : p = p_1) [inst : Fact (Nat.Prime p)], Rat.padicValuation p = Rat.padicValuation p_1
def Rat.padicValuation E1 #
(p : ℕ) → [Fact (Nat.Prime p)] → Valuation ℚ (WithZero (Multiplicative ℤ))
The p-adic valuation on rationals, sending p to (exp (-1) : ℤᵐ⁰)
def Int.padicValuation E1 #
(p : ℕ) → [Fact (Nat.Prime p)] → Valuation ℤ (WithZero (Multiplicative ℤ))
The p-adic valuation on integers, sending p to (exp (-1) : ℤᵐ⁰)
theorem Rat.padicValuation_cast E0 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)] (x : ℤ), (Rat.padicValuation p) ↑x = (Int.padicValuation p) x
theorem Rat.padicValuation_natCast E0 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)] (x : ℕ), (Rat.padicValuation p) ↑x = (Int.padicValuation p) ↑x
theorem Rat.padicValuation_eq_zero_iff E0 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {x : ℚ}, (Rat.padicValuation p) x = 0 ↔ x = 0
theorem Int.padicValuation_eq_zero_iff E0 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {x : ℤ}, (Int.padicValuation p) x = 0 ↔ x = 0
theorem Rat.padicValuation_self E1 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)], (Rat.padicValuation p) ↑p = WithZero.exp (-1)
theorem Int.padicValuation_self E0 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)], (Int.padicValuation p) ↑p = WithZero.exp (-1)
theorem Int.padicValuation_le_one E1 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)] (x : ℤ), (Int.padicValuation p) x ≤ 1
theorem Int.padicValuation_eq_one_iff E0 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {x : ℤ}, (Int.padicValuation p) x = 1 ↔ ¬↑p ∣ x
theorem Int.padicValuation_lt_one_iff E0 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {x : ℤ}, (Int.padicValuation p) x < 1 ↔ ↑p ∣ x
theorem Rat.padicValuation_le_one_iff E0 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {x : ℚ}, (Rat.padicValuation p) x ≤ 1 ↔ ¬p ∣ x.den
theorem Rat.surjective_padicValuation E1 #
∀ (p : ℕ) [hp : Fact (Nat.Prime p)], Function.Surjective ⇑(Rat.padicValuation p)
abbrev PadicSeq E1 #
ℕ → Type
The type of Cauchy sequences of rationals with respect to the p-adic norm.
theorem PadicSeq.stationary E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {f : CauSeq ℚ (padicNorm p)},
¬f ≈ 0 → ∃ N, ∀ (m n : ℕ), N ≤ m → N ≤ n → padicNorm p (f n) = padicNorm p (f m)
The p-adic norm of the entries of a nonzero Cauchy sequence of rationals is eventually
constant.
def PadicSeq.stationaryPoint E1 #
{p : ℕ} → [inst : Fact (Nat.Prime p)] → {f : PadicSeq p} → ¬f ≈ 0 → ℕ
For all n ≥ stationaryPoint f hf, the p-adic norm of f n is the same.
theorem PadicSeq.stationaryPoint_spec E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {f : PadicSeq p} (hf : ¬f ≈ 0) {m n : ℕ},
PadicSeq.stationaryPoint hf ≤ m → PadicSeq.stationaryPoint hf ≤ n → padicNorm p (f n) = padicNorm p (f m)
def PadicSeq.norm E1 #
{p : ℕ} → [Fact (Nat.Prime p)] → PadicSeq p → ℚ
Since the norm of the entries of a Cauchy sequence is eventually stationary, we can lift the norm to sequences.
theorem PadicSeq.norm_zero_iff E0 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] (f : PadicSeq p), f.norm = 0 ↔ f ≈ 0
theorem PadicSeq.equiv_zero_of_val_eq_of_equiv_zero E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {f g : PadicSeq p},
(∀ (k : ℕ), padicNorm p (f k) = padicNorm p (g k)) → f ≈ 0 → g ≈ 0
theorem PadicSeq.norm_ne_zero_of_not_equiv_zero E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {f : PadicSeq p}, ¬f ≈ 0 → f.norm ≠ 0
theorem PadicSeq.norm_eq_norm_app_of_nonzero E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {f : PadicSeq p}, ¬f ≈ 0 → ∃ k, f.norm = padicNorm p k ∧ k ≠ 0
theorem PadicSeq.not_limZero_const_of_ne_zero E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {q : ℚ}, q ≠ 0 → ¬(CauSeq.const (padicNorm p) q).LimZero
theorem PadicSeq.not_equiv_zero_const_of_ne_zero E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {q : ℚ}, q ≠ 0 → ¬CauSeq.const (padicNorm p) q ≈ 0
theorem PadicSeq.norm_nonneg E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] (f : PadicSeq p), 0 ≤ f.norm
theorem PadicSeq.lift_index_left_left E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {f : PadicSeq p} (hf : ¬f ≈ 0) (v2 v3 : ℕ),
padicNorm p (f (PadicSeq.stationaryPoint hf)) = padicNorm p (f (max (PadicSeq.stationaryPoint hf) (max v2 v3)))
An auxiliary lemma for manipulating sequence indices.
theorem PadicSeq.lift_index_left E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {f : PadicSeq p} (hf : ¬f ≈ 0) (v1 v3 : ℕ),
padicNorm p (f (PadicSeq.stationaryPoint hf)) = padicNorm p (f (max v1 (max (PadicSeq.stationaryPoint hf) v3)))
An auxiliary lemma for manipulating sequence indices.
theorem PadicSeq.lift_index_right E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {f : PadicSeq p} (hf : ¬f ≈ 0) (v1 v2 : ℕ),
padicNorm p (f (PadicSeq.stationaryPoint hf)) = padicNorm p (f (max v1 (max v2 (PadicSeq.stationaryPoint hf))))
An auxiliary lemma for manipulating sequence indices.
def PadicSeq.valuation E1 #
{p : ℕ} → [Fact (Nat.Prime p)] → PadicSeq p → ℤ
The p-adic valuation on ℚ lifts to PadicSeq p.
Valuation f is defined to be the valuation of the (ℚ-valued) stationary point of f.
theorem PadicSeq.norm_eq_zpow_neg_valuation E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {f : PadicSeq p}, ¬f ≈ 0 → f.norm = ↑p ^ (-f.valuation)
theorem PadicSeq.val_eq_iff_norm_eq E0 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {f g : PadicSeq p},
¬f ≈ 0 → ¬g ≈ 0 → (f.valuation = g.valuation ↔ f.norm = g.norm)
theorem PadicSeq.norm_mul E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (f g : PadicSeq p), (f * g).norm = f.norm * g.norm
theorem PadicSeq.ne_zero_iff_not_equiv_zero E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (f : PadicSeq p), CauSeq.Completion.mk f ≠ 0 ↔ ¬f ≈ 0
theorem PadicSeq.norm_const E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (q : ℚ), PadicSeq.norm (CauSeq.const (padicNorm p) q) = padicNorm p q
theorem PadicSeq.norm_values_discrete E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (a : PadicSeq p), ¬a ≈ 0 → ∃ z, a.norm = ↑p ^ (-z)
theorem PadicSeq.norm_one E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)], PadicSeq.norm 1 = 1
theorem PadicSeq.norm_equiv E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {f g : PadicSeq p}, f ≈ g → f.norm = g.norm
theorem PadicSeq.norm_nonarchimedean E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (f g : PadicSeq p), (f + g).norm ≤ max f.norm g.norm
theorem PadicSeq.norm_eq E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {f g : PadicSeq p},
(∀ (k : ℕ), padicNorm p (f k) = padicNorm p (g k)) → f.norm = g.norm
theorem PadicSeq.norm_neg E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (a : PadicSeq p), (-a).norm = a.norm
theorem PadicSeq.norm_eq_of_add_equiv_zero E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {f g : PadicSeq p}, f + g ≈ 0 → f.norm = g.norm
theorem PadicSeq.add_eq_max_of_ne E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {f g : PadicSeq p}, f.norm ≠ g.norm → (f + g).norm = max f.norm g.norm
def Padic E3 #
(p : ℕ) → [Fact (Nat.Prime p)] → Type
The p-adic numbers ℚ_[p] are the Cauchy completion of ℚ with respect to the p-adic norm.
instance instInhabitedPadic E0 #
(p : ℕ) → [inst : Fact (Nat.Prime p)] → Inhabited ℚ_[p]
instance instDivPadic E0 #
(p : ℕ) → [inst : Fact (Nat.Prime p)] → Div ℚ_[p]
instance instAddPadic E0 #
(p : ℕ) → [inst : Fact (Nat.Prime p)] → Add ℚ_[p]
instance instZeroPadic E0 #
(p : ℕ) → [inst : Fact (Nat.Prime p)] → Zero ℚ_[p]
instance instCommRingPadic E0 #
(p : ℕ) → [inst : Fact (Nat.Prime p)] → CommRing ℚ_[p]
instance instAddCommGroupPadic E0 #
(p : ℕ) → [inst : Fact (Nat.Prime p)] → AddCommGroup ℚ_[p]
instance instFieldPadic E0 #
(p : ℕ) → [inst : Fact (Nat.Prime p)] → Field ℚ_[p]
instance instRingPadic E0 #
(p : ℕ) → [inst : Fact (Nat.Prime p)] → Ring ℚ_[p]
instance instNegPadic E0 #
(p : ℕ) → [inst : Fact (Nat.Prime p)] → Neg ℚ_[p]
instance instSubPadic E0 #
(p : ℕ) → [inst : Fact (Nat.Prime p)] → Sub ℚ_[p]
instance instMulPadic E0 #
(p : ℕ) → [inst : Fact (Nat.Prime p)] → Mul ℚ_[p]
instance instOnePadic E0 #
(p : ℕ) → [inst : Fact (Nat.Prime p)] → One ℚ_[p]
def «termℚ_[_]» E1 #
Lean.ParserDescr
notation for p-padic rationals
def Padic.mk E1 #
{p : ℕ} → [inst : Fact (Nat.Prime p)] → PadicSeq p → ℚ_[p]
Builds the equivalence class of a Cauchy sequence of rationals.
theorem Padic.zero_def E0 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)], 0 = ⟦0⟧
theorem Padic.mk_eq E0 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)] {f g : PadicSeq p}, Padic.mk f = Padic.mk g ↔ f ≈ g
theorem Padic.const_equiv E1 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)] {q r : ℚ}, CauSeq.const (padicNorm p) q ≈ CauSeq.const (padicNorm p) r ↔ q = r
theorem Padic.coe_inj E0 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)] {q r : ℚ}, ↑q = ↑r ↔ q = r
instance Padic.instCharZero E0 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)], CharZero ℚ_[p]
theorem Padic.coe_add E0 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)] {x y : ℚ}, ↑(x + y) = ↑x + ↑y
theorem Padic.coe_neg E0 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)] {x : ℚ}, ↑(-x) = -↑x
theorem Padic.coe_mul E0 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)] {x y : ℚ}, ↑(x * y) = ↑x * ↑y
theorem Padic.coe_sub E0 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)] {x y : ℚ}, ↑(x - y) = ↑x - ↑y
theorem Padic.coe_div E0 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)] {x y : ℚ}, ↑(x / y) = ↑x / ↑y
theorem Padic.coe_one E0 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)], ↑1 = 1
theorem Padic.coe_zero E0 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)], ↑0 = 0
def padicNormE E1 #
{p : ℕ} → [hp : Fact (Nat.Prime p)] → AbsoluteValue ℚ_[p] ℚ
The rational-valued p-adic norm on ℚ_[p] is lifted from the norm on Cauchy sequences. The
canonical form of this function is the normed space instance, with notation ‖ ‖.
theorem padicNormE.defn E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] (f : PadicSeq p) {ε : ℚ},
0 < ε → ∃ N, ∀ i ≥ N, padicNormE (Padic.mk f - ↑(f i)) < ε
theorem padicNormE.nonarchimedean' E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] (q r : ℚ_[p]), padicNormE (q + r) ≤ max (padicNormE q) (padicNormE r)
Theorems about padicNormE are named with a ' so the names do not conflict with the
equivalent theorems about norm (‖ ‖).
theorem padicNormE.add_eq_max_of_ne' E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {q r : ℚ_[p]},
padicNormE q ≠ padicNormE r → padicNormE (q + r) = max (padicNormE q) (padicNormE r)
Theorems about padicNormE are named with a ' so the names do not conflict with the
equivalent theorems about norm (‖ ‖).
theorem padicNormE.image' E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {q : ℚ_[p]}, q ≠ 0 → ∃ n, padicNormE q = ↑p ^ (-n)
theorem Padic.rat_dense' E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] (q : ℚ_[p]) {ε : ℚ}, 0 < ε → ∃ r, padicNormE (q - ↑r) < ε
def Padic.limSeq E1 #
{p : ℕ} → [inst : Fact (Nat.Prime p)] → CauSeq ℚ_[p] ⇑padicNormE → ℕ → ℚ
limSeq f, for f a Cauchy sequence of p-adic numbers, is a sequence of rationals with the
same limit point as f.
theorem Padic.exists_padicNormE_sub_limSeq_le E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] (f : CauSeq ℚ_[p] ⇑padicNormE) {ε : ℚ},
0 < ε → ∃ N, ∀ i ≥ N, padicNormE (f i - ↑(Padic.limSeq f i)) < ε
theorem Padic.isCauSeq_padicNorm_limSeq E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] (f : CauSeq ℚ_[p] ⇑padicNormE), IsCauSeq (padicNorm p) (Padic.limSeq f)
theorem Padic.complete' E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] (f : CauSeq ℚ_[p] ⇑padicNormE),
∃ q, ∀ ε > 0, ∃ N, ∀ i ≥ N, padicNormE (q - f i) < ε
theorem Padic.complete'' E1 #
∀ {p : ℕ} [inst : Fact (Nat.Prime p)] (f : CauSeq ℚ_[p] ⇑padicNormE),
∃ q, ∀ ε > 0, ∃ N, ∀ i ≥ N, padicNormE (f i - q) < ε
instance Padic.instDist E0 #
(p : ℕ) → [inst : Fact (Nat.Prime p)] → Dist ℚ_[p]
instance Padic.instIsUltrametricDist E0 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)], IsUltrametricDist ℚ_[p]
instance Padic.metricSpace E0 #
(p : ℕ) → [inst : Fact (Nat.Prime p)] → MetricSpace ℚ_[p]
instance Padic.instNorm E0 #
(p : ℕ) → [inst : Fact (Nat.Prime p)] → Norm ℚ_[p]
instance Padic.normedField E0 #
(p : ℕ) → [inst : Fact (Nat.Prime p)] → NormedField ℚ_[p]
instance Padic.isAbsoluteValue E0 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)], IsAbsoluteValue fun a ↦ ‖a‖
theorem Padic.rat_dense E1 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)] (q : ℚ_[p]) {ε : ℝ}, 0 < ε → ∃ r, ‖q - ↑r‖ < ε
theorem Padic.denseRange_ratCast E1 #
∀ (p : ℕ) [inst : Fact (Nat.Prime p)], DenseRange Rat.cast
theorem Padic.padicNormE.mul E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (q r : ℚ_[p]), ‖q * r‖ = ‖q‖ * ‖r‖
theorem Padic.padicNormE.is_norm E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (q : ℚ_[p]), ↑(padicNormE q) = ‖q‖
theorem Padic.nonarchimedean E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (q r : ℚ_[p]), ‖q + r‖ ≤ max ‖q‖ ‖r‖
theorem Padic.add_eq_max_of_ne E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {q r : ℚ_[p]}, ‖q‖ ≠ ‖r‖ → ‖q + r‖ = max ‖q‖ ‖r‖
theorem Padic.norm_p E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)], ‖↑p‖ = (↑p)⁻¹
theorem Padic.norm_p_lt_one E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)], ‖↑p‖ < 1
theorem Padic.norm_p_zpow E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (n : ℤ), ‖↑p ^ n‖ = ↑p ^ (-n)
theorem Padic.norm_p_pow E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (n : ℕ), ‖↑p ^ n‖ = ↑p ^ (-↑n)
instance Padic.instNontriviallyNormedField E0 #
{p : ℕ} → [hp : Fact (Nat.Prime p)] → NontriviallyNormedField ℚ_[p]
theorem Padic.padicNormE.image E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {q : ℚ_[p]}, q ≠ 0 → ∃ n, ‖q‖ = ↑(↑p ^ (-n))
theorem Padic.padicNormE.is_rat E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (q : ℚ_[p]), ∃ q', ‖q‖ = ↑q'
def Padic.ratNorm E1 #
{p : ℕ} → [hp : Fact (Nat.Prime p)] → ℚ_[p] → ℚ
ratNorm q, for a p-adic number q is the p-adic norm of q, as rational number.
The lemma padicNormE.eq_ratNorm asserts ‖q‖ = ratNorm q.
theorem Padic.norm_rat_le_one E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {q : ℚ}, ¬p ∣ q.den → ‖↑q‖ ≤ 1
theorem Padic.norm_int_le_one E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (z : ℤ), ‖↑z‖ ≤ 1
theorem Padic.norm_intCast_lt_one_iff E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {k : ℤ}, ‖↑k‖ < 1 ↔ ↑p ∣ k
theorem Padic.norm_natCast_lt_one_iff E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {n : ℕ}, ‖↑n‖ < 1 ↔ p ∣ n
theorem Padic.norm_intCast_eq_one_iff E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {z : ℤ}, ‖↑z‖ = 1 ↔ IsCoprime z ↑p
theorem Padic.norm_natCast_eq_one_iff E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {n : ℕ}, ‖↑n‖ = 1 ↔ p.Coprime n
theorem Padic.norm_int_le_pow_iff_dvd E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (k : ℤ) (n : ℕ), ‖↑k‖ ≤ ↑p ^ (-↑n) ↔ ↑p ^ n ∣ k
theorem Padic.norm_eq_of_norm_add_lt_right E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {z1 z2 : ℚ_[p]}, ‖z1 + z2‖ < ‖z2‖ → ‖z1‖ = ‖z2‖
theorem Padic.norm_eq_of_norm_add_lt_left E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {z1 z2 : ℚ_[p]}, ‖z1 + z2‖ < ‖z1‖ → ‖z1‖ = ‖z2‖
theorem Padic.norm_eq_of_norm_sub_lt_right E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {z1 z2 : ℚ_[p]}, ‖z1 - z2‖ < ‖z2‖ → ‖z1‖ = ‖z2‖
theorem Padic.norm_eq_of_norm_sub_lt_left E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {z1 z2 : ℚ_[p]}, ‖z1 - z2‖ < ‖z1‖ → ‖z1‖ = ‖z2‖
theorem Padic.norm_natCast_p_sub_one E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)], ‖↑(p - 1)‖ = 1
instance Padic.complete E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)], CauSeq.IsComplete ℚ_[p] norm
theorem Padic.padicNormE_lim_le E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {f : CauSeq ℚ_[p] norm} {a : ℝ}, 0 < a → (∀ (i : ℕ), ‖f i‖ ≤ a) → ‖f.lim‖ ≤ a
instance Padic.instCompleteSpace E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)], CompleteSpace ℚ_[p]
def Padic.valuation E1 #
{p : ℕ} → [hp : Fact (Nat.Prime p)] → ℚ_[p] → ℤ
Padic.valuation lifts the p-adic valuation on rationals to ℚ_[p].
theorem Padic.valuation_zero E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)], Padic.valuation 0 = 0
theorem Padic.norm_eq_zpow_neg_valuation E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {x : ℚ_[p]}, x ≠ 0 → ‖x‖ = ↑p ^ (-x.valuation)
theorem Padic.valuation_ratCast E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (q : ℚ), (↑q).valuation = padicValRat p q
theorem Padic.valuation_intCast E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (n : ℤ), (↑n).valuation = ↑(padicValInt p n)
theorem Padic.valuation_natCast E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (n : ℕ), (↑n).valuation = ↑(multiplicity p n)
theorem Padic.valuation_ofNat E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (n : ℕ) [inst : n.AtLeastTwo], (OfNat.ofNat n).valuation = ↑(multiplicity p n)
theorem Padic.valuation_one E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)], Padic.valuation 1 = 0
theorem Padic.valuation_p E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)], (↑p).valuation = 1
theorem Padic.le_valuation_add E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {x y : ℚ_[p]}, x + y ≠ 0 → min x.valuation y.valuation ≤ (x + y).valuation
theorem Padic.valuation_mul E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {x y : ℚ_[p]}, x ≠ 0 → y ≠ 0 → (x * y).valuation = x.valuation + y.valuation
theorem Padic.valuation_inv E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (x : ℚ_[p]), x⁻¹.valuation = -x.valuation
theorem Padic.valuation_pow E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (x : ℚ_[p]) (n : ℕ), (x ^ n).valuation = ↑n * x.valuation
theorem Padic.valuation_zpow E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (x : ℚ_[p]) (n : ℤ), (x ^ n).valuation = n * x.valuation
def Padic.addValuationDef E1 #
{p : ℕ} → [hp : Fact (Nat.Prime p)] → ℚ_[p] → WithTop ℤ
The additive p-adic valuation on ℚ_[p], with values in WithTop ℤ.
theorem Padic.AddValuation.map_zero E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)], Padic.addValuationDef 0 = ⊤
theorem Padic.AddValuation.map_one E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)], Padic.addValuationDef 1 = 0
theorem Padic.AddValuation.map_mul E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (x y : ℚ_[p]), (x * y).addValuationDef = x.addValuationDef + y.addValuationDef
theorem Padic.AddValuation.map_add E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (x y : ℚ_[p]), min x.addValuationDef y.addValuationDef ≤ (x + y).addValuationDef
def Padic.mulValuation E1 #
{p : ℕ} → [hp : Fact (Nat.Prime p)] → Valuation ℚ_[p] (WithZero (Multiplicative ℤ))
The p-adic valuation on ℚ_[p], as a Valuation, bundled Padic.valuation.
theorem Padic.mulValuation_toFun E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (x : ℚ_[p]), Padic.mulValuation x = if x = 0 then 0 else WithZero.exp (-x.valuation)
theorem Padic.comap_mulValuation_eq_padicValuation E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)], Valuation.comap (Rat.castHom ℚ_[p]) Padic.mulValuation = Rat.padicValuation p
theorem Padic.comap_mulValuation_eq_int_padicValuation E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)], Valuation.comap (Int.castRingHom ℚ_[p]) Padic.mulValuation = Int.padicValuation p
theorem Padic.norm_eq_zpow_log_mulValuation E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {x : ℚ_[p]}, x ≠ 0 → ‖x‖ = ↑p ^ (Padic.mulValuation x).log
theorem Padic.norm_lt_zpow_iff_mulValuation_lt_exp E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {x : ℚ_[p]} {m : ℤ}, ‖x‖ < ↑p ^ m ↔ Padic.mulValuation x < WithZero.exp m
theorem Padic.norm_lt_norm_iff_mulValuation_lt E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {x y : ℚ_[p]}, ‖x‖ < ‖y‖ ↔ Padic.mulValuation x < Padic.mulValuation y
def Padic.addValuation E1 #
{p : ℕ} → [hp : Fact (Nat.Prime p)] → AddValuation ℚ_[p] (WithTop ℤ)
The additive p-adic valuation on ℚ_[p], as an addValuation.
theorem Padic.addValuation.apply E0 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] {x : ℚ_[p]}, x ≠ 0 → Padic.addValuation x = ↑x.valuation
theorem Padic.norm_le_pow_iff_norm_lt_pow_add_one E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (x : ℚ_[p]) (n : ℤ), ‖x‖ ≤ ↑p ^ n ↔ ‖x‖ < ↑p ^ (n + 1)
theorem Padic.norm_lt_pow_iff_norm_le_pow_sub_one E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (x : ℚ_[p]) (n : ℤ), ‖x‖ < ↑p ^ n ↔ ‖x‖ ≤ ↑p ^ (n - 1)
theorem Padic.norm_le_one_iff_val_nonneg E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (x : ℚ_[p]), ‖x‖ ≤ 1 ↔ 0 ≤ x.valuation
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Padic.exi_rat_seq_conv | Padic.exists_padicNormE_sub_limSeq_le | 2026-09-25 |
Padic.exi_rat_seq_conv_cauchy | Padic.isCauSeq_padicNorm_limSeq | 2026-09-25 |
PadicSeq.ne_zero_iff_nequiv_zero | PadicSeq.ne_zero_iff_not_equiv_zero | 2026-10-13 |
PadicSeq.norm_nonzero_of_not_equiv_zero | PadicSeq.norm_ne_zero_of_not_equiv_zero | 2026-10-13 |
PadicSeq.not_equiv_zero_const_of_nonzero | PadicSeq.not_equiv_zero_const_of_ne_zero | 2026-10-13 |
PadicSeq.not_limZero_const_of_nonzero | PadicSeq.not_limZero_const_of_ne_zero | 2026-10-13 |