The comma category of two functors and is like an arrow category of where all arrows have their source in the image of and their target in the image of (and the morphisms between arrows keep track of how these sources and targets are in these images). It is a kind of 2-pullback: a directed refinement of the homotopy pullback of two functors between groupoids.
We discuss three equivalent definitions of comma categories
The terminology “comma category” is a holdover from the original notation for such a category, which generalises or for a hom-set.
Another common notation for the comma category is . The original notation, from which the terminology is derived, is , but this is rarely used any more.
If and are functors, their comma category is the category whose
objects are triples where , , and is a morphism in , and whose
morphisms from to are pairs , where and are morphisms in and , respectively, such that .
Let be the (directed) interval category and the functor category.
The comma category is the pullback
(in the 1-category Cat of categories).
Compare this with the construction at generalized universal bundle and with the definition of loop space object.
Alternatively, the comma category is the “lax pullback” – or rather the comma object (see the discussion at 2-limit) of the pullback diagram,
i.e. the universal cone that commutes up to a natural transformation
In terms of the imagery of loop spaces objects, the comma category is the category of directed paths in which start in the image of and end in the image of .
If and are both the identity functor of a category , then is the category of arrows in .
If is the identity functor of and is the inclusion of an object , then is the slice category .
Likewise if is the identity and is the inclusion of , then is the coslice category .
The comma category comes with a canonical 2-cell in the square
which is universal in the 2-category Cat; that is, it is an example of a 2-limit (in fact, it is a strict 2-limit). Squares with the same universal property in an arbitrary 2-category are called comma squares and their top left vertex is called a comma object.
See at
a low-tech description with several special cases identified in somewhat archaic terminology