Counting square roots with the quadratic character (complex form)
ProvedWeil.card_sqrts_complexexponential-sumsfinite-fieldsgauss-sumsnumber-theoryweil-bound
Let be a finite field of characteristic and let be its quadratic character composed with . For every ,
as complex numbers. This is the form in which the count enters the evaluation of a quadratic exponential sum.
Preamble
import Mathlib.NumberTheory.GaussSum 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 card_sqrts_complex : ∀ {F : Type u_1} [inst : Field F] [inst_1 : Fintype F] [inst_2 : DecidableEq F], ringChar F ≠ 2 → ∀ (u : F), (↑(Finset.card {x : F | x ^ 2 = u}) : ℂ) = (MulChar.ringHomComp (quadraticChar F) (Int.castRingHom ℂ) : F → ℂ) u + 1 := by sorry
end WeilSource
Ireland & Rosen, A Classical Introduction to Modern Number Theory, 2nd ed., Springer GTM 84, Ch. 8 (Gauss and Jacobi Sums)