Documentation

Formalizations.MusicTheory.IntervalVector

The interval vector of a pitch-class set #

For a pitch-class set A ⊆ ℤ/12, IVraw A k counts the ordered pairs (a, b) ∈ A × A whose interval class min (a - b).val (b - a).val is k; the textbook interval vector is IVraw A k / 2. The interval class is written so that invariance under negation is min_comm; invariance is proved once for every embedding of ℤ/12 preserving differences up to sign, and transposition and inversion are special cases.

Main results #

References #

Interval class of a pitch-class difference: min(d, 12−d), value in 0..6. Written as min d.val (-d).val so that neg-invariance is just min_comm.

Equations
Instances For
    @[simp]

    Raw interval vector: number of ORDERED pairs (a,b) ∈ A×A with interval class k. The textbook interval vector is IVraw A k / 2 for k = 1..6 (each unordered pair twice).

    Equations
    Instances For
      theorem MusicTheory.IntervalVector.IVraw_map (e : ZMod 12 ↪ ZMod 12) (he : ∀ (a b : ZMod 12), ivc (e a - e b) = ivc (a - b)) (A : Finset (ZMod 12)) (k : ℕ) :
      IVraw (Finset.map e A) k = IVraw A k

      Invariance under any embedding of ℤ/12 that preserves the interval class of differences.

      Transposition Tₙ : a ↦ a + n.

      Equations
      Instances For

        Inversion I : a ↦ −a.

        Equations
        Instances For
          theorem MusicTheory.IntervalVector.IVraw_tpose (n : ZMod 12) (A : Finset (ZMod 12)) (k : ℕ) :
          IVraw (tpose n A) k = IVraw A k

          The interval vector is invariant under transposition.

          The interval vector is invariant under inversion.