Enrichment and its Limits
Posted by Emily Riehl
Guest post by David Jaz Myers
What are weighted limits and colimits? They’re great, that’s what!
In this post, we prepare for the next part of the Kan Extension Seminar by learning a bit about enrichment and weighted limits and colimits. I’ll also describe the “ point of view” that I’ll be adopting for the next post.
Enriched Categories
Normally, we like to think that there is a set of arrows between any two objects and in a category . Composition then can be packaged up into a function , satisfying an associativity condition. The identity is an element of , which we can associate with a function from the terminal object. Note that acts as a unit (up to isomorphism) for the cartesian product .
We can abstract the structure of and needed to express the axioms of a category as above and describe it in any category. We don’t need the limit properties of and to describe a category, so we won’t keep them as part of our abstraction. What we are left with is the notion of a monoidal category, a category equipped with an object (not necessarily terminal!) and a binary operation which satisfy the axioms of a monoid up to isomorphism (and then some conditions on those isomorphisms). We’ll ask for our monoidal categories to be symmetric, meaning that (in a nice, natural way).
Expressing the axioms of a category in more general monoidal categories gives us categories enriched in . We call the base category. Here are some examples of enriched categories over various bases to keep in mind:
- () If the base category is the category of sets, then our categories are the ones we are familiar with. In particular, all the other sorts of base categories are presumed to be enriched over the category of sets.
- () If the base category is abelian groups with their tensor product (and unit ), then we can add and subtract arrows in our categories. Furthermore, composition is bilinear with regards to the addition of arrows. An example of these sorts of categories are the categories of modules over a ring with the addition of arrows taken pointwise.
- () If our base category is topological spaces with its cartesian structure, then we have a full space of arrows between any two objects in our categories. Furthermore, composition is continuous.
- () If our base category is the truth values with “and” as their product and as the unit, then our categories are just orders. The object of arrows is a truth value, and we interpret it as the truth of the statement that is at most . For more on category theory over the truth values, check out Simon Willerton’s post on this blog!
- () This example is rather surprising. If our base category is the non-negative real numbers, including infinity, with the ‘greater than’ ordering and ‘plus’ as its monoidal structure, then our categories are directed metric spaces. The object of arrows is a non-negative real number which we interpret as the distance from to . William Lawvere was the first to write about this in his paper Metric Spaces, Generalized Logic, and Closed Categories
In order for the theory of enriched categories to work out nicely, we will ask for two further conditions on our base categories: closure and cocompleteness. A monoidal category is closed if the functors have right adjoints . These objects therefore behave as an internal hom, an object consisting of morphisms from to .
To see why, let’s briefly introduce the notation to denote the set of morphisms from to in . Note that (by assumption), so . But by definition, then ; in other words, the set of morphisms from to in is the same as the set of points .
Being cocomplete means that we can glue the objects of our base together. We use this all the time behind the scenes in category theory. Note that since is a left adjoint, it commutes with colimits; this is like the distribution of multiplication over addition.
From now on, all our base categories will be assumed to be symmetric monoidal closed and cocomplete.
* Remark * Even though we started with the monoidal structure above, sometimes it is more natural to start with the internal hom and then define the monoidal structure to be its left adjoint. For example, it’s pretty easy to see how to endow the set of homomorphisms between two abelian groups with the structure of an abelian group: just add pointwise! Then, we can define the tensor product to be that abelian group which represents . This shows that maps out of must be bilinear; they are linear first in , and then in .
Weighted Limits and Colimits
Enriched category theory (over a general base ) plays out much like usual category theory over the sets, so long as everything is proved in a nicely categorical manner. One major difference, however, is the behavior of (co)limits.
In the category of sets, functions are determined by their actions on points. But in more general base categories, morphisms (by which I mean points of the set of morphisms) may be equal on points (by which I mean morphisms from the monoidal unit ) but differ in other ways. For this reason, we need to update our notion of (co)limit for the enriched context by letting the cones have a fatter sort of shape. We call this enriched notion of (co)limit a weighted (co)limit. Kelly calls it an indexed (co)limit. (I would like to thank Pierre for the following discussion about defining cones in the enriched context)
The limit of a diagram is more correctly a limiting cone; the object that we call the limit sits atop a “wireframe” cone that projects down toward the diagram. Usually, we define a cone slickly as a natural transformation from a constant diagram at an object in to the diagram . The universal property of the limit then looks like this:
To define the constant diagram, we collapse all the arrows of onto the identity of ; this requires being able to “forget” the data in an object of our base. Arrow theoretically, we have with the first arrow being the unique map guaranteed by the universal property of the terminal object. But in the enriched context, our monoidal unit may not be terminal, so we won’t be able to do this in general! We need to rephrase our definition of the limit.
We can do this by working with diagrams in (where we have access to the objects ), instead of of diagrams in . This says that maps into the limit (in ) correspond to cones over the diagram (points of in the category of diagrams in the base). Saying that the cone has a “wireframe” shape just means that we are looking at points . For a given object in , we then get a point , a single morphism extending from to . But points are often not sensitive enough over a general base, so for a nicely enriched notion of limit, we will need to consider more general figures . Here, is a functor of weights, and the universal property of the weighted limit is
Weighted colimits are defined by the dual formula, with morphisms coming out of the diagram. Conical (“wireframe”) (co)limits are just weighted limits whose weights are constant at the monoidal identity.
Over a general base, we can consider a weighted limit of a particularly simple sort. Let be the category with a single object and its identity arrow, so that a diagram is just an object of . Then, given a weight , the universal property says where I have taken the liberty of renaming the limit because this is precisely the universal property of the power! If sets are our base, then is a product of copies of the object , which justifies the name “power”.
Dually, the copower is the weighted colimit of the above data, and over sets it is the coproduct of copies of . But beware; we need the weights to be contravariant for a colimit, so that and have the same variance.
Taking weighted (co)limits is in fact functorial in the weights. For colimits this relationship is covariant; for limits it is contravariant. This means that for suitably cocomplete , we get a functor for any diagram which sends a weight to the colimit of weighted by it. This operation corresponds to left Kan extension of the diagram along the Yoneda embedding. Dually, right Kan extension can be expressed by taking weighted limits. As a corollary, we see that all concepts are weighted (co)limits.
An Example: Limits are Weighted Limits!
Here’s a very cool example of a weighted limit which finally lets us tie categorical limits to their analytic analogs. Recall that if our base is the non-negative real numbers , ordered by and with monoidal structure and , then categories are directed metric spaces. A functor is then a map which does not increase distance between points. We’ll show that certain weighted limits of sequences are their limits in the analytic sense.
Consider the discrete metric space whose points are the natural numbers and where for all and . A diagram is therefore simply a sequence in ; since the distance between any two points of is infinite, no function can increase distance, so all functions are functors. Suppose we have a decreasing sequence whose limit, in the analytic sense, is . The universal property of the limit of , weighted by , is then which, with a little jiggling of the abstract definitions into their specializations, becomes In particular, which shows that the sequence approaches in the analytic sense! (That subtraction is the internal hom in . It is truncated, so if it were going to be negative it gets set to .) It can, in fact, be shown that a sequence is Cauchy if and only if such a weight exists; see this very cool paper by Rutten for details.
If you enjoyed this example, check out Simon Willerton’s posts about the Legendre-Fenchel transform on this very blog!
The Point of View
As a general motto, when we are working over a base category , the category , as a category enriched over itself, “thinks” it is the category of sets. By this I mean that if we work only using the tensor and internal hom of to discuss things, then many of the peculiar features that the category of sets has as a (set-)category, the category has as a -category. For example:
- As I mentioned above, functions in the category of sets are determined by their actions on points. This is not true of a general base category if we think of it as a category over sets. But, if we think of as a category over itself, then we have that naturally in . By here I mean the internal hom of . This means that from the -point of view, a morphism is determined by its action on points.
- We can build on the last bullet point. We like to think of sets as totally discrete; they are, in fact, all disjoint unions of points. This totally fails in a general base category if we think of it as a category over the sets; for example, not all abelian groups are free (that is, not all abelian groups are coproducts of the monoidal unit ). But, if we work over a base category , then “disjoint union” should really mean “copower”. In , the copower is just the tensor product and therefore . So, from the -point of view, every object is a sum of points.
Check out the next post to see some of the cool things you can do from the point of view!
Re: Enrichment and its Limits
(and ff.) should be identity of C, right?
this was a really nice intro though, thanks. I look forward now to learning about gluing shapes.