Huddling, diatonic and pentatonic scales in Z12: Fourier maxima and convex-energy minima formalized in Lean 4
Note 5 of the Mathematics of Music series. English and Spanish versions, with reproducible source files, figures and a Lean 4 formalization. Why do the seven white keys maximize a Fourier magnitude and minimize a repulsive pair energy? The twelve-tone Huddling theorem identifies consecutive pitch-class clusters as the first-frequency maximizers at every cardinality, with a complete equality class. Multiplication by five transports this result to frequency five; at cardinality seven the equality class is precisely the twelve transpositions of the diatonic collection. Double Abel summation identifies the same orbit as the unique energy-minimizing orbit for every strictly decreasing, strictly discretely convex potential. Thus, for every seven-note set A, |Ahat(5)| = 2 + sqrt(3) if and only if E_V(A) = E_V(D), under the stated strict hypotheses. Weak admissibility still gives a minimum, but does not guarantee this equality class. A symbolic complement-energy identity transfers both optimization problems to five-note anhemitonic pentatonic sets without another census. Homometry, tritone transposition and the parity coefficient connect the result to Notes 1–4. The mathematics is classical: the contribution is a connected, explicit formalization, with exact arithmetic and complete twelve-tone equality conditions. The literature and proof-assistant overlap audits are included; their bounded searches do not establish universal priority. The Lean development pins Lean 4.30.0-rc2 and Mathlib revision 701fb6e9c3b9285968b375d19886bfc5ca134840. Two finite certificates use native_decide, adding trusted compiled-evaluation dependencies to the ordinary foundational axioms. The symbolic transport and complement bridges require no new census. Independent Python and SageMath checks cover all 4096 subsets and all 792 seven-note frequency-five cases. No sorry, admit or handwritten mathematical axiom is used. Prepared with the assistance of artificial intelligence tools; statements, attribution and interpretation remain the author's responsibility. The papers and their figures are CC BY 4.0, following Note 4. The accompanying software retains the repository's Apache 2.0 license; see the included LICENSE and the note README.
Authors
- Carmen Muñoz (ORCID: https://orcid.org/0000-0002-4150-8834)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-10-03
- DOI
- https://doi.org/10.5281/zenodo.23121104
- Primary Topic
- Musicology and Musical Analysis
- Type
- preprint