Comma category explained

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 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

l{A}

,

l{B}

, and

l{C}

are categories, and

S

and

T

(for source and target) are functors:

lA\xrightarrow{  S  }lC\xleftarrow{  T  }lB

We can form the comma category

(S\downarrowT)

as follows:

(A,B,h)

with

A

an object in

l{A}

,

B

an object in

l{B}

, and

h:S(A)T(B)

a morphism in

l{C}

.

(A,B,h)

to

(A',B',h')

are all pairs

(f,g)

where

f:AA'

and

g:BB'

are morphisms in

lA

and

lB

respectively, such that the following diagram commutes:

Morphisms are composed by taking

(f',g')\circ(f,g)

to be

(f'\circf,g'\circg)

, whenever the latter expression is defined. The identity morphism on an object

(A,B,h)

is

(idA,idB)

.

Slice category

See main article: Overcategory. The first special case occurs when

l{C}=l{A}

, the functor

S

is the identity functor, and

l{B}=bf{1}

(the category with one object

*

and one morphism). Then

T(*)=A*

for some object

A*

in

l{A}

.

lA\xrightarrow{  idl{A

}\;\;} \mathcal A\xleftarrow \textbf

In this case, the comma category is written

(l{A}\downarrowA*)

, 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:AA*

. Sometimes,

h

is denoted by

\piA

. A morphism

(f,id*)

from

(A,\piA)

to

(A',\piA')

in the slice category can then be simplified to an arrow

f:AA'

making the following diagram commute:

Coslice category

See main article: Overcategory. The dual concept to a slice category is a coslice category. Here,

l{C}=l{B}

,

S

has domain

bf{1}

and

T

is an identity functor.

bf{1}\xrightarrow{  B*  }lB\xleftarrow{  idl{B

}\;\;} \mathcal B

In this case, the comma category is often written

(B*\downarrowl{B})

, where

B*=S(*)

is the object of

l{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,\iotaB)

with

\iotaB:B*B

. Given

(B,\iotaB)

and

(B',\iotaB')

, a morphism in the coslice category is a map

g:BB'

making the following diagram commute:

Arrow category

S

and

T

are identity functors on

l{C}

(so

l{A}=l{B}=l{C}

).

l{C}\xrightarrow{  idl{C

}\;\;} \mathcal C\xleftarrow \mathcal C

In this case, the comma category is the arrow category

l{C}

. Its objects are the morphisms of

l{C}

, and its morphisms are commuting squares in

l{C}

.[1]

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\downarrowT)

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\downarrowT)

is the canonical injection

sT(G)

, where

G

is the free group generated by

s

.

An object of

(s\downarrowT)

is called a morphism from

s

to

T

or a

T

-structured arrow with domain

s

.[1] An object of

(S\downarrowt)

is called a morphism from

S

to

t

or a

S

-costructured arrow with codomain

t

.[1]

Another special case occurs when both

S

and

T

are functors with domain

bf{1}

. If

S(*)=A

and

T(*)=B

, then the comma category

(S\downarrowT)

, written

(A\downarrowB)

, 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

l{A}=l{B}

and

f=g

are required. The comma category can also be seen as the inserter of

S\circ\pi1

and

T\circ\pi2

, where

\pi1

and

\pi2

are the two projection functors out of the product category

l{A} x l{B}

.

Properties

For each comma category there are forgetful functors from it.

S\downarrowT\tolA

, which maps:

(A,B,h)\mapstoA

;

(f,g)\mapstof

;

S\downarrowT\tolB

, which maps:

(A,B,h)\mapstoB

;

(f,g)\mapstog

.

S\downarrowT\to{lC}

, which maps:

(A,B,h)\mapstoh

;

(f,g)\mapsto(Sf,Tg)

;

Examples of use

Some notable categories

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

\scriptstyle{(\bull\downarrowSet)}

with

\scriptstyle{\bull}

being (a functor selecting) any singleton set, and

\scriptstyle{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

\scriptstyle{(\bull\downarrowTop)}

.

R

is the coslice category

\scriptstyle{(R\downarrowRing)}

, since any ring homomorphism

f:R\toS

induces an associative

R

-algebra structure on

S

, and vice versa. Morphisms are then maps

h:S\toT

that make the diagram commute.

\scriptstyle{(Set\downarrowD)}

, with

\scriptstyle{D:SetSet

} the functor taking a set

s

to

s x s

. The objects

(a,b,f)

then consist of two sets and a function;

a

is an indexing set,

b

is a set of nodes, and

f:a(b x b)

chooses pairs of elements of

b

for each input from

a

. That is,

f

picks out certain edges from the set

b x 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')

must satisfy

f'\circg=D(h)\circf

. 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.

S

be the functor taking each graph to the set of its edges, and let

A

be (a functor selecting) some particular set: then

(S\downarrowA)

is the category of graphs whose edges are labelled by elements of

A

. This form of comma category is often called objects

S

-over

A

- closely related to the "objects over

A

" discussed above. Here, each object takes the form

(B,\piB)

, where

B

is a graph and

\piB

a function from the edges of

B

to

A

. The nodes of the graph could be labelled in essentially the same way.

Limits and universal morphisms

Limits and colimits in comma categories may be "inherited". If

l{A}

and

l{B}

are complete,

T:l{B}l{C}

is a continuous functor, and

S\colonl{A}l{C}

is another functor (not necessarily continuous), then the comma category

(S\downarrowT)

produced is complete,[2] and the projection functors

(S\downarrowT)l{A}

and

(S\downarrowT)l{B}

are continuous. Similarly, if

l{A}

and

l{B}

are cocomplete, and

S:l{A}l{C}

is cocontinuous, then

(S\downarrowT)

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

l{C}

be a category with

F:l{C}l{C} x l{C}

the functor taking each object

c

to

(c,c)

and each arrow

f

to

(f,f)

. A universal morphism from

(a,b)

to

F

consists, by definition, of an object

(c,c)

and morphism

\rho:(a,b)(c,c)

with the universal property that for any morphism

\rho':(a,b)(d,d)

there is a unique morphism

\sigma:cd

with

F(\sigma)\circ\rho=\rho'

. In other words, it is an object in the comma category

((a,b)\downarrowF)

having a morphism to any other object in that category; it is initial. This serves to define the coproduct in

l{C}

, when it exists.

Adjunctions

Lawvere showed that the functors

F:l{C}l{D}

and

G:l{D}l{C}

are adjoint if and only if the comma categories

(F\downarrowidl{D})

and

(idl{C}\downarrowG)

, with

idl{D}

and

idl{C}

the identity functors on

l{D}

and

l{C}

respectively, are isomorphic, and equivalent elements in the comma category can be projected onto the same element of

l{C} x l{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

are equal, then the diagram which defines morphisms in

S\downarrowT

with

A=B,A'=B',f=g

is identical to the diagram which defines a natural transformation

S\toT

. The difference between the two notions is that a natural transformation is a particular collection of morphisms of type of the form

S(A)\toT(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. Huqthat a natural transformation

η:S\toT

, with

S,T:lA\tolC

, corresponds to a functor

lA\to(S\downarrowT)

which maps each object

A

to

(A,A,ηA)

and maps each morphism

f=g

to

(f,g)

. This is a bijective correspondence between natural transformations

S\toT

and functors

lA\to(S\downarrowT)

which are sections of both forgetful functors from

S\downarrowT

.

References

  1. Book: Adámek . Jiří . Herrlich . Horst . Strecker . George E. . 1990 . Abstract and Concrete Categories . John Wiley & Sons . 0-471-60922-6 .
  2. Book: Rydheard . David E. . Burstall . Rod M. . 1988 . Computational category theory . Prentice Hall .

External links