Orthogonality, Fourier inversion and matrix Gauss sums over a finite ring
Lib.General.Analysis.FiniteFourier.lean
Reading
Upstream documentation written by Claude
Finite Fourier analysis on matrices over a finite commutative ring
R, for a primitive additive characterψ(no multipleψ (r * ·)withr ≠ 0is trivial).
New.exists_isPrimitive_apply_eq_of_surjective,New.exists_primitive_residue_addChar: a character of a ringFfor which the subringOis self-dual induces a primitive character of a suitable quotient ring ofO.
Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.
Rest of upstream introduction
New.sum_addChar_dotProduct,New.sum_addChar_trace_mul: orthogonality; the sum ofψalong a nonzero linear form on vectors or on matrices is0.New.Exchange.matrixFourier,New.Exchange.matrixFourier_matrixFourier: the transformρ ↦ ∑ v, f v * ψ (tr (ρ v)), not normalised, and its inversion formula.New.exists_sum_smul_addChar_trace_eq: every function on matrices is a linear combination of the charactersy ↦ ψ (tr (y u)).New.Exchange.exists_matrixFourier_eq_mul_inv_det: the transform of a function withS (g d) = χ (det g) S d, for a multiplicative characterχ(zero off the units) that is primitive,New.Exchange.IsPrimitiveMulChar, and the modulus of the Gauss sum ofχ ∘ det.
Relation to the literature
Known; see Lib.Weil.TameGaussSum for sources.
Declarations
lemma Exchange.exists_matrixFourier_eq_mul_inv_det (hψ : ψ.IsPrimitive) (hχ : IsPrimitiveMulChar χ) : ∃ γ : ℂ, ‖γ‖ ^ 2 = (Fintype.card R : ℝ) ^ Fintype.card a ^ 2 ∧ ∀ S : Matrix a a R → ℂ, (∀ (g : GL a R) (u : Matrix a a R), S (g.val * u) = χ g.val.det * S u) → ∀ y : Matrix a a R, matrixFourier ψ S y = γ * χ⁻¹ y.det * S 1
Import route to Main
Lib.General.Analysis.FiniteFourier → New.Spanning.SecondMoment.PositiveType (pinned import) → New.Spanning.SecondMoment.FewTranslates (pinned import) → New.Spanning.Unfolding.Moments (pinned import) → New.Spanning.SecondMoment.SpanningTheorem (pinned import) → New.Reduction.ShortAndEnough (pinned import) → New.Reduction.MainInequality (pinned import) → New.Reduction.OneSidedBound (pinned import) → New.Main (pinned import) → Main (pinned import)