RH Lean Explorer Sernau readable · Comparator passedChecked

Readable edition · 803 Lean files

Orthogonality, Fourier inversion and matrix Gauss sums over a finite ring

Lib.General.Analysis.FiniteFourier.lean

Open interactive viewer Raw Lean source · Pinned source

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 * ·) with r ≠ 0 is trivial).

  • New.exists_isPrimitive_apply_eq_of_surjective, New.exists_primitive_residue_addChar: a character of a ring F for which the subring O is self-dual induces a primitive character of a suitable quotient ring of O.

Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.

Rest of upstream introduction

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 is 0.
  • 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 characters y ↦ ψ (tr (y u)).
  • New.Exchange.exists_matrixFourier_eq_mul_inv_det: the transform of a function with S (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.

Pinned source lines

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)

X Reddit Email LinkedIn