Category Theory
Zulip Server
Archive

You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.


Stream: learning: questions

Topic: Accordion layouts


view this post on Zulip Alex Kreitzberg (Feb 08 2025 at 18:31):

This is the first of my "five formalized examples", per Baez's advice, to find a common abstraction.

I wrote a lot here, and after writing all of this, a very concrete intuition occurred to me that I think I can define without dumping a lot of text. The intuition is independent of music, so mathematicians can easily comment on it without needing to know music. I'll post it in another thread.

However, I spent a few months trying to make the following easy to read and personally clarifying, so I felt it would be a waste to not post it.

If you're not inclined, or don't have time, to read the post - I invite you to look at the diagrams, I think they're fun.


I want to explore the ways the layout of an accordion could be thought of as a sort of category, or at least how it's in a category. First I'm going to describe an accordion's layout with an algebraic structure.

The standard layout has a property that's sometimes called "isomorphic", unfortunately here this term is an adjective of one layout rather than a relationship between two.

The fundamental rule of an isomorphic layout is: a given handshape determines the quality of the notes.
For example, in the following image the bottom kinked line covers a C major chord, and the top kinked line covers a G dominant chord.

Chord Shapes.PNG

No matter where those patterns are on the grid, it'll sound Major, or Dominant, provided they are of those respective shapes. The quality of the chord shape is invariant under translations. Or in music terminology - translations are transpositions.

How are the notes placed on the keyboard to make this possible?
To answer this, I need two observations

Summarizing, equal shapes having the same quality implies vector additions of notes

Vector Addition.PNG

I'm going to define these differences with torsors.

Let our base set be a hex lattice. Label the set H\bm{H}. We can reach any other point of our lattice from any point by traveling an integer number of horizontal steps, and an integer number of diagonal steps.

Because we can specify the relative coordinates with a pair of integers. The group acting on our lattice is isomorphic to the free abelian group Z2\mathbb{Z}^2. So our hex lattice is a Z2\mathbb{Z}^2-Torsor.

If I was looking at a piano, there would only be horizontal moves, I can imagine it as equally spaced dots. This would be a Z\mathbb{Z}-Torsor. Label this torsor L\bm{L}.

Although there are lots of notes of various frequencies, they can be organized into 12 pitch classes labeled: C,C,D,E,E,F,F,G,G,A,B,BC, C\sharp, D, E\flat, E, F, F\sharp, G, G\sharp, A, B\flat, B. The pitch classes form a circle. If we say adjacent notes on the circle have a difference of 1, then we can rotate along the circle by specifying a number from Z/12\mathbb{Z}/12 - so the pitch classes are a Z/12\mathbb{Z}/12-Torsor. Label this torsor P\bm{P}.

For CC in P\bm{P}, we have C+2=DC + 2 = D, where "++" here is our group action on the pitch classes. We might also write this as 2=DC2 = D - C. Then it's safe to write C+(DC)=DC + (D - C) = D.

As a partial explanation of the pitch classes forming a circle. When assigning notes to the piano, you could imagine the piano layout as a helix over the circle of 12 dots, acting as a sort of universal cover for the twelve notes.

If you map the piano onto the pitches in this way, then if mm is the number of horizontal moves on a piano, that gets taken to m(mod12)m \pmod{12} moves on the pitches.

p:LPp : \bm{L} \rightarrow \bm{P}
p(x+m)=p(x)+m(mod12)p(x + m) = p(x) + m \pmod{12}

So we could specify how accordion notes map to piano notes. Or we can map to the pitch classes directly.

For example, Euler's tonnetz is the layout on the Harmonetta:

Harmonetta_hohner.jpg

label the button marked "CC" by xx in the following examples.
We want a map h:HPh : \bm{H} \rightarrow \bm{P} so h(x)=Ch(x) = C, and further, the rest of the points on the hex layout need to be mapped in such a way, so that

h(x+n+m)=C+n9+m4(mod12)h(x + n➶ + m➵) = C + n9 + m4 \pmod{12}

Note, because P\bm{P} is a torsor, I could rewrite that as h(x+n+m)=C+n(AC)+m(EC)h(x + n➶ + m➵) = C + n(A - C) + m(E-C)

One of my favorite layouts, the Wicki-Hayden, is defined by

w:HPw : \bm{H} \rightarrow \bm{P}
w(x+n+m)=C+n7+m2(mod12)w(x + n➶ + m➵) = C + n7 + m2 \pmod{12}

This could be rewritten as w(x+n+m)=C+n(GC)+m(DC)w(x + n➶ + m➵) = C + n(G - C) + m(D - C)

Wicki-Hayden_Musical_Note_Layout.png

There are a lot of patterns in the above, for example, the most common accidentals F,C,E,BF\sharp, C\sharp, E\flat, B\flat are closest to the diatonic scale.
If you ignore differences up to reflections, rotations and translations, there's under 20 of these - it's a fun puzzle to figure out exactly how many.

It's also fun to figure out how these relate to square grids, or gaussian integers. Square lattice layouts are natural fits for guitars:

Shear transformation.png

I've been implicitly notating the basis of the free abelian group associated with the hex by {➶, ➵}, notate the basis of the free abelian group associated with the square lattice by {,}\{\bm{\uparrow},\bm{\rightarrow}\}. Then we have an evident group homomorphism between the two defined by what it does on their basis.
g()=g(\bm\uparrow) = ➶
g()=g(\bm\rightarrow) = ➵

label the square lattice S\bm{S}. If we have a layout f:HPf : H \rightarrow P, then we can pull this back to a layout f:SPf' : S \rightarrow P as follows

f(x+n+m):=f(x+g(n+m))=f(x+ng()+mg())=f(x+n+m)f'(x + n\bm\uparrow + m\bm\rightarrow) := f(x + g(n\bm\uparrow+ m\bm\rightarrow)) = f(x + ng(\bm\uparrow) + mg(\bm\rightarrow)) = f(x + n➶ + m➵)

So if we have a homomorphism between the free abelian groups, we can use it to define a function from the homset Hom(H,P)Hom(\bm{H}, \bm{P}) to the homset Hom(S,P)Hom(\bm{S}, \bm{P}). If I tracked the underlying free abelian groups of the torsors in this notation, it'd be clear this defined a contravariant functor. This is because we're almost "precomposing" ff by gg.


Of course I usually am just playing on the layout I'm given.

I'd like to model the melodies I play on an accordion, as a sort of category. If I think of the accordion as a sort of space, then I'd like to think of paths on this space as a physical representation of the melodies.

My accordion has what is called a C system, its note layout is given by

c(x+n+m)=C+n+m3(mod12)c(x + n➶ + m➵) = C + n + m3 \pmod{12}

Here's a diagram of what my accordion looks like, white notes are CDEFGAB, and black notes are the accidentals (a letter with a sharp or flat):

C system.png

The bottom left C will be "x" on this layout.

Going to the right is a minor third, or three half steps. Going down and to the right is a whole tone, or two half steps. Going up and to the right is one half step, or a minor second:

Intervals changes C system.PNG

In the vector addition image I posted earlier, we add a one halfstep interval to a three halfstep interval, giving a four halfstep interval, or a Major third. I playfully call minor thirds "zigs" and Major thirds "zags" .
The image implicitly defines a layout via a map

h:Z2Z/12h : \mathbb{Z^2} \rightarrow \mathbb{Z}/12
h()=1h(➶) = 1
h()=3h(➵) = 3

I'm pushing the syntax Z2\mathbb{Z}^2 slightly, the connection between squares and hexagons was compared above.
With hh we can summarize terminology:
One halfstep =1=h()= 1 = h(➶)
Two halfsteps =2=h()= 2 = h(➴), where :=➴ := ➵ -➶
minor third =m3=3=h(zig)=h()= m3 = 3 = h(zig) = h(➵)
Major third =M3=4=h(zag)=h(+)= M3 = 4 = h(zag) = h(➵ +➶)
I can easily describe more intervals this way, for example:
Perfect fourth =P4=5=h(+)= P4 = 5 = h(➵ + ➴)
Consecutive perfect fourths, describe the pentatonic scale, this ends up being a straight line on the diagram:

Pentatonic scale.png

This makes the layout very convenient when reading key signatures, because of the circle of fifths (which isn't explained here). If the key signature has 3 sharps, you include the bottom three black notes of the straight line. If it has 2 flats, you include the top two black notes of the line.

You can build chords by stacking thirds. For example, the kinked lines I shared earlier were describing chords. The dominant chord is a major third, followed by two minor thirds, or a zag zig zig. The Major chord is a Major third followed by a minor third, or a zag zig.

Diagram of intervals.PNG

For the below I form the free monoid of Z2\mathbb{Z}^2 and Z\mathbb{Z}, and use the free monoid functor on hh to define

h:Z2>Zh^* : {\mathbb{Z}^2}^* -> \mathbb{Z}^*

With this, I can summarize various possibilities in symbols:
Major triad =M3 m3=h(zag zig)= \text{M3 m3} = h^*(\text{zag zig})
minor triad =m3 M3=h(zig zag)= \text{m3 M3} = h^*(\text{zig zag})
diminished triad =m3 m3=h(zig zig)= \text{m3 m3} = h^*(\text{zig zig})
diminished seventh = m3 m3 m3=h(zig zig zig)\text{m3 m3 m3} = h^*(\text{zig zig zig})
Dominant = M3 m3 m3=h(zag zig zig)\text{M3 m3 m3} = h^*(\text{zag zig zig})
minor 7th =m3 M3 m3=h(zig zag zig)= \text{m3 M3 m3} = h^*(\text{zig zag zig})
half-diminished (minor seventh flat five) = m3 m3 M3=h(zig zig zag)\text{m3 m3 M3} = h^*(\text{zig zig zag})
Major 7th =M3 m3 M3=h(zag zig zag)= \text{M3 m3 M3} = h^*(\text{zag zig zag})
(I'm omitting the various augmented chords, those are chords which contain at least one zag zag)

In an earlier version of these notes, I simply wrote $$\t
[message truncated]

view this post on Zulip Alex Kreitzberg (Feb 08 2025 at 18:32):

Let T\bm{T} be a G\bm{G}-Torsor, and T\bm{T}^* a free monoid with elements in T\bm{T}. Then we can define dd so
d:TGd : \bm{T}^* \rightarrow \bm{G}^*
d(x1,x2,...,xn)=(x2x1)(x3x2)...(xnxn1)d(x_1, x_2, ..., x_n) = (x_2 - x_1)(x_3 - x_2)...(x_n - x_{n-1})

Now, suppose you have a sequence of buttons, wxyz:Hwxyz : H^*. I can determine their quality by finding their sequence of differences. For example d(wxyz)=(xw)(yx)(zy)d(wxyz) = (x - w)(y - x)(z - y). If the sequence of differences is zig zag zig, then if I play those buttons I'll have a minor 7th chord, because m3 M3 m3 =h(zig zag zig)= h^*(\text{zig zag zig}).

I can do even more. Given a sequence of intervals, the width of the whole chord is musically meaningful. Therefore, it's useful to add together this list of thirds: m3 + M3 + m3 = m7 = minor 7th interval. (A pet peeve of music notation for me - 3rds, 4ths, etc, should be called respectively 2nds, 3rds, etc. Then we'd have m2 + M2 + m2 = m6. It's annoying when you forget to count from 0!)

So a free monoid of accordion buttons lets me calculate a free monoid of intervals. I can then reduce the free monoid of intervals by simply adding the intervals together.

Usually all the intervals relative to the root are what we care about. This is also easy to find:

m3 M3 m3(0,m3,m3+M3,m3+M3+m3)0 m3 P5 m7\begin{align*} \text{m3 M3 m3} &&\mapsto \\ (0, m3, m3 + M3, m3 + M3 + m3) &&\mapsto \\ \text{0 m3 P5 m7} \end{align*}

Here's a fun feature of these chord names. The sum of the intervals of a minor 7th chord, m3 + M3 + m3, gives a minor 7th interval. The Major 7th chord has the same double meaning behind its the name.

Part 1/3

view this post on Zulip Alex Kreitzberg (Feb 08 2025 at 19:25):

On the c system accordion layout, the easiest intervals to play are small, making melodic lines convenient. For example, the intervals of the diatonic scale are never larger than 2, so it is a connected path of white notes.

The next diagram was made by putting a line between two notes if

C system, Major.png

I practice chords and their inversions by simply walking my hand down chord diagrams like the above. I have one for each of the most important chords. Ideally I should be able to walk my hand down any path on these diagrams fluently.

Here is a diagram for a minor triad:

C system minor.png

You might've noticed, the above is some translation of a 180 degree rotation of the Major diagram, this isn't a coincidence.

You can even define an important group of transforms between major and minor triads, called the PLR group, to be rotations that preserve two notes in the chord. For example, the following illustrates a "Parallel" or P transformation, because the ends are preserved.

Rotation Trick.PNG

Why is a 180 degree rotation, the same as swapping major chords and minor chords?

For the next argument it's convenient to pick C as our origin, and treat each torsor as their free abelian group. To do this, for a given torsor, assign to each of its elements their distance from the chosen origin. Then our layout map cc becomes a group homomorphism.

In geometry, if a figure is specified by points relative to an origin F={p1,p2,p3,}F = \{p_1, p_2, p_3, \ldots \} then a 180 degree rotation is the same as reflecting each point through that origin. Which is the same as taking a negative F={p1,p2,p3,}-F = \{-p_1, -p_2, -p_3, \ldots \}.

In music theory, if you have a major set of notes T={n1,n2,n3}T = \{n_1, n_2, n_3\} taking the negative of each note gives a minor set of notes.

So because a layout is a homomorphism, we have:

c(F)=c(F)-c(F) = c(-F)

So if we rotate a figure by 180 degrees, and then map it into the set of notes, that's the same as multiplying notes of the mapped figure by their negative.

This works for any isomorphic layout. My proof didn't depend on the C-system.

For example in Euler's Tonnetz, Major chords are typically notated red, and minor chords notated blue. The sets of triangles are related by a 180 degree rotation. But even better, the corresponding PLR transformations correspond to edges of triangles; because - in Euler's tonnetz - the edges contains the average of their vertices.

Neo-Riemannian_Tonnetz.svg.png

On the harmonetta three adjacent buttons have either a "valley" indent or a "mountain" protrusion. This helps the player's fingers decide whether the buttons form a Major or minor chord respectively. You can play a triad with one finger, and you can slide to an adjacent triad with one finger. So PLR transformations are easy!

An aside I didn't fully explore but wanted to mention. If you pick a center on the layout, you can define rotations relative to it, and that gives you a bunch of actions on the Torsor. You can also pick various special subsets of the torsor, and see their orbits under the actions you just defined. I suspect this is the formalism I need to model how translating my hand over the keybed transposes a specific chord.
2/3

view this post on Zulip Alex Kreitzberg (Feb 08 2025 at 19:46):

I use shapes on my C-system accordion to help myself memorize a song. Again if you're familiar with guitars it's like memorizing guitar chord shapes.

I'll exemplify my thinking via the song "Lamento Nordestina" (https://www.youtube.com/watch?v=W17FyxAscNg)

Here is the line corresponding to 2:18 from the video (https://youtu.be/W17FyxAscNg?si=GnBD_qosGCs2HfvA&t=138).

Lamento Nordestino.PNG

I play the melody of this line by walking a path with my hand on my accordion:
Measure 31:

Lamento Nordestino measure 31.png

Measure 32:

Measure 32.PNG

Measure 33:

Lamento Nordestino measure 33.png

Measure 34:

Lamento Nordestino measure 34.png

I might make a diagram because it's easier to understand, even though it isn't convenient to play in the context of the rest of the song, here's another diagram for Measure 31:

Lamento Nordestino pretty measure 31.png

I like this diagram for measure 31, because I easily see that the song plays a minor chord:

Minor chord.PNG

but then the song adds a note to underscore the implied L transformation of this chord:

L(minor).PNG

Because two notes are shared this looks like a Pushout!

Overlapminor chord\text{Overlap} \rightarrow \text{minor chord}
OverlapL(minor chord)\text{Overlap} \rightarrow L(\text{minor chord})

Relating seperate chords or melodies via some literal, or implied, relationship is a common musical device to convey meaning.

In the measure 32 diagram. We play a magenta G minor, and then walk back over a cyan harmonic minor scale. Again, to me this looks like a pushout.

Measure 33, and 34 spend most of their time in a Dominant chord, with an added note.

Naming the chords, or other music theory structures, that I walk my fingers through - is the most important conceptual step for memorizing a song. If I can't do this, then I have to memorize a long string of individual notes or hand motions.

If the diagrams are subsets of the torsers, then their intersections are the overlap of the pushout. Then the melodies are, at least, free monoids generated by elements in the pushouts, here unions of sets.

With this framing, the distances are in the background, but you could always recover them. For example, given a melody as a free monoid, you can simply find the differences between adjacent elements.

It'd be fun to describe melodies on the accordion as paths in an accordion groupoid - I think of my fingers as traveling in paths on the surface, but I don't know how to do this and I've already written too much.

Some fun asides, here's a diagram for Maj7:

Maj7.png

Following a friend's suggestion I'm making an orbifold with it:

Orbifold fun.jpg

Being fussy about this stuff is often the first step for writing programs. Here's a work in progress of a shader for visualizing chord diagrams - at the moment it only displays notes. I'd like to visualize small finger moves as well:
https://www.shadertoy.com/view/43yfDm

3/3

If you read all that, thank you. I'd welcome comments or feedback on how I'm approaching any of the above.

view this post on Zulip David Egolf (Feb 08 2025 at 20:03):

I've only read the first post so far, but I've enjoyed what I've read!

I especially like the mental picture of the notes on a piano as an ascending helix hovering over a "circle" which holds the different kinds of notes. So the "fibre" of notes hovering over "C" is the set of all the C's on the piano, for example. I like the intuition that the "hovering" space can be viewed as a sort of "extended" or "stretched out" version of the base space.

I'm intrigued by the idea that actions on the "base" space in this case can sometimes naturally correspond to actions on the "hovering" space (e.g. "go up two half-steps" can be viewed as specifying a certain movement on our circle of notes, or a way to ascend a bit up our helix of notes).

Thanks for sharing your ideas! (And I'm sure you shared various other interesting ideas in the posts I haven't read yet :sweat_smile:.)

view this post on Zulip Alex Kreitzberg (Feb 08 2025 at 20:21):

David Egolf said:

..I especially like the mental picture of the notes on a piano as an ascending helix hovering over a "circle" which holds the different kinds of notes. So the "fibre" of notes hovering over "C" is the set of all the C's on the piano, for example. I like the intuition that the "hovering" space can be viewed as a sort of "extended" or "stretched out" version of the base space...

An intuition I'm exploring in connection with this - For the C-System accordion that I talk about in the next part of the post, you can think of the first 3 rows, as a more tightly wound helix. You've already wrapped around the bottom after just 3 moves along the diagonal. So to see the accordion as pulled back from the piano, you could imagine winding the piano loop tighter. I think this intuition is somehow more glib than what I shared in the first post though.

view this post on Zulip Alex Kreitzberg (Feb 09 2025 at 18:00):

In part 2 I have a diagram for a major chord on the accordion. Diagrams of those sorts could be thought of as preimages of the major chords in Z/12\mathbb{Z}/12.

I think the repeating notes the diagrams are built out of could be viewed as fibers in the sense you mentioned as well.

view this post on Zulip Madeleine Birchfield (Feb 09 2025 at 18:42):

So this discussion is specifically about the button accordion?

view this post on Zulip Alex Kreitzberg (Feb 09 2025 at 18:42):

Chromatic button accordions yes

view this post on Zulip Alex Kreitzberg (Feb 09 2025 at 18:46):

Though I also talk about a harmonica, and the Wicky Hayden layout is typically used for concertinas.

But many common layouts don't use the "isomorphic" property. I am trying to understand my accordion, and I guess while trying to understand it I started to clarify the category of layouts its layout belonged to, which included isomorphic layouts.

view this post on Zulip John Baez (Feb 09 2025 at 19:16):

Interesting stuff! This is a nice exploration of mathematical music theory.

Mathematically speaking, one thing I think you're doing is considering two different groups, Z\mathbb{Z} and Z2\mathbb{Z}^2, and a chosen homomorphism Z2Z\mathbb{Z}^2 \to \mathbb{Z} - and then considering torsors for each of these groups, and how they can be related via this homomorphism.

It might be good to make up another word for "isomorphic" when used in phrases like "isomorphic keyboard", because when you're talking to category theorists it becomes very confusing when you say things like "I started to clarify the category of layouts its layout belonged to, which included isomorphic layouts": here "isomorphic" could mean two very different things.

view this post on Zulip Alex Kreitzberg (Feb 09 2025 at 19:22):

Yeah, I completely agree. In a "pre torsor" version of these notes, a layout was a map h:Z2Zh : \mathbb{Z}^2 \rightarrow \mathbb{Z}. Then the layout being "isomorphic" really meant it was a group homomorphism.

view this post on Zulip Alex Kreitzberg (Feb 09 2025 at 19:27):

But after the translation to torsors I think I lost track of the right way to say this.

view this post on Zulip John Baez (Feb 09 2025 at 19:54):

Now you have the opportunity to develop the notion of a map of torsors 'compatible with' a group homomorphism. I.e. given a group homomorphism f:GHf: G \to H, and a GG-torsor TT, and an HH-torsor UU, what does it mean for a map g:TUg: T \to U to be 'a map of torsors compatible with' ff?

I think I could define this, or learn something interesting by having my attempt fail. But maybe you'd enjoy doing it yourself! This seems like an important math issue.

view this post on Zulip John Baez (Feb 09 2025 at 19:56):

One of the neat things about applying category theory is how it sometimes forces you to make up new mathematics (or reinvent math that's already known - that's still fun).

view this post on Zulip Alex Kreitzberg (Feb 10 2025 at 06:40):

Thank you for asking the question, I think I hovered around it - but it was weirdly hard, both to articulate and solve.

I'm going to think about it more, but I think we can say g:TUg : \bm{T} \rightarrow \bm{U} is compatible with f:GHf : \bm{G} \rightarrow \bm{H} when g(x)g(y)=f(xy)g(x) - g(y) = f(x - y).

Which is a weirdly unsymmetrical expression, but is a commutative square.

commutative square torsor.png

view this post on Zulip John Baez (Feb 10 2025 at 06:44):

That doesn't seem weirdly asymmetrical to me! It seems beautiful and exactly right, if you're using a definition of torsor that only mentions subtraction.

(Does such a definition exist? I forget. Don't you also need to mention the action of GG on TT, and the action of HH on UU? Or is that redundant? Anyway, it's easy enough to write down another commutative square involving that.)

view this post on Zulip Alex Kreitzberg (Feb 10 2025 at 06:54):

I think the way I wrote it is "intuitively" what's going on, so I want it to imply everything else. But I don't know if it does. I need to be very clear about subtraction if I want to use it.

Thinking about the actions directly has been weirdly harder for me. I'm a bit tired right now, so I'll sleep on it. Thank you for the encouragement.

view this post on Zulip John Baez (Feb 10 2025 at 07:00):

I think you can write down a commutative square that says the action α:G×TT\alpha: G \times T \to T and the action β:H×UU\beta: H \times U \to U are related by the functions ff and gg. The top and bottom of this square are the maps α:G×TT\alpha : G \times T \to T and β:H×UU\beta: H \times U \to U.

view this post on Zulip John Baez (Feb 10 2025 at 07:07):

I began sketching a definition of torsor in terms of an action G×TTG \times T \to T and a 'division' T×TGT \times T \to G here. But I didn't get too far. This material should be copied into the nLab article [[torsor]], but right now it's in the article [[heap]], which happens to be better developed right now.

(I say 'division' when the group GG is not necessarily abelian, since then the group operation is called 'multiplication'. You're mainly interested in the abelian case, where people talk about 'subtraction' and 'addition'. It's just an arbitrary change in terminology, but in the nonabelian case you have to be more careful about some formulas, since ghhgg h \ne h g.)

view this post on Zulip Alex Kreitzberg (Feb 10 2025 at 19:19):

Okay, it wasn't too bad. I rearranged the notation a bit to make it easier for me to understand.

Let TT and UU be groups, and let XX be a right TT-set with action α\alpha, and YY a right UU-set with action β\beta. I'll notate both actions as "++" in the following expressions, but not the commutative diagram.

Then let g:TUg : T \rightarrow U be a group homomorphism. Then a map f:XYf : X \rightarrow Y is compatible with gg when, for all xXx \in X and tTt \in T, we have

f(x+t)=f(x)+h(t)f(x + t) = f(x) + h(t)

I'm thinking of the group as abelian, so I'm using ++ instead of multiplication, but the definition doesn't require this.

The above has a nice commutative diagram:

actions are preserved.png

I'm sure there's already terminology for this condition on maps, but I couldn't find it. I think I was confusing this with equivariance.

This specializes to our condition on maps between torsers if I require all the actions to be transitive and free.

Then yxy - x is defined to be the unique element of TT such that y=x+(yx)y = x + (y - x). But that means if ff is defined as above, we have f(y)=f(x)+h(yx)f(y) = f(x) + h(y - x) which therefore - by the definition of subtraction we just gave - means f(y)f(x)=h(yx)f(y) - f(x) = h(y - x).

So the compatibility condition I gave in the previous message is implied by this compatibility condition.

view this post on Zulip Alex Kreitzberg (Feb 10 2025 at 19:40):

Now I can say my accordion's layout is one of these sorts of maps. So c:HLc : \bm{H} \rightarrow \bm{L} is a torsor map, and if xHx \in \bm{H} is the physical button on the accordion corresponding to C4C_4, then we write c(x)=C4c(x) = C_4.

Then the c-system's associated group homomorphism h:Z2Zh : \mathbb{Z}^2 \rightarrow \mathbb{Z} is defined so h(m,n)=n+3mh(m, n) = n + 3m.

So the expression

c(x+n+m)=C4+n+m3c(x + n➶ + m➵) = C_4 + n + m3

written slightly more abstractly with the notation I just introduced looks like:

c(x+(m,n))=c(x)+h(m,n)=C4+n+m3c(x + (m, n)) = c(x) + h(m, n) = C_4 + n + m3

view this post on Zulip Alex Kreitzberg (Feb 10 2025 at 20:05):

Now I can define a category that my layout belongs to.

An object XX, is a torsor XX over a group GG. An identity on XX is a pair (idX,idG):XX×GG(\text{id}_X, \text{id}_G) : X \rightarrow X \times G \rightarrow G, where idX\text{id}_X is an identity on XX and idG\text{id}_G is an identity on the group GG. An arrow between two objects XX (over GG) and YY (Over HH), is given by a pair (f,h):XY×GH(f, h) : X \rightarrow Y \times G \rightarrow H, such that you get a commuting diagram over the underlying actions as explained above.

Then given a second pair (g,i)(g, i) from YY to ZZ, we can define composition of arrows from XX to ZZ to be (gf,ih)(g \circ f, i \circ h). Its corresponding commutative square is just the composition of two commutative squares of the sort described above. This is the only tricky condition, because associativity and identity properties are inherited from the underlying functions.

So these torsor maps form a category. And my accordion layout is "isomorphic", in the sense musicians mean, if it is a morphism in this category. Does this category already have a name?

view this post on Zulip John Baez (Feb 10 2025 at 21:20):

Alex Kreitzberg said:

Okay, it wasn't too bad. I rearranged the notation a bit to make it easier for me to understand.

Let TT and UU be groups, and let XX be a right TT-set with action α\alpha, and YY a right UU-set with action β\beta. I'll notate both actions as "++" in the following expressions, but not the commutative diagram.

Then let g:TUg : T \rightarrow U be a group homomorphism. Then a map f:XYf : X \rightarrow Y is compatible with gg when, for all xXx \in X and tTt \in T, we have

f(x+t)=f(x)+h(t)f(x + t) = f(x) + h(t)

All very nice!

Working with a group and not calling it GG, working with a torsor and not calling it TT - that would really bother most mathematicians, since we like mnemonic names. I guess you're calling the group TT just to punish us even more. You forgot to call the torsor GG. But that's a minor issue. :laughing:

I'm sure there's already terminology for this condition on maps, but I couldn't find it.

I don't know a name for it; you just write the obvious square and demand that it commute!

view this post on Zulip Alex Kreitzberg (Feb 10 2025 at 21:31):

Sorry :sweat_smile:, TT was short for "Translations" in my mind, which is overly specific. I debated calling it VV because I'm thinking of it like vectors, but that's also not great because it isn't really a vector space.

I wanted to use hh as a shorthand for "homomorphism". But then I confused it with HH etc.

As I get used to the more abstract definitions and their conventions, then my proofs will probably get more standard. I'll start using multiplication, division, left actions, GG for groups, TT for torsors, etc.

I'm surprised this category doesn't have a name. Then I guess I'll call an "isomorphic" layout a "torsor map compatible with a group homomorphism" then?

view this post on Zulip Alex Kreitzberg (Feb 10 2025 at 21:33):

Is there a different category that torsors typically live in?

view this post on Zulip John Baez (Feb 10 2025 at 21:36):

I'd call this the category of torsors, as opposed to the category of GG-torsors for a specific group GG. (This big category of all torsors for all groups can be built from the categories of GG-torsors for all specific GG using the Grothendieck construction, but never mind.)

view this post on Zulip Alex Kreitzberg (Feb 10 2025 at 21:38):

Okay, for the purposes of this thread, I'll call an "Isomorphic" accordion layout a torsor map then. That's what I was hoping to be able to do.