Dwork's trace formula for toric hypersurfaces:
ProvedFiniteFields.Dwork.dworkToricTraceFormulaSetting.
- is a prime, is a finite field of characteristic with elements, and for , denotes a fixed extension of of degree .
- and is an arbitrary polynomial. For ,
is the number of points of the toric hypersurface over .
- is the completion of (the unramified extension of with residue field ), is the canonical primitive -th root of unity, and is the -th cyclotomic extension of .
- is Dwork's auxiliary polynomial in variables.
- is a vector of positive weights on the variables .
- is Dwork's -level operator attached to , acting on the -Banach space of overconvergent power series in (with growth measured by the -weighted degree of monomials): , where is the product of Dwork's splitting series over the monomials of (with the Teichmüller lift of ), , and is the inverse Frobenius applied to the coefficients.
- is the nuclear trace of the -th power of .
Statement. For every ,
This is Dwork's trace formula (Lemma 2, formula (14)) for the auxiliary polynomial , combined with the orthogonality of additive characters, which turns the character sum over the torus into . It expresses all the point counts of the toric hypersurface through the traces of the powers of one completely continuous operator, which is the input for the -adic meromorphy of the zeta function.
Formalization Note. Lean indexes the degree by : toricHypersurfacePointCount k₀ p f n is and the trace is taken at the positive power . The polynomial is a finitely supported function from exponent vectors to , and is mathlib's FiniteField.Extension k₀ p s. The field is DworkCyclotomicField k₀ p, and the integers , , are cast into it. The operator is packaged as a NuclearOperator: its infinite matrix in the monomial basis, conjugated by an explicit diagonal rescaling (which does not change the traces of finite truncations), together with a decay bound. is by definition , where is the truncation of that matrix to monomials of -weighted degree at most . The identity holds for every choice of . The residue field lives in Type (universe ).
import Mathlib
import Definitions.Def_FiniteFields_Dwork_TraceFormula
open Filter Topology
open FiniteFields.Dwork
variable (k : Type*) (p : ℕ) [Fact p.Prime] [Field k] [CharP k p] [Finite k]
attribute [local instance] dw5cResiduePrimeAlgebra
variable {d : ℕ} (w : PositiveMonomialWeight d)
variable (k₀ : Type) [Field k₀] [CharP k₀ p] [Finite k₀]
attribute [local instance] dw4eExtensionCharPtheorem FiniteFields.Dwork.dworkToricTraceFormula (f : MonomialIndex d →₀ k₀)
(w' : PositiveMonomialWeight (d + 1)) (n : ℕ) :
((Nat.card k₀ ^ (n + 1) - 1 : ℕ) : DworkCyclotomicField k₀ p) ^ (d + 1)
* NuclearOperator.tracePower w'
(dworkQFrobeniusNuclearOperator k₀ p w' (dworkAuxiliaryPolynomial (k := k₀) f))
⟨n + 1, Nat.succ_pos n⟩
= ((Nat.card k₀ ^ (n + 1) : ℕ) : DworkCyclotomicField k₀ p)
* (toricHypersurfacePointCount k₀ p f n : DworkCyclotomicField k₀ p)
- ((Nat.card k₀ ^ (n + 1) - 1 : ℕ) : DworkCyclotomicField k₀ p) ^ d := by sorry