We have seen that the notion of monad can be interpreted in any bicategory. The aim of todays post is to explain that for a bicategory , a monad in
is the same thing as a one-object
-enriched category. Or more tersely:
A monad is the same thing as a one-object -category.
Mostly, this is just a case of understanding the definitions, with no complicated translation between the two structures required.
Monads and enrichment
Recall that for a monoidal category , a
–enriched category, or
-category
is a generalisation of ordinary categories with:
- A collection of objects
.
- For every pair of object
, a hom object
.
- For each object
, an identity
-morphism
.
- For each triple of objects
, a composition
-morphism
.
These are subject to some natural axioms such that composition is associative, and unital with respect to the chosen identities. The motivating special case is that a -enriched category is the same thing as an ordinary category.
It is a well-known fact of enriched category theory that a monoid in the monoidal category is the same thing as a one object
-category. The even better known special case, which crops up in most introductions to category theory, is that a one object ordinary category is the same thing as a monoid.
Of course, the special case that we should be interested in as monad theorists is the monoidal category of endofunctors . Using the fundamental meme of monad theory, that a monad is just a monoid in the category of endofunctors, we can deduce that monads on
are the same thing as one object
-enriched categories. This claim works equally well if we consider monads in an arbitrary bicategory.
Example: We have seen previously that for a monoidal category with coproducts, a
-enriched category is the same thing as a monad in the bicategory of
-matrices,
. Applying the observation above, the following all describe the same data:
- A
-enriched category with set of objects
.
- A monad on
in
.
- A one-object
-enriched category.
Which is a bit of a funny conclusion, every multi-object enriched category is the same thing as a single-object enriched category over a different base. In particular, every ordinary (small) category with set of objects is a one-object
-enriched category.
In the example above, it feels a bit clumsy to have to keep saying “…with set of objects …”. To clean this up, and take this story a bit further, we are going to have to generalise our notion of enriched category, to categories enriched over a bicategory
. Although this may sound a bit intimidating, it is actually only a small step beyond enrichment in a monoidal category.
A -enriched category
consists of:
- A collection of objects
, each with an associated extent, given by a 0-cell
in
.
- For every pair of objects
, a hom 1-cell
.
- For every object
, an identity 2-cell
.
- For every triple of objects
, a composition 2-cell
.
As before, this data is subject to natural unitality and associativity axioms.
With this definition in place, naming things suggestively, a one object -category consists of:
- An object, with extent a 0-cell
in
.
- A single hom 1-cell
.
- An identity 2-cell
.
- A single composition 2-cell
.
This data satisfies exactly the axioms such that is a monad. That is:
A monad in is the same thing as a one-object
-category.
We rephrase the previous example in this more flexible setting.
Example: For a monoidal category , a
-category is a one object
-enriched category.
A possibly more interesting example is as follows.
Example: We have seen previously that for a category with pullbacks, an internal category in
is the same thing as a monad in the bicategory of spans
. Now applying our previous observation, the following all describe the same data:
- An internal category in
.
- A monad in
.
- A one-object
-enriched category.
This establishes a slightly surprising connection between internal and enriched category theory.
Conclusion
To an extent, this post is about almost trivial relationships between definitions that happen to coincide. This is not just an exercise in categorical showing-off or pointless abstraction. The relationship between monads and one-object enriched categories is really a matter of perspective. This may allow us to relate monads to other concepts, for example finitary monads and Lawvere theories can be connected in this way. Once monads are viewed as categories, we can consider categorical notions such as completion under certain limits or colimits, which again occur in connection with Lawvere theories. These ideas are used to startling effect in the work of Richard Garner and co-authors, which I highly recommend as further reading.