nLab category of elements

Redirected from "Exploding a Category".
Contents

Contents

Idea

The category of elements of a functor F:π’žβ†’SetF \colon \mathcal{C} \to \mathbf{Set} is a category p:el(F)β†’π’žp \colon el(F) \to \mathcal{C} sitting over the domain category π’ž\mathcal{C}, such that the fiber over an object cβˆˆπ’žc \in \mathcal{C} is the set F(c)F(c). Or more precisely, the discrete category disc(F(c))\text{disc}(F(c)).

This is a special case of the Grothendieck construction for covariant functors, by considering sets as discrete categories. There is a similar special case of the Grothendieck construction for contravariant functors which takes a functor F:π’ž opβ†’SetF:\mathcal{C}^{op} \to \mathrm{Set} to a category over π’ž\mathcal{C}. In fact, there is a common construction which generalises these, the so-called two-sided category of elements for a profunctor, which we will discuss later in this article.

We may think of Set as the classifying space of β€œSet-bundles;” see generalized universal bundle. The category of elements of FF is, in this sense, the Set-bundle classified by FF. It comes equipped with a projection to π’ž\mathcal{C} which is a discrete opfibration, and provides an equivalence between Set\mathbf{Set}-valued functors and discrete opfibrations. There is a dual category of elements that applies to contravariant Set\mathbf{Set}-valued functors, i.e. presheaves, and produces discrete fibrations. And the two-sided version applies to profunctors, producing two-sided fibrations.

Forming a category of elements can be thought of as β€œunpacking” a concrete category. For example, consider a concrete category π’ž\mathcal{C} consisting of two objects X,YX,Y and two non-trivial morphisms f,gf,g

The individual elements of X,YX,Y are β€œunpacked” and become objects of the new category. The β€œunpacked” morphisms are inherited in the obvious way from morphisms of π’ž\mathcal{C}.

Note that an β€œunpacked” category of elements can be β€œrepackaged”.

The generalization of the category of elements for functors landing in Cat, rather than just Set\mathbf{Set}, is called the Grothendieck construction.

Definition

For covariant Set-valued functors

Given a functor F:π’žβ†’SetF \colon \mathcal{C} \to \mathbf{Set}, the category of elements el(F)el(F) or El F(π’ž)El_F(\mathcal{C}) (or obvious variations) may be understood in any of these equivalent ways:

  • It is the category whose objects are pairs (c,x)(c,x) where cc is an object in π’ž\mathcal{C} and xx is an element in F(c)F(c) and morphisms (c,x)β†’(cβ€²,xβ€²)(c,x) \to (c',x') are morphisms u:cβ†’cβ€²u \colon c \to c' such that F(u)(x)=xβ€²F(u)(x) = x'.

  • It is the pullback along FF of the universal Set-bundle U:Set *β†’SetU : \mathbf{Set}_* \to \mathbf{Set}

    where UU is the forgetful functor from pointed sets to sets.

  • It is the comma category (*/F)(*/F), where ** is the inclusion of the one-point set *:*β†’Set* \colon * \to \mathbf{Set} and F:π’žβ†’SetF \colon \mathcal{C} \to \mathbf{Set} is itself:

  • Its opposite is the comma category (Y/F)(Y/F), where YY is the Yoneda embedding π’ž opβ†’[π’ž,Set]\mathcal{C}^{op}\to [\mathcal{C},\mathbf{Set}] and FF is the functor *β†’[π’ž,Set]*\to [\mathcal{C},\mathbf{Set}] which picks out FF itself:

El F(π’ž)El_F(\mathcal{C}) is also often written with coend notation as ∫ π’žF\int^\mathcal{C} F, ∫ c:π’žF(c)\int^{c: \mathcal{C}} F(c), or ∫ cF(c)\int^c F(c). This suggests the fact the set of objects of the category of elements is the disjoint union (sum) of all of the sets F(c)F(c).

When π’ž\mathcal{C} is a concrete category and the functor F:π’žβ†’SetF:\mathcal{C}\to \mathbf{Set} is simply the forgetful functor, we can define a functor

Explode(βˆ’)≔El F(βˆ’). Explode(-) \coloneqq El_F(-) \,.

This is intended to illustrate the concept that constructing a category of elements is like β€œunpacking” or β€œexploding” a category into its elements.

For Profunctors

Applying the above construction to a presheaf P:π’ž opβ†’SetP \colon \mathcal{C}^{op} \to \mathbf{Set} produces a category el(P)el(P) with a projection Ο€:el(P)β†’π’ž op\pi \colon el(P) \to \mathcal{C}^{op}. However, the true category of elements for a presheaf is normally taken to have a projection into π’ž\mathcal{C} itself - this can be accomplished by taking the opposite category, producing Ο€ op:el(P) opβ†’π’ž\pi^{op} \colon el(P)^{op} \to \mathcal{C}. In fact, both the covariant and contravariant constructions are special cases of the category of elements of a profunctor, whose construction we now outline.

Take a profunctor PP, viewed as a functor π’ž opΓ—π’Ÿβ†’Set\mathcal{C}^{op} \times \mathcal{D} \to \mathbf{Set}. For cβˆˆπ’ž,dβˆˆπ’Ÿc \in \mathcal{C}, d \in \mathcal{D}, we can view the elements α∈P(c,d)\alpha \in P(c, d) as heteromorphisms Ξ±:c↛d\alpha \colon c \nrightarrow d. The action of the profunctor can be encoded in a β€œcomposition” operation of these heteromorphisms with ordinary morphisms, defining g∘α∘f:c′↛dβ€²:=P(f,g)(Ξ±)g \circ \alpha \circ f \colon c' \nrightarrow d' := P(f, g)(\alpha) for f:cβ€²β†’cf \colon c' \to c and g:dβ†’dβ€²g \colon d \to d'. The unit and associativity laws for this composition operation encode the fact that PP preserves identities and composites.

This gives a nice visual picture for the category of elements of PP - it is a β€œheteromorphic arrow category”! More precisely, it is the category whose objects are triples (c,d,Ξ±)(c, d, \alpha) for cβˆˆπ’ž,dβˆˆπ’Ÿ,α∈P(c,d)c \in \mathcal{C}, d \in \mathcal{D}, \alpha \in P(c, d), and whose morphisms (c,d,Ξ±)β†’(cβ€²,dβ€²,Ξ±β€²)(c, d, \alpha) \to (c', d', \alpha') are pairs f:cβ†’cβ€²,g:dβ†’dβ€²f \colon c \to c', g \colon d \to d' with g∘α=Ξ±β€²βˆ˜fg \circ \alpha = \alpha' \circ f. Much like the arrow category, this has a projection functor Ο€:el(P)β†’π’žΓ—π’Ÿ\pi \colon el(P) \to \mathcal{C} \times \mathcal{D} that is a two-sided fibration.

We also have a coend formula for this category:

el(P)β‰…βˆ« c,dP(c,d)Γ—π’ž/cΓ—d/π’Ÿel(P) \cong \int^{c, d} P(c, d) \times \mathcal{C} / c \times d / \mathcal{D}

, where π’ž/c\mathcal{C}/c is a slice category and d/π’Ÿd / \mathcal{D} is a coslice category.

The category of elements of a set-valued functor F:π’žβ†’SetF \colon \mathcal{C} \to \mathbf{Set} and of a presheaf G:π’ž opβ†’SetG \colon \mathcal{C}^{op} \to \mathbf{Set} then arise as categories of elements of the profunctors 1 opΓ—π’žβ†’Set\mathbf{1}^{op} \times \mathcal{C} \to \mathbf{Set} and π’ž opΓ—1β†’Set\mathcal{C}^{op} \times \mathbf{1} \to \mathbf{Set} respectively, where 1\mathbf{1} is the terminal category.

Properties

The category of elements defines a functor el:Set π’ž opΓ—π’Ÿβ†’Catel \colon \mathbf{Set}^{\mathcal{C}^{op} \times \mathcal{D} } \to \mathbf{Cat}. This is perhaps most obvious when viewing it as an oplax colimit. Furthermore we have:

Remark

The functor el:Set π’ž opΓ—π’Ÿβ†’Catel \colon \mathbf{Set}^{\mathcal{C}^{op} \times \mathcal{D} } \to \mathbf{Cat} is cocontinuous.

It’s easiest to prove this by showing that, in fact, it has a right adjoint:

Theorem

The functor el:Set π’ž opΓ—π’Ÿβ†’Catel \colon \mathbf{Set}^{\mathcal{C}^{op} \times \mathcal{D} } \to \mathbf{Cat} has a right adjoint.

Proof

By a simple coend computation:

Cat(el(P),E) β‰…Cat(∫ c,dΞ΄(P(c,d))Γ—π’ž/cΓ—d/π’Ÿ,E) β‰…βˆ« c,dCat(Ξ΄(P(c,d))Γ—π’ž/cΓ—d/π’Ÿ,E) β‰…βˆ« c,dSet(P(c,d),[π’ž/cΓ—d/π’Ÿ,E] 0) β‰…Set π’ž opΓ—π’Ÿ(P,K(E)) \begin{aligned} \mathbf{Cat}(el(P), E) &\cong \mathbf{Cat}\left( \int^{c, d} \delta(P(c, d)) \times \mathcal{C}/c \times d/\mathcal{D}, E \right) \\ &\cong \int_{c, d} \mathbf{Cat} \big ( \delta(P(c, d)) \times \mathcal{C}/c \times d /\mathcal{D}, E \big) \\ &\cong \int_{c, d} \mathbf{Set} \big ( P(c, d), [\mathcal{C}/c \times d/\mathcal{D}, E]_0 \big) \\ &\cong \mathbf{Set}^{\mathcal{C}^{op} \times \mathcal{D} }(P, K(E)) \end{aligned}

where K(E):(c,d)↦[π’ž/cΓ—d/π’Ÿ,E] 0K(E) \colon (c, d) \mapsto [\mathcal{C}/c \times d/\mathcal{D}, E]_0, sending a pair (c,d)(c, d) to the set of objects of the functor category [π’ž/cΓ—d/π’Ÿ,E][\mathcal{C}/c \times d/\mathcal{D}, E].

Now for any π’ž,π’Ÿ\mathcal{C}, \mathcal{D}, the terminal object of Set π’ž opΓ—π’Ÿ\mathbf{Set}^{\mathcal{C}^{op} \times \mathcal{D}} is the functor Ξ”1\Delta 1 constant at the point. The category of elements of Ξ”1\Delta 1 is easily seen to be just π’žΓ—π’Ÿ\mathcal{C} \times \mathcal{D} itself, so the unique transformation Pβ†’Ξ”1P \to \Delta 1 induces a projection functor Ο€ P:el(P)β†’π’žΓ—π’Ÿ\pi_P: el(P) \to \mathcal{C} \times \mathcal{D} defined by (c,d,Ξ±)↦(c,d)(c,d,\alpha)\mapsto (c, d) and (f,g)↦(f,g)(f, g) \mapsto (f, g). The projection functor is a two-sided fibration, and can be viewed also as a π’ž opΓ—π’Ÿ\mathcal{C}^{op} \times \mathcal{D}-indexed family of sets. When we regard el(P)\el(P) as equipped with Ο€ P\pi_P, we have an embedding of Set π’ž opΓ—π’Ÿ\mathbf{Set}^{\mathcal{C}^{op} \times \mathcal{D} } into Cat/(π’žΓ—π’Ÿ)\mathbf{Cat}/(\mathcal{C} \times \mathcal{D}).

Note that the canonical projection el(P)β†’π’žΓ—π’Ÿel(P) \to \mathcal{C} \times \mathcal{D} is not usually full. For example, let Bβ„•\mathbf{B}\mathbb{N} be the one-object category which carries the monoid (β„•,+)(\mathbb{N}, +) as its endomorphism monoid, and let FF be the action of (β„•,+)(\mathbb{N}, +) on the set β„•\mathbb{N} by n.m=m+nn.m = m + n. Then the image of any hom-set between k,kβ€²k, k' is a subsingleton subset of β„•\mathbb{N}.

More generally, the universal covering groupoid of a groupoid is just the category of elements of its action on itself by composition. Since this action is faithful and transitive, hom-sets in the category of elements are always 00 or 11, while objects in the groupoid might have nontrivial automorphism groups.

Categories of elements of set-valued functors and presheaves have a close tie to representability:

Proposition

The category of elements of FF has an initial object if and only if FF is a representable functor. In this case, if the initial object is (i∈F(x))(i \in F(x)), then FF is isomorphic to the functor hom(x,βˆ’)\hom(x,-).

Examples

Pointed Sets

Perhaps the simplest example of a category of elements comes from the identity functor Setβ†’Set\mathbf{Set} \to \mathbf{Set}. The objects of this category are (A,a)(A, a) where AA is a set and a∈Aa \in A. And morphisms (A,a)β†’(B,b)(A, a) \to (B, b) are functions f:Aβ†’Bf \colon A \to B with f(a)=bf(a) = b. This is precisely the category of pointed sets! We recognise this as the β€œuniversal set bundle” U:Set *β†’SetU \colon \mathbf{Set}_* \to \mathbf{Set}.

Representable Presheaves

Let Y(c):π’ž opβ†’SetY(c):\mathcal{C}^{op}\to \mathbf{Set} be a representable presheaf with Y(c)(d)=Hom π’ž(d,c)Y(c)(d)=Hom_{\mathcal{C}}(d,c). Consider the contravariant category of elements ∫ π’žY(c)\int_\mathcal{C} Y(c) . This has objects (d 1,p 1)(d_1,p_1) with p 1∈Y(c)(d 1)p_1\in Y(c)(d_1), hence p 1p_1 is just an arrow d 1β†’cd_1\to c in π’ž\mathcal{C}. A map from (d 1,p 1)(d_1, p_1) to (d 2,p 2)(d_2, p_2) is just a map u:d 1β†’d 2u:d_1\to d_2 such that p 2∘u=p 1p_2\circ u =p_1 but this is just a morphism from p 1p_1 to p 2p_2 in the slice category π’ž/c\mathcal{C}/c. Accordingly we see that ∫ π’žY(c)β‰ƒπ’ž/c\int_\mathcal{C} Y(c)\simeq \mathcal{C}/c .

This equivalence comes in handy when one wants to compute slices of presheaf toposes over representable presheaves Y(c)Y(c) since PSh(∫ π’žF)≃PSh(π’ž)/FPSh(\int_\mathcal{C} F) \simeq PSh(\mathcal{C})/F in general for presheaves F:π’ž opβ†’SetF:\mathcal{C}^{op}\to \mathbf{Set} , whence PSh(π’ž)/Y(c)≃PSh(π’ž/c)PSh(\mathcal{C})/Y(c) \simeq PSh(\mathcal{C}/c) . An instructive example of this construction is spelled out in detail at hypergraph.

Action Groupoid

In the case that π’ž=BG\mathcal{C} = \mathbf{B}G is the delooping groupoid of a group GG, a functor Ο±:BGβ†’Set\varrho : \mathbf{B}G \to \mathbf{Set} is a permutation representation XX of GG and its category of elements is the corresponding action groupoid X//GX/\!/G.

Proof

This is easily seen in terms of the characterization el(Ο±)β‰…(*/Ο±)el(\varrho)\cong (*/\varrho), the category having as objects triples (*,*;*β†’Ο±(*)=X)(*,*; *\to \varrho(*)=X), namely elements of the set X=Ο±(*)X=\varrho(*), and as arrows xβ†’yx\to y those g∈BGg\in \mathbf{B}G such that

commutes, namely g.x=Ο±(g)(x)=yg . x=\varrho(g)(x)=y. We can also present the right adjoint to el(βˆ’)el(-): one must consider the functor J:BG opβ†’CatJ\colon \mathbf{B}G^{op}\to \mathbf{Cat}, which represents GG in Cat\mathbf{Cat}, and sends the unique object *∈BG*\in \mathbf{B}G to */BGβ‰…G//G*/\mathbf{B}G\cong G/\!/G, the left action groupoid of GG. The functor JJ sends h∈Gh\in G to an automorphism of G//GG/\!/G, obtained multiplying on the right xβ†’gxx\to g x to xhβ†’xghx h\to x g h.

Now for any category DD, K(D)(*)K( D)(*) is exactly the set of functors [G//G,D][G/\!/G, D], which inherits from G//GG/\!/G an obvious action: given F∈[G//G,D]F\in [G/\!/G, D] we define F h=J(h) *F=F∘J(h):g↦F(gh)F^h=J(h)^*F=F \circ J(h) \colon g \mapsto F(g h).

Category of Simplices

For a simplicial set regarded as a presheaf on the simplex category, the corresponding category of elements is called its category of simplices. See there for more.

Category of Cones

Let J:Iβ†’CJ \colon I \to C be a diagram. Then we can define a presheaf Cone J:C opβ†’SetCone_J \colon C^{op} \to \mathbf{Set} mapping c∈Cc \in C to the set of cones over JJ with tip cc, with the functorial action given by precomposition of cone morphisms. The category of elements of this presheaf is precisely the category of cones over JJ!

Thus, we observe that this presheaf is representable if and only if the category of cones has a terminal object - or, in more familiar terms, JJ has a limit if and only if there exists a universal cone.

Comma Categories

Let F:Cβ†’EF \colon C \to E and G:Dβ†’EG \colon D \to E be functors. We can form a profunctor P:C opΓ—Dβ†’SetP \colon C^{op} \times D \to \mathbf{Set} by defining P(c,d)≔E(F(c),G(d))P(c, d) \coloneqq E(F(c), G(d)), the set of morphisms in EE between F(c)F(c) and G(d)G(d). We can use the functorial actions of FF and GG to β€œcompose” these heteromorphisms with ordinary morphisms f:cβ€²β†’c,g:dβ†’dβ€²f \colon c' \to c, g \colon d \to d', sending Ξ±:F(c)β†’G(d)\alpha \colon F(c) \to G(d) to G(g)∘α∘F(f):F(cβ€²)β†’G(dβ€²)G(g) \circ \alpha \circ F(f) \colon F(c') \to G(d'), which defines the action of PP on morphisms.

Then, the category of elements of this profunctor is precisely the comma category F↓GF \downarrow G! Which has a projection functor Ο€ P:el(P)β†’CΓ—D\pi_P \colon el(P) \to C \times D that forms a two-sided fibration.

As a special case, taking the category of elements of Hom:C opΓ—Cβ†’SetHom : C^{op} \times C \to \mathbf{Set}, viewed as a profunctor from CC to CC, produces the familiar arrow category. On the other hand, if we simply apply the ordinary β€œcovariant” category of elements construction to produce a category with a projection to C opΓ—CC^{op} \times C, we obtain the twisted arrow category.

This illustrates an important general point - when taking the category of elements of a functor, it’s not enough to simply specify the domain. We need to specify it as a profunctor with chosen domain and codomain categories, so that the resulting heteromorphisms have the desired domain and codomain, and we get the correct kind of projection.

Reference

A very nice introduction emphasizing the connections to monoid theory is ch. 12 of

Last revised on February 4, 2026 at 09:52:50. See the history of this page for a list of all contributions to it.