Romyar SharifiLECTURE NOTES
READING EDITIONPDF

LECTURE NOTES / Chapter 9

Abstract Algebra

Romyar Sharifi

Chapter 9 Category theory

Book contents

Chapter 9
Category theory

9.1. Categories

The extremely broad concept of a “category” allows us to deal with many of the constructions in mathematics in an abstract context. We begin with the definition. We will mostly ignore set-theoretical considerations that can be used to put what follows on a firmer basis, but note that a class is a collection of objects that can be larger than a set, e.g., the class of all sets, in order that we might avoid Russell’s paradox.

Definition 9.1.1.

A category 𝒞 is

(1)

a class of objects Obj(𝒞),

(2)

for every A,B Obj(𝒞), a class Hom𝒞(A,B) of morphisms from A to B, where we often use the notation f : A B to indicate that f is an element of Hom𝒞(A,B), and

(3)

a composition map

Hom𝒞(A,B)×Hom𝒞(B,C) Hom𝒞(A,C)

for each A,B,C Obj(𝒞) that takes (f,g) for f : A B and g: B C to the composition gf, subject to the properties that

i.

for each A Obj(𝒞), there exists an identity morphism idA: A A such that, for all f : A B and g: B A with B Obj(𝒞), we have

f idA = f and idAg = g,

and

ii.

composition is associative, i.e.,

h(gf) = (hg)f

for any three morphisms h: C D, g: B C, and f : A B between objects A,B,C,D Obj(𝒞).

Definition 9.1.2.

We say that a category is small if its class of objects is a set.

Remark 9.1.3.

What we call a category is often referred to as a locally category, and a category in that terminology allows the morphisms between a pair of objects to form a class, not just a set.

Examples 9.1.4.

a.

The category 𝐒𝐞𝐭 which has sets as its objects and maps of sets as its morphisms.

b.

The category 𝐆𝐩 which has groups as its objects and group homomorphisms as it morphisms.

c.

Similarly, we have categories Ring, the objects of which we take to be the (possibly zero) rings with 1 and with morphisms the ring homomorphisms that preserve 1, and Field.

d.

If R is a ring, then the category R-mod has objects the left R-modules and morphisms the left R-module homomorphisms.

e.

The category Top which has topological spaces as its objects and continuous maps as its morphisms.

We may construct new categories out of old. The following provides a useful example.

Definition 9.1.5.

Let 𝒞 and 𝒟 be categories. The product category 𝒞×𝒟 is the category with objects the pairs (C,D) with C Obj(𝒞) and D Obj(𝒟) and morphisms (f,g): (C,D) (C,D) for any f : C C in 𝒞 and g: D D in 𝒟.

Definition 9.1.6.

Given a category 𝒞, we define the opposite category 𝒞op to have the same class of objects as 𝒞 and

Hom𝒞op(A,B) = Hom𝒞(B,A)

for A,B Obj(𝒞).

Definition 9.1.7.

A monoid G is a set with an associative binary operation and an identity element for the operation.

Example 9.1.8.

Any monoid G gives rise to a category with one object, morphisms equal to the elements of G, and composition law given by multiplication. Then Gop is again a monoid with the same elements but the multiplication reversed. A category with one object is also called a monoid, and we have a one-to-one correspondence between monoids and these categories.

We will often have cause to single out a particular class of morphisms in a category known as isomorphisms.

Definition 9.1.9.

Let 𝒞 be a category.

a.

A morphism f : A B in 𝒞 is an isomorphism if there exists morphism g: B A in 𝒞 such that gf = idA and f g = idB.

b.

Two objects A and B in 𝒞 are said to be isomorphic if there exists an isomorphism f : A B in 𝒞.

c.

If f : A B is a morphism and gf = idA (resp., f g = idB), then we say that g is a right inverse (resp., a left inverse) to f. If both gf = idA and f g = idB, then we say that g is (an) inverse to f, or that f and g are inverse to each other (or mutually inverse, or inverses).

Examples 9.1.10.

a.

The isomorphisms in 𝐒𝐞𝐭 are the bijections.

b.

The isomorphisms in 𝐆𝐩 are the isomorphisms of groups.

c.

The isomorphisms in Top are the homeomorphisms.

Definition 9.1.11.

a.

A morphism f : A B in a category 𝒞 is a monomorphism if for any g,h: C A with C Obj(𝒞), the property that f g = f h implies g = h.

b.

A morphism f : A B in a category 𝒞 is an epimorphism if for any g,h: B C with C Obj(𝒞), the property that gf = hf implies g = h.

Examples 9.1.12.

a.

In 𝐒𝐞𝐭 and R-mod, a morphism is a monomorphism (resp., epimorphism) if and only if it is injective (resp., surjective).

b.

The natural injection in Ring is an epimorphism, since a ring homomorphism R is completely determined by its value on 1.

Remark 9.1.13.

A morphism f : A B in a category 𝒞 is a monomorphism if and only if the opposite morphism fop: B A in 𝒞op is an epimorphism.

We have the following.

Lemma 9.1.14.

Let f : A B and g: B A be morphisms in a category 𝒞 such that gf = idA. Then f is a monomorphism and g is an epimorphism.

Proof.

Let h,k: C A be morphisms such that f h = f k. Then

k = gf k = gf h = h.

Thus f is a monomorphism. Similarly, g is an epimorphism, or apply Remark 9.1.13.

In other words, right inverses are monomorphisms and left inverses are epimorphisms.

Definition 9.1.15.

Let 𝒞 be a category and C Obj(𝒞).

a.

A subobject of C is a pair (A,ι) consisting of an object A and a monomorphism ι : A C.

b.

A quotient of C is a pair (B,π) consisting of an object B and an epimorphism π : C B.

Definition 9.1.16.

A subcategory 𝒞 of a category 𝒟 is a category with objects consisting of a subclass of Obj(𝒟) and morphisms Hom𝒞(A,B) for A,B Obj(𝒞) consisting of a subset of Hom𝒟(A,B) containing idA for A = B and such that composition maps in 𝒞 agree with the restriction of the composition maps in 𝒟 between the same objects.

Examples 9.1.17.

a.

The category 𝐀𝐛 of abelian groups with morphisms the group homomorphisms between abelian groups is a subcategory of 𝐆𝐩.

b.

The category Field is a subcategory of 𝐑𝐢𝐧𝐠.

9.2. Functors

To compare two categories, we need some notion of a map between them. Such maps are referred to as functors. There are two basic types.

Definition 9.2.1.

Let 𝒞 and 𝒟 be categories.

a.

A covariant functor (or simply functor) F : 𝒞 𝒟 between two categories 𝒞 and 𝒟 is a map of objects F : Obj(𝒞) Obj(𝒟) and a map of morphisms

F : Hom𝒞(A,B) Hom𝒟(F (A),F (B))

for each A,B Obj(𝒞) such that F (idA) = idF (A) and F (gf) = F (g)F (f) for all f : A B and g: B C for each A,B,C Obj(𝒞).

b.

As with a covariant functor, a contravariant functor F : 𝒞 𝒟 is again a map on objects, but with maps between sets of morphisms of the form

F : Hom𝒞(A,B) Hom𝒟(F (B),F (A))

that satisfies F (idA) = idF (A) and F (gf) = F (f)F (g).

We give some examples of functors.

Examples 9.2.2.

a.

We have the forgetful functors 𝐆𝐩 𝐒𝐞𝐭, 𝐑𝐢𝐧𝐠 𝐒𝐞𝐭, and 𝐓𝐨𝐩 𝐒𝐞𝐭, which take objects to their underlying sets and morphisms to the corresponding set-theoretic maps.

b.

We have another forgetful functor from R-mod to the category 𝐀𝐛 of abelian groups.

c.

A homomorphism of monoids G G induces a functor of the corresponding categories, and conversely.

d.

The opposite functor op: 𝒞 𝒞op that is the identity on objects and takes a morphism f : A B to its opposite morphism fop: B A in 𝒞op is contravariant.

Remark 9.2.3.

A contravariant functor F : 𝒞 𝒟 may also be viewed as a covariant functor 𝒞 𝒟op, in particular by composing F with the opposite functor op: 𝒟 𝒟op.

Remark 9.2.4.

A subcategory 𝒞 of a category 𝒟 is endowed with a canonical inclusion functor that takes an object of 𝒞 to the same object of 𝒟 and is the identity map on morphism.

Definition 9.2.5.

Let F : 𝒞 𝒟 be a functor.

a.

The functor F is called faithful if it is one-to-one on morphisms.

b.

The functor F is called full if it is onto on morphisms.

c.

A functor F is fully faithful if it is both faithful and full.

d.

A subcategory is called a full subcategory if it the corresponding inclusion functor is full.

Remark 9.2.6.

Every functor takes isomorphisms to isomorphisms.

Remark 9.2.7.

The inclusion functor attached to a subcategory is always faithful.

Remark 9.2.8.

A fully faithful functor is sometimes referred to as an embedding of categories, or sometimes a full embedding (and when so, a faithful but not necessarily full functor might instead be referred to as an embedding).

Examples 9.2.9.

a.

The category 𝐀𝐛 is a full subcategory of 𝐆𝐩.

b.

The category Field is a full subcategory of Ring.

c.

The above-described forgetful functors to sets are faithful but not full.

d.

The category in which the objects are sets but the morphisms are bijections of sets is a subcategory of Set that has the same objects but is not full.

Definition 9.2.10.

A directed graph 𝒢 is a collection consisting of

(1)

a set V𝒢 of vertices of 𝒢 and,

(2)

for every v,w V𝒢, a set E𝒢(v,w) of edges from v to w in 𝒢.

Terminology 9.2.11.

In category theory, we often refer to the vertices of a directed graph as dots and the edges as arrows.

Example 9.2.12.

The following picture provides the data of a directed graph with 4 vertices and edge sets with between 0 and 2 elements each:

A directed graph with four vertices. A full diagram description follows.
Diagram description: A directed graph with four vertices

This is a directed graph. No equality of different paths is asserted.

Objects, listed by row and column:

  • Row 1, from left to right: column 1: dot; column 2: dot.
  • Row 2, from left to right: column 1: dot; column 2: dot.

Arrows and lines:

  1. A curved arrow from dot (row 1, column 1) to dot (row 1, column 2), without a label.
  2. An arrow from dot (row 1, column 1) to dot (row 1, column 2), without a label.
  3. An arrow from dot (row 1, column 2) to dot (row 2, column 2), without a label.
  4. An arrow from dot (row 2, column 1) to dot (row 2, column 2), without a label.
  5. A curved arrow from dot (row 2, column 2) to dot (row 1, column 2), without a label.

Definition 9.2.13.

The category (freely) generated by a directed graph 𝒢 is the category I with Obj(I) = V𝒢 and, for v,w Obj(I), with HomI(v,w) equal to the set of all words enen1e1 for some n 0 (with n = 0 providing the empty word) with ei E𝒢(vi1,vi) for vi V𝒢 for 1 i n, with v0 = v and vn = w, together with the composition given by concatenation of words.

Example 9.2.14.

Consider the directed graph 𝒢 given by

A directed path with three vertices. A full diagram description follows.
Diagram description: A directed path with three vertices

This is a directed graph. No equality of different paths is asserted.

Objects, listed by row and column:

  • Row 1, from left to right: column 1: v subscript (1); column 2: v subscript (2); column 3: v subscript (3).

Arrows and lines:

  1. An arrow from v subscript (1) to v subscript (2), labelled e subscript (1).
  2. An arrow from v subscript (2) to v subscript (3), labelled e subscript (2).

The category I generated by 𝒢 has three objects v1,v2,v3 and morphism sets

HomI(vi,vi) = {idvi}, HomI(vi,vi+1) = {ei}, HomI(v1,v3) = {e2e1}, and HomI(vi,vj) = if j < i.

Example 9.2.15.

Consider the directed graph 𝒢 given by

Two vertices with an arrow in each direction. A full diagram description follows.
Diagram description: Two vertices with an arrow in each direction

This is a directed graph. No equality of different paths is asserted.

Objects, listed by row and column:

  • Row 1, from left to right: column 1: v subscript (1); column 2: v subscript (2).

Arrows and lines:

  1. A curved arrow from v subscript (1) to v subscript (2), labelled e subscript (1).
  2. A curved arrow from v subscript (2) to v subscript (1), labelled e subscript (2).

Let I be the category generated 𝒢. For i,j {1,2} the set HomI(vi,vj) consists of the words with alternating letters e1 and e2 that start with ei and end with ej (including the empty word if i = j).

Definition 9.2.16.

A diagram in 𝒞 is a functor from a category generated by a graph to 𝒞.

Remark 9.2.17.

Let 𝒢 be a directed graph, let I be the category generated by 𝒢, and let 𝒞 be a category. Given a map F : V𝒢 𝒞 and functions F : E𝒢(v,w) Hom𝒞(F (v),F (w)) for each v,w, V𝒢, there exists a unique functor F : I 𝒞 that agrees with F on V𝒢 and on E𝒢(v,w) HomI(v,w) for every v,w V𝒢.

Remark 9.2.18.

Often, we consider finite graphs, in which every collection of vertices and edges is finite. The resulting diagrams are known as finite diagrams.

Definition 9.2.19.

A commutative diagram in 𝒞 is a diagram F : I 𝒞, where I is the category generated by a graph, which is a constant function on every set of morphisms.

Example 9.2.20.

To give a functor from I as in Example 9.2.14 to a category 𝒞 is to proscribe three objects A,B,C in 𝒞 and two morphisms f : A B and g: B C. Thus, such a diagram may be represented by

A fB gC,

and it is automatically commutative.

Example 9.2.21.

To give a functor from I as in Example 9.2.15 to a category 𝒞 is to proscribe two objects A,B in 𝒞 and two morphisms f : A B and g: B A. The diagram

Two morphisms in opposite directions. A full diagram description follows.
Diagram description: Two morphisms in opposite directions

The diagram commutes if and only if f composed with g is the identity of B, and g composed with f is the identity of A. These inverse relations are a condition, not an assumption about arbitrary f and g.

Objects, listed by row and column:

  • Row 1, from left to right: column 1: A; column 2: B.

Arrows and lines:

  1. A curved arrow from A to B, labelled f.
  2. A curved arrow from B to A, labelled g.

is commutative if and only if f g = idB and gf = idA.

9.3. Natural transformations

Definition 9.3.1.

Let F,G: 𝒞 𝒟 be two (covariant) functors. A natural transformation η : F G is a class of morphisms ηA: F (A) G(A) for each A Obj(𝒞) subject to the condition that

Naturality square. A full diagram description follows.
Diagram description: Naturality square

The structural squares and triangles displayed here commute.

Objects, listed by row and column:

  • Row 1, from left to right: column 1: F(A); column 2: G(A).
  • Row 2, from left to right: column 1: F(B); column 2: G(B).

Arrows and lines:

  1. An arrow from F(A) to G(A), labelled eta subscript (A).
  2. An arrow from F(A) to F(B), labelled F(f).
  3. An arrow from G(A) to G(B), labelled G(f).
  4. An arrow from F(B) to G(B), labelled eta subscript (B).

commutes for every f : A B and A,B Obj(𝒞). If instead F and G are contravariant functors, then the direction of the vertical arrows in the diagram are reversed.

Example 9.3.2.

Consider the functor T : 𝐀𝐛 𝐀𝐛 that sends an abelian group A to its torsion subgroup Ator (i.e., the subgroup of elements of finite order) and takes a homomorphism f : A B to its restriction T (f): Ator Btor. Let I : 𝐀𝐛 𝐀𝐛 denote the identity functor. For each abelian group A, we can define ιA: Ator A to be the inclusion map. We clearly have f ιA = ιBT (f) for all f : A B, so ι : T I is a natural transformation.

Example 9.3.3.

If we think of groups G and G as monoids, so that functors G G are homomorphisms, then a natural transformation f f between two homomorphisms f,f: G G is given simply by an element x G such that f(g) = 𝑥𝑓(g)x1 for all g G.

Definition 9.3.4.

Let F,G: 𝒞 𝒟 be functors. A natural transformation η : F G is said to be a natural isomorphism if each ηA for A 𝒞 is an isomorphism.

Remark 9.3.5.

Every natural isomorphism η : F G has an inverse η1: G F with ηA1 = (ηA)1 for A Obj(𝒞).

Definition 9.3.6.

Let F,G: 𝒞 𝒟 be functors, and let ηA: F (A) G(A) be morphisms for each A Obj(𝒞). We say that these morphisms are natural if the ηA form a natural transformation η : F G.

Definition 9.3.7.

Two categories 𝒞 and 𝒟 are said to be equivalent if there exist functors F : 𝒞 𝒟 and G: 𝒟 𝒞 and natural isomorphisms η : GF id𝒞 and η: F G id𝒟. Two such functors F and G are said to be quasi-inverse, and F and G are said to be equivalences of categories.

Example 9.3.8.

A category 𝒞 with one object 0 and one morphism is equivalent to the category 𝒟 with two objects 1, 2 and four morphisms, the identity morphisms of 1 and 2 and isomorphisms 1 2 and 2 1. We have quasi-inverse functors F and G with F (0) = 1 and F (id0) = id1 and G(1) = G(2) = 0 and G(f) = id0 for all f. To see naturality, note that every morphism between two objects in either category is unique.

The following theorem provides a standard example of equivalence of categories.

Theorem 9.3.9 (Morita equivalence).

The category of left modules over a ring R is equivalent to the category of left modules over Mn(R) for every n 1.

Proof.

Let A be the R-Mn(R)-bimodule of row vectors of length n with R-entries. Let B be the Mn(R)-R-bimodule of column vectors of length n with R-entries. Define

F : R-mod Mn(R)-mod,F (M) = BRM,F (f) = idBf

for left R-modules M and M and f HomR(M,M). Also, define

G: Mn(R)-mod R-mod,G(N) = AMn(R)N,G(g) = idAg

for left Mn(R)-modules N and N and g HomMn(R)(N,N). Since multiplication induces isomorphisms

AMn(R)B R and BRA Mn(R),

both GF and F G are naturally isomorphic to identity functors.

Definition 9.3.10.

Given two categories 𝒞 and 𝒟 with 𝒞 small, the functor category 𝐅𝐮𝐧𝐜(𝒞,𝒟) has objects the functors 𝒞 𝒟 and morphisms the natural transformations between functors, defining composition of natural transformations via composition of the morphisms determining them.

Definition 9.3.11.

Let 𝒞 be a category and A Obj(𝒞) be an object.

a.

We have a functor hA: 𝒞 Sets given by

hA(B) = Hom𝒞(A,B)

and, for g: B C,

hA(g)(f) = gf

for all f : A B.

b.

We have a contravariant functor hA: 𝒞 𝐒𝐞𝐭 with

hA(B) = Hom 𝒞(B,A) and hA(g)(f) = f g

for B,C Obj(𝒞), g: B C, and f : C A.

Definition 9.3.12.

Let 𝒞 be a small category. The Yoneda embedding is the functor

h𝒞: 𝒞 𝐅𝐮𝐧𝐜(𝒞op,𝐒𝐞𝐭)

defined by h𝒞(A) = hA for A Obj(𝒞) and h𝒞(f): hA hB for f : A B in 𝒞 given by

h𝒞(f) C(g) = f g

for each g: C A in 𝒞 and any C Obj(𝒞).

Remark 9.3.13.

The reader should check that the Yoneda embedding is a well-defined functor.

Theorem 9.3.14.

Let 𝒞 be a small category. The Yoneda embedding h𝒞 is fully faithful.

Proof.

We first show faithfulness. Let f,g: A B be two morphisms with h𝒞(f) = h𝒞(g). Then

f = f idA = h𝒞(f) A(idA) = h𝒞(g) A(idA) = gidA = g.

As for fullness, suppose that η : hA hB for some A,B Obj(𝒞). We claim that η = h(e), where e = ηA(idA). To see this, note that the fact that η is a natural transformation means, in particular, that the diagram

Naturality for represented functors. A full diagram description follows.
Diagram description: Naturality for represented functors

The structural squares and triangles displayed here commute.

Objects, listed by row and column:

  • Row 1, from left to right: column 1: h superscript (A)(A); column 2: h superscript (B)(A).
  • Row 2, from left to right: column 1: h superscript (A)(C); column 2: h superscript (B)(C).

Arrows and lines:

  1. An arrow from h superscript (A)(A) to h superscript (B)(A), labelled eta subscript (A).
  2. An arrow from h superscript (A)(A) to h superscript (A)(C), labelled h superscript (A)(f).
  3. An arrow from h superscript (B)(A) to h superscript (B)(C), labelled h superscript (B)(f).
  4. An arrow from h superscript (A)(C) to h superscript (B)(C), labelled eta subscript (C).

commutes for any f : C A. Applying both compositions to the identity morphism of A, we get the two equal terms

hB(f)η A(idA) = hB(f)(e) = f e = h(e) C(f)

and

ηChA(f)(id A) = ηC(idAf) = ηC(f),

and therefore, the desired equality.

Remark 9.3.15.

Similarly, we have a fully faithful contravariant functor

h𝒞: 𝒞 𝐅𝐮𝐧𝐜(𝒞,𝐒𝐞𝐭)

given by the hA for A Obj(𝒞) and natural transformations between them. This is just the Yoneda embedding for the category 𝒞op.

Theorem 9.3.14 can be thought of as a more general version of the following standard theorem of group theory.

Corollary 9.3.16 (Cayley’s theorem).

Every group G is isomorphic to a subgroup of the symmetric group SG on G.

Proof.

Consider the monoid 𝔾 formed by G. Recall that in 𝔾, morphisms are elements of G. As h: 𝔾 𝐅𝐮𝐧𝐜(𝔾op,𝐒𝐞𝐭) is a functor, Yoneda’s lemma provides an injective function

h: G Hom𝐅𝐮𝐧𝐜(𝔾op,𝐒𝐞𝐭)(hG,hG)

on morphisms with the properties that h(e) = idhG and h(𝑥𝑦) = h(x)h(y) for x,y G. Since 𝔾 has only the object G, and hG(G) = G, this induces a one-to-one function ρ : G Maps(G,G) with ρ(x) = h(x)G and satisfying ρ(𝑥𝑦) = ρ(x)ρ(y) and ρ(e) = idG. In particular, we have ρ(x1)ρ(x) = idG for every x G, so its image lands in SG, and the resulting map G SG is an injective homomorphism.

We shall later require the following strengthening of Theorem 9.3.14.

Theorem 9.3.17 (Yoneda’s lemma).

For any object A of a small category 𝒞 and contravariant functor F : 𝒞 𝐒𝐞𝐭, there is a bijection

Hom𝐅𝐮𝐧𝐜(𝒞op,𝐒𝐞𝐭)(hA,F ) F (A)

given by ηηA(idA) that is natural in A and F.

Proof.

Let B Obj(𝒞). Given x F (A), consider the composition

Hom𝒞(B,A) FHom𝐒𝐞𝐭(F (A),F (B)) evxF (A),

where evx is evaluation at x. This defines a natural transformation ξx: hA F. If η : hA F and f : B A, then

F (f)ηA(idA) = ηB(idAf) = ηB(f)

by the naturality of η. On the other hand, if x F (A), then

ξAx(id A) = evx(F (idA)) = evx(idF (A)) = x.

Hence the maps ηηA(idA) and xξx are inverse to each other.

9.4. Limits and colimits

In this section, 𝒞 denotes a category, and I denotes a small category.

Notation 9.4.1.

We write i I to denote, more simply, that i is an object in I.

Definition 9.4.2.

Let F : I 𝒞 be a functor. When it exists, the limit of F is a pair (limF,(ϕi)iI) consisting of an object limF in 𝒞 and morphisms

ϕi: limF F (i)

for each i I such that ϕj = F (κ)ϕi for all morphisms κ : i j in I and with the universal property that if X is any object of 𝒞 together with morphisms ψi: X F (i) for which ψj = κ ψi for all morphisms κ : i j, then there exists a unique morphism f : X limF such that ψi = ϕif for all i I.

Notation 9.4.3.

We usually use limF to refer more simply to a pair (limF,(ϕi)iI) that is a limit of F : I 𝒞, with the maps understood.

Remark 9.4.4.

The universal property of the limit of a functor F as in Definition 9.4.2 may be visualized by commutative diagrams

Universal property of a limit. A full diagram description follows.
Diagram description: Universal property of a limit

The structural squares and triangles displayed here commute.

Objects, listed by row and column:

  • Row 1, from left to right: column 2: X.
  • Row 2, from left to right: column 2: limit F.
  • Row 3, from left to right: column 1: F(i); column 3: F(j).

Arrows and lines:

  1. An arrow from X to limit F, labelled f.
  2. A curved arrow from X to F(i), labelled psi subscript (i).
  3. A curved arrow from X to F(j), labelled psi subscript (j).
  4. An arrow from limit F to F(i), labelled phi subscript (i).
  5. An arrow from limit F to F(j), labelled phi subscript (j).
  6. An arrow from F(i) to F(j), labelled F( kappa ).

Lemma 9.4.5.

If (X,(ψi)iI) and (limF,(ϕi)iI) are limits of a functor F : I 𝒞, then there is a unique isomorphism f : X limF such that ψi = ϕif for all i I.

Proof.

There are morphisms f : X limF and g: limF X that are unique with the respective properties that ψi = ϕif and ϕi = ψig for all i I. Note that we have ϕi = ϕif g for all i I. On the other hand, the universal property of X implies that the identity idX is the unique morphism h such that ψih = ψi for all i I, so f g = idX. Similarly, gf is the identity of limF by its universal property. Therefore, the unique map f is an isomorphism.

Remark 9.4.6.

Lemma 9.4.5 says that a limit, when it exists, is unique up to unique isomorphism (respecting the universal property) and for that reason, we refer to “the”, rather than “a”, limit.

If I has only identity morphisms, then the limit of a functor F : I 𝒞 is determined entirely by the image objects Ai = F (i) for all i I. Hence the notation in the following definition makes sense.

Definition 9.4.7.

Let I be a category with only identity morphisms, and let F : I 𝒞 be a functor. Set Ai = F (i) for each i I.

a.

The limit iIAi of F, when it exists, is called the product of the Ai.

b.

The maps

pi: iIAi Ai

resulting from the universal property of the product are known as projection maps.

Examples 9.4.8.

The product coincides with direct product in the categories 𝐒𝐞𝐭, 𝐆𝐩, Top, Ring and R-mod. Products of more than one object do not exist in the category Field.

Remark 9.4.9.

A commutative diagram in a category 𝒞 arises from a functor F : I 𝒞, where I is a category generated by a directed graph. Therefore, we may speak of the limit of the diagram.

Definition 9.4.10.

The limit A1 ×BA2 of a diagram

The diagram defining a pullback. A full diagram description follows.
Diagram description: The diagram defining a pullback

These objects and maps are the input diagram for the construction described in the surrounding text; no additional equality of its parallel maps is asserted.

Objects, listed by row and column:

  • Row 1, from left to right: column 2: A subscript (1).
  • Row 2, from left to right: column 1: A subscript (2); column 2: B.

Arrows and lines:

  1. An arrow from A subscript (1) to B, labelled f subscript (1).
  2. An arrow from A subscript (2) to B, labelled f subscript (2).
(9.4.1)

in 𝒞, when it exists, is called the pullback of the diagram.

Remark 9.4.11.

The pullback of (9.4.1) is endowed with morphisms p1 and p2 that make

Pullback square. A full diagram description follows.
Diagram description: Pullback square

The structural squares and triangles displayed here commute.

Objects, listed by row and column:

  • Row 1, from left to right: column 1: A subscript (1) times subscript (B) A subscript (2); column 2: A subscript (1).
  • Row 2, from left to right: column 1: A subscript (2); column 2: B.

Arrows and lines:

  1. An arrow from A subscript (1) times subscript (B) A subscript (2) to A subscript (2), labelled p subscript (2).
  2. An arrow from A subscript (1) times subscript (B) A subscript (2) to A subscript (1), labelled p subscript (1).
  3. An arrow from A subscript (1) to B, labelled f subscript (1).
  4. An arrow from A subscript (2) to B, labelled f subscript (2).

commute.

Example 9.4.12.

In 𝐒𝐞𝐭, 𝐆𝐩, Top, and R-mod, the pullback is the subobject (i.e., subset, subgroup, subspace, or submodule) with underlying set

{(a1,a2) A1 ×A2f1(a1) = f2(a2)}.

We also have the dual notion to limits:

Definition 9.4.13.

Let F : I 𝒞 be a functor. When it exists, the colimit of F is a pair (colimF,(αi)iI) consisting of an object colimF 𝒞 together with morphisms

αi: F (i) colimF

for each i I such that αjF (κ) = αi for all morphisms κ : i j and with the universal property that if X is any object of 𝒞 together with morphisms βi: X F (i) for which βjκ = βi for all morphisms κ : i j, then there exists a unique morphism f : colimF X such that βi = f αi for all i I.

Notation 9.4.14.

A colimit of a functor F : I 𝒞 is usually denoted simply by the object colimF, with the morphisms omitted.

Remark 9.4.15.

The properties of the colimit expressed in Definition 9.4.13 may be summarized by the commutativity of the diagrams

Universal property of a colimit. A full diagram description follows.
Diagram description: Universal property of a colimit

The structural squares and triangles displayed here commute.

Objects, listed by row and column:

  • Row 1, from left to right: column 1: F(i); column 3: F(j).
  • Row 2, from left to right: column 2: colimit F.
  • Row 3, from left to right: column 2: X.

Arrows and lines:

  1. A curved arrow from F(i) to X, labelled beta subscript (i).
  2. An arrow from F(i) to colimit F, labelled alpha subscript (i).
  3. An arrow from F(i) to F(j), labelled F( kappa ).
  4. A curved arrow from F(j) to X, labelled beta subscript (j).
  5. An arrow from F(j) to colimit F, labelled alpha subscript (j).
  6. An arrow from colimit F to X, labelled f.

for all κ : i j in I.

We have the obvious analogue of Lemma 9.4.5, which again tells us that we may speak of “the” colimit.

Lemma 9.4.16.

If (X,(βi)iI) and (colimF,(αi)iI) are colimits of a functor F : I 𝒞, then there is a unique isomorphism f : colimF X such that αi = f βi for all i I.

Remark 9.4.17.

When it exists, the colimit of F : I 𝒞 in 𝒞 satisfies

colimF = op (lim(opF )),

so its underlying object is an limit in 𝒞op.

Definition 9.4.18.

The colimit of a functor F : I 𝒞 from a category I with only identity morphisms is called a coproduct, and it is denoted iIF (i).

Examples 9.4.19.

a.

The coproduct in 𝐒𝐞𝐭 and Top of two objects X1 and X2 is the disjoint union X1 X2.

b.

The coproduct in 𝐆𝐩 of two groups G1 and G2 is the free product G1 G2.

c.

The coproduct in R-mod (and in particular 𝐀𝐛) of two R-modules A1 and A2 is the direct sum A1 A2.

d.

The coproduct in the category of commutative rings R1 and R2 is the tensor product R1 R2.

Remark 9.4.20.

Examples 9.4.19(a-d) generalize directly to arbitrary collections of objects.

Remark 9.4.21.

Much as with limits, we may speak of a colimit of a diagram in a category.

Definition 9.4.22.

The colimit of a diagram

The diagram defining a pushout. A full diagram description follows.
Diagram description: The diagram defining a pushout

These objects and maps are the input diagram for the construction described in the surrounding text; no additional equality of its parallel maps is asserted.

Objects, listed by row and column:

  • Row 1, from left to right: column 1: B; column 2: A subscript (1).
  • Row 2, from left to right: column 1: A subscript (2).

Arrows and lines:

  1. An arrow from B to A subscript (1), labelled g subscript (1).
  2. An arrow from B to A subscript (2), labelled g subscript (2).
(9.4.2)

in 𝒞 is called the pushout A1 BA2.

Remark 9.4.23.

The pushout of the diagram (9.4.2) fits into a diagram

Pushout square. A full diagram description follows.
Diagram description: Pushout square

The structural squares and triangles displayed here commute.

Objects, listed by row and column:

  • Row 1, from left to right: column 1: B; column 2: A subscript (1).
  • Row 2, from left to right: column 1: A subscript (2); column 2: A subscript (1) coproduct subscript (B) A subscript (2).

Arrows and lines:

  1. An arrow from B to A subscript (1), labelled g subscript (1).
  2. An arrow from B to A subscript (2), labelled g subscript (2).
  3. An arrow from A subscript (1) to A subscript (1) coproduct subscript (B) A subscript (2), labelled iota subscript (1).
  4. An arrow from A subscript (2) to A subscript (1) coproduct subscript (B) A subscript (2), labelled iota subscript (2).

where ι1 and ι2 are induced by the universal property of the colimit.

Example 9.4.24.

In 𝐒𝐞𝐭 and Top, the pushout is the quotient (set or topological space) of the disjoint union of A1 and A2 under the equivalence relation identifying g1(b) with g2(b) for all b B.

Definition 9.4.25.

We say that a category 𝒞 admits the limit (resp., colimit) of a functor F : I 𝒞 if the limit (resp., colimit) exists in 𝒞.

Remark 9.4.26.

More generally, we may speak of 𝒞 admitting the limits (or colimits) of any collection of functors from small categories to 𝒞.

Definition 9.4.27.

A category is called complete if it admits all limits.

Example 9.4.28.

The category of finite sets is not complete.

Definition 9.4.29.

A category is called cocomplete if it admits all colimits.

Remark 9.4.30.

To say that 𝒞 is complete is to say that 𝒞op is cocomplete.

Proposition 9.4.31.

The category 𝐒𝐞𝐭 is both complete and cocomplete.

Proof.

Let F : I 𝐒𝐞𝐭 be a functor. We merely describe the limit and colimit of F and leave the rest to the reader. The limit is

limF = {(ai)i iIF (i)F (ϕ)(ai) = aj if ϕ : i j in I},

and the colimit is

colimF = iIF (i)

where is the minimal equivalence relation satisfying ai aj for ai F (i) and aj F (j) if there exists ϕ : i j with F (ϕ)(ai) = aj.

Remark 9.4.32.

In fact, the categories 𝐒𝐞𝐭, 𝐓𝐨𝐩, 𝐆𝐩, 𝐀𝐛, 𝐑𝐢𝐧𝐠, and R-mod admit all limits and colimits.

The reader will easily verify the following.

Proposition 9.4.33.

Let I be a small category and 𝒞 a (co)complete category. Then the category 𝐅𝐮𝐧𝐜(I,𝒞) is (co)complete.

Corollary 9.4.34.

Let I be a small category and 𝒞 be (co)complete. Let F : I 𝒞 be a functor, and supposing that 𝒞 is small, consider the Yoneda embedding h𝒞: 𝒞 𝐅𝐮𝐧𝐜(𝒞op,𝐒𝐞𝐭). Then h𝒞F has a (co)limit in 𝐅𝐮𝐧𝐜(𝒞op,𝐒𝐞𝐭).

Definition 9.4.35.

A directed set I is a set I together with a partial ordering on I such that for any i,j I, there exists k I with i k and j k.

Definition 9.4.36.

a.

The limit of a diagram

A3 A2 A1

in a category 𝒞 is referred to as the sequential limit of the objects Ai.

b.

The colimit of a diagram

A1 A2 A3

in a category 𝒞 is referred to as the sequential colimit of the objects Ai.

Example 9.4.37.

In 𝐀𝐛, the sequential limit of the groups pn with respect to homomorphisms pn+1 pn given by reduction modulo pn is the group p of p-adic integers. The sequential colimit of these same groups with respect to the maps pn pn+1 induced by multiplication modulo p is the group pp, equal to the p-power torsion in .

The sequential limit (resp., sequential colimit) is just a special case of the notion of an inverse limit (resp., direct limit), which is a more usual terminology.

Definition 9.4.38.

a.

A directed category I is a category with a nonempty directed set I of objects and at most one morphism i j for any i,j I, which exists if and only if i j.

b.

A codirected category is a category I such that Iop is directed.

Definition 9.4.39.

Let I be a codirected category. The limit of a functor F : I 𝒞 is referred to the inverse limit of the objects F (i) over the inverse system of objects F (i) for i I and morphisms F (κ) for κ : i j in I, and it is denoted limiIF (i).

Definition 9.4.40.

Let I be a directed category. The colimit of a functor F : I 𝒞 is the direct limit of the objects F (i) over the directed system of objects F (i) for i I and morphisms F (κ) for κ : i j in I and is denoted limiIF (i) (or sometimes just limF).

Examples 9.4.41.

a.

The inverse limit of the (commutative) rings pn with respect to homomorphisms pn+1 pn given by reduction modulo pn is the ring p known as the p-adic integers.

b.

The direct limit of the abelian groups pn with respect to the multiplication-by-p maps pn pn+1 is equal to the subgroup of elements of p-power order (under addition) in .

c.

The absolute group Gal(¯) of all automorphisms of the field of algebraic numbers ¯ is isomorphic to the inverse limit of the collection of all Gal(K) for K a finite, normal extension of inside ¯, with respect to the maps Gal(L) Gal(K) given by restriction with K L. Note that the set of field extensions is directed as the compositum of two normal extensions is normal, and the resulting category is codirected as we use only the restriction morphisms.

For certain diagrams, limits and colimits can be quite boring, especially when the diagram contains an initial object in the case of limits, or terminal object in the case of colimits.

Definition 9.4.42.

a.

An initial object A in 𝒞 is an object such that for each B Obj(𝒞), there is a unique morphism A B in 𝒞.

b.

A terminal object X in 𝒞 is an object such that for each B Obj(𝒞), there is a unique morphism B X in 𝒞.

c.

An zero object 0 in 𝒞 is an object that is both initial and terminal.

Remark 9.4.43.

Terminal and initial objects are unique up to unique isomorphism when defined.

We provide some examples.

Examples 9.4.44.

a.

The empty set is the initial object in the category 𝐒𝐞𝐭, while any set with one element is a terminal object.

b.

The trivial group is a zero object in the category 𝐆𝐩.

c.

The zero ring is a terminal object and is an initial object in Ring.

We omit the proof of the following easy lemma.

Lemma 9.4.45.

Let I be a small category and F : I 𝒞 a functor.

a.

Suppose that I has an initial object i. Then

limF = F (i).
b.

Suppose that I has a terminal object j. Then

colimF = F (j).

9.5. Adjoint functors

The following definition allows us to weaken the property of being quasi-inverse to one of “adjointness”.

Definition 9.5.1.

We say that F : 𝒞 𝒟 is left adjoint to G: 𝒟 𝒞 if there exist bijections

ϕC,D: Hom𝒟(F (C),D) Hom𝒞(C,G(D))

for each C Obj(𝒞) and D Obj(𝒟) such that the ϕC,D form a natural transformation of functors

𝒞op×𝒟 𝐒𝐞𝐭.

We also say that G is right adjoint to F, and we say that F and G are adjoint functors.

Remark 9.5.2.

To say that η is a natural transformation in Definition 9.5.1 is a fancier way of saying that given morphisms f : C C in 𝒞 and g: D D in 𝒟, we have a commutative diagram

Naturality of an adjunction. A full diagram description follows.
Diagram description: Naturality of an adjunction

The structural squares and triangles displayed here commute.

Objects, listed by row and column:

  • Row 1, from left to right: column 1: Hom subscript (script D)(F(C),D); column 2: Hom subscript (script C)(C,G(D)).
  • Row 2, from left to right: column 1: Hom subscript (script D)(F(C prime ),D prime ); column 2: Hom subscript (script C)(C prime ,G(D prime )).

Arrows and lines:

  1. An arrow from Hom subscript (script D)(F(C),D) to Hom subscript (script C)(C,G(D)), labelled eta subscript ((C,D)).
  2. An arrow from Hom subscript (script D)(F(C),D) to Hom subscript (script D)(F(C prime ),D prime ), labelled t maps to g composed with t composed with F(f).
  3. An arrow from Hom subscript (script C)(C,G(D)) to Hom subscript (script C)(C prime ,G(D prime )), labelled u maps to G(g) composed with u composed with f.
  4. An arrow from Hom subscript (script D)(F(C prime ),D prime ) to Hom subscript (script C)(C prime ,G(D prime )), labelled eta subscript ((C prime ,D prime )).

Remark 9.5.3.

If F : 𝒞 𝒢 and G: 𝒟 𝒞 are quasi-inverse functors, then we have bijections

ϕC,D: Hom𝒟(F (C),D) Hom𝒞(C,G(D)),ϕC,D(g) = G(g)ηC,

for C Obj(𝒞) and D Obj(𝒟), where g: F (C) D in 𝒟 and η is a natural isomorphism GF id𝒞. These form a natural transformation ϕ between functors 𝒞op ×𝒟 𝐒𝐞𝐭, so G is right adjoint to F. Similarly, using η: F G id𝒟, we see that G is left adjoint to F.

Example 9.5.4.

The forgetful functor 𝐆𝐩 𝐒𝐞𝐭 is right adjoint to the functor 𝐒𝐞𝐭 𝐆𝐩 that takes a set X to the free group FX on X and a map f : X Y of sets to the unique homomorphism ϕf: FX FY with ϕf|X = f. That is, the restriction map

Hom(FY ,G) Maps(Y,G)

is inverse to the map Maps(Y,G) Hom(FY ,G) that takes ϕf: Y G to F (f), and these bijections are easily seen to be natural.

The following is perhaps the most standard example of adjointness: that of Hom and in categories of modules.

Example 9.5.5.

Let A and B be algebras over a commutative ring R. Fix an R-balanced A-B-bimodule M. Define a functor tM: B-mod A-mod by tM(N) = M BN on B-modules N and tM(g) = idMg on B-module homomorphisms g: N N. Define another functor hM: A-mod B-mod by hM(L) = HomA(M,L) on A-modules L and hM(f)(h) = f h for f HomA(L,L) and h HomA(M,L). Then the isomorphism of Theorem 8.4.29 is the adjunction map

HomA(tM(N),L) HomB(N,hM(L)).

These isomorphisms are natural in N and L, and hence tM is left adjoint to hM.

Proposition 9.5.6.

Fix categories I and 𝒞, and suppose that all limits F : I 𝒞 exist. The functor lim has a left adjoint Δ given by taking A Obj(𝒞) to the constant functor cA, where cA(i) = A for all i I, and taking g: A B for A,B Obj(𝒞) to the natural transformation cA cB given by g: cA(i) = A cB(i) = B for all i I.

Proof.

We must describe natural isomorphisms

Hom𝐅𝐮𝐧𝐜(I,𝒞)(cA,F )Hom𝒞(A,limF )

for A Obj(𝒞) and F : I 𝒞. I.e., given a natural tranformation η : cA F, we must associate a map f : A limF, and conversely. Such a natural transformation η consists of maps

ηi: cA(i) = A F (i)

that are compatible in the sense that ηj = F (κ)ηi for all κ : i j. Thus, the existence of a unique f is simply the universal property of the limit. On the other hand, if we have f, then we have maps

ϕif : A F (i),

where ϕi is the map limF F (i) arising in the definition of the limit. These maps then define the universal transformation η.

We now see exactly how adjointness weakens inverseness.

Definition 9.5.7.

Two categories 𝒞 and 𝒟 are said to be equivalent if there exist functors F : 𝒞 𝒟 and G: 𝒟 𝒞 and natural isomorphisms η : GF id𝒞 and η: F G id𝒟. Two such functors F and G are said to be quasi-inverse, and F and G are said to be equivalences of categories.

Example 9.5.8.

A category 𝒞 with one object 0 and one morphism is equivalent to the category 𝒟 with two objects 1, 2 and four morphisms, the identity morphisms of 1 and 2 and isomorphisms 1 2 and 2 1. We have quasi-inverse functors F and G with F (0) = 1 and F (id0) = id1 and G(1) = G(2) = 0 and G(f) = id0 for all f. To see naturality, note that every morphism between two objects in either category is unique.

Notation 9.5.9.

Let η : F Fbe a natural transformation between functors F,F: 𝒞 𝒟.

a.

If G: 𝒟 E is a functor, then we define a natural transformation G(η): GF GF by

G(η)C = G(ηC): G(F (C)) G(F(C))

for all objects C of 𝒞.

b.

If H : B 𝒞 is a functor, then we define a natural transformation η(H): F H FH by

η(H)B = ηH(B): F (H(B)) F(H(B))

for all objects B of 𝒞.

Definition 9.5.10.

Let F : 𝒞 𝒟 and G: 𝒟 𝒞 be functors.

a.

A unit for the pair (F,G) is a natural transformation id𝒞 GF.

b.

A counit for the pair (F,G) is a natural transformation F G id𝒟.

c.

A unit-counit adjunction is a pair (F,G), a unit η for (F,G), and a counit η for (F,G) satisfying

idF = η(F )F (η): F F

as morphisms in 𝐅𝐮𝐧𝐜(𝒞,𝒟) and

idG = G(η)η(G): G G

as morphisms in 𝐅𝐮𝐧𝐜(𝒟,𝒞).

Proposition 9.5.11.

A functor F : 𝒞 𝒟 is left adjoint to a functor G: 𝒟 𝒞 if and only if there exists a unit-counit adjunction for the pair (F,G).

Proof.

Suppose that F is left adjoint to G. We define η : id𝒞 GF as follows. For C Obj(𝒞), we have bijections

Hom𝒟(F (C),F (C)) Hom𝒞(C,GF (C))

by adjointness, and we define ηC to be the image of idF (C). For D Obj(𝒟), we also have

Hom𝒟(F G(D),D) Hom𝒞(G(D),G(D))

and define η: F G id𝒟 by taking ηD to be the image of idG(D) under the inverse of this map. We leave it to the reader to check that these are natural and form a unit-counit adjunction. The converse is left to the reader as well.

9.6. Representable functors

Definition 9.6.1.

Let F : 𝒞 𝐒𝐞𝐭 be a contravariant functor. Then F is said to be representable if there exists a natural isomorphism hB F for some B Obj(𝒞). (In other words, we have natural bijections

Hom𝒞(A,B) F (A)

for all objects A of 𝒞.) We then say that B represents F.

Using Yoneda’s lemma and assuming 𝒞 to be small, we can reword Definition 9.6.1 as saying that there exists B Obj(𝒞) such that there are compatible bijections between the set of natural transformations hA F and the set of morphisms A B for each A Obj(𝒞).

Example 9.6.2.

Consider the contravariant functor P : 𝐒𝐞𝐭 𝐒𝐞𝐭 which takes a set S to its power set P(S), the set of all subsets of S and a map f : S T to the map P(f): P(T ) P(S) by mapping U T to f1(U). Then P is represented by the set {0,1} via the isomorphism

Maps(S,{0,1}) P(S)

by ϕϕ1({1}). These isomorphisms form a natural transformation:

Representation of the power-set functor. A full diagram description follows.
Diagram description: Representation of the power-set functor

The structural squares and triangles displayed here commute.

Objects, listed by row and column:

  • Row 1, from left to right: column 1: Maps (T,left brace0,1right brace); column 2: P(T).
  • Row 2, from left to right: column 1: Maps (S,left brace0,1right brace); column 2: P(S).

Arrows and lines:

  1. An arrow from Maps (T,left brace0,1right brace) to P(T), labelled isomorphism symbol.
  2. An arrow from Maps (T,left brace0,1right brace) to Maps (S,left brace0,1right brace), labelled h superscript (left brace0,1right brace)(f).
  3. An arrow from P(T) to P(S), labelled P(f).
  4. An arrow from Maps (S,left brace0,1right brace) to P(S), labelled isomorphism symbol.

for f : S T . Here, the lefthand vertical map takes ϕ to ϕ f and the righthand vertical map takes a subset X of T to f1(X). We check that

(ϕ f)1({1}) = f1(ϕ1({1})).

The following is a corollary of Yoneda’s lemma.

Lemma 9.6.3.

A representable functor is represented by a unique object up to isomorphism. If B and C represent a contravariant functor F : 𝒞 𝐒𝐞𝐭, then such an isomorphism f : B C is unique making the diagrams

Uniqueness of a representing object. A full diagram description follows.
Diagram description: Uniqueness of a representing object

The structural squares and triangles displayed here commute.

Objects, listed by row and column:

  • Row 1, from left to right: column 1: Hom subscript (script C)(A,B); column 2: F(A).
  • Row 2, from left to right: column 1: Hom subscript (script C)(A,C); column 2: F(A).

Arrows and lines:

  1. An arrow from Hom subscript (script C)(A,B) to F(A) (row 1, column 2), labelled isomorphism symbol.
  2. An arrow from Hom subscript (script C)(A,B) to Hom subscript (script C)(A,C), labelled h superscript (A)(f).
  3. Equality joins F(A) (row 1, column 2) and F(A) (row 2, column 2), without a label.
  4. An arrow from Hom subscript (script C)(A,C) to F(A) (row 2, column 2), labelled isomorphism symbol.

commute for all A Obj(𝒞).

Proof.

Let F : 𝒞 𝐒𝐞𝐭 be a representable (contravariant) functor represented by B Obj(𝒞) and C Obj(𝒞). Then we have natural isomorphisms ξ : hB F and ξ: hC F. The composition ξξ1: hB hC is equal to h𝒞(f) for a unique f : B C by the weak form of Yoneda’s lemma.

Theorem 9.6.4.

Let F : 𝒞 𝒟 be a functor between small categories.

a.

The functor F has a right adjoint if and only if the functor hDF is representable for each D Obj(𝒟). If G is right adjoint to F, then hDF is representable by G(D).

b.

If F has a right adjoints G and G, then there exists a unique natural isomorphism ξ : G G such that diagrams

Uniqueness of a right adjoint. A full diagram description follows.
Diagram description: Uniqueness of a right adjoint

The structural squares and triangles displayed here commute.

Objects, listed by row and column:

  • Row 1, from left to right: column 1: Hom subscript (script D)(F(C),D); column 2: Hom subscript (script C)(C,G(D)).
  • Row 2, from left to right: column 1: Hom subscript (script D)(F(C),D); column 2: Hom subscript (script C)(C,G prime (D)).

Arrows and lines:

  1. An arrow from Hom subscript (script D)(F(C),D) (row 1, column 1) to Hom subscript (script C)(C,G(D)), labelled eta subscript ((C,D)).
  2. Equality joins Hom subscript (script D)(F(C),D) (row 1, column 1) and Hom subscript (script D)(F(C),D) (row 2, column 1), without a label.
  3. An arrow from Hom subscript (script C)(C,G(D)) to Hom subscript (script C)(C,G prime (D)), labelled f maps to xi subscript (D) composed with f.
  4. An arrow from Hom subscript (script D)(F(C),D) (row 2, column 1) to Hom subscript (script C)(C,G prime (D)), labelled eta prime subscript ((C,D)).

commute for all C Obj(𝒞) and D Obj(𝒟), where the horizontal morphisms are the adjunction isomorphisms.

Proof.

Assume that F has a right adjoint G, and consider the adjunction morphisms

η(C,D): Hom𝒟(F (C),D) Hom𝒞(C,G(D)).

In other words,

hDF (C)hG(D)(C),

so G(D) represents hDF. In this case, the uniqueness in part b is an immediate consequence of Lemma 9.6.3.

Now suppose that hDF is representable for each D by some object G(D) (chosen using the axiom of choice). Then there exist isomorphisms η(C,D) that are natural in C. We must also define G on morphisms f : D D in 𝒟. Such an f induces a natural transformation hD hD which provides morphisms

hDF (C) hDF (C)

for all C Obj(𝒞) and thus induces hG(D)(C) hG(D) (C), and these are natural in C. Thus, we have a natural transformation hG(D) hG(D) . Since the Yoneda embedding is fully faithful, we have a unique morphism G(D) G(D) inducing this natural transformation, which we define to be G(f). We leave to the reader the check that G as defined is a functor.

Definition 9.6.5.

Let F : 𝒞 𝐒𝐞𝐭 be a covariant functor. We say that F is representable if there exists a natural isomorphism hA F for some A Obj(𝒞). (That is, there are natural isomorphisms

F (B) Hom𝒞(A,B)

in B Obj(𝒞).) In this case, we say that A represents F.

Remark 9.6.6.

A covariant functor F : 𝒞 𝐒𝐞𝐭 is representable if and only if the contravariant functor F op: 𝒞op 𝐒𝐞𝐭 is representable. The same object of 𝒞 will represent both objects.

Example 9.6.7.

Let F : 𝐆𝐩 𝐒𝐞𝐭 be the forgetful functor. Then F can be represented by . To see this, we define the set map

G Hom𝐆𝐩(,G)

by a(1a) for a G. Naturality is clear.

Example 9.6.8.

Let F : 𝐆𝐩 𝐒𝐞𝐭 be the functor which sends a group to its subset G[n] of elements of order dividing n. Then F can be represented by 𝑛ℤ.

Example 9.6.9.

Consider a functor F : I 𝒞 between small categories. To say that the contravariant functor limh𝒞F : 𝒞 𝐒𝐞𝐭 is representable is exactly to say that there exists an object X in 𝒞 such that one has natural isomorphisms

Hom𝒞(A,X) lim(h𝒞F )(A) lim(Hom 𝒞(A,F ()))

for A 𝒞. In other words, limh𝒞F is representable if and only if limF exists in 𝒞.

Example 9.6.10.

Consider a functor F : I 𝒞 between small categories. View h𝒞 as a covariant functor 𝒞 Hom(𝒞,𝐒𝐞𝐭). To say that the functor lim(h𝒞F ): 𝒞 𝐒𝐞𝐭 is representable is exactly to say that there exists an object X 𝒞 such that one has natural isomorphisms

Hom𝒞(X,A) lim(h𝒞F )(A) lim(Hom𝒞(F (),A))

for A 𝒞. In other words, limh𝒞F is representable if and only if colimF exists in 𝒞.

9.7. Equalizers and images

Definition 9.7.1.

Let 𝒞 be a category, and let

Two parallel morphisms. A full diagram description follows.
Diagram description: Two parallel morphisms

These objects and maps are the input diagram for the construction described in the surrounding text; no additional equality of its parallel maps is asserted.

Objects, listed by row and column:

  • Row 1, from left to right: column 1: A; column 2: B.

Arrows and lines:

  1. An arrow from A to B, labelled f.
  2. An arrow from A to B, labelled g.
(9.7.1)

be a diagram in 𝒞.

a.

The limit eq(f,g) of the diagram (9.7.1), when it exists, is called its equalizer.

b.

The colimit coeq(f,g) of (9.7.1) is called its coequalizer.

We have a commutative diagram:

Equalizer and coequalizer maps. A full diagram description follows.
Diagram description: Equalizer and coequalizer maps

The first arrow is the equalizer arrow: precomposing f and g with it gives equal maps. The last arrow is the coequalizer arrow: postcomposing f and g with it gives equal maps. The parallel arrows f and g need not themselves be equal.

Objects, listed by row and column:

  • Row 1, from left to right: column 1: equalizer (f,g); column 2: A; column 3: B; column 4: coequalizer (f,g).

Arrows and lines:

  1. An arrow from equalizer (f,g) to A, without a label.
  2. An arrow from A to B, labelled f.
  3. An arrow from A to B, labelled g.
  4. An arrow from B to coequalizer (f,g), without a label.

Examples 9.7.2.

a.

Let X,Y be sets, and consider maps f,g: X Y. In 𝐒𝐞𝐭, we have

eq(f,g) = {x Xf(x) = g(x)}

and coeq(f,g) is the quotient of Y by the minimal equivalence relation generated by f(x) g(x) for all x X.

b.

In R-mod, the equalizer is expressed as in 𝐒𝐞𝐭. For an R-module homomorphism f : A B, we have

coeq(f,g) = B{(f g)(a)a A}.

Lemma 9.7.3.

Let f,g: A B be morphisms in a category 𝒞.

a.

Suppose that eq(f,g) exists. Then the induced map h: eq(f,g) A is a monomorphism.

b.

Suppose that coeq(f,g) exists. Then the induced map k: B coeq(f,g) is an epimorphism.

Proof.

Suppose that α,β : C eq(f,g) are morphisms in 𝒞 such that hα = hβ. Let h = hα, and note that f h = gh. But then α : C eq(f,g) is unique such that h = hα by the universal property of eq(f,g). Since h = hβ as well, we have α = β. Part b follows from part a by working in the opposite category.

Theorem 9.7.4.

A category that admits all products and equalizers is complete, and a category that admits all coproducts and coequalizers is cocomplete.

Proof.

For the second statement, by taking the opposite category, we are reduced to the first statement. Let 𝒞 be a category that admits all products and equalizers. Let F : I 𝒞 be a functor from a small category I, and consider the equalizer eq(f,g) of the two morphisms

f,g: iIF (i) ϕ : iϕ(i)F (ϕ(i))

defined via the universal property of the second product as the unique morphisms satisfying

pϕf = pϕ(i): jIF (j) F (ϕ(i))

and

pϕg = F (ϕ)pi: jIF (j) F (ϕ(i))

for morphisms ϕ : i ϕ(i) in 𝒞, where pϕ denotes projection onto the ϕ-coordinate in the second product and pi denotes projection to the i-coordinate in the first.

Let ι : eq(f,g) iIF (i) be the morphism defining the equalizer. We claim that the equalizer eq(f,g), together with the maps piι : eq(f,g) F (i) for i I, satisfies the univeral property of limF. By definition, for any morphism ϕ in 𝒞 as above, we have

F (ϕ)(piι) = pϕgι = pϕf ι = pϕ(i) ι.

Moreover, given X 𝒞 and morphisms ψi: X F (i) for i I such that F (ϕ)ψi = ϕϕ(i) for all i I, we have a product map ψ : X iIF (i) such that

pϕf ψ = pϕ(i) ψ = ψϕ(i)

and

pϕgψ = F (ϕ)piψ = F (ϕ)ψi = ψϕ(i),

so there exists a unique morphism 𝜃 : X eq(f,g) with piι 𝜃 = ψi for all i I. That is, eq(f,g) satisfies the universal property of the limit.

Definition 9.7.5.

In a category 𝒞 with a zero object 0, the zero morphism 0: A B between objects A,B Obj(𝒞) is the composition of A 0 B of morphisms proscribed by the fact that 0 is both initial and terminal.

Definition 9.7.6.

Let 𝒞 be a category with a zero object. Let f : A B be a morphism in 𝒞, and let 0: A B be the zero morphism.

a.

The kernel kerf of f is the equalizer of f and 0.

b.

The cokernel cokerf of f is the coequalizer of f and 0.

Examples 9.7.7.

a.

In R-mod, the categorical notions of kernel and cokernel agree with the usual ones.

b.

In 𝐆𝐩, kernel is the usual notion, and the cokernel of a group homomorphism f : G H with the quotient of H by the normal closure of f(G).

There are different notions of image and coimages in categories. We use the following.

Definition 9.7.8.

Let f : A B be a morphism in a category 𝒞.

a.

The image of f is an object imf of 𝒞 together with a monomorphism ι : imf B such that there exists a morphism π : A imf such that π ι = f and such that if g: C B us a monomorphism and e: A C is a morphism such that eg = f, then there exists a unique morphism ψ : imf C such that g = ι ψ.

b.

The coimage of f is an object coimf together with an epimorphism π : A coimf such that there exists a morphism ι : coimf B with ι π = f and such that if e: A C is an epimorphism and g: C B is a morphism such that f = eg, the there exists a unique morphism 𝜃 : coimf C such that e = 𝜃 f.

Remark 9.7.9.

In the definition of the image of f : A B, then π is uniquely determined as ι is a monomorphism and f = ι π. Moreover, if gψ = ι as stated, then gψ π = ι π = ge, and g is a monomorphism, so ψ π = e. That is the diagram

Universal factorization through an image. A full diagram description follows.
Diagram description: Universal factorization through an image

The structural squares and triangles displayed here commute.

Objects, listed by row and column:

  • Row 1, from left to right: column 1: A; column 3: B.
  • Row 2, from left to right: column 2: image f.
  • Row 3, from left to right: column 2: C.

Arrows and lines:

  1. An arrow from A to B, labelled f.
  2. An arrow from A to image f, labelled pi.
  3. A curved arrow from A to C, labelled e.
  4. An arrow from image f to B, labelled iota.
  5. An arrow from image f to C, labelled psi.
  6. A curved arrow from C to B, labelled g.

commutes. Finally, note that ψ is forced to be a monomorphism since ι is. The analogous statements hold for the coimage.

Proposition 9.7.10.

Let f : A B be a morphism in a category 𝒞.

a.

If 𝒞 admits equalizers, then the canonical morphism π : A imf is an epimorphism.

b.

If 𝒞 admits coequalizers, then the canonical morphism ι : coimf B is a monomorphism.

Proof.

We prove only part a, as part b is proven similarly. Suppose that α,β : imf D satisfy α π = β π. Then by definition of the equalizer, there exists a unique morphism ρ : A eq(α,β) such that for the canonical monomorphism c: eq(α,β) imf, we have π = cρ. On the other hand, consider the composite monomorphism g = ι c: eq(α,β) B, where ι : imf B is the morphism of the image. Note that gρ = f, so by definition of the image, there exists a unique morphism d: imf eq(α,β) such that gd = ι. Then ι (cd) = ι, so cd = id. On the other hand,

g(dc) = ι cdc = ι c = g.

As g is a monomorphism, we have dc = id as well.

Remark 9.7.11.

If 𝒞 has finite products, finite coproducts, equalizers, and coequalizers, we may also make the following definition of the image an coimage of a morphism f : A B.

a.

The image of f is the equalizer of the two morphisms ιi: B BAB.

b.

The coimage of f is the coequalizer of the two projection morphisms pi: A×BA A.

This definition agrees with that already given if every morphism in 𝒞 factors through an equalizer morphism and 𝒞 admits finite limits and colimits. We omit the nontrivial proof.

Lemma 9.7.12.

For any f : A B in a category 𝒞 that admits equalizers (or coequalizers) and for which coimf and imf exist, there is a unique morphism u: coimf imf such that the composition

A scoimf uimf tB

of induced morphisms is f.

Proof.

We suppose that 𝒞 admits equalizers. By Proposition 9.7.10, the canonical morphism π : A imf with t π = f is an epimorphism. By the definition of coimf, there then exists a unique morphism u: coimf imf such that π = us. Then t us = t π = f. If v: coimf imf also satisfies t vs = f, then t vs = t π, and t : imf B is a monomorphism, so vs = π. Thus u = v by the uniqueness of u.

Definition 9.7.13.

We say that a morphism f : A B in a category that admits an image and coimage of f is strict if the induced morphism coimf imf is an isomorphism.

Example 9.7.14.

Every morphism in the category of R-modules is strict.

9.8. Additive and abelian categories

Definition 9.8.1.

An additive category 𝒞 is a category with the following properties:

i.

for A,B Obj(𝒞), the set of morphisms Hom𝒞(A,B) in 𝒞 has an abelian group law (addition) with the property that for any diagram

Additivity of composition. A full diagram description follows.
Diagram description: Additivity of composition

This diagram records the composable morphisms in the distributivity identity: h composed with (g subscript 1 plus g subscript 2) composed with f equals the sum of h composed with g subscript 1 composed with f and h composed with g subscript 2 composed with f.

Objects, listed by row and column:

  • Row 1, from left to right: column 1: A; column 2: B; column 3: C; column 4: D.

Arrows and lines:

  1. An arrow from A to B, labelled f.
  2. An arrow from B to C, labelled g subscript (1).
  3. An arrow from B to C, labelled g subscript (2).
  4. An arrow from C to D, labelled h.

in 𝒞, we have

h(g1 +g2)f = hg1 f +hg2 f,
ii.

𝒞 has a zero object 0,

iii.

𝒞 admits finite coproducts.

In an additive category 𝒞, there always exists the zero morphism is the identity element in the abelian group Hom𝒞(A,B).

Examples 9.8.2.

a.

The categories 𝐀𝐛 and R-mod are additive categories, with the usual addition of homomorphisms.

b.

The full subcategory R-mod of finitely generated R-modules is an additive category.

In an additive category, we denote the coproduct of two objects A1 and A2 by A1 A2.

Lemma 9.8.3.

Finite products exist in an additive category, and there are natural isomorphisms

A1 A2A1 ×A2

for A1,A2 Obj(𝒞). The resulting inclusion morphisms ιi: Ai A1 A2 and projection morphisms and pi: A1 A2 Ai obtained by viewing A1 A2 as a product and coproduct, respectively, satisfy piιi = idAi and piιj = 0 for ij, while

ι1 p1 +ι2 p2 = idA1A2.
Proof.

We have morphisms ιi: Ai A1 A2 by definition. We also have maps pi: A1 A2 Ai defined by

piιj = { idAiif i = j 0 if ij

and the universal property of the coproduct. We then have

(ι1 p1 +ι2 p2)ιi = ιi,

and hence ι1 p1 +ι2 p2 = idA1A2, again by the universal property.

Given an object B Obj(𝒞) and morphisms gi: B Ai, we then have a morphism

ψ = ι1 g1 +ι2 g2: B A1 A2,

which is unique such that

piψ = gi.

Hence A1 A2 satisfies the universal property of the product.

Definition 9.8.4.

An object A in an additive category 𝒞 together with objects Ai, inclusion morphisms ιi: Ai A, and projection morphisms pi: A Ai for i {1,2} for which piιj is zero if ij and idAi if i = j and for which ι1 p1 +ι2 p2 = idA is called a biproduct of the objects A1 and A2, and we write it as A1 A2.

The notion of a biproduct allows us to reinterpret addition in an additive category. First, note the following definitions.

Definition 9.8.5.

Let A be an object in an additive category 𝒞.

a.

The diagonal morphism ΔA: A AA in 𝒞 is the unique morphism induced by two copies of idA: A A and the universal property of the product.

b.

The codiagonal morphism A: AA A in 𝒞 is the unique morphisms induced by two copies of idA: A A and the universal property of the coproduct.

Definition 9.8.6.

Let 𝒞 be an additive category, and let f1: A1 B1 and f2: A2 B2 be morphisms in 𝒞. The biproduct, or direct sum, f1 f2 of the maps f1 and f2 is the morphism A1 A2 B1 B2 induced as the (morphism defined by the universal property of the) coproduct of the composite maps Ai Bi B1 B2, the latter morphisms being inclusions.

Remark 9.8.7.

Equivalently, the direct sum of f1 and f2 as in Definition 9.8.6 is induced as the product of the composite maps A1 A2 Ai Bi, the initial morphisms being projections.

Of course, we could make these definitions in an arbitrary category using products and coproducts.

Lemma 9.8.8.

Let f,g: A B be two morphisms in an additive category 𝒞. Then we have

f +g = B(f g)ΔA.
Proof.

Let ιiA and piA respectively denote the inclusion maps and projection maps for the biproduct AA, and similarly for B. We have

B(f g)ΔA = (f g)(ι1Ap1A+ι2Ap2A)Δ A = B(f g)ι1Ap1AΔ A+B(f g)ι2Ap2AΔ A.

Taking the first term without loss of generality, we have

B((f g)ι1A)(p1AΔ A) = B(ι1Bf)id A = idBf = f.

Definition 9.8.9.

A functor F : 𝒞 𝒟 between additive categories is called additive if for each A,B Obj(𝒞), the map

Hom𝒞(A,B) Hom𝒟(F (A),F (B))

is a group homomorphism.

Example 9.8.10.

Let 𝒞 be an additive category. Then for any A Obj(𝒞), the functors hA and hA may be considered as functors to 𝐀𝐛, rather than 𝐒𝐞𝐭. The resulting functors are additive.

Lemma 9.8.11.

A functor F : 𝒞 𝒟 of additive categories is additive if and only if F preserves biproducts, which is to say that the natural morphisms F (A1)F (A2) F (A1 A2) and F (A1 A2) F (A1)F (A2) are inverse isomorphisms for all objects A1,A2 in 𝒞.

Proof.

Suppose first that F is an additive functor. Note that F (ιipi) = idF (Ai) and F (ιipj) = F (0) for ij, but F (0) = 0 by additivity of F. Again by additivity of F, we have

F (ι1)F (p1)+F (ι2)F (p2) = F (idA1A2) = idF (A1A2).

It follows that F (A1 A2) is a biproduct of F (A1) and F (A2) in 𝒟, so in particular it is a coproduct.

On the other hand, if F preserves biproducts and f,g: A B are morphisms in 𝒞, then it is easy to see that F (f g) = F (f)F (g), and Lemma 9.8.8 tells us that

F (f +g) = F (B(f g)ΔA) = F (B) (F (f)F (g))ΔF (A) = F (f)+F (g).

Corollary 9.8.12.

Let F : 𝒞 𝒟 be a fully faithful functor of additive categories. Then F is an additive functor.

Remark 9.8.13.

For additive functors, we may consider a finer notion of representability than we previously studied. If F : 𝒞 𝐀𝐛 is an additive contravariant (resp., covariant) functor of additive categories, then we may consider it to be representable if there exists an object X Obj(𝒞) and a natural isomorphism η : hX F (resp., η : hX F). In this case, the morphisms ηA for A Obj(𝒞) will be isomorphisms of groups.

Lemma 9.8.14.

A morphism in an additive category that admits kernels is a monomorphism if and only if it has zero kernel. A morphism in an additive category that admits cokernels is an epimorphism if and only if it has zero cokernel.

Proof.

Let f : A B be a monomorphism, and let h: kerf A be the induced morphism. Since f h = 0 by definition of the kernel, we have h = 0, as f is a monomorphism. This forces kerf to be 0, since h factors through 0. (Or, one could just apply Lemma 9.7.3.) On the other hand, suppose that f has trivial kernel, and let g,h: C A be maps with f g = f h. Then f (gh) = 0, and by universal property of the kernel, gh factors through 0, i.e., is 0.

The proof for cokernels is similar, or is the result on kernels in the opposite (additive) category.

Proposition 9.8.15.

Let 𝒞 be an additive category that admits kernels and cokernels. Let f : A B be a morphism in 𝒞. Then

imfker(B cokerf)

and

coim𝑓≅coker(kerf A).
Proof.

We prove the first isomorphism. Let g: B cokerf. By Yoneda’s lemma, it suffices to show that himf and hkerg are naturally isomorphic. For C Obj(𝒞), we have a map

Hom𝒞(C,imf) {α : C Bι1 α = ι2 α}

that takes a morphism C imf and composes it with the morphism imf B given by definition of the equalizer of the maps ιi: B BAB. It is a bijection by the universal property of the equalizer.

For any D Obj(𝒞) and morphisms ϕ1,ϕ2: B D such that ϕ1 f = ϕ2 f, note that there exists a unique morphism k: BAB D with ϕi = kιi. Any α : C B such that ι1 α = ι2 α then satisfies ϕ1 α = ϕ2 α for any such ϕi: B D and any D. On the other hand, note that the ιi themselves satisfy the property that ι1 f = ι2 f and are morphisms ιi: B D with D = BAB. In other words, we have

{α : C Bι1 α = ι2 α} = {α : C Bϕ1 α = ϕ2 α if ϕ1 f = ϕ2 f for some ϕ1,ϕ2: B D (for some D Obj(𝒞))}.

Now, we are in an additive category, so this equals

{α : C Bϕ α = 0 if ϕ f = 0 for some ϕ : B D}. (9.8.1)

By the universal property of cokerf, for any ϕ : B D with ϕ f = 0, there is a morphism j: cokerf D with jg = ϕ. If gα = 0, then ϕ α = jgα = 0, and this works for any ϕ : B D with ϕ f = 0. On the other hand, g itself satisfies gf = 0 so is such a ϕ. It follows that the set in (9.8.1) equals

{α : C Bgα = 0}.

By the universal property of kerg, this is in bijection with Hom𝒞(C,kerg), taking an α in the set to the unique morphism to kerg through which it factors. Clearly, the composition of these bijections is natural in C, so we have the desired natural isomorphism.

Definition 9.8.16.

An abelian category is an additive category 𝒞 in which

i.

every morphism in 𝒞 admits a kernel and a cokernel and

ii.

every morphism in 𝒞 is strict.

Examples 9.8.17.

a.

The category R-mod is abelian.

b.

The full subcategory 𝒞 of R-mod of finitely generated R-submodules is not necessarily abelian. E.g., when R is commutative and non-noetherian, we can take I to be an ideal of R that is not finitely generated, and so the kernel of R RI is not in 𝒞.

Remark 9.8.18.

Note that if 𝒞 is an abelian category, then so is 𝒞op. The roles of mono- and epimorphisms, kernels and cokernels, and images and coimages switch in 𝒞 and 𝒞op.

Proposition 9.8.19.

The functor category 𝐅𝐮𝐧𝐜(𝒞,𝒟) from a small category 𝒞 to an abelian category 𝒟 is abelian.

Proof.

We sketch the proof. First, note that it is additive: we have the zero functor which sends all objects to the zero object and all morphisms to the zero (identity) morphism of the zero object, and if F,G: 𝒞 𝒟 are functors, then F G is given by (F G)(C) = F (C)G(C) and (F G)(f) = F (f)G(f) for f : A B in C. This can be used to define the addition on morphisms (i.e., natural transformations) as before.

Next, the kernel of a natural transformation η : F G is defined by (kerη)(C) = kerηC and (kerη)(f) for f : A B is the kernel of the induced morphism kerηA kerηB. The cokernel is defined similarly. Note that

(coimη)Acoker(kerη η)Acoker(kerηA ηA)coimηA,

and similarly for images. Finally, since 𝒟 is abelian, the natural map coimη imη is an isomorphism coimηA imηA on objects A in 𝒞, hence has a natural inverse determined by the inverses of these morphisms.

Terminology 9.8.20.

In an abelian category 𝒞, we typically refer to a coproduct (when it exists) as a direct sum, and we write iIAi in place of iIAi.

Find in the notes