The p-adic valuation of rationals: integers and reduction modulo p ^ n #
Two facts about Rat.padicValuation p. First, valuations of integers below p ^ (a + 1): such
a nonzero integer has at most a factors of p (Rat.padicValuation_pow_le_of_abs_lt), so adding
p ^ (a + 1) does not change its valuation (Rat.padicValuation_add_pow_of_abs_lt).
Second, reduction modulo p ^ n. The rationals whose denominator is prime to p form the
valuation ring ℤ_(p) of Rat.padicValuation p. It embeds in the p-adic integers
(Rat.padicIntegerToPadicInt), so it has reductions modulo every power of p
(Rat.padicIntegerToZModPow). On a / b with b prime to p, the reduction is a * b⁻¹: it
is characterized by Rat.padicIntegerToZModPow_mul_den.
Both serve the integral local coordinates of the Cauchy kernel of [OAI26k] (Lemma D.4,
pp. 59–60): the first shows that its grid is a complete residue system for valuations, and the
second reduces its ℤ_(2) coefficients modulo the working precision 2 ^ p.
Main definitions #
Rat.padicIntegerToPadicInt: the inclusionℤ_(p) → ℤ_[p].Rat.padicIntegerToZModPow: reductionℤ_(p) → ZMod (p ^ n).
Main results #
Rat.padicValuation_pow_self:v (p ^ k) = exp (-k).Rat.padicValuation_pow_le_of_abs_lt: a nonzero integer belowp ^ (a + 1)in absolute value has valuation at leastv (p ^ a).Rat.padicValuation_add_pow_of_abs_lt: addingp ^ (a + 1)to it keeps its valuation.Rat.castHom_comp_padicIntegerToZModPow: the reductions are compatible.Rat.padicIntegerToZModPow_mul_den: the reduction ofxtimes the denominator ofxis the numerator ofx.
References #
- OpenAI, The Exponential Time Hypothesis is False, §D.4.3, pp. 59–60.
Valuations of integers #
The p-adic valuation of a power of p.
Reduction modulo p ^ n #
The inclusion of the p-integral rationals ℤ_(p) in the p-adic integers.
The reduction of a / b is a * b⁻¹: multiplied by the denominator it gives the
numerator.