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: ✔ Whence «strong» functors and «commutative» monads?


view this post on Zulip Ignat Insarov (Jun 18 2025 at 03:08):

Thank you @John Baez, this makes a lot of sense!

view this post on Zulip Notification Bot (Jun 18 2025 at 03:09):

Ignat Insarov has marked this topic as resolved.

view this post on Zulip John Baez (Jun 18 2025 at 07:14):

Great!

view this post on Zulip Aaron David Fairbanks (Jul 02 2025 at 04:39):

Too late to tag you @Oscar Cunningham ?

view this post on Zulip Ignat Insarov (Jul 02 2025 at 08:12):

I should rejoice to see those diagrams too.

view this post on Zulip Oscar Cunningham (Jul 02 2025 at 10:10):

Oh, thanks for the reminder!

So, suppose we have a monoid MM with multiplication mm and unit ee. We can draw the multiplication m:M×MMm:M\times M\to M 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 MM is a commutative monoid, then it satisfies m(x,y)=m(y,x)m(x,y)=m(y,x), 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 xx and yy. This makes sense for monoids in Set\mathbf{Set} because for any sets XX and YY there is a natural transformation X×YY×XX\times Y \to Y\times X sending (x,y)(x,y) to (y,x)(y,x).

Now suppose we have a monad (T,μ,η)(T,\mu,\eta) on some category C\mathbf{C}. We can draw the natural transformation μ\mu like so:
(6)

The red areas represent the category C\mathbf{C}. The top edge represents the functor TTT\circ T. The bottom edge represents the functor TT, and the interior of the diagram represents the natural transformation μ:T2T\mu:T^2\to T. We can represent η:IdCT\eta:\mathrm{Id}_\mathbf{C}\to T 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 TT 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 XX and YY are endofunctors of C\mathbf{C} there is no canonical natural transformation XYYXX\circ Y\to Y\circ X. 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 C\mathbf{C}. This has a multiplication map :C×CC\otimes:\mathbf{C}\times\mathbf{C}\to\mathbf{C}. We can draw a diagram for this in three dimensions. It gives a way to take two of the red sheets representing C\mathbf{C} and join them together.
(8)

A strong monad is a monad TT equipped with a right-strength and a left-strength. These strengths are natural transformations that allow us to move the wire representing TT through \otimes 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 μ\mu ends up on the front sheet, and the wire from the right side of μ\mu ends up on the rear sheet. Whereas on the right-hand-side of this axiom the wire from the left side of μ\mu ends up on the rear sheet, and the wire from the right side of μ\mu 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!

view this post on Zulip Oscar Cunningham (Jul 02 2025 at 10:14):

@Ignat Insarov @Aaron David Fairbanks

view this post on Zulip Ignat Insarov (Jul 04 2025 at 08:10):

@Oscar Cunningham   This is lovely! You should make a blog post out of it or something like that.

view this post on Zulip Oscar Cunningham (Jul 04 2025 at 08:19):

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.