A nonzero integer as a power of p times a unit at p, and a square of this form #
Candidates for Mathlib.NumberTheory.Padics.PadicVal.Basic: a nonzero integer as the power of p
of its valuation times an integer prime to p, for any p ≠ 1
(Int.exists_eq_pow_padicValInt_mul), the p-adic valuation of the integer p ^ k for any p > 1
(padicValInt_base_pow, the integer form of padicValNat_base_pow), and a square that is a power
of p times a unit at p, whose exponent is even and whose unit part is a square
(Int.even_and_isSquare_of_sq_eq_pow_mul), also for a square that is a sum whose terms but one are
divisible by a higher power of p (Int.even_and_exists_isSquare_add_of_sq_eq_sum).
Main statements #
Int.exists_eq_pow_padicValInt_mul: a nonzero integer isp ^ v_p(n)times an integer prime top, forp ≠ 1.padicValInt_base_pow:v_p(p ^ k) = kfor the integerp ^ kandp > 1.Int.even_and_isSquare_of_sq_eq_pow_mul:y ^ 2 = p ^ v uwithp ∤ umakesveven andua square.Int.even_and_exists_isSquare_add_of_sq_eq_sum: a square sum with one termp ^ v uof least valuation,p ∤ u, makesveven andu + p ta square for somet.
A nonzero integer is p ^ v_p(n) times an integer prime to p, for any p ≠ 1, since the
multiplicity of p in n is finite (FiniteMultiplicity.exists_eq_pow_mul_and_not_dvd).
A square sum with one term of least valuation. If y ^ 2 = ∑ i ∈ s, f i, where
f j = p ^ v u with p ∤ u and p ^ (v + 1) divides every other term, then v is even and
u + p t is a square for some t, so that u is a square modulo p.