What makes category theory be theory, as opposed to just a language, is the concept of universal constructions. This refers to the idea of objects with a prescribed property which are universal with this property, in that they “know about” or “subsume” every other object with that same kind of property. Category theory allows to make precise what this means, and then to discover and prove theorems about it.
Universal constructions are all over the place in mathematics. Iteratively finding the universal constructions in a prescribed situation essentially amounts to systematically following the unravelling of the given situation or problem or theory that one is studying.
There are several different formulations of the concept of universal constructions, discussed below:
But these three kinds of constructions all turn out to be special cases of each other, hence they really reflect different perspectives on a single topic of universal constructions. In fact, all three are also special cases of the concept of adjunction (Def. ), thus re-amplifying that category theory is really the theory of adjunctions and hence, if we follow (Lambek 82), of duality.
Maybe the most hands-on version of universal constructions are limits (Def. below), which is short for limiting cones (Remark below). The formally dual concept (Example ) is called colimits (which are hence limits in an opposite category). Other terminology is in use, too:
limit | colimit |
inverse limit | direct limit |
There is a variety of different kinds of limits/colimits, depending on the diagram shape that they are limiting (co-)cones over. This includes universal constructions known as equalizers, products, fiber products/pullbacks, filtered limits and various others, all of which are basic tools frequently used whenever category theory applies.
A key fact of category theory, regarding limits, is that right adjoints preserve limits and left adjoints preserve colimits (Prop. below). This will be used all the time. A partial converse to this statement is that if a functor preserves limits/colimits, then its adjoint functor is, if it exists, objectwise given by a limit/colimit over a comma category under/over the given functor (Prop. below). Since these comma categories are in general not small, this involves set-theoretic size subtleties that are dealt with by the adjoint functor theorem (Remark below). We discuss in detail a very special but also very useful special case of this in Prop. , further below.
Let be a small category (Def. ), and let be any category (Def. ). In this case one also says that a functor
is a diagram of shape in .
Recalling the functor category (Example ) , there is the constant diagram-functor
which sends an object to the functor that sends every to , and every morphism in to the identity morphism on . Accordingly, every morphism in is sent by to the natural transformation (Def. ) all whose components are equal to that morphism.
Now:
if has a right adjoint (Def. ), this is called the construction of forming the limiting cone of -shaped diagrams in , or just limit (or inverse limit) for short, and denoted
if has a left adjoint (Def. ), this is called the construction of forming the colimiting cocone of -shaped diagrams in , or just colimit (or direct limit) for short, and denoted
If () exists for a given , one says that has all limits (_has all colimits_) of shape _ or that all limits (colimits) of shape exist in . If this is the case for all small diagrams , one says that has all limits (_has all colimits_) or that all limits exist in , (_all colimits exist in .)
Unwinding Definition of limits and colimits, it says the following.
First of all, for any object and any functor, a natural transformation (Def. ) of the form
has component morphisms
in , for each , and the naturality condition (?) says that these form a commuting diagram (Def. ) of the form
for each morphism in . Due to the look of this diagram, one also calls such a natural transformation a cone over the functor .
Now the counit (Def. ) of the -adjunction (1) is a natural transformation of the form
and hence is, in components, a cone (3) over :
to be called the limiting cone over
But the universal property of adjunctions says that this is a very special cone: By Prop. the defining property of the limit is equivalently that for every natural transformation of the form (2), hence for every cone of the form (3), there is a unique natural transformation
which, due to constancy of the two functors applied in the naturality condition (?), has a constant component morphism
such that
hence such that (5) factors the given cone (3) through the special cone (4):
In this case one also says that is a morphism of cones.
Hence a limit cone is a cone over , such that every other cone factors through it in a unique way.
Of course this concept of (co)limiting cone over a functor makes sense also when
is not small,
and/or when a (co-)limiting cone exists only for some but not for all functors of this form.
(terminal/initial object is empty limit/colimit)
Let be a category, and let be an object. The following are equivalent:
is a terminal object of (Def. );
And formally dual (example ): Let be an object. The following are equivalent:
is an initial object of (Def. );
We discuss the case of the terminal object, the other case is formally dual (Example ).
It suffices to observe that a cone over the empty diagram (Remark ) is clearly just a plain object of . Hence a morphism of such cones is just a plain morphism of . This way the condition on a limiting cone is now manifestly the same as the condition on a terminal object.
(initial object is limit over identity functor)
Let be a category, and let be an object. The following are equivalent:
is an initial object of (Def. );
is the tip of a limit cone (Remark ) over the identity functor on .
First let be an initial object. Then, by definition, it is the tip of a unique cone over the identity functor
We need to show that that every other cone
factors uniquely through .
First of all, since the cones are over the identity functor, there is the component , and it is a morphism of cones.
To see that this is the unique morphism of cones, consider any morphism of cones , hence a morphism in such that for all . Taking here yields
where under the brace we used that is initial. This proves that is the limiting cone.
For the converse, assume now that is a limiting cone over the identity functor, with labels as in (6). We need to show that its tip is an initial object.
Now the cone condition applied for any object over the morphims says that
which means that constitutes a morphism of cones from to itself. But since is assumed to be a limiting cone, and since the identity morphism on is of course also a morphism of cones from to itsely, we deduce that
Now consider any morphism of the form . Since we already have the morphism , to show initiality of we need to show that .
Indeed, the cone condition of applied to now yields
where under the brace we used (7).
(limits of presheaves are computed objectwise)
Let be a category and write for its category of presheaves (Example ). Let moreover be a small category and consider any functor
hence a -shaped diagram in the category of presheaves.
Then
We discuss the case of limits, the other case is formally dual (Example ).
Observe that there is a canonical equivalence (Def. )
where is the product category.
This makes manifest that a functor is equivalently a diagram of the form
Then observe that taking the limit of each “horizontal row” in such a diagram indead does yield a presheaf on , in that the construction extends from objects to morphisms, and uniquely so: This is because for any morphism in , a cone over (Remark ) induces a cone over , by vertical composition with
From this, the universal property of limits of sets (as in Remark ) implies that there is a unique morphism between the pointwise limits which constitutes a presheaf over
and that is the tip of a cone over the diagram in presheaves.
Hence it remains to see that this cone of presheaves is indeed universal.
Now if is any other cone over in the category of presheaves, then by the universal property of the pointswise limits, there is for each a unique morphism of cones in sets
Hence there is at most one morphisms of cones of presheaves, namely if these components make all their naturality squares commute.
But since everything else commutes, the two ways of going around this diagram constitute two morphisms from a cone over to the limit cone over , and hence they must be equal, by the universal property of limits.
(hom-functor preserves limits)
Let be a category and write
for its hom-functor. This preserves limits (Def. ) in both its arguments (recalling that a limit in the opposite category is a colimit in ).
More in detail, let be a diagram. Then:
If the limit exists in then for all there is a natural isomorphism
where on the right we have the limit over the diagram of hom-sets given by
If the colimit exists in then for all there is a natural isomorphism
where on the right we have the limit over the diagram of hom-sets given by
We give the proof of the first statement, the proof of the second statement is formally dual (Example ).
First observe that, by the very definition of limiting cones, maps out of some into them are in natural bijection with the set of cones over the diagram with tip :
Hence it remains to show that there is also a natural bijection like so:
Now, again by the very definition of limiting cones, a single element in the limit on the right is equivalently a cone of the form
This is equivalently for each object a choice of morphism , such that for each pair of objects and each we have . And indeed, this is precisely the characterization of an element in the set .
(initial and terminal object in terms of adjunction)
Let be a category (Def. ).
The following are equivalent:
has a terminal object (Def. );
the unique functor (Def. ) to the terminal category (Example ) has a right adjoint (Def. )
Under this equivalence, the terminal object is identified with the image under the right adjoint of the unique object of the terminal category.
Dually, the following are equivalent:
has an initial object (Def. );
the unique functor to the terminal category has a left adjoint
Under this equivalence, the initial object is identified with the image under the left adjoint of the unique object of the terminal category.
Since the unique hom-set in the terminal category is the singleton, the hom-isomorphism (?) characterizing the adjoint functors is directly the universal property of an initial object in
or of a terminal object
respectively.
(left adjoints preserve colimits and right adjoints preserve limits)
Let be a pair of adjoint functors (Def. ). Then
Let be a diagram whose limit exists. Then we have a sequence of natural isomorphisms, natural in
where we used the hom-isomorphism (?) and the fact that any hom-functor preserves limits (Def. ). Because this is natural in the Yoneda lemma implies that we have an isomorphism
The argument that shows the preservation of colimits by is analogous.
Let and be small categories (Def. ) and let be a category (Def. ) which admits limits (Def. ) of shape as well as limits of shape . Then these limits “commute” with each other, in that for a functor (hence a diagram of shape the product category), with corresponding adjunct functors (via Example )
we have that the canonical comparison morphism
is an isomorphism.
Since the limit-construction is the right adjoint functor to the constant diagram-functor, this is a special case of right adjoints preserve limits (Prop. ).
See limits and colimits by example for what formula (8) says for instance for the special case Set.
(general non-commutativity of limits with colimits)
In general limits do not commute with colimits. But under a number of special conditions of interest they do. Special cases and concrete examples are discussed at commutativity of limits and colimits.
(pointwise expression of left adjoints in terms of limits over comma categories)
A functor (Def. ) has a left adjoint (Def. ) precisely if
for each object , the limit (Def. ) of the canonical functor (?) out of the comma category (Example )
exists.
In this case the value of the left adjoint on is given by that limit:
First assume that the left adjoint exist. Then
is a right adjoint and hence preserves limits since all right adjoints preserve limits (Prop. );
by Prop. the adjunction unit provides a universal morphism into , and hence, by Prop. , exhibits as the initial object of the comma category . The limit over any category with an initial object exists, as it is given by that initial object.
Conversely, assume that the two conditions are satisfied and let be given by (9). We need to show that this yields a left adjoint.
By the assumption that preserves all limits that exist, we have
Since the constitute a cone over the diagram of the , there is universal morphism
By Prop. it is now sufficient to show that is a universal morphism into , hence that for all and there is a unique morphism such that
By Prop. , this is equivalent to being the initial object in the comma category , which in turn is equivalent to it being the limit of the identity functor on (by Example ). But this follows directly from the limit formulas (9) and (10).
Beware the subtle point in Prop. , that the comma category is in general not a small category (Def. ): It has typically “as many” objects as has, and is not assumed to be small (while of course it may happen to be). But typical categories, such as notably the category of sets (Example ) are generally guaranteed only to admit limits over small categories. For this reason, Prop. is rarely useful for finding an adjoint functor which is not already established to exist by other means.
But there are good sufficient conditions known, on top of the condition that preserves limits, which guarantee the existence of an adjoint functor, after all. This is the topic of the adjoint functor theorem (one of the rare instances of useful and non-trivial theorems in mathematics for which issues of set theoretic size play a crucial role for their statement and proof).
A very special but also very useful case of the adjoint functor theorem is the existence of adjoints of base change functors between categories of (enriched) presheaves via Kan extension. This we discuss as Prop. below. Since this is most conveniently phrased in terms of special limits/colimits called ends/coends (Def. below) we first discuss these.
For working with enriched categories (Def. ) , a certain shape of limits/colimits (Def. ) is particularly relevant: these are called ends and coends (Def. below). We here introduce these and then derive some of their basic properties, such as notably the expression for Kan extension in terms of (co-)ends (prop. below).
((co)end)
Let be a small -enriched category (Def. ). Let
be an enriched functor (Def. ) out of the enriched product category of with its opposite category (Def. ). Then:
For a cosmos, let be a group object. There is the n the one-object -enriched category as in Example .
Then a -enriched functor
is an object equipped with a morphism
satisfying the action property. Hence this is equivalently an action of on .
The opposite category (def. ) comes from the opposite group-object
(The isomorphism induces a canonical euqivalence of enriched categories .)
So an enriched functor
is equivalently a right action of .
Therefore the coend of two such functors (def. ) coequalizes the relation
(where juxtaposition denotes left/right action) and is the quotient of the plain tensor product by the diagonal action of the group :
(enriched natural transformations as ends)
Let be a small enriched category (Def. ). For two enriched presheaves (Example ), the end (def. ) of the internal-hom-functor
is an object of whose underlying set (Example ) is the set of enriched natural transformations (Def. )
The underlying pointed set functor preserves all limits, since hom-functors preserve limits (Prop. ). Therefore there is an equalizer diagram in Set of the form
where we used Example to identify underlying sets of internal homs with hom-sets.
Here the object in the middle is just the set of indexed sets of component morphisms . The two parallel maps in the equalizer diagram take such a collection to the indexed set of composites (?) and (?). Hence that these two are equalized is precisely the condition that the indexed set of components constitutes an enriched natural transformation.
Conversely, example says that ends over bifunctors of the form constitute hom-spaces between pointed topologically enriched functors:
For a cosmos (Def. ), let be a small -enriched category (Def. ).
Then the -enriched presheaf category is -enriched functor category from to , hence is the following -enriched category (Def. )
the objects are the -enriched functors (Def. );
the hom-objects are the ends
the composition operation on these is defined to be the one induced by the composite maps
where the first morphism is degreewise given by projection out of the limits that defined the ends. This composite evidently equalizes the two relevant adjunct actions (as in the proof of example ) and hence defines a map into the end
By Example , the underlying plain category (Example ) of this enriched functor category is the plain functor category of enriched functors from Example .
For a cosmos (Def. ) let be a small enriched category (Def. ). For an enriched presheaf (Example ) and for an object, there is a natural isomorphism
between the hom-object of the enriched functor category (Def. ), from the functor represented by to , and the value of on .
In terms of the ends (def. ) defining these hom-objects (11), this means that
In this form the statement is also known as Yoneda reduction.
Now that natural transformations are expressed in terms of ends (example ), as is the enriched Yoneda lemma (prop. ), it is natural to consider the dual statement (Example ) involving coends:
For a cosmos (Def. ), let be a small -enriched category (Def. ). For an enriched presheaf (Def. ) and for an object, there is a natural isomorphism
Moreover, the morphism that hence exhibits as the coequalizer of the two morphisms in def. is componentwise the canonical action
which is adjunct to the component map of the enriched functor .
(e.g. MMSS 00, lemma 1.6)
By the definition of coends and the universal property of colimits, enriched natural transformations of the form
are in natural bijection with systems of component morphisms
which satisfy some compatibility conditions in their dependence on and (natural in and “extranatural” in ). By the internal hom adjunction, these are in natural bijection to systems of morphisms of the form
satisfying the analogous compatibility conditions. By Example these are in natural bijection with systems of morphisms
natural in
By the enriched Yoneda lemma (Prop. ), these, finally, are in natural bijection with systems of morphisms
natural in . Moreover, all these identifications are also natural in . Therefore, in summary, this shows that there is a natural isomorphism
With this, the ordinary Yoneda lemma (Prop. ) in the form of the Yoneda embedding of implies the required isomorphism.
(co-Yoneda lemma over Set)
Consider the co-Yoneda lemma (Prop. ) in the special case Set (Example ).
In this case the coequalizer in question is the set of equivalence classes of pairs
where two such pairs
are regarded as equivalent if there exists
such that
(Because then the two pairs are the two images of the pair under the two morphisms being coequalized.)
But now considering the case that and , so that shows that any pair
is identified, in the coequalizer, with the pair
hence with .
As a conceptually important corollary we obtain:
(category of presheaves is free co-completion)
For a small category (Def. ), its Yoneda embedding (Prop. ) exhibits the category of presheaves (Example ) as the free co-completion of under forming colimits (Def. ), in that it is a universal morphism, as in Def. but “up to natural isomorphism”, into a category with all colimits (by Example ) in the following sense:
there is a functor , unique up to natural isomorphism such that
extends through the Yoneda embedding, in that the following diagram commutes, up to natural isomorphism (Def. ):
Hence when interpreting presheaves as generalized spaces, this says that “generalized spaces are precisely what is obtained from allowing arbitrary gluings of ordinary spaces”, see also Remark below.
The last condition says that is fixed on representable presheaves by
and in fact naturally so:
But the co-Yoneda lemma (Prop. ) expresses every presheaf as a colimit of representable presheaves (in the special case of enrichment over , Example )
Since is required to preserve any colimit and hence these particular colimits, (12) implies that is fixed to act, up to isomorphism, as
(where the colimit on the right is computed in !).
The statement of the co-Yoneda lemma in prop. is a kind of categorification of the following statement in analysis (whence the notation with the integral signs):
For a topological space, a continuous function and denoting the Dirac distribution, then
It is this analogy that gives the name to the following statement:
(Fubini theorem for (co)-ends)
For a cosmos (Def. ), let be two -enriched categories (Def. ) and
a -enriched functor (Def. ) from the product category with opposite categories (Def. ), as shown.
Then its end and coend (def. ) is equivalently formed consecutively over each variable, in either order:
and
(internal hom preserves ends)
Let be a cosmos (Def. ). Since the internal hom-functor in (Def. ) preserves limits in both variables (Prop. ), in particular it preserves ends (Def. ) in the second variable, and sends coends in the second variable to ends:
For all small -enriched categories, -enriched functors (Def. ) and all objects we have natural isomorphisms
and
With this coend calculus in hand, there is an elegant proof of the defining universal property of the smash tensoring and powering enriched presheaves
(tensoring and powering of enriched presheaves)
Let be a -enriched category, def. , with its functor category of enriched functors (Example ).
Define a functor
by forming objectwise tensor products
This is called the tensoring of over .
Define a functor
by forming objectwise internal homs (Def. )
This is called the powering of over .
(universal property of tensoring and powering of enriched presheaves)
For a cosmos (Def. ), let be a small -enriched category (Def. ), with the corresponding enriched presheaf category.
Then there are natural isomorphisms
and
for all and all , where is the powering and the tensoring from Def. .
In particular there is the composite natural isomorphism
exhibiting a pair of adjoint functors
Via the end-expression for from Example , and the fact (remark ) that the internal hom-functor ends in the second variable, this reduces to the fact that is the internal hom in the closed monoidal category (Example ) and hence satisfies the internal tensor/hom-adjunction isomorphism (prop. ):
and
We make explicit the general concept of which Prpp. provides a key class of examples:
(tensoring and cotensoring)
For a cosmos (Def. ) let be a -enriched category (Def. ). Recall the enriched hom-functors (Example )
A powering (or cotensoring) of over is
a functor (Def. )
for each a natural isomorphism (Def. ) of the form
A copowering (or tensoring) of over is
a functor (Def. )
for each a natural isomorphism (Def. ) of the form
If is equipped with a (co-)powering it is called (co-)powered over .
(tensoring left adjoint to cotensoring)
For a cosmos (Def. ) let be a -enriched category (Def. ).
If is both tensored and cotensored over (Def. ), then for fixed the operations of tensoring with and of cotensoring with form a pair of adjoint functors (Def. )
The hom-isomorphism (?) characterizing the pair of adjoint functors is provided by the composition of the natural isomorphisms (14) and (15):
(in tensored and cotensored categories initial/terminal objects are enriched initial/terminal)
For a cosmos (Def. ) let be a -enriched category (Def. ).
If is both tensored and cotensored over (Def. ) then
an initial object (Def. ) of the underlying category of (Example ) is also enriched initial, in that the hom-object out of it is the terminal object of
a terminal object (Def. ) of the underlying category of (Example ) is also enriched terminal, in that the hom-object into it is the terminal object of :
We discuss the first claim, the second is formally dual.
By prop. , tensoring is a left adjoint. Since left adjoints preserve colimits (Prop. ), and since an initial object is the colimit over the empty diagram (Example ), it follows that
for all , in particular for . Therefore the natural isomorphism (15) implies for all that
where in the last step we used that the internal hom in sends colimits in its first argument to limits (Prop. ) and used that a terminal object is the limit over the empty diagram (Example ).
For a cosmos (Def. ), let be small -enriched categories (Def. ) and let
be a -enriched functor (Def. ). Then precomposition with constitutes a functor between the corresponding -enriched presheaf categories (Def. )
This enriched functor (16) has an enriched left adjoint (Def. ), called left Kan extension along
which is given objectwise by the coend (def. ):
The enriched functor (16) has an enriched right adjoint (Def. ), called right Kan extension along
which is given objectwise by the end (def. ):
In summary, this means that the enriched functor
induces, via Kan extension, an adjoint triple (Remark ) of enriched functors
Use the expression of enriched natural transformations in terms of coends (example and def. ), then use the respect of for ends/coends (remark ), use the internal-hom adjunction (?), use the Fubini theorem (prop. ) and finally use Yoneda reduction (prop. ) to obtain a sequence of natural isomorphisms as follows:
and similarly:
(coend formula for left Kan extension of ordinary presheaves)
Consider the cosmos to be Set, via Example , so that small -enriched categories (Def. ) are just a plain small category (Def. ) by Example , and -enriched presheaves (Example ) are just plain presheaves (Example ).
Then for any plain functor (Def. )
the general formula (17) for left Kan extension
is
Using here the Yoneda lemma (Prop. ) to rewrite , this is
Hence this coend-set consists of equivalence classes of pairs of morphisms
where two such are regarded as equivalent whenever there is such that
This is particularly suggestive when is a full subcategory inclusion (Def. ). For in that case we may imagine that a representative pair is a stand-in for the actual pullback of elements of along the would-be composite “”, only that this composite need not be defined. But the above equivalence relation is precisely that under which this composite would be invariant.
We collect here further key properties of the various universal constructions considered above.
(left Kan extension preserves representable functors)
For a cosmos (Def. ), let
be a -enriched functor (Def. ) between small -enriched categories (Def. ).
Then the left Kan extension (Prop. ) takes representable enriched presheaves to their image under :
for all .
By the coend formula (17) we have, naturally in , the expression
where the last step is the co-Yoneda lemma (Prop. ).
(Kan extension of adjoint pair is adjoint quadruple)
For a cosmos (Def. ), let , be two small -enriched categories (Def. ) and let
be a -enriched adjunction (Def. ). Then there are -enriched natural isomorphisms (Def. )
between the precomposition on enriched presheaves with one functor and the left/right Kan extension of the other (Def. ).
By essential uniqueness of adjoint functors, this means that the two adjoint triples (Remark ) given by Kan extension (19) of and
merge into an adjoint quadruple (Remark )
For every enriched presheaf we have a sequence of -enriched natural isomorphism as follows
Here the first step is the coend-formula for left Kan extension (Prop. ), the second step if the enriched adjunction-isomorphism (?) for and the third step is the co-Yoneda lemma.
This shows the first statement, which, by essential uniqueness of adjoints, implies the following statements.
(left Kan extension along fully faithful functor is fully faithful)
For a cosmos (Def. ), let
be a fully faithful -enriched functor (Def. ) between small -enriched categories (Def. ).
Then for all
and in fact the -unit of an adjunction is a natural isomorphism
is a fully faithful functor.
By the coend formula (17) we have, naturally in , the left Kan extension of any on the image of is
where in the second step we used the assumption of fully faithfulness of and in the last step we used the co-Yoneda lemma (Prop. ).
(colimit of representable is singleton)
Let be a small category (Def. ). Then the colimit of a representable presheaf (Def. ), regarded as a functor
One way to see this is to regard the colimit as the left Kan extension (Prop. ) along the unique functor to the terminal category (Def. ). By the formula (17) this is
where we made explicit the constant functor , constant on the singleton set , and then applied the co-Yoneda lemma (Prop. ).
(categories with finite products are cosifted
Let be a small category (Def. ) which has finite products. Then is a cosifted category, equivalently its opposite category is a sifted category, equivalently colimits over with values in Set are sifted colimits, equivalently colimits over with values in Set commute with finite products, as follows:
For to functors on the opposite category of (hence two presheaves on , Example ) we have a natural isomorphism (Def. )
between the colimit of their Cartesian product and the Cartesian product of their separate colimits.
First observe that for two presheaves, their Cartesian product is a colimit over presheaves represented by Cartesian products in . Explicity, using coend-notation, we have:
where denotes the Yoneda embedding.
This is due to the following sequence of natural isomorphisms:
where the first step expands out both presheaves as colimits of representables separately, via the co-Yoneda lemma (Prop. ), the second step uses that the Cartesian product of presheaves is a two-variable left adjoint (by the symmetric closed monoidal structure on presheaves) and as such preserves colimits (in particular coends) in each variable separately (Prop. ), and under the brace we use the defining universal property of the Cartesian products, assumed to exist in .
With this, we have the following sequence of natural isomorphisms:
Here the first step is (21), the second uses that colimits commute with colimits (Prop. ), the third uses again that the Cartesian product respects colimits in each variable separately, the fourth is by Lemma , the last step is again the respect for colimits of the Cartesian product in each variable separately.
Last revised on June 11, 2022 at 10:35:20. See the history of this page for a list of all contributions to it.