Symmetry


Symmetry

Music theory is full of patterns

  • While all of mathematics could be said to be about structure and pattern, the field of abstract algebra, which is the study of algebraic structures, is particularly well suited to exploring the relationships among a given set of objects and the operations that can be performed on them.
  • That said, abstract algebra can provide a great framework for analyzing music and abstracting the relationships found in modern (Western) music theory to uncover other possible musics. Let’s start with a basic introduction to Abstract Algebra.

Some Preliminaries


Definition: What is a set?

A set is an unordered collection of mathematical objects, without repetition.

  • We can have finite sets like the numbers 1 - 10
  • We can have infinite sets like all odd numbers
  • We can have a set of functions like all quadratic functions

Notation

  • Representation
    • We’ll represent sets with curly braces .
  • Naming
    • We’ll name sets with single letters, just like regular variables.
  • Examples

Applying our definition

  • In our definition, we said two important things:
    • Sets aren’t ordered
    • Sets don’t have repeated elements
  • Examples:
      • We’ve changed the order, but the set is the same set.
      • Repeated elements “don’t count”

Elements

  • We’ll refer to the objects that make up a set as elements.
    • E.g., is an element of the set
  • Writing “…is an element of the set…” would get tedious, so we’ll introduce some new notation.
    • = “…is an element of…”
    • E.g.,
      • But,

Special Sets

Some sets come up often, so they get dedicated names.
  • Integers:
  • Natural Numbers:
  • Rational Numbers:
  • Real Numbers:

Hard-to-write sets

  • How do we write out the set of rational numbers?
  • We can’t list them and use ellipses (…) like we did with integers and natural numbers because for any two rational numbers, there’s always another one in between them. How do we know?
    • Go halfway between.
    • Consider and . Between them we have .
  • With the reals, this gets even worse!

Set-builder notation

  • Say we want to write out the set of even natural numbers
    • So, we want all the non-negative even numbers
  • We could write
  • That’s okay, but it leaves it to the reader to figure out the pattern we’re trying to convey.
  • Here’s a better, much less ambiguous way, to write it:
  • Huh?

Unpacking set-builder notation
  • What does mean?
  • The colon (:) means “such that”
  • Left of (:) tells us what kinds things are in the set or what form they take
    • In this case, is a natural number
  • Right of the (:) gives us constraints
    • is a natural number such that for some other natural number , .
  • Put it all together…
    • is the set of even natural numbers.

Examples (Finite Sets)

Let’s look at some finite sets in set-builder notation and see if we can list their elements.

    • is an integer such that
    • is a natural number such that

One more finite example

    • This one’s a little trickier!
    • The elements all take the form , where is a natural numbers and is between 1 and 4

Example (Infinite Sets)

Now let’s do the same for some infinite sets.

    • All the elements in our set take the form where is a natural number.
    • Simplified:

Subsets

  • We say that is a subset of provided that every element of is an element of .
    • You can think of this as meaning is contained within
    • is a subset of if for all , .
  • Notation:
    • (if might be equal to )
    • (if is definitely not equal to )

Examples

  • .
    • The empty set is a subset of any set. Why?
    • means that if then . This is vacuously true.

Power Set

  • Given a set , the power set of , written , is the set of all subsets of .
  • Example: Let

How big is the power set?

  • Question: for a finite set , how many elements are in ? Or, what is ?
    • Answer:
    • Why?
      • To write any subset of , we have to make a choice for each element of : “include” or “don’t include”. That’s two choices for each element.
      • So, for many elements, we get

Cardinality

  • The cardinality of a set is the number of elements it contains, or its size.
  • Notation: we denote cardinality with absolute value bars
    • E.g., If , then (the cardinality of is 4)
    • Recall: repeated elements don’t count! So, if someone writes a set like , we still only have two distinct elements, so . —

Infinite Sets

  • Many sets have infinite cardinality:
    • E.g., , ,
      • It’s possibly to categorize infinites, but that’s for another course.
      • You might consider why is in a different category of infinite-ness than .

Operations on Sets

Unions and Intersections

  • The first two operations we’ll define are union () and intersection ()
  • Union:
    • The union of and is the set of all elements that are in wither or in .
  • Intersection:
    • The intersection of and is the set of all elements that are in both and >

Venn Diagrams

Union

Intersection


Example

  • Let and
      • Each of these elements is in either or .
      • Each of these elements is in both and

Example

  • Let and
  • What is ?
    • is the set of all natural numbers less than or equal to :
    • is the set of all natural numbers that are prime.
    • The intersection of and is all natural numbers that are less than or equal to AND are also prime.

Clocks, Triangles, and Integers

  • What do clocks, triangles, and the set of integers have in common?
  • The branch of mathematics known as abstract algebra looks at the common features of seemingly very different mathematical objects.
  • The foundational concept in that of the group.
  • Might go back to the 17th century but its genesis is usually attributed to Cauchy and Galois in the mid 1800s
  • Applications in quantum physics, cryptography, computer science…

Clock Arithmetic

  • Suppose we have a clock with only 5 hours on it.
  • Number the hours 0 - 4
  • What happens when we do addition with the hours on the clock?
  • We “wrap around.”
  • 3 + 4 = 2
  • 4 + 1 = 0
  • 2 + 5 = 2
  • 1 + 2 = 3
  • This is called modular arithmetic (mod 5)

Notation

  • We write if is divisible by .
    • : ” divides
  • On the previous slide, it would be better to write…

Congruence/Residue Classes

    • For example, if we consider , what is ?
    • How many distinct congruence classes do we get with arithmetic?
  • Can we prove that if , then ?
    • Hint: show and

Features of Modular Arithmetic

  • Inverses: For any number , we can find it’s additive inverse, such that
    • Examples?
  • Identity: The additive identity is because for any ,
  • Associativity:

MIDI Modular Arithmetic

CC#DD#EFF#GG#AA#BC
012345678910110


Symmetry

  • What is symmetry?
    • … symmetric means something like well-proportioned, well-balanced, and symmetry denotes that sort of concordance of several parts by which they integrate into a whole. Beauty is bound up with symmetry. - Hermann Weyl
  • In mathematics, we define a symmetry to be an undetectable motion of a geometric object.
    • E.g., consider a rectangle. How many ways can we move, flip, rotate a rectangle so that someone looking at the before-and-after wouldn’t be able to tell anything was done?


Multiplication (Cayley) Table

In each cell, enter the result of performing the operation in the row followed by the operation in the column (row • col)


Symmetries of an Equilateral Triangle

  • Let’s define the symmetries of an equilateral triangle.
  • How many distinct symmetries can you think of?
    • : no motion
    • : rotation by 120 deg
    • : rotation by 240 deg
    • : flip over vertical axis
    • : flip over left vertex axis
    • : flip over right vertex axis



What do you notice?

  • Notice, each row contains each of the six elements. So does each column.
  • The symmetries are not commutative
  • for all and .
    • E.g., but
  • How about associativity?
    • Sure!

Only Two Basic Motions

  • We could have worked with two basic motions (and the non motion, e)
    • Rotation:
    • Flipping over the vertical axis:
  • Why are these enough?
  • Def: relabel vertices starting at
  • Ex:
  • Ex:

Dihedral Groups

  • For an n-sided polygon, the dihedral group of order 2n is generated by two elements (operations/motions), r and f, such that…
    • (identity)
    • (try this one)
  • So, the symmetries of all regular polygons can be characterized in the same way

Integers Under Addition

  • Let (the set of all integers)
  • What happens when we add any two integers?
  • We get another integer.
  • We have an identity element:
    • for all (or )
  • Every integer has an additive inverse: for any .
  • We have associativity since

Groups

  • We’ve looks at three examples of a group.
    • Modular arithmetic
    • Symmetries of an equilateral triangle
    • Integers under addition
  • Properties in common:
    • A set with an operation
    • Closure: we always get elements in the set
    • Identity: there’s an element that “doesn’t do anything” when added/multiplied
    • Inverses: every element has an inverse
    • Associativity: we can group operations however we like (in same order)

More Examples

  • The positive real numbers, with multiplication as the operation.
  • The integers under subtraction.
  • (under multiplication)

Musical Actions of Dihedral Groups

  • The dihedral group of order 24 is the group of symmetries of a regular 12-sided polygon. Algebraically, the dihedral group of order 24 is generated by two elements, and , such that
  • Let’s take some time to make sense of these properties in terms of symmetries.
    • The operation , is rotation by
    • The operation is reflection about an axis.

First Musical Action

  • The first musical action of the dihedral group of order 24 we consider arises via the familiar compositional techniques of transposition and inversion.
  • A transposition moves a sequence of pitches up or down.
    • When singers decide to sing a song in a higher register, for example, they do this by transposing the melody.
  • An inversion, on the other hand, reflects a melody about a fixed axis, just as the face of a clock can be reflected about the 0-6 axis.
    • Often, musical inversion turns upward melodic motions into downward melodic motions.

Defining Transposition and Inversion

T_n: \mathbb{Z} \to \mathbb{Z}\cr T_n(x) := x+n \;mod\;12 \end{cases}$$ $$\begin{cases} I_n: \mathbb{Z} \to \mathbb{Z}\cr I_n(x) := -x+n \;mod\;12 \end{cases}$$ --- ### Negative Harmony + The inversion operation $I_7$ gives us something called *negative harmony* + Negative harmony is an approach to crafting chord progressions + In a major key, we can *borrow* chords from the *parallel minor* key to make more interesting progressions + Example in C major + Take $C = 0$ + What happens to the chord F-major (F-A-C)? + F: $-5 + 7 = 2$ (D) + A: $-9 + 7 = -2 \mod{12} = 10$ (Bb) + C: $0 + 7 = 7$ (G) + G-Bb-D is a G-minor --- #### Let's write a negative harmony calculator in Sonic Pi --- ## The PLR-Group + The second action of the dihedral group of order 24 that we explore has only come to the attention of music theorists in the past two decades. + Its origins lie in the $P$, $L$, and $R$ operations of the 19th-century music theorist Hugo Riemann. + The parallel operation $P$ maps a major triad to its parallel minor and vice versa. The leading tone exchange operation $L$ takes a major triad to the minor triad obtained by lowering only the root note by a semitone. The operation $L$ raises the fifth note of a minor triad by a semitone. The relative operation R maps a major triad to its relative minor, and vice versa. --- #### Example - $P(C-major)$ = $c-minor$ - $L(C-major) = e-minor$ - $R(C-major) = a-minor$ --- ### Formalizing PLR + Another way of navigating the major and minor triads is through the *PLR-group*, initiated by David Lewin. As we'll find, the PLR-group has a beautiful geometric depiction called the Tonnetz. + Consider the three functions $P,L,R\;:S\to S$ defined as follows: + $P\langle y_1, y_2, y_3\rangle = I_{y_1+y_3}\langle y_1, y_2, y_3\rangle$ + $L\langle y_1, y_2, y_3\rangle = I_{y_2+y_3}\langle y_1, y_2, y_3\rangle$ + $R\langle y_1, y_2, y_3\rangle = I_{y_1+y_2}\langle y_1, y_2, y_3\rangle$ --- #### Theorem: The PLR-group is generated by L and R and is dihedral of order 24. + **Recall:** The dihedral group of order 24 is the group of symmetries of a regular 12-sided polygon. Algebraically, the dihedral group of order 24 is generated by two elements, $s$ and $t$, such that + $s^{12} = 1, \quad t^{2} = 1, \quad tst = s^{-1}$ + **Proof:** Closure should be clear. Now let's consider a sequence of triads starting on C-major and then alternately applying $R$ and $L$. + $C, a, F, d, B\flat, g, E\flat, c, A\flat, f, D\flat, b\flat, G\flat$ + $e\flat, B, g\#, E, c\#, A, f\#, D, b, G, e, C$ + This tells us that the 24 bijections (reversible operations) are distinct and that we get at least 24 elements in our $PLR$-group. + $R, LR, RLR, \dots, R(LR)^{11}, (LR)^{12} = 1$ --- + Can we define $P$ in terms of $L$ and $R$? (Look at the sequence we generated above.) + $P = R(LR)^{3}$ + Now, set $s=LR$ and $t = L$. Then, $s^{12} = 1$ and $t^{2} = 1$. Lastly, confirm that $tst = s^{-1}$. + $tst = L(LR)L = RL = s^{-1}$ + Fascinatingly, the progression we looked at above (in our proof) can be found in Beethoven's 9th (2nd movement, measures 143-176). --- #### The Tonnetz The PLR actions can be visualized as movements about a *Tonnetz*. And so, Beethoven's 9th (or that particular segment of it) can be viewed as a path traced along a Tonnetz. ![](Assets/Tonnetz.gif) --- #### Building the Tonnetz ![](Assets/TonnetzConstruction.png)