Gluing Together Finite Shapes with Kelly
Posted by Emily Riehl
Guest post by David Jaz Myers
The Kan Extension Seminar continues with Kelly’s Structures defined by limits in the enriched context, I, or as I like to call it, Presenting categories whose objects are glued together out of finite shapes. This paper hit the presses in 1982 and represented both a condensation and generalization of the theory of locally finitely presentable categories. Kelly achieved both the condensing and the generalizing through his use of weighted (or, as he calls them, indexed) limits and colimits. The resulting theory is slick and highly categorical, but very dense. So, in this post, we’re going to button down a bit and skim over a few details so that we can focus on the story and the powerful results which sustain it, rather than the technicalities. I will label the propositions by where they appear in Kelly’s paper, so that you can find the technicalities if you would like.
At first, it will seem like this post is a radical departure from the previous seminar posts. But as we go on, we’ll see that gluing together finite shapes has a lot to do with the categorical approach to algebra that Evangelia wrote about in the post that kicked off our seminar.
Before I start, I’d like to thank Emily, Alexander, and Brendan for organizing this lovely seminar and inviting me to participate. I’d also like to thank my fellow students for their insight and conversation.
Throughout this paper, Kelly works in the enriched context. Where normally we like to think of there being a set of arrows between any two objects of a category, Kelly wants us to think of there being an object of arrows. This object of arrows can live in any suitably nice category, which here will mean a symmetric monoidal closed and cocomplete (and later, locally finitely presentable) category. We call this category our base category, and denote it by the letter .
For the rest of this blog post, we will work from the -point of view. When I say “category”, I will mean -category, and same for “functor” and “natural transformation”. For the most part, this will work smoothly. But the crucial notion of being “filtered”, which we will come to later, is only defined over the category of sets. I’ll try and be explicit about this when it comes up. For a brief intro to the -point of view, see the previous blog post which introduces enrichment and its limits.
Understanding Objects by Looking at Figures in Them
When we work with a mathematical structure , we often like to do so in terms of its elements. In our base category, it suffices to look at the points of , the maps . But, in more general categories , we may need to consider figures of a more general shape.
Remark For the rest of this post, I will use the term “figure in ” to mean a morphism in a category, and “shape” to mean the domain of a figure. By an “incidence relation” between shapes, I just mean morphisms between them. A somewhat more common name for “shape” would be “test space”, but I find the word “shape” to be more cozy.
Yoneda’s lemma tells us that we lose no information if we use figures of an arbitrary shape.
Lemma (Yoneda’s Lemma) In any category, morphisms naturally correspond to functions which take figures in to figures of the same shape in which respect the incidence relations between the shapes.
However, it will often be the case that general shapes are just too complicated to work with. After all, we are trying to study an object in a category; a general morphism into it can be no less complicated. Even worse, there are often so many general shapes that they cannot be collected into a set (if we are working in a large category). It would be very nice to have a small subcategory of “tractable shapes” that we could restrict our attention to. “Tractable” is not a technical term, but more of a suggestive name like “nice”.
Such a subcategory would induce a functor sending an object of to its functor of “figures with tractable shape”. If we can glue together the objects of (that is, if is cocomplete), then this functor will have a left adjoint given by taking the weighted colimit of the inclusion . We can think of this left adjoint as gluing together a bunch of tractable shapes into an object of . Let’s look at a few examples of this kind of arrangement.
- As I mentioned above, it suffices to work with points (that is, figures of shape ) when we are in the base category. This should mean that if we take our category of “tractable shapes” to be just the subcategory containing the monoidal unit , we will recover all of our base category. And indeed, is an isomorphism of categories! Its inverse sends an object of points to the copower , the -indexed sum of points.
- Let’s work over sets, and consider the category of graphs (to be specific, by “graph” I mean a symmetric relation). It no longer suffices to just look at points (figures in whose shape is a single point ), since there can be many graphs with the same set of points. Nor can we just look at figures whose shape is a single edge , since many graphs have the same set of edges. But if we keep in mind the incidence relations between these two shapes, which is just that the point lies in the edge in two ways, then we can recover the whole of our graph . We let be our subcategory of tractable shapes, and we find that is fully faithful. Its adjoint is the functor which glues a bunch of edges onto a bunch of points, and that it is fully faithful means that any morphism of graphs is determined by its actions on the points and edges.
- Now let’s look at an example where our object is seriously intractable. Working over sets again, let be the category of topological spaces. As above, a topological space is not determined by its points. We can try to get a grip on by modeling it with triangles. Higher dimensional triangles are called simplices, and they are particularly nice spaces, so we can take our tractable objects to be the subcategory of simplices and their incidence relations. Then the sends a topological space to its singular simplicial set, and its left adjoint gives the geometric realization of an abstract simplicial set. In this case, is only faithful; there are spaces (like Cantor’s space) which aren’t well studied by looking at triangles in them.
For this program of looking at “tractable shapes” to work out, we will need the objects of to be suitably determined by the figures of tractable shape inside them. We will take “suitably determined” to mean that we can test if a morphism is an isomorphism by checking if it induces a bijection on figures of tractable shape.
Definition Let be cocomplete and let be a subcategory. We say that is a strong generator of if is conservative (that is, if it reflects isomorphisms).
So, we are looking for a strong generator consisting of “tractable” objects of . But what does “tractable” mean?
Let’s consider an algebraic example, say, the category of groups (as a set-category). We often study algebras by looking at the equations that elements in them satisfy. For example, a group is abelian if for every two elements and in it. These finite sets of relations between elements can be seen as figures in the group; the shape of these figures is a finitely presented group, generated by the elements and quotiented by the relations in question. For example, the commuting pairs in a group are precisely the figures (homomorphisms) of shape (with domain) .
In this algebraic setting, it seems reasonable to take “tractable” to mean finitely presentable. By finitely presentable, I mean admitting a finite presentation in terms of generators and relations in the usual sense. Here is a categorical way to describe a presentation in terms of generators and relations: we have a set of generators and a set of relations together with two homomorphisms from the free algebra on the relations to the free algebra on the generators taking a relation to the left and right hand sides of the equality that represents it. Then, to be presented by such a presentation means to be a coequalizer of those two arrows. For example, the group above is given by the coequalizer of where the left arrow sends to and the right sends to .
Interestingly, there is an abstract categorical definition of finite presentability which doesn’t mention generators or relations at all!
Theorem In a category of algebras (say, models of a Lawvere theory), an algebra is finitely presentable if and only if the hom functor commutes with filtered colimits.
Finite Shapes and Gluing Them Together
Given the above abstract definition of finite presentability, we will take “tractable” to mean “finitely presentable” in the abstract categorical sense. Let’s explain precisely what this is now.
Definition A set-category is filtered if every functor with finite has a cocone.
The colimit of a diagram is filtered if is.
A functor is finitary if it commutes with filtered colimits.
An object in is finitely presentable (or f.p.) if is finitary. We denote by the (full) category of f.p. objects in .
Finitely presentable objects are “morally finite”, relative to whatever category they are in. A good grounding example occurs in the truth value enriched setting.
Theorem Let be the order of open sets in a topological space , considered as a category over the truth values. If is a subset, then the functor is finitary if and only if is compact.
Proof Commuting with filtered colimits means for each filtered family of open sets . We can complete any open cover to a filtered cover by throwing in finite unions of opens in the cover; if the functor is finitary, then one such finite union contains , so is compact.
If is compact, any open cover (including one that is filtered) contains a finite subcover; since the cover is filtered, there is open set in it containing the finite cover, which shows that the functor is finitary.
It’s reasonable to think of compact sets as “topologically finite”. Representing a finitary functor makes an object “finite” in the category in question. For example, a finitely presentable set is finite.
Claim A finitely presentable set is finite.
Proof If is finitely presentable, then commutes with filtered colimits. Every set is the filtered colimit of its finite subsets, so in particular . But then the identity of factors through one of its finite subsets, so is finite.
It would be good to show further that every finite set is finitely presentable. We can do even better by showing that gluing together finitely many finite shapes gives us a finite shape. But first, we should make sure we know what “finitely many” means in the enriched context.
Definition A weight is finite when
- has finitely many objects (up to isomorphism),
- is f.p. for all and in , and
- is f.p. for all in .
Finite (co)limits are those whose weights are finite.
Lemma (4.41) For cocomplete, is closed under finite colimits.
Corollary A set is finite if and only if it is finitely presentable.
Proof We saw that finitely presentable sets are finite, so it remains to show that finite sets are finitely presentable. But a finite set is a finite coproduct of the set , and is finitely presentable because commutes with filtered colimits.
Now that we have a good formal definition of “tractable”, we can define those categories whose objects are suitably determined by the tractable figures within them.
Definition A category is locally finitely presentable (l.f.p.) when
- it is cocomplete, and
- there is a small subcategory so that the induced is finitary and conservative.
Note that being finitary implies that , since we can calculate colimits in pointwise.
Since being finitary relies on a definition over the category of sets, there can be subtle differences between the objects which are finitely presented over sets versus objects that are finitely presented over the base . For example, the monoidal unit is always finitely presentable over , since . But over sets, it might not be, since the set of points of an object in might be ill-behaved. Kelly gives a good example of this: in the category of actions of a group , the monoidal unit is always finitely presentable over the actions, but it is only finitely presentable over sets if is finite.
For more on these subtleties, see section 5 of the paper; from now on, we will assume that our base is l.f.p. over sets and that moreover the f.p. objects in are the same whether taken over or over sets. This occurs if and only if the monoidal unit of is f.p. over sets and the tensor product of two f.p.-over-sets objects is f.p. over sets (see 5.5 in the paper). Kelly calls this situation being “l.f.p. as a monoidal closed category”, and so we will as well.
Now, Kelly proves some serious theorems about l.f.p. categories.
Theorem (7.2) Let be l.f.p. with strong generator . Then
- is the closure of under finite colimits,
- is dense in , meaning that is fully faithful.
- is also finitary.
- is complete.
This theorem shows that the finite shapes in a category whose objects are determined by some particular subcategory of finite “tractable” shapes are precisely those shapes which can be glued together out of finitely many “tractable” shapes from . For example, working over sets, we see that the finitely presentable graphs are precisely the finite colimits of the point and the edge, that is, precisely the finite graphs. We can also deduce that the finitely presentable simplicial sets are those which have a finite number of simplices.
Rather surprisingly, we also find that is complete. Perhaps this is not so surprising though; if we know how to glue our objects together out of finite shapes, then we can form families of objects by forming families of these shapes. So, l.f.p. categories are very nice categories indeed. As a corollary of this theorem, Kelly gives a few more characterizations of l.f.p. categories that show that the choice of generators is not essential.
Corollary (7.3) The following are equivalent for a cocomplete category :
- is locally finitely presentable,
- is small and strongly generating,
- is small and dense,
- is a reflective subcategory of with finitary inclusion, for some .
Here we see that the l.f.p. categories are reflective subcategories of presheaf categories. Since presheaf categories are always fantastically nice (inheriting, as they do, most of the nice structure of the base), l.f.p. categories are fantastically nice as well. For example, in the category of sets, finite limits commute with filtered colimits. In a l.f.p. category over an l.f.p. base, we can deduce the same.
Lemma (4.9) Let be a l.f.p. category over an l.f.p. (as a monoidal closed category) base. Then finite limits commute with filtered colimits in .
Furthermore, l.f.p. categories satisfy two really nice adjoint functor theorems. Before we can express them, we need to mention that the above discussion of filtered colimits and f.p. objects can be repeated with “finite” (that is, “less than ”) being replaced by “less than ” for any regular cardinal .
Theorem (7.8, 7.9) Let and be l.f.p. and let be a functor. Then
- is a left adjoint if and only if it commutes with colimits, and
- is a right adjoint if and only if it and commutes with limits and -filtered colimits for some regular cardinal .
As an example, let be the category of graphs over sets, and let be the functor of points. As a covariant representable, commutes with limits, and since colimits of graphs are constructed pointwise, it also commutes with colimits. Therefore, has both a left and a right adjoint, given by forming the discrete graph with no edges and the complete graph with all possible edges.
An Aside: Essentially Algebraic Theories
As an aside, let’s discuss the notion of an essentially algebraic theory. A theory is algebraic when it involves equations between functions of finitely many variables, and therefore may be interpreted in any category with finite products. A theory is essentially algebraic when it involves equations between partial functions of finitely many variables (whose domains are carved out by equations). Therefore, an essentially algebraic theory may be interpreted in any category with finite limits. The theory of categories is an example of an essentially algebraic theory which is not algebraic; composition is only defined for some pairs of morphisms.
Definition An essentially algebraic theory is a small finitely complete category.
A model of an essentially algebraic theory is a left exact functor . Being left exact (or, shortly, lex) means commuting with finite limits.
A moral of this story is that a lot of what works for Lawvere theories over sets works for enriched essentially algebraic theories. In particular, we can take the free finite completion of a category , which by definition satisfies the following universal property: for f.c. . In particular, , so we see that Therefore, we can see as the “theory of an object”; its models are just objects.
An algebra of an essentially algebraic theory is a model in the base category. Kelly gives the following characterization of algebras of theories.
Corollary (6.11) Let be a functor from an essentially algebraic theory . Then the following are equivalent:
- is left exact, and hence an algebra.
- is a filtered colimit in of representables.
- is an element of the filtered-colimit completion of (as the completion of under filtered colimits).
The appearance of filtered colimits in this theorem suggests that our brief aside into essentially algebraic theories is anything but an aside.
That Wasn’t an Aside!
In this section, we will see that locally finitely presentable categories and essentially algebraic theories are closely intertwined. In fact, we will show that essentially algebraic theories present l.f.p. categories, and that this gives rise to a duality between a doctrine of theories and a doctrine of l.f.p. categories. I’m using the word “doctrine” here to mean just a “theory of theories”. Thus, categories whose objects are glued together out of finite shapes are precisely the categories of algebras for essentially algebraic theories.
We begin with the following theorem.
Lemma (7.2) Let be l.f.p.. Then .
Proof By , this is equivalent to being the filtered-colimit completion of , which holds by (the rest of) .
Since this says that is the category of algebras of , we can see as “the theory of an object of ”. As an example, this shows that the essentially algebraic theory of groups is equivalent to the opposite of the category of finitely presentable groups. Since a finitely presentable group is a coequalizer of finitely generated free groups, left exact functors out of this category are determined by their actions on the finitely generated free groups. We ran into the fact that the opposite of the category of finitely generated free groups determines the Lawvere theory of groups before; we are seeing this fact again, but in some more generality.
Now, let’s turn out attention to the restriction and extension of scalars between theories. Let be a lex functor between theories. Since composites of lex functors are lex, we get a functor by precomposition. This is the restriction of scalars functor; between theories of modules of rings it would be just that. We call functors induced in this way algebraic functors.
Corollary (9.5, 6.12) is finitary, and therefore (by which I mean left Kan extension along ) descends to which is left adjoint to .
Adjoint to the restriction of scalars, we get our usual extension of scalars functor. As a corollary, we get the following nice result.
Corollary The category of algebras of a theory is a reflective subcategory of the category of copresheaves on it.
Proof is algebraic, given by the reflection of sending formal limits to the actual limits in .
Now, a few sections ago we proved that reflective subcategories of presheaves were locally finitely presentable. Therefore, we can turn the previous corollary into the following theorem.
Theorem (9.8) For a finitary theory ,
- the category of -algebras is l.f.p.,
- is the essential image of , and
- .
This theorem intertwines l.f.p. categories and essentially algebraic theories in the following precise way.
Corollary A category is l.f.p. precisely when it is the category of algebras for a finitary theory (which is then equivalent to .)
In fact, we can say something more. Since categories of algebras are l.f.p., a functor has a left adjoint if it is finitary and continuous. If this occurs, then its adjoint preserves f.p. objects by the following calculation.
Therefore, restricts to a functor , and as a left adjoint it is cocontinuous. Therefore, commutes with limits. We have shown that is algebraic precisely when it is finitary and continuous, and we can bundle all of this up into the following general theorem.
Theorem (9.14) Let
- be the enriched category of theories and lex functors, and
- be the enriched category of l.f.p. -categories and finitary right adjoint functors.
Then
is a bi-equivalence.
Over sets, this bi-equivalence is called the Gabriel-Ulmer duality. Following Lawvere, we could call this contravariant bi-equivalence the “structure-semantics duality”. The structure map is the one which extracts the finite objects from an l.f.p. category, and the semantics map takes a theory to its category of algebras. In the language of this post, this bi-equivalence shows that categories whose objects can be glued together out of finite shapes and the suitably finite functors between them are presented by essentially algebraic theories. On this blog, David Corfield has discussed other variants of this sort of duality.
Concluding Thoughts
We’ve covered a lot of ground in this blog post, and we’ve still managed to skip out on big sections of Kelly’s paper. In particular, we missed section 5 relating finite presentability over a general base to finite presentability over sets, section 6 studying flatness of functors, section 8 concerning local finite presentability over sets in more detail, and section 10 which concerns sketches. Here are some of the things we did get to see.
- Weighted (co)limits as the enriched version of (co)limits.
- Objects being glued together out of figures of “tractable shape”.
- A definition of “finite” in the general categorical context.
- A characterization of the categories whose objects are glued together out of finite shapes.
- A general notion of “algebraic theory”, general enough to include the dual of the finite shapes.
- That the models of this theory (dual to the finite shapes) are precisely the objects of the category.
Re: Gluing Together Finite Shapes with Kelly
Great post!
I really like your series of motivating examples, building up from points to edges to simplices. In your example of topological spaces, could we restrict to some special subcategory of topological spaces under which is conservative? Would such a be something like topological manifolds?
(I was initially confused by the notation , because the Yoneda embedding would then be written (with on the ‘other side’ of ). But once I got used to it, it actually works very nicely with the rest of your post.)
The characterization of l.f.p. categories in (7.2) reminds me of Hilbert spaces: every Hilbert space has a maximal orthonormal subset such that (finite linear combinations) is dense in . I think of as and its closure under finite colimits as . Daniel, Alexander and you had some reasons for and against this analogy; maybe you guys could raise them here.
In David Corfield’s post that you linked, he mentions this short paper by Brian Day. The upshot is that
where is a coendomorphism coalgebra given by the coend of a ‘fiber functor’ . We have Gabriel-Ulmer on the left, and Tannaka on the right. What’s nice about the Tannaka point of view is that structures on (e.g. monoidal, rigid) can be transferred to structures on (bialgebra, antipode resp.), and vice versa. The paper doesn’t seem to use much more than the stuff in your post (all the stuff leading up to Gabriel-Ulmer duality) and Simon’s (Day convolution), but following the details is proving to be a bit harder than I had anticipated.
(Does anyone know where the names ‘end’ and ‘coend’ come from? Are they somehow motivated by ‘endomorphism algebra’ and ‘coendomorphism coalgebra’?)