Documentation

LeanPool.KloostermanWeil.Stepanov.PointCountBridge

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.errorAggregate_eq_Kext_sum (p n : ℕ) [Fact (Nat.Prime p)] (c : ZMod p) (hn : n ≠ 0) :
errorAggregate p n c = -1 + ∑ m : { m : ZMod p // m ≠ 0 }, Carlitz.Kext p n (↑m ^ 2 * c)

Exact point-count bridge: the specialized affine curve defect is literally the finite aggregate consumed in the Stepanov argument.