The iterated Fermat quotients #
The objects of §3 of Granville's paper: the iterated Fermat quotients F^{(j)}_k(x), the
coefficients c_{j,i}(p) of the falling p-power product, the unit quotient g_k(x),
the rescaled binomial polynomial B_m with its coefficients β_{m,n}, and the collapsed
coefficient A_j(m).
Everything here is a definition together with the API a consumer needs in order to use it
without unfolding it. None of the definitions needs p to be prime, so none of them
carries a primality hypothesis; the arithmetic lemmas that do are stated elsewhere.
All the divisions are taken in ℚ, so the definitions are total and unconditional; integrality is
a theorem about them (GranvilleMoore.exists_intCast_iteratedFermatQuot and
GranvilleMoore.unitQuot_eq_intCast), not part of their statement.
Main definitions #
GranvilleMoore.iteratedFermatQuot—F^{(j)}_k(x), thej-fold Fermat quotient.GranvilleMoore.cPoly,GranvilleMoore.cCoeff—∏_{r<j}(X + p^r)and its coefficientsc_{j,i}(p).GranvilleMoore.unitQuot—g_k(x) = (t_x^{p^k} - 1)/p^{k+1}, wheret_x = x^{p-1}.GranvilleMoore.binomPoly,GranvilleMoore.binomPolyCoeff—B_mandβ_{m,n}.GranvilleMoore.collapsedCoeff—A_j(m).
The iterated Fermat quotient #
The iterated Fermat quotient F^{(j)}_k(x) of Granville's paper: F^{(0)}_k(x) is
x^(p^k), and F^{(j+1)}_k(x) is the divided difference
(F^{(j)}_{k+1}(x) - F^{(j)}_k(x)) / p^(k+1).
The value is a rational number; that it is in fact an integer for prime p is
GranvilleMoore.exists_intCast_iteratedFermatQuot. The recursion is on j, uniformly in k.
Equations
- GranvilleMoore.iteratedFermatQuot p 0 x✝¹ x✝ = ↑x✝ ^ p ^ x✝¹
- GranvilleMoore.iteratedFermatQuot p j.succ x✝¹ x✝ = (GranvilleMoore.iteratedFermatQuot p j (x✝¹ + 1) x✝ - GranvilleMoore.iteratedFermatQuot p j x✝¹ x✝) / ↑p ^ (x✝¹ + 1)
Instances For
The bottom of the tower: F^{(0)}_k(x) = x^(p^k).
The divided-difference recursion: F^{(j+1)}_k(x) is
(F^{(j)}_{k+1}(x) - F^{(j)}_k(x)) / p^(k+1).
The coefficients of the falling p-power product #
The falling p-power product ∏_{r<j}(X + p^r), whose coefficients are the
c_{j,i}(p) of Granville's paper. The empty product for j = 0 is 1.
Equations
- GranvilleMoore.cPoly p j = ∏ r ∈ Finset.range j, (Polynomial.X + Polynomial.C (↑p ^ r))
Instances For
The coefficient c_{j,i}(p) of X^i in ∏_{r<j}(X + p^r).
Equations
- GranvilleMoore.cCoeff p j i = (GranvilleMoore.cPoly p j).coeff i
Instances For
The empty falling p-power product is 1.
The falling p-power product gains the factor X + p^j at step j.
The falling p-power product is monic, being a product of monic linear factors.
The top coefficient of the falling p-power product is 1: the product is monic of
degree j.
The defining identity of the coefficients c_{j,i}(p), in the form
∏_{r<j}(X + p^r) = ∑_{i ≤ j} c_{j,i}(p) X^i.
The unit quotient #
The unit quotient g_k(x) = (t_x^{p^k} - 1) / p^{k+1} of Granville's paper, where
t_x = x^{p-1}; equivalently (x^{(p-1)p^k} - 1)/p^{k+1}.
The value is a rational number; that it is in fact an integer for an odd prime p not
dividing x is GranvilleMoore.unitQuot_eq_intCast.
Instances For
The binomial polynomial and its coefficients #
The rescaled binomial polynomial B_m(z) = (1/m!) ∏_{s<m} ((z-1)/(p-1) - s) of
Granville's paper, the empty product for m = 0 being 1. It is built from
descPochhammer ℚ m = ∏_{s<m}(X - s) by substituting (z-1)/(p-1); eval_binomPoly
recovers the product formula.
Equations
- GranvilleMoore.binomPoly p m = (↑m.factorial)⁻¹ • (descPochhammer ℚ m).comp ((↑p - 1)⁻¹ • (Polynomial.X - 1))
Instances For
The coefficient β_{m,n} of z^n in B_m. It vanishes for n > m
(binomPolyCoeff_eq_zero_of_lt), so no bound on n is built into the definition.
Equations
- GranvilleMoore.binomPolyCoeff p m n = (GranvilleMoore.binomPoly p m).coeff n
Instances For
The empty rescaled binomial polynomial is 1.
The product formula for B_m: B_m(z) = (1/m!) ∏_{s<m} ((z-1)/(p-1) - s).
The coefficients of B_m vanish above the degree: β_{m,n} = 0 for n > m.
B_m is the polynomial with coefficients β_{m,n} for n ≤ m.
The collapsed coefficient #
The collapsed coefficient A_j(m) = ∑_{i ≤ j} (-1)^{j-i} c_{j,i}(p) * (e_i choose m)
of Granville's paper, where e_i = ∑_{r<i} p^r is the Frobenius exponent
GranvilleMoore.frobeniusExponent p i, written out here and definitionally equal to it.
It is rational because it is compared with p-adic valuations and combined with rational
quantities in the master expansion GranvilleMoore.iteratedFermatQuot_eq_mul_sum, even
though the summands are integers. Its content is in GranvilleMoore.collapsedCoeff_eq_sum,
GranvilleMoore.collapsedCoeff_eq_zero, GranvilleMoore.le_padicValRat_collapsedCoeff and
GranvilleMoore.collapsedCoeff_self_eq.
Equations
- GranvilleMoore.collapsedCoeff p j m = ∑ i ∈ Finset.range (j + 1), (-1) ^ (j - i) * ↑(GranvilleMoore.cCoeff p j i) * ↑((∑ r ∈ Finset.range i, p ^ r).choose m)
Instances For
The collapsed coefficient at j = 0 is the indicator of m = 0: A_0(m) is 1 for
m = 0 and 0 otherwise.