The square of a quadratic Gauss sum
ProvedFamousTheorems.quadratic_gauss_sum_sqThe square of a quadratic Gauss sum. Let be a finite field, a nontrivial quadratic multiplicative character and a primitive additive character of , both with values in an integral domain. Then the Gauss sum satisfies
For this is Gauss's evaluation . It shows that lies in a cyclotomic field and is the key step in Gauss's sixth proof of quadratic reciprocity.
Formalization note. Mathlib's gaussSum_sq. MulChar.IsQuadratic says that takes values in , and AddChar.IsPrimitive says that is primitive, meaning that every character with is nontrivial.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem quadratic_gauss_sum_sq {R : Type*} [Field R] [Fintype R] {R' : Type*} [CommRing R'] [IsDomain R'] {χ : MulChar R R'}
(hχ₁ : χ ≠ 1) (hχ : χ.IsQuadratic) {ψ : AddChar R R'} (hψ : ψ.IsPrimitive) :
gaussSum χ ψ ^ 2 = χ (-1) * Fintype.card R := by sorry
end FamousTheoremsSource
Listed in Mathlib's curated theorem manifests (docs/1000.yaml); formalized in Mathlib as `gaussSum_sq`. Proof here reduces to that Mathlib result.