p-adic Valuation #
This file defines the p-adic valuation on ℕ, ℤ, and ℚ.
The p-adic valuation on ℚ is the difference of the multiplicities of p in the numerator and
denominator of q. This function obeys the standard properties of a valuation, with the appropriate
assumptions on p. The p-adic valuations on ℕ and ℤ agree with that on ℚ.
The valuation induces a norm on ℚ. This norm is defined in
Mathlib/NumberTheory/Padics/PadicNorm.lean.
@[simp]
@[deprecated Nat.padicValNat_def (since := "2026-09-08")]
Alias of Nat.padicValNat_def.
A simplification of padicValNat when one input is prime, by analogy with
padicValRat_def.
@[deprecated padicValNat_eq_emultiplicity (since := "2026-03-15")]
theorem
padicValNat.maxPowDiv_eq_emultiplicity
{p : ℕ}
[hp : Fact (Nat.Prime p)]
{n : ℕ}
(hn : n ≠ 0)
:
Alias of padicValNat_eq_emultiplicity.
A simplification of padicValNat when one input is prime, by analogy with
padicValRat_def.
@[deprecated Nat.padicValNat_def (since := "2026-03-15")]
Alias of Nat.padicValNat_def.
@[deprecated padicValNat_zero_right (since := "2026-03-15")]
@[deprecated padicValNat_one_right (since := "2026-03-15")]
theorem
le_emultiplicity_iff_replicate_subperm_primeFactorsList
{a b n : ℕ}
(ha : Nat.Prime a)
(hb : b ≠ 0)
:
theorem
le_padicValNat_iff_replicate_subperm_primeFactorsList
{a b n : ℕ}
(ha : Nat.Prime a)
(hb : b ≠ 0)
:
A weak upper bound on padicValNat p n.