# The category of elements, enrichment, and weighted limits

This is a crosspost of this MSE question.

Every so often, when reading notes online or skimming through books, the category of elements and the Grothendieck construction pop up. I don't know anything about the Grothendieck construction, and I don't understand the significance of its special case - the category of elements. This is probably going to be the first in a series of questions about the Grothendieck construction (I'll interlink with later ones if/when I ask them).

My main motivation for asking this question is the excerpt below from Borceux vol II, sec 6.6. I have tried to go into detail about how I don't understand the significance of the category of elements in this context.

The first observation for enriching the notion of limit is the fact in many fundamental results of the previous chapters, we had to deal with a situation like in diagram 6.3.6, where $F,G$ are functors and $\mathsf{Elts}(G)$ is the category of elements of $G$; the limit considered was that of $F\circ \phi _G$ [...]. Restricting one's attention to limits of the form $\varprojlim (F\circ \phi _G)$ is not at all a restriction since, choosing for $G$ the constant functor on the singleton, the category of elements of $G$ is just $\mathscr A$ itself and $\phi _G =1_\mathscr{A}$, so that we recapture the limit of $F$.

But the key observation for enriching the notion of limit is the following fact

Lemma 6.6.1 In the situation which has just been described, there exist bijections natural in $B\in \mathscr B$, $$\mathsf{Nat}(\varDelta_B,F\circ \phi _G)\cong \mathsf{Nat}(G,\mathscr B(B,F-))$$ where $\varDelta _B:\mathsf{Elts}(G)\longrightarrow \mathscr B$ is the constant functor on the object $B\in \mathscr B$.

From this lemma Borceux concludes that $\varprojlim (F\circ \phi_G)$ exists iff $\exists L\in \mathscr B$ with bijections natural in $B$: $$\mathsf{Nat}(G,\mathscr B(B,F-))\cong \mathscr B(B,L)$$ And from this, he almost has to write the definition of a weighted limit.

Alternatively, here's an approach I find somewhat more intuitive, but one that does not explicitly mention the category of elements at all. In classical CT, we define limits using $\varDelta$, which is not available in a general enriched category $\mathsf C$ since $\mathsf C(A,B)$ has no elements to work with. In the unenriched case, one could also try to define $\varDelta$ via the cartesian closed structure of $\mathsf{Cat}$ as a right adjoint of the projection $\pi:\mathsf C\times \mathsf J\longrightarrow \mathsf C$, but this doesn't generalize either since most enriched categories are not cartesian closed. So we're left with trying the representability approach - a limit of $F$ is just a representation of $\mathsf{Nat}(\varDelta-,F)$. Here we can escape the "problems of enrichment" because I think the following holds:

Proposition There's a bijection natural in $X$: $\mathsf{Nat}(\varDelta \ast,\mathsf{Hom}(X,F-))\cong \mathsf{Nat}(\varDelta X,F)$, where $\ast$ is the singleton.

The point is to now only mention the functor $\varDelta \ast$ instead of the general $\varDelta$.

Digression - is the above bijection also natural in $F$? (I think it is.)

Now since $\varprojlim F$ is a representation of $\mathsf{Nat}(\varDelta -,F)$, we can define it as an object with bijections natural in $X$$\mathsf{Hom}(X,\varprojlim F) \cong \mathsf{Nat}(\varDelta \ast,\mathsf{Hom}(X,F-))$$ Now we have reduced the usage of$\varDelta$to the functor$\varDelta \ast$alone. The role of$\varDelta \ast$as a weight is also easily seen, as each component of natural transformation$\eta _A :\varDelta \ast \Rightarrow \mathsf{Hom}(X,F-)$picks out an arrow$X\rightarrow FA$, and so replacing$\varDelta \ast$by say,$\varDelta (\ast\coprod \ast)$would give a "double cone". Replacing$\varDelta \ast$by more general functors$G$would produce more intricate cones. This alternative approach is (I think) completely ignorant of the category of elements, and yet manages to give a nice motivation for the definition of a weighted limit. On the other hand, Borceux's approach just poops it out by category-of-elements-magic. What exactly is happening here? What is the role of the category of elements in this story and why does it effortlessly yield the definition of a weighted limit? • Just on a terminological point, it seems to me quite eccentric of Wikipedia to use one expression ("Grothendieck construction") for the Cat-valued case and a different expression ("category of elements") for the Set-valued case. After all, the former is a categorification of the latter and the latter is a special case of the former. Personally, I use "category of elements" in all situations; it's a good evocative name. (Plus, Grothendieck came up with many constructions.) To some extent Wikipedia is following tradition, but this particular tradition really doesn't deserve to be perpetuated. – Tom Leinster Sep 23 '15 at 0:18 • @TomLeinster, based on the external links, it looks like Wikipedia is following the nLab: ncatlab.org/nlab/show/Grothendieck+construction and ncatlab.org/nlab/show/category+of+elements. – LSpice Sep 25 '15 at 15:52 ## 2 Answers My personal opinion is that the explanations that involve categories of elements (and generally, comma categories) are usually the most natural and intuitive explanations --- one just have to get used to comma categories :-) In the classical set theory (assuming the axiom of choice) there are two ways to describe indexed families of sets. If we denote by$A$the set of indices, then an$A$-indexed family may be equivalently described as: • (pointwise description) a function$G \colon A \rightarrow \mathcal{P}(S)$, where$S$is some set thought of as a universe and$G(a)$is the collection over$a \in A$; under sufficiently strong foundations one may replace sets$\mathcal{P}(S)$by a single global universe$\mathcal{U}$of all (small) sets, • (flat description) a function$g \colon X \rightarrow A$, where for every$a \in A$the collection over$a$described by$g$is$\{x \in X \colon g(x) = a\}$In categorical terms, these two descriptions may be equally presented as: • (pointwise description) a functor$G \colon A \rightarrow \mathbf{Set}$, where$A = A^{op}$is a set thought of as a discrete category. • (flat description) a functor$g \colon X \rightarrow A$, where$X$and$A$are sets thought as of discrete categories. A direct categorification of the above two descriptions gives functors$G \colon A \rightarrow \mathbf{Set}$(or$G \colon A^{op} \rightarrow \mathbf{Set}$depending on the perspective), and discrete opfibrations$g \colon X \rightarrow A$. A direct categorification of the correspondence between flat and pointwise descriptions is the correspondence established by the Grothendieck construction and its inverse. Now, in the definition of a$G$-weighted limit the functor$G \colon \mathbb{A} \rightarrow \mathbf{Set}$says how much every object$A \in \mathbb{A}$weights in the limit of$F$--- it weights exactly$G(A)$, it has to have "$G(A)$uniform (modulo morphisms) copies of itself". If you replace the pointwise indexing$G \colon \mathbb{A} \rightarrow \mathbf{Set}$by the corresponding flat indexing$\phi_G \colon \mathit{Elts}(G) \rightarrow \mathbb{A}$, then you will explicitly encode in$\mathit{Elts}(G)$copies of each$A \in \mathbb{A}$. Therefore, one should expect that the limit of$F \circ \phi_G$is exactly the limit of$F$weighted by$G$. The above, of course, explains why in the classical setting it is sufficient to consider classical (conical) limits only. It does not explain, however, why we should define weighted limits in such a way. Let me offer a more general (and, I think, much simpler) explanation than the usual, which is given in standard textbooks. We should recall that there is another generalisation of the concept of conical limit --- i.e. Kan extension: https://en.wikipedia.org/wiki/Kan_extension The concept of a Kan extension may be defined internally to any 2-category in exactly the same way as in the above link. The point is that in the 2-category of categories$\mathbf{Cat}$, the limit of a functor$F \colon \mathbb{A} \rightarrow \mathbb{B}$can be equally defined as the right Kan extension of$F$along the unique functor to the terminal category$\mathbb{A} \rightarrow 1$. The problem with this definition for general$\mathbb{V}$-enriched categories is the same as has been risen in your question --- the unit category$I$in$\mathbf{Cat}(\mathbb{V})$generally may not be terminal, and there are no reasons to believe in the existence of canonical functors$\mathbb{A} \rightarrow I$from arbitrary$\mathbb{A}$(another problem is that a general 2-cateogry may not be 2-well pointed, so we miss many limits). Anyway, one's first attempt could be to define limits weighted by$G \colon \mathbb{A} \rightarrow I$, as right Kan extensions along$G$. However, the problem with this attempt is that weights of the form$G \colon \mathbb{A} \rightarrow I$are too restrictive for enriched categories. Nonetheless, there is an obvious solution. The crucial observation is that category$\mathbf{Cat}(\mathbb{V})$of$\mathbb{V}$-enriched categories embeds (by a 2-functor, let us call it$J$) into a bigger category$\mathbf{Dist}(\mathbb{V})$of$\mathbb{V}$-enriched categories and distributors. Carrying over one's first attempt from$\mathbf{Cat}(\mathbb{V})$to$\mathbf{Dist}(\mathbb{V})$, one can define weights as distributors$G \colon \mathbb{A} \nrightarrow I$(which, recall, are just functors$G \colon \mathbb{A} \rightarrow \mathbb{V}$), and$G$-weighted limits$\mathit{lim}_G F$of$F$as right Kan extensions of$J(F) = \hom(-, F(=))$along$G$in category$\mathbf{Dist}(\mathbb{V})$. Of course, such right Kan extensions in the category of distributors generally will be distributors of the form$I \nrightarrow \mathbb{B}$. Therefore, we say that limit$\mathit{lim}_G F$exists if it is represented by an actual functor$I \rightarrow \mathbb{B}$(which is, of course, tantamount to an object in$\mathbb{B}$) under embedding$J$. You may easily verify that the above gives the usual definition of weighted limits in the sense of enriched categories. The question is a bit imprecise, so I'm not quite sure whether this will really answer it, but let me try to paint the reduction of weighted colimits to conical colimits in a more "conceptual" light. First of all, your identity$[\mathcal{A},\mathsf{Set}](\Delta \ast, \mathcal{B}(X,F)) \cong [\mathcal{A},\mathcal{B}](\Delta X, F)$is correct; we can write it out in terms of ends:$\int_{A \in \mathcal{A}} [\Delta \ast(A), \mathcal{B}(X,F(A))] = \int_{A \in \mathcal{A}} \mathcal{B}(X,F(A)) = \int_{A \in \mathcal{A}} \mathcal{B}(\Delta X(A), F(A))$Now, let me argue that the key identity is$G = \operatorname{Lan}_{\phi_G} (\Delta \ast)$. This identity implies that the$G$-weighted limit of$F$is the$\Delta \ast$-weighted limit of$F \phi_G$, because we have$[\mathcal{A},\mathsf{Set}](G, \mathcal{B}(X,F)) = [\mathcal{A},\mathsf{Set}](\operatorname{Lan}_{\phi_G} (\Delta \ast), \mathcal{B}(X,F)) = [\mathcal{A},\mathsf{Set}](\Delta \ast, \mathcal{B}(X,F\phi_G))$That is, the defining property of a left Kan extension relates the functor represented by a weighted limit, on the left, to the functor represented by the conical limit, on the right. So from this perspective, the key property of the category of elements is that it allows us to express our copresheaf as the left Kan extension of a constant-at-1 presheaf. I'm not sure whether this is a universal property, but it is reminiscent of the universal property of a subobject classifier, and of a universal property the category of elements does possess -- it is the classifying discrete opfibration. We have a diagram:$\require{AMScd}\$ \begin{CD} \mathsf{el}G @>>> \ast \\ @V \phi_G V V @VV \ast V\\ \mathcal{A} @>>G> \mathsf{Set} \end{CD}

The property I'm pointing out is that the bottom is a left Kan extension, while the usual universal property says that this is a pullback comma square. I'm not quite sure of the relationship.

EDIT Just an additional miscellaneous thought: if this were also true in the enriched setting, then this would tell us for example that every group representation was the induced representation of a trivial representation of some algebra (or rather, algebroid -- and of course, "trivial representation" doesn't even make sense in this generality). This isn't true, but it's still a good strategy to look for representations as subrepresentations of induced representations of trivial representations.

• Your diagram is a comma square, hence is an exact square in the sense of Guitart. This is part of an axiomatic theory of pointwise Kan extensions. – Zhen Lin Sep 25 '15 at 15:23
• Hmm... but I don't think being an exact square, or even a comma square, is enough to make the legs into Kan extensions. This is really kind of puzzling! I think I may post it as an MO question... – Tim Campion Sep 26 '15 at 19:11
• No, of course not. In the first place you have to apply [-, Set] to the diagram. After that you have to chase around a specific object. – Zhen Lin Sep 26 '15 at 23:11