The Weil bound for modulo
ProvedWeil.abs_card_diagonal_zmod_sub_leexponential-sumsfinite-fieldsgauss-sumsnumber-theoryweil-bound
Diagonal equations mod . Let be a prime and . The number of solutions of in satisfies
For this is the Hasse bound for the Fermat cubic, an elliptic curve; for general it is the Riemann hypothesis for the diagonal curve, obtained here from Jacobi sums alone.
Preamble
import Mathlib.NumberTheory.GaussSum import Mathlib.NumberTheory.JacobiSum.Basic import Mathlib.NumberTheory.LegendreSymbol.QuadraticChar.GaussSum import Mathlib.NumberTheory.MulChar.Lemmas import Mathlib.GroupTheory.SpecificGroups.Cyclic import Mathlib.GroupTheory.Index import Mathlib.Analysis.SpecialFunctions.Complex.CircleAddChar import Mathlib.Analysis.SpecialFunctions.Sqrt import Mathlib.Analysis.RCLike.Basic import Mathlib.Analysis.Complex.Basic import Mathlib.Algebra.Field.GeomSum import Mathlib.Algebra.Order.BigOperators.Group.Finset set_option autoImplicit false set_option linter.unusedSectionVars false set_option linter.unusedVariables false universe u_1 u_2 open AddChar MulChar Finset
Formal statement
namespace Weil
theorem abs_card_diagonal_zmod_sub_le : ∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {d e : ℕ}, d ≠ 0 → e ≠ 0 → |(↑(Finset.card {z : ZMod p × ZMod p | Prod.fst z ^ d + Prod.snd z ^ e = 1}) : ℝ) - (↑p : ℝ)| ≤ ((↑d : ℝ) - 1) * ((↑e : ℝ) - 1) * √(↑p : ℝ) := by sorry
end WeilSource
A. Weil, Numbers of solutions of equations in finite fields, Bull. Amer. Math. Soc. 55 (1949), 497-508 (diagonal equations are the worked example of the Weil conjectures)