Review of the Elements of 2-Categories
Posted by Emily Riehl
Guest post by Dimitri Zaganidis
First of all, I would like to thank Emily for organizing the Kan extension seminar. It is a pleasure to be part of it. I want also to thank my advisor Kathryn Hess and my office mate Martina Rovelli for their revisions.
In the fifth installment of the Kan Extension Seminar we read the paper “Review of the Elements of 2-categories” by G.M Kelly and Ross Street. This article was published in the Proceedings of the Sydney Category Theory Seminar, and its purpose is to “serve as a common introduction to the authors’ paper in this volume”.
The article has three main parts, the first of them being definitions in elementary terms of double categories and 2-categories, together with the notion of pasting. In a second chapter, they review adjunctions in 2-categories with a nice expression of the naturality of the bijection given by mates using double categories. The last part of the article introduces monads in 2-categories, and specializing to 2-monads towards the end.
Double categories and 2-categories
The article starts with the definition of a double category as a category object in the (not locally small) category of categories . (I think that there might be some set theoretic issues with such a category, but you can add small everywhere if you want to stay safe.)
The authors then switch to a description of such an object in terms of objects, horizontal arrows, vertical arrows, and squares, with various compositions and units. I will explain a bit how to go from one description to the other.
A category object is constituted of a category of objects, a category of morphisms, target and source functors, identity functor and a composition.
The category of objects is the category whose morphisms are “the objects” and whose morphisms are the vertical arrows. The category of morphisms is the category whose objects are the horizontal morphisms and whose morphisms are the squares, with vertical composition.
Since the functors preserve pullbacks, by applying them to a double category seen as a category object, we get actual categories. Applying to the double category, we get the category whose objects are “the objects” and whose morphisms are the horizontal arrows. Applying , we get the category whose objects are the vertical morphisms and whose morphisms are the squares, but this time with horizontal composition.
An interesting thing to notice is that the symmetry of the explicit description of a double category is much more apparent than the symmetry of its description as a category object.
One can define a -category as a double category with a discrete category of objects, or as a -enriched category, exactly as one can define a simplicially enriched small category as either a category enriched over or as a category object in with a discrete simplicial set of objects.
The second viewpoint on 2-categories leads to definitions of 2-functors and 2-natural transformations and also to modifications, once one makes clear what enrichment a category of 2-functors inherits.
It is also worthwhile mentioning that the pasting operation makes computations easier to make, because they are more visual. The proof of proposition 2.1 of this paper is a good illustration of this.
The basic example of a 2-category is itself, with natural transformations as 2-cells (squares).
As category theory describes set-like constructions, 2-category theory describes category-like constructions. You can usually build up categories with as objects sets with extra structure. In the same way, small V-categories, V-functors, and V-natural transformations form a 2-category.
My first motivation to learn about 2-categories was the 2-category of quasi-categories defined by Joyal and which has been studied by Emily Riehl and Dominic Verity in the article The 2-category theory of quasi-categories in particular the category-like constructions one can make with quasi-categories, such as adjunctions and limits.
Adjunctions and mates in 2-categories
It is not a surprise that 2-categories are the right framework in which to define adjunctions. To build the general definition from the usual one, you just need to replace categories by objects in a 2-category, functors by 1-cells of the 2-category, and natural transformations by its 2-cells.
Adjunctions in a 2-category compose (as in ), and one can form two, a priori distinct double categories of adjunctions. Both of them will have the objects of as objects and the horizontal morphisms being the morphisms of , while their vertical morphisms are the adjunctions (going in the same direction as the right adjoint, by convention). The two double categories differ on the squares. Given adjunctions and together with 1-cells (between the domains of and ) and (between the codomains of and ), the squares of the first double category are 2-cells while the squares of the second are 2-cells .
Now, the bijective correspondence between these kind of 2-cells given by mates induces an isomorphism of double categories. This means in particular that the horizontal (or vertical) composite of mates is equal to the mate of the corresponding composite.
This is a very beautiful way to express the naturality of the mate correspondence, and it provides a one-line proof of the fact that two 1-cells that are left adjoints to a same 1-cell are naturally isomorphic.
Monads in 2-categories
2-categories are also the right framework to define monads. A monad in a 2-category and on an object is a 1-cell together with 2-cells and , verifying the usual equations and . Since 2-functors preserve both horizontal and vertical compositions, for all objects of , induces a monad on , given by post-composition . The authors call * an action of on * a algebra structure on .
The definition of monad morphism in this article is quite surprising for someone who has read the previous article by Ross Street, The formal theory of monads, which we read for the second meeting of the Kan extension seminar.
In Ross Street’s original paper, a monad morphism is a 1-cell together with a -cell verifying certain conditions.
In this paper, morphisms of monads are defined only for monads on the same object, letting the -cell part of a monad transformation of the previous article be the identity. This leads the authors to reverse the direction of the morphism, since the -cell seems to go in the reverse direction of the -cell!
One might think that fixing is needed by the result which explains that there is a bijection between monad morphisms and actions of on making a “-bimodule”. In fact, in the case where is not necessarily the identity, there is a bijection between 2-cells such that is a monad functor and actions of on making a “-bimodule”. A statement of the same kind can be also made for monad functor transformations (in the sense of the formal theory of monads). A 2-cell is a monad functor transformation if and only if is a morphism of “-bimodules”.
A 2-category admits the construction of algebras if for every monad , the 2-functor is representable. The representing object is called the object of -algebras. By Yoneda, the free-forgetful adjunction can be made internal in this case.
The terminology is justified, because in the -category , it specializes to the usual notions of the category of -algebras and the corresponding free-forgetful adjunction.
A monad in is the same as a 2-functor , where is the 2-category with one object and , the algebraist’s simplicial category as monoidal hom-category (with ordinal sum). Since moreover, (where is the subcategory of maps of preserving maxima, which is acted on by via ordinal sum) one can see that the object of t-algebras can be expressed as a weighted limit.
As a consequence, it is not surprising that a 2-category admits the construction of algebras under some completeness assumptions.
Doctrines
In the last part of the article, the authors review the notion of a doctrine, which is a 2-monad in 2-, i.e., a 2-functor , where is a 2-category, and 2-natural transformations and , which are respectively the multiplication and the unit, verifying the usual identities. The fact that it is both a monad on a 2-category and in another one can be a bit disturbing at first.
If is a doctrine over a 2-category , then its algebras will be objects of together with an action , exactly as in the case of algebras over a usual monad.
Already with morphisms, we can take advantage of the fact that a 2-category has 2-cells, and define -morphisms to be lax in the sense that the diagram is not supposed to be commutative, but is rather filled by a 2-cell with some coherence properties.
As one might expect, we can actually form a 2-category of such -algebras by adding 2-cells, using again the -cells existing in .
If we keep only the -morphisms that are strict, we obtain the object of algebras (which should be a -category) that we discussed before.
One example of a doctrine is together with the multiplication induced by the ordinal sum, and unit given on by the functor that sends to .
The algebras for this doctrine will be categories equipped with a monad acting on them, while the -morphisms are transformations of monads, and the -2-cells are exactly the monad functor transformations of Street’s article.
Here, since we have two different 2-categories of algebras (with strict -morphisms or with all of them), one can wonder if monad morphisms will induce -functors -- on the level of these -categories.
This is indeed the case, and one can actually go even one step further and define monad modifications, using the fact that 2- is in fact a 3-category! These modifications between two given monad morphisms are in fact in bijective correspondence with the 2-natural transformations between the -functors induced by these monad morphisms on the level of algebras (with lax D-morphisms). Note that they are not the same as monad morphisms transformations of Street’s article.
This bijection is nice because it implies that you can compare 2-categories of algebras by only looking at the doctrines: if they are equivalent, so are the 2-categories of algebras.
The fact that this bijection does not hold when we restrict only to strict morphism was really surprising to me, but I guess this is the price to pay to use the 3-category structure.
During the last days of April, the Kan extension seminar will be reading the article “Two dimensional monad theory”, by Blackwell, Kelly and Powell. We will then have more to say about these 2-monads!
Re: Review of the Elements of 2-Categories
In our discussion during the week, it was noted that the “naturality” of the mates bijection does not seem to resemble the more usual expressions of naturality, but is rather a matter of the correspondence respecting composition and identities, as mentioned in the paper and in Dimitri’s post. Emily mentioned that Eugenia Cheng suggests we call it “double functoriality”, which I think better conveys the result.
However, there are subtleties in understanding what we mean by this. We cannot expect the mate of an identity to be an identity (or an isomorphism): the familiar hom-set bijection of an adjunction is a special case of mateship (I wish I could draw the squares here!), hence the unit and counit of the adjunction are mates of identities, but they are not themselves isomorphisms in general.
Tim made a good comment on how to interpret the result in question in light of this subtlety, but I’ll leave that free for him to mention here.