An Exegesis of Yoneda Structures
Posted by Emily Riehl
Guest post by Alexander Campbell
We want to develop category theory in a general 2-category, in order to both generalise and clarify our understanding of category theory. The key to this endeavour is to express the basic notions of the theory of categories in a natural 2-categorical language. In this way we are continuing a theme present in previous posts from the Kan Extension Seminar, wherein monads and adjunctions were given a 2-categorical setting, and by analogy, in our very first paper, whose purpose was to express basic notions of the theory of sets in a natural categorical language. In this post we consider a concept very central and special to category theory: the Yoneda lemma.
So what’s the Yoneda Lemma again?
The Yoneda lemma says that for any object of a category , the diagram is a left extension.
In this post I will give a motivation for the notion of Yoneda structure, as defined in the paper Yoneda Structures on 2-Categories of Ross Street and Bob Walters. But before we begin I would like to take this opportunity to thank Emily for inviting me to join the Kan Extension Seminar and for her support and encouragement throughout the course. This has been and continues to be a singularly valuable experience in my first year as a category theorist.
Liftings and extensions
After the various compositions available in a 2-category (nicely unified as the operation of pasting), the most basic notions of two-dimensional algebra are liftings and extensions. A diagram in a 2-category is said to be a left lifting if pasting along effects a bijection of 2-cells
There is a similar elementary definition of left extension, but we can simply say that a left extension is a left lifting in (reverse 1-cells). Hence these are just dual versions of a single notion. Left liftings in and are right liftings and right extensions respectively, but these will not concern us here.
An elementary result of 2-categorical algebra is the pasting lemma. This tells us that given a diagram in which is a left lifting, is a left lifting if and only if the composite is a left lifting. By duality, we immediately get a corresponding result for left extensions.
The Yoneda lemma and Yoneda structures
A Yoneda structure on a 2-category consists of two pieces of data satisfying three axioms. We will see that the data is what is necessary to naturally express the Yoneda lemma in the 2-category, and that the axioms are expressions of familiar results of category theory.
In a general 2-category, following the philosophy of generalised elements, it is natural to consider arrows with arbitrary domain (not just restricted to the terminal object 1) as objects of . In order to state the Yoneda lemma for such generalised objects, we must replace with some arrow . Here could be loosely thought of as “sets freely varying over ”; in CAT, it is the category of presheaves over and is the Yoneda embedding.
But now we must address the issue of size. Firstly, in CAT, the Yoneda embedding exists only for locally small . Secondly, in the wish for a snappy statement of the Yoneda lemma, I left an important condition unmentioned: it is not true for a general category that the hom-functor exists for every object . (It would be true if were locally small, but we do not want CAT to consist only of locally small categories; for if is not small, then is not locally small.) Hence we must restrict those elements for which we state the Yoneda lemma.
We can now specify the data of a Yoneda structure on a 2-category. The first piece of data is a class of admissible arrows in the 2-category; the only property we require of this class is that it be a right ideal, meaning that if is admissible, then so is for every such composable . We say that an object is admissible if the identity arrow is admissible; in the Yoneda structure on CAT, the admissible objects are the locally small categories. Hence we see that there is nothing mysterious about size; it is just part of the structure. The other piece of a Yoneda structure is the Yoneda arrows: an admissible arrow for each admissible object .
With this structure we can naturally state the Yoneda lemma in a 2-category. We take this as our first axiom for a Yoneda structure.
Axiom 1. For , both admissible, the left extension exists.
The universal property of this extension is indicated by
So we have used the Yoneda lemma as a definition of the hom-functors ; the axiom asserts their existence. We can further define the hom-functors on 1-cells and 2-cells in both variables: in the first variable by the universal property of extension, and in the second variable by composition. In particular, for (suitably admissible) , we can define as , with a similar definition on 2-cells. This all just follows from Axiom 1, hence is part of any Yoneda structure.
All further use of the admissibility notion is just to ensure the existence of the data of Axiom 1. So I will make minimal explicit mention of it from here; it can be easily filled in as necessary.
Universal arrows and absolute liftings
The second axiom of a Yoneda structure is expressed in terms of liftings. I will now exhibit the presence of liftings in category theory.
The first formalisation of the notion of universal property that Mac Lane gives in Categories for the Working Mathematician is that of universal arrow (I will deal with the ‘left’ sense here). Given a functor and an object of , he defines what it means for a “pair” consisting of an object of and an arrow to be a universal arrow from to . This definition says precisely that is a left lifting diagram.
In a general 2-category, the restriction of our consideration to such ‘global objects’ is untenable. So how do we express the universal property of a ‘generalised arrow’ from a ‘generalised object’ to ? It is not enough to say that the corresponding diagram is a left lifting diagram; we must consider the object at all its stages of development. Hence we define a 2-cell to be a universal arrow from to when for every earlier stage , the diagram is a left lifting. That is, we require our corresponding diagram to be an absolute left lifting (meaning that the property of being a left lifting is preserved when composed with any arrow into ).
Hence absolute liftings give a natural 2-categorical expression of the notion of universal arrow. This slogan can help us to interpret some basic facts of the algebra of 2-categories as they relate to category theory. For instance, the result that a 2-cell is the unit of an adjunction if and only if it is an absolute left lifting corresponds to the familiar result of basic category theory that states that a functor is a right adjoint if and only if there is a universal arrow to from every object of .
Universal elements and representability
Now, observe that the 2-cell in the ordinary Yoneda lemma, in addition to being a left extension, is trivially a left lifting; for this just means that there is a bijection between arrows and elements of the set . In familiar terms, this says that is a universal element of the functor , and by the above discussion we can immediately incorporate this into our setting as the second axiom for a Yoneda structure.
Axiom 2. The 2-cell of Axiom 1 is an absolute left lifting.
The universal property of this absolute left lifting is indicated by
The combination of these two universal properties of the 2-cells is the ignition that allows us to begin to develop category theory in our 2-category. Together they give a bijection of 2-cells and as indicated by the bijections and as displayed in the diagram From Axiom 2 and the pasting lemma, we get that the LHS is an absolute left lifting (with base ) if and only if is an absolute left lifting. This is exactly the realisation in our setting of the familiar correspondence between universal elements of and universal arrows from to . In particular, if is an isomorphism, then this condition holds, and we have a universal element of . Note that we can understand being an isomorphism as meaning that is representable.
Now, recall the representability condition of ordinary category theory that says that a functor is representable if and only if it has a universal element. We have seen that one half of this implication follows from the first two axioms of a Yoneda structure. We could take the other half as an axiom, being a basic result of category theory that we wish to incorporate into our setting.
Axiom 3*. If a 2-cell yields an absolute left lifting diagram when pasted onto , then is an isomorphism.
Understood in our interpretation, this is indeed the other implication of the representability condition.
However this axiom is too strong to capture all the examples we want! While it does hold in ordinary category theory and in 2-categories of internal categories and variable (=indexed=parametrized) categories, it is does not hold in general in enriched category theory. For in enriched category theory, representability of a functor is expressed as an isomorphism in the base of enrichment, and the bijection of sets of the universal element condition is not enough to capture this.
Hence we do not take Axiom 3* as an axiom for Yoneda structures. Instead we take a couple of special cases. By Axiom 1 for and in place of , we have the bijections of 2-cells Let correspond to in the first bijection, and correspond to the 2-cell in the second. These corresponding 2-cells are an identity and a pasting of two absolute left liftings respectively. Hence (by the pasting lemma in the second case) they are both absolute left liftings, and Axiom 3* would imply that they are isomorphisms. We take these special cases as our third and final axiom.
Axiom 3. The 2-cells and are isomorphisms.
In summary, a Yoneda structure on a 2-category consists of admissible arrows and Yoneda arrows satisfying Axioms 1, 2, and 3.
Formal category theory
Now that we have established the notion of a Yoneda structure on a 2-category, we can begin to develop category theory within such a 2-category. What is remarkable is that everything follows formally and naturally from the Yoneda structure and from the elementary two-dimesional algebra of pasting, liftings, extensions and adjunctions. In their paper, Street and Walters develop results concerning adjunctions, weighted colimits, EM objects and Kleisli objects for monads, and they introduce the notion of totality. I will now briefly survey some of these results; I refer the reader to the paper for details.
They show that the 2-categorical definition of an adjunction in terms of its unit and counit is equivalent to the condition , which expresses the classical hom-set definition of an adjunction. This is an isomorphism of modules, and indeed, one benefit of a Yoneda structure is that it equips our 2-category with a notion of modules (a.k.a. profunctors): modules from to are arrows .
It is well known that a satisfactory theory of colimits in enriched category theory requires the consideration of colimits weighted by presheaves. However the natural generality of the theory calls for weighting by modules (presheaves on are modules from to ). Given a module and an arrow (suitably admissible), we define the colimit of weighted by by the formula . From this formula we can derive many familiar results such as the fact that left adjoints preserve colimits, associativity of colimits in the weight, and the Yoneda isomorphisms. Also we can introduce the notion of pointwise extension in terms of colimits and show that they are indeed extensions. Thus all the results of the calculus of colimits, which in enriched category theory depend on a “complicated machinery” involving enriched extranatural transformations, coends, enriched functor categories etc., in fact follow easily and formally in the context of the elementary notion of a 2-category with a Yoneda structure.
Street and Walters show that a certain result from Street’s earlier paper, the characterisation of the Eilenberg-Moore category of a monad in CAT as certain sheaves on the Kleisli category of the monad, holds for any Yoneda structure. They also show that in the presence of more properties of the 2-category (particularly a bo-ff factorisation of its arrows), we can make sense of the idea of the Kleisli object as a “full subcategory” of the Eilenberg-Moore object.
This paper introduced the notion of totality. An arrow is said to be total when and are admissible and the module has an admissible left adjoint. It follows immediately from the developed theory that this left adjoint must be given by and be the pointwise left extension of along the Yoneda arrow (note that these assertions require all the admissibility assumptions in the definition). Such adjunctions are absolutely fundamental to the use of category theory; they sometimes go by the name of nerve and realization.
An object is said to be total when the identity arrow is total; this is the same as saying the Yoneda arrow has a left adjoint. This can be thought of as a sort of strong cocompleteness property. In particular we get a “very satisfactory” adjoint functor theorem: if is total, an arrow has a right adjoint if and only if is admissible and preserves the colimit .
Examples
Important motivating examples of 2-categories with Yoneda structures are 2-categories of internal categories (see the papers of Street and Weber) and enriched categories, in particular CAT is the 2-category of categories internal to SET. Given categories and suitably nice and approriate for internalisation and enrichment respectively, we get Yoneda structures on the 2-categories Cat) and -Cat roughly as follows. For such a category , the size structure arises from an object of which is in some way understood as a “full subcategory” of ; for internal categories, this can be characterised as an internal full subcategory, or equivalently, a classifying discrete opfibration. Then the objects arise as exponentials , and the Yoneda arrows are exponential adjoints of hom-functors.
The 2-category LEX of finitely complete categories and finitely continuous functors inherits a Yoneda structure from CAT. This example is of interest because the total objects are (almost) Grothendieck toposes.
Another example, not treated in this paper but in this later paper of Street, are 2-categories of variable categories. These are of the form = Hom(,CAT), consisting of pseudofunctors, pseudonatural transformations, and modifications. I mention this example here for the interesting way in which the size structure arises. An arrow in is admissible if for every and where and are representables on objects of , the comma object is representable.
Re: An Exegesis of Yoneda Structures
This is awesome, Alex. Thanks a lot!