Adapted from Charlie Dorsey’s Apache-2.0 Weil Bounds Toolkit for Lean Pool’s module system, Mathlib version, quality requirements and compilation performance.
The prime Kloosterman bound #
Combines the spectral and point-count arguments to prove Weil’s bound (1948),
following Harcos (2015), Theorem 1, for odd primes. The case p=2 is proved
separately.
One-parameter prime Kloosterman–Weil bound, including characteristic two.