Search papers, labs, and topics across Lattice.
This paper introduces Prismriver, a formalization of music theory using the Lean 4 proof assistant, which captures the mathematical rules and symmetries inherent in music. By leveraging Lean 4's capabilities, the authors enable verifiable algorithmic composition and accompaniment generation, providing a rigorous framework for musical analysis. The key result is the establishment of a formal structure that allows for the monadic analysis of musical elements, enhancing both theoretical understanding and practical applications in music generation.
Formalizing music theory in Lean 4 paves the way for verifiable algorithmic composition, transforming how we generate and analyze music.
Music theory obeys a rich set of mathematical rules and symmetries. These symmetries follow mathematical structure which can be verified and expressioned in the precise language of a proof assistant. In this paper, we present Prismriver, a formalization of music theory in Lean 4. By formalizing music theory in Lean 4, we open the door to verifiable algorithmic composition and accompaniment generation. We also enable the analysis of monadic analysis of structures in music.