Documentation

Formalizations.MusicTheory.TranslationInvariantEnergy

Translation-invariant pair energies #

On a finite abelian group G, a pair weight W a b = f (b - a) has constant row sum ∑ x, f x, and it is symmetric iff f is even. So the complement correction of ComplementEnergy is a single scalar. On ℤ/12 with a potential of the circular distance, a hexachord and its complement have the same energy for every potential, and complementation transports minimizers.

Main results #

References #

def MusicTheory.TranslationInvariantEnergy.kernel {G : Type u_1} [AddCommGroup G] (f : G → ℝ) (a b : G) :

A pair potential determined only by the oriented difference of its sites.

Equations
Instances For
    theorem MusicTheory.TranslationInvariantEnergy.kernel_symmetric {G : Type u_1} [AddCommGroup G] (f : G → ℝ) (heven : ∀ (x : G), f (-x) = f x) :

    Evenness of the potential makes its pair kernel symmetric.

    Symmetry of the pair energy is exactly evenness of its difference potential.

    theorem MusicTheory.TranslationInvariantEnergy.rowSum_kernel {G : Type u_1} [AddCommGroup G] [Fintype G] (f : G → ℝ) (a : G) :
    ComplementEnergy.rowSum (kernel f) a = ∑ x : G, f x

    Translation invariance gives the same weighted degree at every site.

    The total energy is half the number of sites times their common row sum.

    theorem MusicTheory.TranslationInvariantEnergy.energy_compl {G : Type u_1} [AddCommGroup G] [Fintype G] [DecidableEq G] (f : G → ℝ) (heven : ∀ (x : G), f (-x) = f x) (A : Finset G) :

    The full complement correction is fixed by cardinality and the potential's total sum.

    theorem MusicTheory.TranslationInvariantEnergy.energy_compl_card {G : Type u_1} [AddCommGroup G] [Fintype G] [DecidableEq G] (f : G → ℝ) (heven : ∀ (x : G), f (-x) = f x) (A : Finset G) :

    Normal form: one scalar (the row sum) controls every complement correction.

    Equal-cardinality energy gaps are unchanged by complementation.

    Every cardinality-constrained minimizer is transported to its complement.

    The twelve-tone circular-distance potential viewed as a difference kernel.

    Equations
    Instances For

      Every distance-based pair weight in the pitch-class circle is translation invariant.

      theorem MusicTheory.PitchClassEnergy.potential_sum (V : ℕ → ℝ) :
      ∑ x : ZMod 12, potential V x = V 0 + 2 * (V 1 + V 2 + V 3 + V 4 + V 5) + V 6

      The twelve sites occur at circular distances 0, 1, ..., 6 with multiplicities 1, 2, ..., 2, 1.

      theorem MusicTheory.PitchClassEnergy.energy_compl_card (V : ℕ → ℝ) (A : Finset (ZMod 12)) :
      ComplementEnergy.energy (fun (a b : ZMod 12) => V (AllPairsEvenness.cdist a b)) Aᶜ - ComplementEnergy.energy (fun (a b : ZMod 12) => V (AllPairsEvenness.cdist a b)) A = (6 - ↑A.card) * ∑ x : ZMod 12, potential V x

      Twelve-tone specialization of the general complement identity. The scalar is the sum of all twelve distance weights, including the possible self-weight V(0).

      The abstract and pitch-class complement differences coincide when the diagonal weight vanishes, which is the convention used by AllPairsEvenness.E.

      theorem MusicTheory.PitchClassEnergy.hexachord_energy_eq (V : ℕ → ℝ) (A : Finset (ZMod 12)) (hcard : A.card = 6) :

      Any six-note set and its complement have equal pair energy for every circular-distance potential. This is the weighted-energy face of the complementary-hexachord interval-vector theorem.

      Complementation transports minima for every circular-distance potential, with no convexity assumption. This is the abstract source of the 5↔7 bridge.