# Nerve (category theory)

In category theory, a discipline within mathematics, the **nerve** *N*(*C*) of a small category *C* is a simplicial set constructed from the objects and morphisms of *C*. The geometric realization of this simplicial set is a topological space, called the **classifying space of the category** *C*. These closely related objects can provide information about some familiar and useful categories using algebraic topology, most often homotopy theory.

## Motivation

The nerve of a category is often used to construct topological versions of moduli spaces. If *X* is an object of *C*, its moduli space should somehow encode all objects isomorphic to *X* and keep track of the various isomorphisms between all of these objects in that category. This can become rather complicated, especially if the objects have many non-identity automorphisms. The nerve provides a combinatorial way of organizing this data. Since simplicial sets have a good homotopy theory, one can ask questions about the meaning of the various homotopy groups π_{n}(*N*(*C*)). One hopes that the answers to such questions provide interesting information about the original category *C*, or about related categories.

The notion of nerve is a direct generalization of the classical notion of classifying space of a discrete group; see below for details.

## Construction

Let *C* be a small category. It is easy to define the sets *N*(*C*)_{k} for small *k*, which leads to the general definition. In particular, there is a 0-simplex of *N*(*C*) for each object of *C*. There is a 1-simplex for each morphism *f* : *x* → *y* in *C*. Now suppose that *f*: *x* → *y* and *g* : *y* → *z* are morphisms in *C*. Then we also have their composition *gf* : *x* → *z*.

The diagram suggests our course of action: add a 2-simplex for this commutative triangle. Every 2-simplex of *N*(*C*) comes from a pair of composable morphisms in this way. Note that the addition of these 2-simplices does not erase or otherwise disregard morphisms obtained by composition, it merely remembers that that is how they arise.

In general, *N*(*C*)_{k} consists of the *k*-tuples of composable morphisms

of *C*. To complete the definition of *N*(*C*) as a simplicial set, we must also specify the face and degeneracy maps. These are also provided to us by the structure of *C* as a category. The face maps

are given by composition of morphisms at the *i*th object (or removing the *i*th object from the sequence, when *i* is 0 or *k*).^{[1]} This means that *d*_{i} sends the *k*-tuple

to the (*k* − 1)-tuple

That is, the map *d*_{i} composes the morphisms *A*_{i−1} → *A*_{i} and *A*_{i} → *A*_{i+1} into the morphism *A*_{i−1} → *A*_{i+1}, yielding a (*k* − 1)-tuple for every *k*-tuple.

Similarly, the degeneracy maps

are given by inserting an identity morphism at the object *A*_{i}.

Recall that simplicial sets may also be regarded as functors Δ^{op} → **Set**, where Δ is the category of totally ordered finite sets and order-preserving morphisms. Every partially ordered set *P* yields a (small) category *i*(*P*) with objects the elements of *P* and with a unique morphism from *p* to *q* whenever *p* ≤ *q* in *P*. We thus obtain a functor *i* from the category Δ to the category of small categories. We can now describe the nerve of the category *C* as the functor Δ^{op} → **Set**

This description of the nerve makes functoriality quite transparent; for example, a functor between small categories *C* and *D* induces a map of simplicial sets *N*(*C*) → *N*(*D*). Moreover a natural transformation between two such functors induces a homotopy between the induced maps. This observation can be regarded as the beginning of one of the principles of higher category theory. It follows that adjoint functors induce homotopy equivalences. In particular, if *C* has an initial or final object, its nerve is contractible.

## Examples

The primordial example is the classifying space of a discrete group *G*. We regard *G* as a category with one object whose endomorphisms are the elements of *G*. Then the *k*-simplices of *N*(*G*) are just *k*-tuples of elements of *G*. The face maps act by multiplication, and the degeneracy maps act by insertion of the identity element. If *G* is the group with two elements, then there is exactly one nondegenerate *k*-simplex for each nonnegative integer *k*, corresponding to the unique *k*-tuple of elements of *G* containing no identities. After passing to the geometric realization, it is not hard to see that this *k*-tuple can be identified with the unique *k*-cell in the usual CW structure on infinite-dimensional real projective space. The latter is the most popular model for the classifying space of the group with two elements. See (Segal 1968) for further details and the relationship of the above to Milnor's join construction of *BG*.

### Most spaces are classifying spaces

It is well known that every "reasonable" topological space is homeomorphic to the classifying space of a small category. Here, "reasonable" means that the space in question is the geometric realization of a simplicial set. This is obviously a necessary condition; it is perhaps surprising that it is also sufficient. Indeed, let *X* be the geometric realization of a simplicial set *K*. The set of simplices in *K* is partially ordered, by the relation *x* ≤ *y* if and only if *x* is a face of *y*. Of course, we may consider this partially ordered set as a category. The nerve of this category is the barycentric subdivision of *K*, and thus its realization is homeomorphic to *X*, because *X* is the realization of *K* by hypothesis and barycentric subdivision does not change the homeomorphism type of the realization.

### The nerve of an open covering

{{#invoke:main|main}}

If *X* is a topological space with open cover *U*_{i}, the nerve of the cover is obtained from the above definitions by replacing the cover with the category obtained by regarding the cover as a partially ordered set with relation that of set inclusion. Note that the realization of this nerve is not generally homeomorphic to *X* (or even homotopy equivalent).

### A moduli example

One can use the nerve construction to recover mapping spaces, and even get "higher-homotopical" information about maps. Let *D* be a category, and let *X* and *Y* be objects of *D*. One is often interested in computing the set of morphisms *X* → *Y*. We can use a nerve construction to recover this set. Let *C* = *C*(*X*,*Y*) be the category whose objects are diagrams

such that the morphisms *U* → *X* and *Y* → *V* are isomorphisms in *D*. Morphisms in *C*(*X*, *Y*) are diagrams of the following shape:

Here, the indicated maps are to be isomorphisms or identities. The nerve of *C*(*X*, *Y*) is the moduli space of maps *X* → *Y*. In the appropriate model category setting, this moduli space is weak homotopy equivalent to the simplicial set of morphisms of *D* from *X* to *Y*.

## References

- ↑ The
*i*th face of the simplex is then the one missing the*i*th vertex.

- Blanc, D., W. G. Dwyer, and P.G. Goerss. "The realization space of a -algebra: a moduli problem in algebraic topology." Topology 43 (2004), no. 4, 857–892.
- Goerss, P. G., and M. J. Hopkins. "Moduli spaces of commutative ring spectra."
*Structured ring spectra*, 151–200, London Math. Soc. Lecture Note Ser., 315, Cambridge Univ. Press, Cambridge, 2004. - Segal, Graeme. "Classifying spaces and spectral sequences." Inst. Hautes Études Sci. Publ. Math. No. 34 (1968) 105–112.
- Template:Nlab