Lably
Skip to content

Comma category

  • 7 min read
  • 3 chapters

Related on Lably

Through Mathematics, Category (mathematics) and Algebraic structure

Definition

The most general comma category construction involves two functors with the same codomain. Often one of these will have domain 1 (the one-object one-morphism category). Some accounts of category theory consider only these special cases, but the term comma category is actually much more general.

General form

Suppose that A, B, and C are categories, and S and T (for source and target) are functors:

A→SC←TB

We can form the comma category (S↓T) as follows:

  • The objects are all triples (A,B,h) with A an object in A, B an object in B, and h:S(A)→T(B) a morphism in C.
  • The morphisms from (A,B,h) to (A′,B′,h′) are all pairs (f,g) where f:A→A′ and g:B→B′ are morphisms in A and B respectively, such that the following diagram commutes:

Morphisms are composed by taking (f′,g′)∘(f,g) to be (f′∘f,g′∘g), whenever the latter expression is defined. The identity morphism on an object (A,B,h) is (idA,idB).

Slice category

The first special case occurs when C=A, the functor S is the identity functor, and B=1 (the category with one object ∗ and one morphism). Then T(∗)=A∗ for some object A∗ in A.

A→idAA←A∗1

In this case, the comma category is written (A↓A∗), and is often called the slice category over A∗ or the category of objects over A∗. The objects (A,∗,h) can be simplified to pairs (A,h), where h:A→A∗. Sometimes, h is denoted by πA. A morphism (f,id∗) from (A,πA) to (A′,πA′) in the slice category can then be simplified to an arrow f:A→A′ making the following diagram commute:

Coslice category

The dual concept to a slice category is a coslice category. Here, C=B, S has domain 1 and T is an identity functor.

1→B∗B←idBB

In this case, the comma category is often written (B∗↓B), where B∗=S(∗) is the object of B selected by S. It is called the coslice category with respect to B∗, or the category of objects under B∗. The objects are pairs (B,ιB) with ιB:B∗→B. Given (B,ιB) and (B′,ιB′), a morphism in the coslice category is a map g:B→B′ making the following diagram commute:

Arrow category

S and T are identity functors on C (so A=B=C).

C→idCC←idCC

In this case, the comma category is the arrow category C→. Its objects are the morphisms of C, and its morphisms are commuting squares in C.

Other variations

In the case of the slice or coslice category, the identity functor may be replaced with some other functor; this yields a family of categories particularly useful in the study of adjoint functors. For example, if T is the forgetful functor mapping an abelian group to its underlying set, and s is some fixed set (regarded as a functor from 1), then the comma category (s↓T) has objects that are maps from s to a set underlying a group. This relates to the left adjoint of T, which is the functor that maps a set to the free abelian group having that set as its basis. In particular, the initial object of (s↓T) is the canonical injection s→T(G), where G is the free group generated by s.

An object of (s↓T) is called a morphism from s to T or a T-structured arrow with domain s. An object of (S↓t) is called a morphism from S to t or a S-costructured arrow with codomain t.

Another special case occurs when both S and T are functors with domain 1. If S(∗)=A and T(∗)=B, then the comma category (S↓T), written (A↓B), is the discrete category whose objects are morphisms from A to B.

An inserter category is a (non-full) subcategory of the comma category where A=B and f=g are required. The comma category can also be seen as the inserter of S∘π1 and T∘π2, where π1 and π2 are the two projection functors out of the product category A×B.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Foundations