Adapted from Charlie Dorsey’s Apache-2.0 Weil Bounds Toolkit for Lean Pool’s module system, Mathlib version, quality requirements and compilation performance.
From point counts to spectral sums #
Connects extension Kloosterman sums and the point-count discrepancy in Harcos (2015), equation (3).
theorem
KloostermanWeil.Stepanov.scalarTraceSum_zero
(p n : ℕ)
[Fact (Nat.Prime p)]
[NeZero n]
(c : GaloisField p n)
:
theorem
KloostermanWeil.Stepanov.pointCountError_eq_errorAggregate
(p n : ℕ)
[Fact (Nat.Prime p)]
(hpodd : Odd p)
(c : ZMod p)
(hc : c ≠ 0)
(hn : n ≠ 0)
:
↑(hyperellipticAffinePointFinset (kloostermanCurvePolynomial p n c)).card - ↑(p ^ n) = errorAggregate p n c
Exact point-count bridge: the specialized affine curve defect is literally the finite aggregate consumed in the Stepanov argument.