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.
Thank you @John Baez, this makes a lot of sense!
Ignat Insarov has marked this topic as resolved.
Great!
Too late to tag you @Oscar Cunningham ?
I should rejoice to see those diagrams too.
Oh, thanks for the reminder!
So, suppose we have a monoid with multiplication and unit . We can draw the multiplication as a diagram with two inputs and one output.
(1)
Likewise the unit can be drawn as a diagram with no inputs and one output.
(2)
The associativity axiom is drawn as follows:
(3)
And the identity property like so:
(4)
If is a commutative monoid, then it satisfies , which we draw as an axiom saying that you can swap the two wires:
(5)
Note that we need to draw a 'braiding' to swap the legs representing and . This makes sense for monoids in because for any sets and there is a natural transformation sending to .
Now suppose we have a monad on some category . We can draw the natural transformation like so:
(6)
The red areas represent the category . The top edge represents the functor . The bottom edge represents the functor , and the interior of the diagram represents the natural transformation . We can represent similarly:
(7)
These natural transformations obey associativity and identity axioms that look just the same as (3) and (4) except in red boxes. This is what is meant by 'a monad is just a monoid in the category of endofunctors'.
Now, can we define what it means for to be commutative? We would want to draw a diagram like (5). But there is no way to ascribe a meaning to the 'braiding' in that diagram. If and are endofunctors of there is no canonical natural transformation . So we can't define 'commutative monad' as simply a commutative monoid in the category of endofunctors.
Now suppose that we are given a monoidal structure on the category . This has a multiplication map . We can draw a diagram for this in three dimensions. It gives a way to take two of the red sheets representing and join them together.
(8)
A strong monad is a monad equipped with a right-strength and a left-strength. These strengths are natural transformations that allow us to move the wire representing through onto either of the two sheets.
(9)
(The strengths also have to obey some axioms which I can't be bothered to draw.) A commutative monad is then defined as a strong monad obeying the following axiom:
(10)
Note that on the left-hand-side of this axiom the wire from the left side of ends up on the front sheet, and the wire from the right side of ends up on the rear sheet. Whereas on the right-hand-side of this axiom the wire from the left side of ends up on the rear sheet, and the wire from the right side of ends up on the front sheet.
So this axiom says that a commutative monad is precisely a monad where you can swap the two wires!
@Ignat Insarov @Aaron David Fairbanks
@Oscar Cunningham This is lovely! You should make a blog post out of it or something like that.
Yeah, it would be good to also draw the diagrams for monoidal monads and explain why they're equivalent. I'll put it on my stack of unwritten blog posts.