Adapted from Charlie Dorsey’s Apache-2.0 Weil Bounds Toolkit for Lean Pool’s module system, Mathlib version, quality requirements and compilation performance.
Square-root point-count estimates #
Combines the auxiliary polynomial with Euler’s criterion to bound two combinations of the curve’s point-count fibers. Reference: Harcos (2015), §5, equations (11)–(14); Stepanov (1972).
A polynomial of the form h²-k with h'=-1, nonzero k, and odd
characteristic is separable. The proof supplies the Bézout identity
explicitly.
A separable polynomial of positive degree cannot be a nonzero scalar times a square.
The raw one-sided Stepanov bound for N₀+N₁.
The raw one-sided Stepanov bound for N₀+N₋₁.
Explicit square-root form of the N₀+N₁ estimate.
Explicit square-root form of the N₀+N₋₁ estimate.
Pure arithmetic form of the passage from the two one-sided estimates to the square-versus-nonsquare defect.
Uniform high-extension-field point-count estimate obtained from the two Stepanov fibers. Its constant is independent of the extension degree.