Fourier amplitudes of subsets of a finite cyclic group #
For A ⊆ ZMod N, Ahat A k = ∑ a ∈ A, stdAddChar (-(a * k)), which equals Mathlib's ZMod.dft
of the indicator (Ahat_eq_dft). This file collects the interface used by the Huddling
inequality: transposition, complementation, consecutive arcs and their geometric sums, unit
frequencies, and the threshold argument that reduces the inequality to a geometric selector.
Main results #
Ahat_eq_dft,Ahat_tpose,Ahat_compl,norm_Ahat_le_card.card_arc,Ahat_arc,Ahat_arc_geom.sum_le_of_threshold,sum_lt_of_strict_threshold.norm_Ahat_one_le_arc_of_geometric_selector,norm_Ahat_unit_le_arc_of_geometric_selector.
References #
- E. Amiot, Discrete Fourier transform and Bach's good temperament, Music Theory Online 15 (2009).
- C. Marín, Huddling, diatonic and pentatonic scales in Z12: Fourier maxima and convex-energy minima formalized in Lean 4, Zenodo (2026), doi:10.5281/zenodo.23121103.
The exchange step in the geometric Huddling proof is independent of roots of unity.
A set containing all scores above a threshold maximizes their sum among sets of the same cardinality. This is the finite exchange argument needed after projecting the cyclic roots onto any chosen direction.
Strict separation at the threshold makes the maximizer unique at its cardinality. The geometric equality analysis must account for boundary ties.
The unnormalized Fourier coefficient of a subset of ZMod N.
Equations
- MusicTheory.CyclicHuddling.Ahat A k = ∑ a ∈ A, ZMod.stdAddChar (-(a * k))
Instances For
Transpose a subset by one residue.
Equations
- MusicTheory.CyclicHuddling.tpose s A = Finset.map { toFun := fun (x : ZMod N) => x + s, inj' := ⋯ } A
Instances For
The first m residues, viewed as a cyclic arc.
Equations
- MusicTheory.CyclicHuddling.arc m = Finset.image (fun (j : ℕ) => ↑j) (Finset.range m)
Instances For
The real projection of a Fourier coefficient is controlled by the finite top-score exchange lemma. A geometric description of the top-score sets of roots of unity is the remaining analytic step in Huddling.
Strictly separated projected scores give strict Fourier-projection inequality unless the chosen subset is the maximizing set itself.
At frequency one, the full norm bound follows once each directional projection has a translated arc above a separating threshold. Other primitive frequencies require pulling the arc back by their inverse.
The same geometric selector controls every primitive frequency after relabeling the selected pitches by multiplication by that frequency.