When learning about colimits and presheaf categories, one often meets a category of elements. The definition of the category isnβt particularly hard to understand or remember; however, I didnβt immediately have an intuition for why it is useful or where the definition came from. This has lead me to play with it and try to understand some properties of it.
Given a locally small category and a functor , the category of elementsΒ of , denoted or , is defined as follows:
- Objects are pairs ,
- Morphisms are maps such that .
Every category of elements has a projection functor associated with it that sends and . There is a useful property tucked away in the definition: for any -arrowΒ , there is a unique element such that there is an -morphism , namely . As a result of this, we will often write morphism as . Another observation is that we can write as a comma category.
There is an isomorphism .
We look at the comma category for the following diagram:
The double stroke 1 is the terminal category and the functor 1 is the functor that selects the terminal set. This category has as objects, pairs and morphisms are commuting triangles:
That this triangle commutes is the same as stating , which is the condition above.
We can use the category of elements to relate representablity to the existence of a terminal object.
[1, Exercise 6.2.23] Let be a presheaf on a locally small category. is representable if and only if has a terminal object.
The category has a terminal object if and only if there is an object such that for any , there is exactly one morphism . This is equivalent to there being an and such that for all , , there is a unique morphism such that . This condition is equivalent to being representable, by [Corollary 4.3.2, 1].
One of the most important uses of the category of elements is to show that any presheaf is a colimit of a certain diagram, in a canonical way. This is the main purpose of the category of elements in [1, Definition 6.2.16].
[1, Theorem 6.2.17] Let be small and a presheaf. Then is the colimit of the following diagram:
That is, .
We should first note that this does make sense; as is small, so is , hence a colimit does indeed exist.
We know that presheaf categories have all (small) limits and colimits, so a colimit of exists. Let be a presheaf and let be a cocone on with vertex . We can simply this to have . This is a family of natural transformations, so for all in , the folowing diagram commutes
By the Yoneda lemma, every natural transformation corresponds to a unique element , which we shall denote . As the diagram above commutes, it commutes for all , so in particular it commutes for . This gives us the following:
This gives us . As is a natural transformation, the following square commutes:
This gives us . Combining this with the above we see that a cocone on is a collection of elements such that for any in , .
An equivalent way to write is and treat it as a function.The properties above then say for any in , , that is to say the following diagram commutes for all in :
This shows that is a natural transformation. As all of the above is equivalent, we see that a cocone on is the same as a map from into , hence is the colimit of . We can write this as equivalence formally as
.
This is an application of the dual of [Equation 6.2, 1].
The property that morphisms in have is vital to this proof and, to myself atleast, shows why we need to use this particular small category.
Given a set , there is an equivalence of categories , where the latter has as objects indexed tuples of sets. Given , we form the tuple and given a tuple , we form the disjoint union along with the function that sends every element in each to . This equivalence can be abstracted to categories by the following theorem.
[2, Proposition 1.1.7] Let be a small category and a presheaf on . Then there is an equivalence of categories:
.
I will give the functors required and leave the checking of the equivalence out, as it is pretty involved. The definitions of the functors require a proof to show that they are well defined (it needs to be shown that the natural transformations are indeed natural), however as this isnβt too hard, we omit it. First, we define the following functor:
The functor is defined as follows:
Where . The natural transformation has components with . We now define a map in the other direction:
The functor is defined as . This can then be made into a functor . The natural transformation has components defined by the universal property of the coproduct. If then . The natural transformation has components with the following action on - .
It is shown in the attached pdf that these functors give rise to an equivalence, hence proving the claim.
In conclusion, the category of elements is vital to proving that any presheaf is actually a colimit of a certain diagram. It also shows that slice categories of presheaf categories can be seen as a presheaf category themselves.
(1) T. Leinster, Basic category theory, 2014, 2016.
(2) T. Leinster, Higher operads, higher categories, 2013.
(3) J. Leslie, Category of elements, 2018