Comma category

Mathematics construct

In mathematics, a comma category (a special case being a slice category) is a construction in category theory. It provides another way of looking at morphisms: instead of simply relating objects of a category to one another, morphisms become objects in their own right. This notion was introduced in 1963 by F. W. Lawvere (Lawvere, 1963 p. 36), although the technique did not[citation needed] become generally known until many years later. Several mathematical concepts can be treated as comma categories. Comma categories also guarantee the existence of some limits and colimits. The name comes from the notation originally used by Lawvere, which involved the comma punctuation mark. The name persists even though standard notation has changed, since the use of a comma as an operator is potentially confusing, and even Lawvere dislikes the uninformative term "comma category" (Lawvere, 1963 p. 13).

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 {\displaystyle {\mathcal {A}}} , B {\displaystyle {\mathcal {B}}} , and C {\displaystyle {\mathcal {C}}} are categories, and S {\displaystyle S} and T {\displaystyle T} (for source and target) are functors:

A S C T B {\displaystyle {\mathcal {A}}{\xrightarrow {\;\;S\;\;}}{\mathcal {C}}{\xleftarrow {\;\;T\;\;}}{\mathcal {B}}}

We can form the comma category ( S T ) {\displaystyle (S\downarrow T)} as follows:

  • The objects are all triples ( A , B , h ) {\displaystyle (A,B,h)} with A {\displaystyle A} an object in A {\displaystyle {\mathcal {A}}} , B {\displaystyle B} an object in B {\displaystyle {\mathcal {B}}} , and h : S ( A ) T ( B ) {\displaystyle h:S(A)\rightarrow T(B)} a morphism in C {\displaystyle {\mathcal {C}}} .
  • The morphisms from ( A , B , h ) {\displaystyle (A,B,h)} to ( A , B , h ) {\displaystyle (A',B',h')} are all pairs ( f , g ) {\displaystyle (f,g)} where f : A A {\displaystyle f:A\rightarrow A'} and g : B B {\displaystyle g:B\rightarrow B'} are morphisms in A {\displaystyle {\mathcal {A}}} and B {\displaystyle {\mathcal {B}}} respectively, such that the following diagram commutes:
Comma Diagram
Comma Diagram

Morphisms are composed by taking ( f , g ) ( f , g ) {\displaystyle (f',g')\circ (f,g)} to be ( f f , g g ) {\displaystyle (f'\circ f,g'\circ g)} , whenever the latter expression is defined. The identity morphism on an object ( A , B , h ) {\displaystyle (A,B,h)} is ( i d A , i d B ) {\displaystyle (\mathrm {id} _{A},\mathrm {id} _{B})} .

Slice category

The first special case occurs when C = A {\displaystyle {\mathcal {C}}={\mathcal {A}}} , the functor S {\displaystyle S} is the identity functor, and B = 1 {\displaystyle {\mathcal {B}}={\textbf {1}}} (the category with one object {\displaystyle *} and one morphism). Then T ( ) = A {\displaystyle T(*)=A_{*}} for some object A {\displaystyle A_{*}} in A {\displaystyle {\mathcal {A}}} .

A i d A A A 1 {\displaystyle {\mathcal {A}}\xrightarrow {\;\;\mathrm {id} _{\mathcal {A}}\;\;} {\mathcal {A}}\xleftarrow {\;\;A_{*}\;\;} {\textbf {1}}}

In this case, the comma category is written ( A A ) {\displaystyle ({\mathcal {A}}\downarrow A_{*})} , and is often called the slice category over A {\displaystyle A_{*}} or the category of objects over A {\displaystyle A_{*}} . The objects ( A , , h ) {\displaystyle (A,*,h)} can be simplified to pairs ( A , h ) {\displaystyle (A,h)} , where h : A A {\displaystyle h:A\rightarrow A_{*}} . Sometimes, h {\displaystyle h} is denoted by π A {\displaystyle \pi _{A}} . A morphism ( f , i d ) {\displaystyle (f,\mathrm {id} _{*})} from ( A , π A ) {\displaystyle (A,\pi _{A})} to ( A , π A ) {\displaystyle (A',\pi _{A'})} in the slice category can then be simplified to an arrow f : A A {\displaystyle f:A\rightarrow A'} making the following diagram commute:

Slice Diagram
Slice Diagram

Coslice category

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

1 B B i d B B {\displaystyle {\textbf {1}}\xrightarrow {\;\;B_{*}\;\;} {\mathcal {B}}\xleftarrow {\;\;\mathrm {id} _{\mathcal {B}}\;\;} {\mathcal {B}}}

In this case, the comma category is often written ( B B ) {\displaystyle (B_{*}\downarrow {\mathcal {B}})} , where B = S ( ) {\displaystyle B_{*}=S(*)} is the object of B {\displaystyle {\mathcal {B}}} selected by S {\displaystyle S} . It is called the coslice category with respect to B {\displaystyle B_{*}} , or the category of objects under B {\displaystyle B_{*}} . The objects are pairs ( B , ι B ) {\displaystyle (B,\iota _{B})} with ι B : B B {\displaystyle \iota _{B}:B_{*}\rightarrow B} . Given ( B , ι B ) {\displaystyle (B,\iota _{B})} and ( B , ι B ) {\displaystyle (B',\iota _{B'})} , a morphism in the coslice category is a map g : B B {\displaystyle g:B\rightarrow B'} making the following diagram commute:

Coslice Diagram
Coslice Diagram

Arrow category

S {\displaystyle S} and T {\displaystyle T} are identity functors on C {\displaystyle {\mathcal {C}}} (so A = B = C {\displaystyle {\mathcal {A}}={\mathcal {B}}={\mathcal {C}}} ).

C i d C C i d C C {\displaystyle {\mathcal {C}}\xrightarrow {\;\;\mathrm {id} _{\mathcal {C}}\;\;} {\mathcal {C}}\xleftarrow {\;\;\mathrm {id} _{\mathcal {C}}\;\;} {\mathcal {C}}}

In this case, the comma category is the arrow category C {\displaystyle {\mathcal {C}}^{\rightarrow }} . Its objects are the morphisms of C {\displaystyle {\mathcal {C}}} , and its morphisms are commuting squares in C {\displaystyle {\mathcal {C}}} .[1]

Arrow Diagram
Arrow Diagram

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 {\displaystyle T} is the forgetful functor mapping an abelian group to its underlying set, and s {\displaystyle s} is some fixed set (regarded as a functor from 1), then the comma category ( s T ) {\displaystyle (s\downarrow T)} has objects that are maps from s {\displaystyle s} to a set underlying a group. This relates to the left adjoint of T {\displaystyle 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 ) {\displaystyle (s\downarrow T)} is the canonical injection s T ( G ) {\displaystyle s\rightarrow T(G)} , where G {\displaystyle G} is the free group generated by s {\displaystyle s} .

An object of ( s T ) {\displaystyle (s\downarrow T)} is called a morphism from s {\displaystyle s} to T {\displaystyle T} or a T {\displaystyle T} -structured arrow with domain s {\displaystyle s} .[1] An object of ( S t ) {\displaystyle (S\downarrow t)} is called a morphism from S {\displaystyle S} to t {\displaystyle t} or a S {\displaystyle S} -costructured arrow with codomain t {\displaystyle t} .[1]

Another special case occurs when both S {\displaystyle S} and T {\displaystyle T} are functors with domain 1 {\displaystyle {\textbf {1}}} . If S ( ) = A {\displaystyle S(*)=A} and T ( ) = B {\displaystyle T(*)=B} , then the comma category ( S T ) {\displaystyle (S\downarrow T)} , written ( A B ) {\displaystyle (A\downarrow B)} , is the discrete category whose objects are morphisms from A {\displaystyle A} to B {\displaystyle B} .

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

Properties

For each comma category there are forgetful functors from it.

  • Domain functor, S T A {\displaystyle S\downarrow T\to {\mathcal {A}}} , which maps:
    • objects: ( A , B , h ) A {\displaystyle (A,B,h)\mapsto A} ;
    • morphisms: ( f , g ) f {\displaystyle (f,g)\mapsto f} ;
  • Codomain functor, S T B {\displaystyle S\downarrow T\to {\mathcal {B}}} , which maps:
    • objects: ( A , B , h ) B {\displaystyle (A,B,h)\mapsto B} ;
    • morphisms: ( f , g ) g {\displaystyle (f,g)\mapsto g} .
  • Arrow functor, S T C {\displaystyle S\downarrow T\to {\mathcal {C}}^{\rightarrow }} , which maps:
    • objects: ( A , B , h ) h {\displaystyle (A,B,h)\mapsto h} ;
    • morphisms: ( f , g ) ( S f , T g ) {\displaystyle (f,g)\mapsto (Sf,Tg)} ;

Examples of use

Some notable categories

Several interesting categories have a natural definition in terms of comma categories.

  • The category of pointed sets is a comma category, ( S e t ) {\displaystyle \scriptstyle {(\bullet \downarrow \mathbf {Set} )}} with {\displaystyle \scriptstyle {\bullet }} being (a functor selecting) any singleton set, and S e t {\displaystyle \scriptstyle {\mathbf {Set} }} (the identity functor of) the category of sets. Each object of this category is a set, together with a function selecting some element of the set: the "basepoint". Morphisms are functions on sets which map basepoints to basepoints. In a similar fashion one can form the category of pointed spaces ( T o p ) {\displaystyle \scriptstyle {(\bullet \downarrow \mathbf {Top} )}} .
  • The category of associative algebras over a ring R {\displaystyle R} is the coslice category ( R R i n g ) {\displaystyle \scriptstyle {(R\downarrow \mathbf {Ring} )}} , since any ring homomorphism f : R S {\displaystyle f:R\to S} induces an associative R {\displaystyle R} -algebra structure on S {\displaystyle S} , and vice versa. Morphisms are then maps h : S T {\displaystyle h:S\to T} that make the diagram commute.
  • The category of graphs is ( S e t D ) {\displaystyle \scriptstyle {(\mathbf {Set} \downarrow D)}} , with D : S e t S e t {\displaystyle \scriptstyle {D:\,\mathbf {Set} \rightarrow \mathbf {Set} }} the functor taking a set s {\displaystyle s} to s × s {\displaystyle s\times s} . The objects ( a , b , f ) {\displaystyle (a,b,f)} then consist of two sets and a function; a {\displaystyle a} is an indexing set, b {\displaystyle b} is a set of nodes, and f : a ( b × b ) {\displaystyle f:a\rightarrow (b\times b)} chooses pairs of elements of b {\displaystyle b} for each input from a {\displaystyle a} . That is, f {\displaystyle f} picks out certain edges from the set b × b {\displaystyle b\times b} of possible edges. A morphism in this category is made up of two functions, one on the indexing set and one on the node set. They must "agree" according to the general definition above, meaning that ( g , h ) : ( a , b , f ) ( a , b , f ) {\displaystyle (g,h):(a,b,f)\rightarrow (a',b',f')} must satisfy f g = D ( h ) f {\displaystyle f'\circ g=D(h)\circ f} . In other words, the edge corresponding to a certain element of the indexing set, when translated, must be the same as the edge for the translated index.
  • Many "augmentation" or "labelling" operations can be expressed in terms of comma categories. Let S {\displaystyle S} be the functor taking each graph to the set of its edges, and let A {\displaystyle A} be (a functor selecting) some particular set: then ( S A ) {\displaystyle (S\downarrow A)} is the category of graphs whose edges are labelled by elements of A {\displaystyle A} . This form of comma category is often called objects S {\displaystyle S} -over A {\displaystyle A} - closely related to the "objects over A {\displaystyle A} " discussed above. Here, each object takes the form ( B , π B ) {\displaystyle (B,\pi _{B})} , where B {\displaystyle B} is a graph and π B {\displaystyle \pi _{B}} a function from the edges of B {\displaystyle B} to A {\displaystyle A} . The nodes of the graph could be labelled in essentially the same way.
  • A category is said to be locally cartesian closed if every slice of it is cartesian closed (see above for the notion of slice). Locally cartesian closed categories are the classifying categories of dependent type theories.

Limits and universal morphisms

Limits and colimits in comma categories may be "inherited". If A {\displaystyle {\mathcal {A}}} and B {\displaystyle {\mathcal {B}}} are complete, T : B C {\displaystyle T:{\mathcal {B}}\rightarrow {\mathcal {C}}} is a continuous functor, and S : A C {\displaystyle S\colon {\mathcal {A}}\rightarrow {\mathcal {C}}} is another functor (not necessarily continuous), then the comma category ( S T ) {\displaystyle (S\downarrow T)} produced is complete,[2] and the projection functors ( S T ) A {\displaystyle (S\downarrow T)\rightarrow {\mathcal {A}}} and ( S T ) B {\displaystyle (S\downarrow T)\rightarrow {\mathcal {B}}} are continuous. Similarly, if A {\displaystyle {\mathcal {A}}} and B {\displaystyle {\mathcal {B}}} are cocomplete, and S : A C {\displaystyle S:{\mathcal {A}}\rightarrow {\mathcal {C}}} is cocontinuous, then ( S T ) {\displaystyle (S\downarrow T)} is cocomplete, and the projection functors are cocontinuous.

For example, note that in the above construction of the category of graphs as a comma category, the category of sets is complete and cocomplete, and the identity functor is continuous and cocontinuous. Thus, the category of graphs is complete and cocomplete.

The notion of a universal morphism to a particular colimit, or from a limit, can be expressed in terms of a comma category. Essentially, we create a category whose objects are cones, and where the limiting cone is a terminal object; then, each universal morphism for the limit is just the morphism to the terminal object. This works in the dual case, with a category of cocones having an initial object. For example, let C {\displaystyle {\mathcal {C}}} be a category with F : C C × C {\displaystyle F:{\mathcal {C}}\rightarrow {\mathcal {C}}\times {\mathcal {C}}} the functor taking each object c {\displaystyle c} to ( c , c ) {\displaystyle (c,c)} and each arrow f {\displaystyle f} to ( f , f ) {\displaystyle (f,f)} . A universal morphism from ( a , b ) {\displaystyle (a,b)} to F {\displaystyle F} consists, by definition, of an object ( c , c ) {\displaystyle (c,c)} and morphism ρ : ( a , b ) ( c , c ) {\displaystyle \rho :(a,b)\rightarrow (c,c)} with the universal property that for any morphism ρ : ( a , b ) ( d , d ) {\displaystyle \rho ':(a,b)\rightarrow (d,d)} there is a unique morphism σ : c d {\displaystyle \sigma :c\rightarrow d} with F ( σ ) ρ = ρ {\displaystyle F(\sigma )\circ \rho =\rho '} . In other words, it is an object in the comma category ( ( a , b ) F ) {\displaystyle ((a,b)\downarrow F)} having a morphism to any other object in that category; it is initial. This serves to define the coproduct in C {\displaystyle {\mathcal {C}}} , when it exists.

Adjunctions

Lawvere showed that the functors F : C D {\displaystyle F:{\mathcal {C}}\rightarrow {\mathcal {D}}} and G : D C {\displaystyle G:{\mathcal {D}}\rightarrow {\mathcal {C}}} are adjoint if and only if the comma categories ( F i d D ) {\displaystyle (F\downarrow id_{\mathcal {D}})} and ( i d C G ) {\displaystyle (id_{\mathcal {C}}\downarrow G)} , with i d D {\displaystyle id_{\mathcal {D}}} and i d C {\displaystyle id_{\mathcal {C}}} the identity functors on D {\displaystyle {\mathcal {D}}} and C {\displaystyle {\mathcal {C}}} respectively, are isomorphic, and equivalent elements in the comma category can be projected onto the same element of C × D {\displaystyle {\mathcal {C}}\times {\mathcal {D}}} . This allows adjunctions to be described without involving sets, and was in fact the original motivation for introducing comma categories.

Natural transformations

If the domains of S , T {\displaystyle S,T} are equal, then the diagram which defines morphisms in S T {\displaystyle S\downarrow T} with A = B , A = B , f = g {\displaystyle A=B,A'=B',f=g} is identical to the diagram which defines a natural transformation S T {\displaystyle S\to T} . The difference between the two notions is that a natural transformation is a particular collection of morphisms of type of the form S ( A ) T ( A ) {\displaystyle S(A)\to T(A)} , while objects of the comma category contains all morphisms of type of such form. A functor to the comma category selects that particular collection of morphisms. This is described succinctly by an observation by S.A. Huq[3] that a natural transformation η : S T {\displaystyle \eta :S\to T} , with S , T : A C {\displaystyle S,T:{\mathcal {A}}\to {\mathcal {C}}} , corresponds to a functor A ( S T ) {\displaystyle {\mathcal {A}}\to (S\downarrow T)} which maps each object A {\displaystyle A} to ( A , A , η A ) {\displaystyle (A,A,\eta _{A})} and maps each morphism f = g {\displaystyle f=g} to ( f , g ) {\displaystyle (f,g)} . This is a bijective correspondence between natural transformations S T {\displaystyle S\to T} and functors A ( S T ) {\displaystyle {\mathcal {A}}\to (S\downarrow T)} which are sections of both forgetful functors from S T {\displaystyle S\downarrow T} .

References

  1. ^ a b c Adámek, Jiří; Herrlich, Horst; Strecker, George E. (1990). Abstract and Concrete Categories (PDF). John Wiley & Sons. ISBN 0-471-60922-6.
  2. ^ Rydheard, David E.; Burstall, Rod M. (1988). Computational category theory (PDF). Prentice Hall.
  3. ^ Mac Lane, Saunders (1998), Categories for the Working Mathematician, Graduate Texts in Mathematics 5 (2nd ed.), Springer-Verlag, p. 48, ISBN 0-387-98403-8
  • Comma category at the nLab
  • Lawvere, W (1963). "Functorial semantics of algebraic theories" and "Some algebraic problems in the context of functorial semantics of algebraic theories". http://www.tac.mta.ca/tac/reprints/articles/5/tr5.pdf

External links

  • J. Adamek, H. Herrlich, G. Stecker, Abstract and Concrete Categories-The Joy of Cats
  • WildCats is a category theory package for Mathematica. Manipulation and visualization of objects, morphisms, categories, functors, natural transformations, universal properties.
  • Interactive Web page which generates examples of categorical constructions in the category of finite sets.
  • v
  • t
  • e
Key concepts
Key concepts
Universal constructions
Limits
Colimits
Algebraic categories
Constructions on categories
A simple triangular commutative diagram
Key concepts
n-categories
Weak n-categories
Strict n-categories
Categorified concepts