Lenny Taelman - Categories and Modules
Lenny Taelman - Categories and Modules
Lenny Taelman - Categories and Modules
Lenny Taelman
Foreword 7
Prerequisites 7
Other sources 7
Acknowledgements 7
Chapter 4. Categories 41
1. Definition 41
2. Big examples 42
3. Small examples 42
4. Final and cofinal objects 45
3
4 CONTENTS
Exercises 46
Chapter 5. Functors 49
1. Definition of a functor 49
2. Many examples 49
3. Contravariant functors 52
4. Functors with multiple arguments 53
Exercises 55
Prerequisites
Linear algebra, groups, elementary point-set topology, and the ba-
sics of rings and fields. Several exercises and examples in the parts
about categories refer to basic concepts in algebraic topology, Galois
theory, or representation theory. Although in principle these can be
skipped, developing a rich vocabulary of natural examples is probably
the most important aspect of becoming acquainted with categories.
Other sources
Excellent alternative sources for much of the material in this course
are the concise but clear and well-written Atiyah & MacDonald [1], the
more lengthy Lang [2], the course notes by Moerdijk [3] and (in Dutch)
the Algebra 2 course notes by Stevenhagen [4]. A good introduction
in the language of categories and functors containing much more than
these notes is [5].
Acknowledgements
Many thanks to Wessel Bindt, David de Boer, Jeroen Dekker, Koen
van Duin, Eline Filius, Pepijn Hoefgeest, Tycho van Hoof, Juultje Kok,
Christopher Spelt, Tijn de Vos, for their many corrections and sugges-
tions to the first drafts of these course notes.
7
CHAPTER 1
2. First examples
Example 1.3. Let R be a ring. Then the trivial group {0} is an R-
module with r0 := 0 for all r ∈ R. We denote this module by 0, and
call it the zero module.
Example 1.4. Let R be a ring and n ≥ 0. Then M := Rn is an
R-module with addition
(x1 , . . . , xn ) + (y1 , . . . , yn ) := (x1 + y1 , . . . , xn + yn )
and R-action
r · (x1 , . . . , xn ) := (rx1 , . . . , rxn ).
2. FIRST EXAMPLES 11
with X
ct = ag bh .
gh=t
A K[G]-module is the same as a K-vector space V , together with a
group homomorphism
G → GLK (V ) = EndK (V )× .
In other words, a K[G]-module is a K-linear representation of G.
Note that this is indeed a submodule: if (xi )i∈I and (yi )i∈I have only
finitely many non-zero terms, then so do (xi + yi )i∈I and (rxi )i∈I .
One sometimes phrases the condition on (xi )i∈I as ‘xi is zero for
all but finitely many L i’. Of course,
Q if I is finite then the condition is
vacuous and we have i∈I Mi = i∈I Mi .
We have natural ‘inclusion’ maps
(
M x i=j
ι j : Mj → Mi , x 7→ ιj (x), ιj (x)i =
i∈I
0 i ̸= j
and ‘projection’ maps
Y
πj : Mi → Mj , (xi )i∈I 7→ xj .
i∈I
(note that in the sum only finitely many terms are non-zero). This map
is surjective if and only if every element of M can be written as a finite
R-linear combination of elements xi . □
Definition 1.14. Let M be an R-module and (xi )i∈I a family of el-
ements of M . Let φ : R(I) → M be the unique R-linear map with
φ(ei ) = xi for all i ∈ I. We say that (xi )i∈I is a basis of M if φ is an
isomorphism. We say that an R-module M is free if it has a basis. If
it has a basis of cardinality n, then we say that M is free of rank n.
In particular, M is free of rank n if and only if M ∼
= Rn .
In contrast with the case of vector spaces (modules over a field), a
finitely generated R-module need not have a basis. For example: for
m > 1 the Z-module Z/mZ does not have a basis, and hence is not
free.
Proposition 1.15. Let M be an R-module and (xi )i∈I a family of
elements of M . Then (xi )i∈I is a basis of M if and only if for every
x ∈ M there is a unique family (ri )i∈I of elements in R with
(1) ri = P
0 for all but finitely many i, and
(2) x = i∈I ri xi .
Note that the condition in (1) guarantees that only finitely many
terms in the sum in (2) are non-zero.
Proof of Proposition 1.15. This is a direct translation of the
definition: existence of (ri ) is equivalent with x being in the image of
φ : R(I) → M , and uniqueness is equivalent with φ : R(I) → M being
injective. □
16 1. MODULES OVER A RING
Exercises
Exercise 1.1. Let M be an R-module. Show that for every r ∈ R and
x ∈ M the following identities in M hold:
(1) r0 = 0,
(2) 0x = 0,
(3) (−r)x = r(−x) = −(rx).
Exercise 1.2. Let R = {0} be the zero ring. Show that every R-module
is the zero module.
Exercise 1.3. Prove Lemma 1.2.
Exercise 1.4. Let R = (R, 0, 1, +, ·) be a ring. Consider the opposite
ring Rop = (R, 0, 1, +, ·op ) where multiplication is defined by
r ·op s := s · r.
Show that a right module over R is the same as an abelian group M
equipped with a ring homomorphism Rop → End(M ).
Exercise 1.5. Let M be an R-module, and let x1 , . . . , xn be elements
of M . Verify that the map
Rn → M, (r1 , . . . , rn ) 7→ r1 x1 + · · · + rn xn
is a homomorphism of R-modules.
Exercise 1.6. Let R be an integral domain and I ⊂ R a non-zero
principal ideal. Show that I, as an R-module, is isomorphic to the
R-module R.
Exercise 1.7. Let R be a ring, and let M and N be R-modules. Show
that point-wise addition makes HomR (M, N ) into an abelian group.
Show that if R is commutative, then HomR (M, N ) has a natural struc-
ture of R-module.
Exercise 1.8. Let R be a ring. Show HomR (R, M ) ∼ = M as abelian
groups (and if R is commutative, as R-modules).
Exercise 1.9. Verify that the map (1) in Example 1.9 is indeed a ring
homomorphism.
Exercise 1.10. Let K be a field and n a positive integer. Let V be a
K-vector space, and let α1 , α2 , . . . , αn be pairwise commuting linear
endomorphisms of V . Show that there is a unique ring homomorphism
ρ : K[X1 , . . . , Xn ] → End(V )
18 1. MODULES OVER A RING
such that for all λ ∈ K and v ∈ V we have ρ(λ)(v) = λv and for all i
we have ρ(Xi )(v) = αi (v).
Convince yourself that a K[X1 , . . . , Xn ]-module is the same thing
as a vector space together with n pairwise commuting linear endomor-
phisms.
Exercise 1.11. Let R be a ring and I ⊂ R a (two-sided) ideal. Let M
be an R-module. Show that
X
IM := { ri xi | ri ∈ I, xi ∈ M }
is a sub-R-module of M , and show that M/IM is an R/I-module.
Show that if M is free of rank n as R-module, then M/IM is free of
rank n as R/I-module.
Exercise 1.12. Let R be a ring and let M be a left R-module. Show
that
AnnR (M ) := {r ∈ R | rx = 0 for all x ∈ M }
is a (two-sided) ideal in R.
Exercise 1.13. Show that Q is not a finitely generated Z-module.
Exercise 1.14. Let K be a field and I a countably infinite set. Show
that the K-module K I does not have a countable generating set.
Exercise 1.15. Show that Q is not a free Z-module.
Exercise 1.16. Prove the following generalisation of Proposition 1.13:
Let R be a ring and let (Mi )i∈I be a collection of R-modules indexed by
a set I. Let N be an R-module, and let (fi : Mi → N )i be a collection
of R-linear maps. Then there exists a unique R-linear map
M
f: Mi → N
i∈I
such that for all i ∈ I and x ∈ Mi we have f (ιi (x)) = fi (x).
Exercise 1.17. Let R be a ring, (Mi )i∈I a family of R-modules, and
N an R-module. Show that there are isomorphisms
∼
M Y
HomR ( Mi , N ) −→ HomR (Mi , N )
i∈I i∈I
and
∼
Y Y
HomR (N, Mi ) −→ HomR (N, Mi )
i∈I i∈I
of abelian groups.
EXERCISES 19
Exact sequences
1. Exact sequences
If f : M1 → M2 and g : M2 → M3 are R-module homomorphisms,
then we say that the sequence
f g
M1 −→ M2 −→ M3
is exact if and only if the image of f is the kernel of g, as submodules
of M2 . For example: the sequence
0 −→ M −→ N
is exact if and only if M → N is injective, and the sequence
M −→ N −→ 0
is exact if and only if M → N is surjective.
A general sequence
fi−1 fi
· · · −→ Mi−1 −→ Mi −→ Mi+1 −→ · · ·
is called exact if for every i we have ker fi = im fi−1 as submodules of
Mi .
An exact sequence of the form
f g
0 −→ M1 −→ M2 −→ M3 −→ 0
is called a short exact sequence. Note that f induces an isomorphism
M1 ∼= ker g
and g induces an isomorphism
coker f ∼
= M3 .
21
22 2. EXACT SEQUENCES
N1 N2 N3 N4 N5
with exact rows. If f1 , f2 , f4 , f5 are isomorphisms, then so is f3 .
In fact, the proof will show that it suffices to assume that f1 is
surjective, f5 is injective, and f2 and f4 are isomorphisms.
Proof. The proof consists of two parts, one showing that f3 is
injective, the other that it is surjective. Both parts require only part of
the hypotheses in the theorem.
Claim. If f1 is surjective, and f2 and f4 are injective, then f3 is
injective.
Indeed, assume f3 (x) = 0 for some x ∈ M3 . We need to show that
x = 0. Let x′ ∈ M4 be the image of x. By the commutativity of the
diagram, f4 (x′ ) = 0. But f4 was injective, hence x′ = 0. It follows that
x ∈ M3 is the image of some element y ∈ M2 . By commutativity, f2 (y)
maps to zero in N3 , hence f2 (y) is the image of some element z ∈ N1 .
By the assumption on f1 , there is a z̃ ∈ M1 with f1 (z̃) = z.
Consider the image y ′ of z̃ in M2 . By commutativity, we have
f2 (y ′ ) = f2 (y), but since f2 is injective, this implies y ′ = y. We see that
2. THE FIVE LEMMA AND THE SNAKE LEMMA 23
α β
0 M1 M2 M3 0
f1 f2 f3
α′ β′
0 N1 N2 N3 0
Proof of Theorem 2.3. We first show that (3) implies (2). In-
deed, the map
M3 → M2 , y 7→ φ−1 (0, y)
is a section of g.
Next, we show that (2) implies (1), so assume that s : M3 → M2 is
a section. We will construct a retraction h : M2 → M1 . Let x ∈ M2 .
Consider the element
y := x − s(g(x)) ∈ M2 .
Then, since gs = id we have
g(y) = g(x) − g(s(g(x))) = g(x) − g(x) = 0.
So y ∈ ker g = im f , and since f is injective, there is a unique z ∈ M1
with f (z) = y. Define h(x) := z. One checks that h is indeed a
retraction.
Finally, to show that (1) implies (3), assume that h : M2 → M1 is
a retraction. Then consider the map
φ : M2 → M1 ⊕ M3 , x 7→ (h(x), g(x)).
Note that this map is an R-module homomorphism. We verify that
it makes the diagram commute. We start with the left square. Take
an x ∈ M1 in the left-top corner of this square. Going down and
then right, it gets mapped to i(id(x)) = (x, 0) ∈ M1 ⊕ M3 . Following
the other path, we end up with φ(f (x)) = (h(f (x)), g(f (x))). But
now, h(f (x)) = x because h is a retraction, and g(f (x)) = 0 because
im f = ker g by the hypothesis that the sequence is exact. We conclude
that φ(f (x)) = (x, 0) and that the left square indeed commutes. For the
right-hand square, take x ∈ M2 . Then one path yields id(g(x)) = g(x),
and following the other path, we obtain p(φ(x)) = p(h(x), g(x)) =
g(x). These agree, so we conclude that the diagram indeed commutes.
Finally, by Exercise 2.5 we see that the map φ is automatically an
isomorphism, which shows that (3) indeed follows from (1). □
26 2. EXACT SEQUENCES
Exercises
Exercise 2.1. Show that
0 −→ M −→ 0
is exact if and only if M is the zero module.
Exercise 2.2. Let f : M → N be an R-module homomorphism. Show
that there is an exact sequence
f
0 −→ ker f −→ M −→ N −→ coker f −→ 0
of R-modules.
Exercise 2.3. Complete the proof of the Five Lemma (Theorem 2.1):
show that if f2 and f4 are surjective, and if f5 is injective, then f3 is
surjective.
Exercise 2.4. Let
M1 M2 M3 0
f1 f2
N1 N2 N3 0
be a commutative diagram of R-modules with exact rows. Show that
there exists a unique R-linear map f3 : M3 → N3 making the resulting
diagram commute.
Exercise 2.5. Consider a commutative diagram of R-modules
α
0 M E N 0
idM f idN
0 M E′ N 0
in which both rows are short exact sequences. Deduce from the snake
or five lemma that f must be an isomorphism. Show that f is an iso-
morphism without using the snake or five lemma. (Hint for surjectivity:
given y ∈ E ′ choose an x ∈ E with same image as y in N . Show that
there is an z ∈ M with f (α(z) + x) = y.)
Exercise 2.6. Give an example of a diagram as in Theorem 2.2, for
which the ‘snake map’ d : ker f3 → coker f1 is non-zero.
EXERCISES 27
N1 N2
be a commutative diagram of R-modules, in which the two horizontal
maps are injective. Show that there exists an R-module E and an exact
sequence
0 −→ ker α1 −→ ker α2 −→ E −→ coker α1 −→ coker α2
of R-modules.
Exercise 2.8. Let R be a ring, let
(2) 0 −→ M1 −→ M2 −→ M3
be an exact sequence of R-modules, and let N be an R-module. Show
that there is an exact sequence of abelian groups
0 −→ HomR (N, M1 ) −→ HomR (N, M2 ) −→ HomR (N, M3 ).
Give an example to show that the exactness of 0 → M1 → M2 →
M3 → 0 need not imply that the map HomR (N, M2 ) → HomR (N, M3 )
is surjective.
Exercise 2.9. Let R be a ring, let
M1 −→ M2 −→ M3 −→ 0
be an exact sequence of R-modules, and let N be an R-module. Show
that there is an exact sequence of abelian groups
0 −→ HomR (M3 , N ) −→ HomR (M2 , N ) −→ HomR (M1 , N ).
Give an example to show that the exactness of 0 → M1 → M2 →
M3 → 0 need not imply that the map HomR (M2 , N ) → HomR (M1 , N )
is surjective.
Exercise 2.10. Let I and J be left ideals in a ring R. Show that there
are exact sequences
0→I ∩J →I ⊕J →I +J →0
and
0 → R/(I ∩ J) → R/I ⊕ R/J → R/(I + J) → 0
of R-modules.
28 2. EXACT SEQUENCES
multiplication:
a b x ax + by
=
0 c y cy
EXERCISES 29
1. Introduction
The classification of finite abelian groups states that for every finite
abelian group A there are prime numbers pi (not necessarily distinct)
and exponents ei ≥ 1 such that
A∼
= (Z/pe11 Z) × · · · × (Z/penn Z).
The existence of Jordan normal forms states that for every square
matrix P over C there exist complex numbers λi (not necessarily dis-
tinct) and integers ei ≥ 1 so that P is conjugate to a block diagonal
matrix with blocks
λi 0 · · · 0 0
1 λi · · · 0 0
.. .. .. ..
. . . .
0 0 · · · λi 0
0 0 · · · 1 λi
of size ei .
In this chapter, we will see that these two theorems are just two
instances of one and the same theorem about finitely generated modules
over a principal ideal domain. In the first case, the PID will be Z, in
the second case it will be C[X].
π(M ) ∼
= R as R-module. By Exercise 2.17 any short exact sequence of
R-modules of the form
0 −→ N −→ M −→ R −→ 0
splits, and we find M ∼
= R ⊕ (M ∩ ker π) ∼
= Rk+1 with k + 1 ≤ n. □
Corollary 3.2. Let R be a PID and M a finitely generated R-module.
Then there exists an exact sequence
0 −→ F1 −→ F2 −→ M −→ 0
with F1 and F2 free R-modules of finite rank.
Proof. Since M is finitely generated, by Proposition 1.13 there is
a surjection F2 → M with F2 a free module of finite rank. The kernel
F1 ⊂ F2 is also free of finite rank, thanks to Proposition 3.1. □
must equal f (x) up to a unit, hence f (z) must be divisible by f (x) and
hence f (z) ∈ I.
Denote the kernel of f : F2 → R by F2′ (note that by Proposition
3.1, this is also a free module). We have a short exact sequence
f
0 −→ F2′ −→ F2 −→ R −→ 0.
Similarly, let F1′ be the kernel of the restriction f : F1 → R. We find a
short exact ‘sub-sequence’
f
0 −→ F1′ −→ F1 −→ I −→ 0.
Since f (x) generates I = cF2 (x) there is a y ∈ F2 with f (x)y = x. Now
the first sequence splits by the section R → F2 , 1 7→ y, and this section
restricts to a section I → F1 in the second short exact sequence.
We find M ∼ = M ′ ⊕ R/I with M ′ given by the short exact sequence
0 −→ F1′ −→ F2′ −→ M ′ −→ 0.
Since F1′ has lower rank, the induction hypothesis guarantees
′
M′ ∼= Rn ⊕ R/I1 ⊕ · · · ⊕ R/Ik ,
which finishes the proof. □
We now consider two special cases of this corollary. The first one is
a structure theorem for finitely generated and finite abelian groups.
Theorem 3.7 (Classification of finitely generated abelian groups). Let
A be a finitely generated abelian group. Then there exists an integer n,
prime numbers p1 , . . . , pk , and positive integers e1 , . . . , ek such that
A∼ e
= Zn × Z/pe1 Z × · · · × Z/p k Z.
1 k
If A is a finite abelian group then
A∼ e
= Z/pe1 Z × · · · × Z/p k Z.
1 k
Proof. Apply Corollary 3.6 to the case R = Z. □
The second special case is a structure theorem for endomorphisms of
finite-dimensional vector spaces over C (or over an algebraically closed
field).
Theorem 3.8. Let K be an algebraically closed field. Let V be a finite-
dimensional vector space over K. Let α : V → V be an endomorphism.
Then there exist λ1 , . . . , λk in K, positive integers e1 , . . . , ek , and a
decomposition
V = V1 ⊕ · · · ⊕ Vk
such that α(Vi ) ⊂ Vi , and such that each Vi has a basis on which α is
expressed as the standard Jordan matrix
λi 0 · · · 0 0
1 λi · · · 0 0
.. .. .. ..
. . . .
0 0 · · · λi 0
0 0 · · · 1 λi
of size ei .
Proof. As in Example 1.9, we turn the vector space V into a
K[X]-module, with X acting via the endomorphism α. Since V is finite-
dimensional, it is finitely generated as a K-module, hence a fortiori also
as a K[X]-module.
Since K is algebraically closed, the irreducible elements of K[X] are
(up to units) the linear polynomials X − λ with λ ∈ K. By Corollary
3.6, we have
K[X] K[X]
V ∼
= K[X]n ⊕ ⊕ ··· ⊕ .
(X − λ1 )e1 K[X] (X − λk )ek K[X]
5. APPLICATION TO JORDAN NORMAL FORM 37
Exercises
Exercise 3.1. Let R be a commutative ring and m ⊂ R a maximal
ideal. Let M be an R-module. Show that M/mM is a vector space
over R/m. Show that if M is generated by x1 , . . . , xn then M/mM has
dimension at most n over R/m.
Exercise 3.2. Let R be a commutative ring and M an R-module. An
element x ∈ M is called a torsion element if there exists a non-zero
r ∈ R with rx = 0.
Assume that R is an integral domain. Show that the torsion ele-
ments of an R-module M form a submodule of M .
Give an example to show that the condition that R is an integral
domain cannot be dropped.
Exercise 3.3. Let R be an integral domain. Show that the following
are equivalent:
(1) every submodule of a free R-module of finite rank is free of
finite rank,
(2) R is a principal ideal domain.
Exercise 3.4. Let R be a PID and let M be an R-module which can
be generated by n elements. Show that every submodule N ⊂ M can
be generated by n elements. Show that the condition that R is a PID
cannot be dropped.
Exercise 3.5. Let R be a PID and let M be a finitely generated R-
module such that for all r ∈ R and x ∈ M we have that rx = 0 implies
r = 0 or x = 0. Show that M is free of finite rank.
Exercise 3.6. Let R be a ring and let
0 −→ M −→E−→N −→ 0
be a short exact sequence of R-modules. Assume that M can be gener-
ated by m elements, and that N can be generated by n elements. Show
that E can be generated by m + n elements.
Exercise 3.7. Let R be a PID, and let p1 and p2 be irreducible elements
with (p1 ) ̸= (p2 ). Let e1 , e2 be non-negative integers. Show that the
only R-module homomorphism
R/pe11 R → R/pe22 R
is the zero homomorphism.
EXERCISES 39
Categories
1. Definition
Definition 4.1. A category C consists of the data of
(1) a class of objects ob C,
(2) for every X, Y ∈ ob C a class HomC (X, Y )
(3) for every X ∈ ob C an element idX ∈ HomC (X, X)
(4) for every X, Y, Z ∈ ob C a map
2. Big examples
The notion of a category is modeled on the properties of the col-
lection of all objects of a certain kind (sets, rings, spaces) together
with the collection of all structure-preserving maps (functions, ring ho-
momorphisms, continuous maps) between them. The most important
examples are of this kind.
Example 4.3 (The category of sets). The category Set with ob Set
the class of all sets, HomSet (X, Y ) the set of all maps from X to Y ,
idX the identity map and the usual composition gf := g ◦ f forms a
category.
Example 4.4 (The category of topological spaces). The category Top
with ob Top the class of all topological spaces, HomTop (X, Y ) the set of
continuous maps from X to Y and the usual identity and composition
form a category. (Note that the composition of two continuous maps is
continuous!).
Example 4.5 (The categories of left and right R-modules). If R is a
ring, we denote by R Mod the category whose objects are the left R-
modules, and whose morphisms are the R-module homomorphisms. So
for M, N ∈ ob R Mod we have
HomR Mod (M, N ) := HomR (M, N ).
Similarly, we denote by ModR the category of right R-modules.
In the same style as the above examples, we have the category Ring
of rings and ring homomorphisms, the category CRing of commuta-
tive rings and ring homomorphisms, the category Grp of groups and
group homomorphisms, the category Ab of abelian groups and group
homomorphisms, etcetera. Note that in all these examples the objects
of the categories are sets equipped with some extra structure, and the
morphisms are functions that are compatible with the structure. This
is the case for many, but certainly not all, commonly used categories.
3. Small examples
A category is also a mathematical object in its own right, and one
can write down explicit examples by specifying the objects and maps,
in the same way one can specify say a ring by giving its elements, the
addition, and multiplication.
3. SMALL EXAMPLES 43
Exercises
Exercise 4.1 (Automorphism group of an object). Let C be a (locally
small) category and X an object in C. Show that
AutC (X) := {f : X → X | f is an isomorphism}
forms a group under composition.
Exercise 4.2. Let C be a (locally small) category and X and Y objects
in C. Assume that X and Y are isomorphic. Show that AutC (X) and
AutC (Y ) are isomorphic groups.
Exercise 4.3. Let C be a category. Show that the relation ‘X and Y
are isomorphic’ forms an equivalence relation on ob C.
Exercise 4.4. Let f : X → Y be morphisms in a category C. Show
that if f has both a left and a right inverse, then these must agree. In
particular, f has at most one two-sided inverse.
Exercise 4.5. Let C be a category. Define ob C × := ob C and
HomC × (X, Y ) := {f ∈ HomC (X, Y ) | f is an isomorphism}.
Show that C × (with composition and identity maps inherited from C)
is a category.
Exercise 4.6. Verify that Examples 4.6 and 4.8 are special cases of
Example 4.9.
Exercise 4.7. Show that the category of fields has neither final nor
cofinal object. Show that the category of fields of a given fixed charac-
teristic does have a cofinal object.
Exercise 4.8 (The category of G-sets). Let G be a group. A G-set is
a set S together with a left action of G on S, that is, a map G × S →
S, (g, s) 7→ gs satisfying 1s = s and g(hs) = (gh)s for all g, h ∈ G
and s ∈ S. A morphism of G-sets is a map f : S → T satisfying
f (gs) = gf (s) for every s ∈ S and g ∈ G. The category of G-sets is
denoted G Set.
What are the final and cofinal objects of G Set?
Exercise 4.9 (Homotopy category). Let hTop be the homotopy cat-
egory of topological spaces. Its objects are topological spaces, and its
morphisms are homotopy classes of continuous maps:
HomhTop (X, Y ) := {f : X → Y | f continuous}/ ∼
EXERCISES 47
Functors
1. Definition of a functor
Definition 5.1. Let C and D be categories. A functor F from C to D,
consists of the data of
(1) for every object X in C an object F (X) in D,
(2) for every morphism f : X → Y in C a morphism F (f ) : F (X) →
F (Y ) in D
subject to the conditions
(F1) for every X in C we have F (idX ) = idF (X)
(F2) for every f : X → Y and g : Y → Z in C we have F (gf ) =
F (g)F (f ).
We will write F : C → D to denote that F is a functor from C to D.
Note that if F : C → D and G : D → E are functors, then the com-
posite GF : C → E defined by (GF )(X) := G(F (X)) and (GF )(f ) :=
G(F (f )) is also a functor.
To avoid overloading notation, we will often write F X and F f
instead of F (X) and F (f ).
2. Many examples
Example 5.2 (Identity). For every category C there is an identity
functor idC : C → C with idC (X) = X and idC (f ) = f .
Example 5.3 (Forgetful functors). Let R be a ring. Then we have a
functor
F : R Mod → Ab
49
50 5. FUNCTORS
π1 : Top⋆ → Grp.
F : CRing → Set
g
h
z
with f = hg (and where we omitted idx , idy and idz from the picture).
Let D be any category. Then a functor F : C → D consists of objects
X := F (x), Y := F (y), Z := F (z) together with morphisms F (f ),
F (g) and F (h) between them, such that F (f ) = F (h)F (g). In other
words, a functor F : C → D is the same as a triangular commutative
diagram
X Y
Z
in the category D. With a similar construction, a commutative diagram
in D of any shape can be thought of as a functor from some small
category C to D.
3. Contravariant functors
Definition 5.11. Let C and D be categories. A contravariant functor
from C to D consists of the data of
(1) for every object X in C an object F (X) in D,
(2) for every morphism f : X → Y in C a morphism F (f ) : F (Y ) →
F (X) in D
subject to the conditions
(F1) for every X in C we have F (idX ) = idF (X)
(F2’) for every f : X → Y and g : Y → Z in C we have F (gf ) =
F (f )F (g).
To stress the difference, one sometimes calls an ordinary functor a
covariant functor.
Remark 5.12. The only difference with the notion of a functor is that
F reverses the order of composition. In other words, a contravariant
functor F from C to D is the same as a functor F : C op → D.
4. FUNCTORS WITH MULTIPLE ARGUMENTS 53
Exercises
Exercise 5.1. Let C and D be categories, let F : C → D be a functor.
Let f be an isomorphism in C. Show that F (f ) is an isomorphism in D.
Give an example where F (f ) is an isomorphism but f is not.
Exercise 5.2. Verify the claims in Example 5.5.
Exercise 5.3. For a non-negative integer n we denote by GLn (R) the
group of invertible n by n matrices with entries in R. In other words,
the group of units in the ring Matn (R). For example GL1 (R) = R× .
Show that GLn defines a functor from the category of commutative
rings CRing to the category of groups Grp.
Exercise 5.4 (Center is not a functor. . . ). Show that there exist mor-
phisms f : S2 → S3 and g : S3 → S2 in Grp with the property that
gf = idS2 . Deduce that there is no functor F : Grp → Ab such that
for every group G we have that F G is isomorphic to the center of G.
Exercise 5.5 (. . . but it is when we restrict to isomorphisms). Let
Grp× be the category whose objects are groups, and whose morphisms
are isomorphisms of groups (see also Exercise 4.5). Show that there is
a functor Z : Grp× → Ab× that maps a group G to its center.
CHAPTER 6
Morphisms of functors
1. Morphisms of functors
Definition 6.1. Let C and D be categories, and let F : C → D and
G : C → D be functors. A morphism or natural transformation η from
F to G consists of the data of
(1) for every object X in C a morphism ηX : F X → GX in D
subject to the condition
(N1) for every morphism f : X → Y in C the square
Ff
FX FY
ηX ηY
Gf
GX GY
in D commutes.
An isomorphism from F to G is a morphism of functors η such that ηX
is an isomorphism in D for every X in C.
We will write η : F → G to denote that η is a morphism from the
functor F to the functor G.
Example 6.2 (double dual). Let K be a field and V a K-vector-space.
Then we have a natural map
ηV : V → V ∨∨ = HomK (HomK (V, K), K), v 7→ (φ 7→ φ(v)) .
The word ‘natural’ is usually used in an informal sense, meaning ‘not
depending on the choice of a basis’. But it also has a precise math-
ematical meaning, namely that the collection of maps (ηV )V with V
running over all the vector spaces forms a morphism
η : idVecK → (−)∨∨
from the functor id : VecK → VecK to the functor (−)∨∨ : VecK →
VecK .
57
58 6. MORPHISMS OF FUNCTORS
2. Equivalences of categories
Definition 6.5. An functor F : C → D is called an equivalence or
an equivalence of categories if there exists a functor G : D → C and
isomorphisms of functors
∼ ∼
ϵ : F G → idD , η : GF → idC .
A functor G with this property is called a quasi-inverse of F . If there
exists an equivalence from C to D then C and D are called equivalent
categories.
Remark 6.6. Note that this is formally very similar to the notion of
a homotopy equivalence in topology. See also Remark 6.4.
Equivalent categories tend to be ‘indistinguishable’ from the point
of view of category theory. See Exercise 6.13 for an example. It is
however often difficult to decide if a functor F is an equivalence from
the definition, since it can be hard to construct a quasi-inverse functor.
We end this chapter with a powerful criterion for testing if a functor F
is an equivalence.
Definition 6.7. Let F : C → D be a functor. We say that F is
2. EQUIVALENCES OF CATEGORIES 59
Exercises
Exercise 6.1. Let η : idAb → idAb be a morphism of functors. Show
that there is an integer n such that for every A ∈ ob Ab and for every
x ∈ A the identity ηA (x) = nx holds.
Exercise 6.2. Show that taking determinants defines a morphism
det : GLn → GL1
between functors from CRing to Grp. (See Exercise 5.3).
Exercise 6.3. Let G and H be groups, and BG and BH the corre-
sponding one-object categories (see Example 4.7). Show that a functor
F : BG → BH is the same as a group homomorphism f : G → H, and
a morphism of functors η : F1 → F2 is the same as an element h ∈ H
such that hf1 (g)h−1 = f2 (g) for all g ∈ G.
Exercise 6.4. Let R be a ring. Recall that the center of a ring is the
subring
Z(R) = {z ∈ R | zr = rz for all r ∈ R}.
Denote by C the category of left R-modules.
(1) Let z ∈ Z(R). Show that ηz,M : M → M, x 7→ zx defines a
morphism of functors ηz : idC → idC .
(2) Let η : idC → idC be a morphism of functors. Show that there
is a z ∈ Z(R) with η = ηz .
Exercise 6.5. Show that there are precisely two morphisms of functors
idGrp → idGrp .
Exercise 6.6. Consider categories and functors as in the following
diagram:
F0
G
C D E
F1
Let η : F0 → F1 be a morphism of functors. Construct a morphism of
functors GF0 → GF1 .
Exercise 6.7 (Equivalence is an equivalence relation). Let F : C → D
and G : D → E be equivalences of categories. Show that GF : C → E is
an equivalence of categories.
Exercise 6.8. Let F : C → D be a full and faithful functor. Let X and
Y be objects in C.
EXERCISES 63
have an action
x1 x1
x2 x2
Matn (R) × M n → M n , (A, .. ) 7→ A · ..
. .
xn xn
This makes Mn into a left Matn (R)-module. Verify that this defines a
functor
R Mod → Matn (R) Mod, M 7→ M n .
Show that this functor is an equivalence of categories.
Exercise 6.16 (Abelianized fundamental group without base point
(⋆)). Let C be the category of path connected topological spaces. Let
P be the functor from Top⋆ to C that maps a pair (X, x) the the path
component of x ∈ X. Show that there is a functor F : C → Ab and an
isomorphism between the functors
π1ab : Top⋆ → Ab, (X, x) 7→ π1 (X, x)ab
and F ◦ P . Bonus question: show that there is no functor F : C → Grp
and an isomorphism between F ◦ P and π1 .
CHAPTER 7
Tensor product
f: M ×N →A
g: M × N → T
65
66 7. TENSOR PRODUCT
such that for every abelian group A and every R-bilinear map f : M ×
N → A there is a unique group homomorphism h : T → A with f = hg:
g
M ×N T
f
h
A
Moreover, the pair (T, g) is unique up to unique isomorphism in the
following sense: if both (T1 , g1 ) and (T2 , g2 ) satisfy the above property,
then there is a unique isomorphism h : T1 → T2 such that g2 = hg1 .
Definition 7.4. We will call the abelian group T (unique up to unique
isomorphism) the tensor product of M and N , and denote it by M ⊗R
N := T . For x ∈ M and y ∈ N we denote the image of (x, y) in M ⊗R N
by x ⊗ y := g(x, y).
Proof of Theorem 7.3. Uniqueness. This is purely formal: ev-
erything defined by a universal property is unique up to unique iso-
morphism, by an argument that is basically the same as the proof of
Proposition 4.21: Assume (T1 , g1 ) and (T2 , g2 ) both satisfy the required
property. Since g1 : M × N → T1 is bilinear there is a unique map
h1 : T2 → T1 with g1 = h1 g2 . Reversing the roles of T1 and T2 , we get
a unique map h2 : T1 → T2 . Moreover, both the compositions h1 h2 and
h2 h1 must be the identity, so we conclude that h1 is an isomorphism.
Existence. This part is certainly not formal! The proof is a bit
messy, but in a way very natural: we just construct an abelian group
T (and a map g) with all the desired properties built-in.
Let F := Z(M ×N ) be the free Z-module on the set M × N . Given
an element (x, y) ∈ M × N , we denote by e(x,y) ∈ Z(M ×N ) the corre-
sponding basis vector, see 1.12. There is a canonical map of sets
M × N → F, (x, y) 7→ e(x,y) .
This map has no reason to be bilinear. We will force it to become
bilinear by dividing out the necessary relations. Let G ⊂ F be the
subgroup generated by the elements
e(x1 +x2 ,y) − e(x1 ,y) − e(x2 ,y) ,
e(x,y1 +y2 ) − e(x,y1 ) − e(x,y2 ) ,
e(xr,y) − e(x,ry) ,
1. TENSOR PRODUCT OF A RIGHT AND A LEFT MODULE 67
M ×N F
g
T
Then the map g is bilinear by construction.
We now show that (T, g) is a tensor product. Let f : M × N → A
be a billinear map. Then there is a unique homomorphism f ′ : F → A,
which sends the basis vector e(x,y) to f (x, y), see Proposition 1.13. Since
f is bilinear, we have that f ′ vanishes on all the generators of G, and
therefore that f ′ (G) = 0. Hence f ′ induces a homomorphism h : T → A
with f = hg. To see that a map h with this property is unique, note
that T is generated by the images of the elements (x, y) ∈ M × N , and
that h must send the image of (x, y) to f (x, y). □
Remark 7.5. In practice it is often easier not to use the actual con-
struction of the tensor product in the proof of Theorem 7.3, but only
the defining universal property in the statement of Theorem 7.3, to-
gether with the fact that the the tensor product is generated by the
elements of the form x ⊗ y with x ∈ M and y ∈ N .
Remark 7.6. Elements of M ⊗R N are finite sums of elements of the
form x ⊗ y, but these are not independent. In fact, the map
M × N → M ⊗R N, (x, y) 7→ x ⊗ y
is R-bilinear (by definition of the tensor product), so that for all x, x1 , x2 ∈
M , y, y1 , y2 ∈ N and r ∈ R the identities
(x1 + x2 ) ⊗ y = (x1 ⊗ y) + (x2 ⊗ y)
x ⊗ (y1 + y2 ) = (x ⊗ y1 ) + (x ⊗ y2 )
(xr) ⊗ y = x ⊗ (ry)
x⊗0=0
0⊗y =0
hold in M ⊗R N .
We end this section with a few examples of tensor products.
68 7. TENSOR PRODUCT
4. The adjunction
Let R and S be rings. If N is an (R, S)-bimodule, and P a right
S-module, then HomS (N, P ) is naturally a right R-module, with the
action of R defined by:
f r : N → P, x 7→ f (rx).
See Exercise 7.9.
Theorem 7.19 (Tensor-Hom adjunction). Let R and S be rings. Let
M be a right R-module, N an (R, S)-bimodule, and P be a right S-
module. Then the map of abelian groups
HomS (M ⊗R N, P ) → HomR (M, HomS (N, P ))
given by
f 7→ x 7→ (y 7→ f (x ⊗ y))
is an isomorphism.
Remark 7.20. The HomR and HomS in the theorem denote the set of
homomorphisms in the categories of right R- and S-modules.
Proof of Theorem 7.19. Given an R-linear map f : M → HomS (N, P )
we obtain a map
M × N → P, (x, y) 7→ f (x)(y)
which is R-bilinear, hence it defines a homomorphism
f ′ : M ⊗R N → P
with the property that it maps x ⊗ y to f (x)(y). This map is S-linear.
This construction defines a homomorphism
HomR (M, HomS (N, P )) → HomS (M ⊗R N, P ), f 7→ f ′ .
We leave it to the reader to verify that this is a two-sided inverse to the
map in the theorem. □
4. THE ADJUNCTION 73
Exercises
Exercise 7.1. Prove that if f : M ×N → A is R-bilinear, then f (x, 0) =
0 for all x ∈ M and f (0, y) = 0 for all y ∈ N .
Exercise 7.2. Let R be a ring, let M be a left R-module and let n be
a non-negative integer.
(1) Show that the map Rn × M → M n given by
((r1 , . . . , rn ), x) 7→ (r1 x, . . . , rn x)
is R-bilinear.
(2) Show that the above map is universal, and conclude that Rn ⊗R
M∼ = M n.
Exercise 7.3. Let n and m be positive integers with greatest common
divisor d. Show that
(1) (Z/nZ) ⊗Z (Z/mZ) ∼= Z/dZ;
(2) Q ⊗Z (Z/mZ) ∼= 0;
(3) Q ⊗Z Q ∼= Q.
Exercise 7.4. Let K be a field and R := Matn (K) the ring of n by n
matrices. Let M = K n be the right R-module of length n row vectors,
and N = K n the left R-module of length n column vectors. Show that
the abelian group M ⊗R N is isomorphic to K.
Exercise 7.5. Let R be a commutative ring and f, g ∈ R. Show that
R/(f ) ⊗R R/(g) ∼
= R/(f, g)
as R-modules.
Exercise 7.6. Let R be a ring, let I ⊂ R be a (two-sided) ideal and
let M be a left R-module. Show that (R/I) ⊗R M is isomorphic to
M/IM .
Exercise 7.7. Let R be a commutative ring. Show that the functors
R Mod × R Mod → R Mod given by (M, N ) 7→ M ⊗R N and (M, N ) 7→
(N ⊗R M ) are isomorphic.
Exercise 7.8. Verify that the bimodule in Example 7.15 indeed satisfies
the bimodule axioms.
Exercise 7.9. Let R and S be rings. Let M be a left R-module and
N an (R, S)-bimodule. Show that HomR (M, N ) is naturally a right
S-module and that HomR (N, M ) is naturally a left S-module.
EXERCISES 75
Adjoint functors
commutes.
Remark 8.2. The terminology comes from an analogy with linear al-
gebra: if V and W are vector spaces equipped with inner products,
77
78 8. ADJOINT FUNCTORS
2. Many examples
The main reason that adjunctions between functors are interesting,
is that they are ubiquitous: they arise surprisingly often in multiple
branches of mathematics. Here is a short list of examples.
Example 8.3 (Cartesian product and set of maps). Fix a set A. Then
for all sets X and Y we we have a canonical bijection
∼
αX,Y : Hom(X × A, Y ) → Hom(X, Hom(A, Y ))
given by mapping a function f : X × A → Y to the function
X → Hom(A, Y ), x 7→ (a 7→ f (x, a)) .
An inverse is given by mapping a function g : X → Hom(A, Y ) to
X × A → Y, (x, a) 7→ g(x)(a).
It is easy to check that α defines an adjunction, making the functor
Set → Set, X 7→ X × A
2. MANY EXAMPLES 79
commutes. Tracing the element idX under the two paths from HomC (X, X)
to HomC (T, Y ) we find
φX (idX ) ◦ g = φT (g)
and hence
hφX (idX ),T (g) = φT (g),
as we had to show. □
Remark 8.9. There is something quite striking in the proof. The
inverse bijection φ 7→ φX (idX ) proceeds by first removing from the
morphism of functors φ = (φT )T all components except for the one
at T = X, and then restricting the remaining function φX to just the
element idX of Hom(X, X). Yet, despite this apparent massive loss of
information, φ 7→ φX (idX ) is a bijection, so that φ can be completely
recovered from φX (idX ).
Corollary 8.10. If hX and hY are isomorphic functors, then X and
Y are isomorphic objects in C.
Proof. See Exercise 6.8. □
Corollary 8.11 (Uniqueness of right adjoints). If both G1 : D → C and
G2 : D → C are right adjoints to a functor F : C → D, then G1 and G2
are isomorphic functors.
3. YONEDA AND UNIQUENESS OF ADJOINTS 83
Exercises
Exercise 8.1. Verify that the unit η and the co-unit ϵ of an adjunction
are indeed morphisms of functors.
Exercise 8.2. Let F : C → D be an equivalence with quasi-inverse
G : D → C. Show that F is both left and right adjoint to G.
Exercise 8.3. Show that the abelianization functor G 7→ Gab (see
Example 5.5) is a left adjoint to the inclusion functor Ab → Grp.
What are the unit and co-unit of this adjunction?
Exercise 8.4. Let R be the category with ob R = R and
(
{⋆} x ≤ y
HomR (x, y) =
∅ x>y
for all x, y ∈ R (see also Example 4.9). Let Z be the full subcategory
with ob Z = Z and let F : Z → R be the inclusion functor. Does this
functor have a left adjoint? And a right adjoint?
Exercise 8.5. Assume F : C1 → C2 is left adjoint to G : C2 → C1 and
F ′ : C2 → C3 is left adjoint to G′ : C3 → C2 . Show that F ′ F is left
adjoint to GG′ .
Exercise 8.6. Let {⋆} be the ‘one-point category’ consisting of a unique
object ⋆ and a unique morphism id⋆ . Let C be an arbitrary category.
When does the (unique) functor C → {⋆} have a left adjoint? And a
right adjoint?
Exercise 8.7. For a set I denote by Z[Xi | i ∈ I] the polynomial ring
in variables (Xi ) indexed by I. Elements of Z[Xi | i ∈ I] are finite
Z-linear combinations of monomials in finitely many of the variables.
Verify that I 7→ Z[Xi | i ∈ I] defines a functor Set → CRing which is
left adjoint to the forgetful functor CRing → Set.
Exercise 8.8. Let F : C → D be left adjoint to G : D → C. Let X be
a cofinal object in C, show that F X is cofinal in D. Similarly, if Y is
final in D, show that GY is final in C. (Compare with Exercise 6.13).
Exercise 8.9. Show that the forgetful functor Top⋆ → Top has a left
adjoint but not a right adjoint.
Exercise 8.10. Look up the definition of Stone-Čech compactification,
and verify that it gives a left adjoint to the inclusion functor from the
category of compact Hausdorff spaces to Top.
EXERCISES 85
(1) an object P
(2) morphisms πX : P → X and πY : P → Y
f X
πX
h
T P
πY
g
Y
the diagram
X
′
πX
πX
h
P P′
πY ′
πY
Y
commutes.
Proof of Proposition 9.2. Since P ′ is a product, there exists
a unique h : P → P ′ making the diagram commute. Likewise, since
P is a product, there exists a unique h′ : P ′ → P making the diagram
commute. By the same reasoning, there are unique maps i and i′ making
the diagrams
X X
′
πX ′
πX
πX πX
i i′
P P P′ P′
πY πY ′
πY ′
πY
Y Y
commute. Combining both parts, we see that both i = idP and i = h′ h
make the first diagram commute, and that both i′ = idP ′ and i′ = hh′
make the second diagram commute. By unicity we have h′ h = idP and
hh′ = idP ′ , hence h is an isomorphism. □
Examples 9.3. In Set the product is the cartesian product, together
with the usual projections. In Top the product is the cartesian product
equipped the product topology, together with the usual projections.
The product of two rings R and S in Ring is the product ring R × S.
The product of two modules in R Mod is the cartesian product M × N .
The dual notion of a product is a coproduct (sometimes called sum).
Definition 9.4. Let C be a category, let X and Y be objects in C. A
coproduct of X and Y consists of the data of
(1) an object S
(2) morphisms ιX : X → S and ιY : Y → S
1. PRODUCT AND COPRODUCT 89
ιX
h
S T
ιY
g
Y
commute.
By the same argument as before, a coproduct, if it exists, is unique
up to isomorphism. We talk about the coproduct, and denote it with
X ⨿Y.
Example 9.5. Let X and Y be sets. Then the coproduct of X and Y in
Set is the disjoint union X ⨿ Y , together with the canonical inclusions
ιX : X → X ⨿ Y and ιY : Y → X ⨿ Y .
Similarly, the coproduct in Top of topological spaces X and Y is
the disjoint union X ⨿ Y , with the natural topology (in which X and
Y are both open and closed).
Example 9.6. Let R be a ring. Then the coproduct of R-modules M
and N is the direct sum M ⊕ N , and hence in this case the product
and the coproduct coincide (although the former is considered together
with the projections, and the latter with the inclusions).
More generally one can define products and coproducts of arbitrary
(possibly infinite) families of objects.
Definition
Q 9.7. The product of a familyQ (Xi )i∈I of objects in C is an
object i∈I Xi together with maps πn : i∈I Xi → Xn such that for
every T and forQevery collection of morphisms fi : T → Xi there is a
unique h : T → i∈I Xi such that fi = πi h for all i ∈ I.
Definition i∈I of objects in C is
` 9.8. The coproduct of a family (Xi )`
an object i∈I Xi together with maps ιn : Xn → i∈I Xi such that for
` for every collection of morphisms fi : Xi → T there is a
every T and
unique h : i∈I Xi → T such that fi = hιi for all i ∈ I.
Again, products and coproducts of arbitrary families need not exist,
but if they do they are unique up to unique isomorphism.
90 9. LIMITS AND COLIMITS
s X
πX
f
h
T P Z
g
πY
t Y
2. PULLBACK AND PUSHOUT 91
commute.
If it exists, the pullback is unique up to unique isomorphism. It is
usually denoted by P = X ×Z Y , but care should be taken since the
pullback does depend on the maps f and g. Alternatively, one says that
the square
πY
P Y
πX g
f
X Z
is cartesian if (P, πX , πY ) is the fibered product of f and g.
Example 9.11. In the category of sets, the fiber product of any pair
of maps f : X → Z and g : Y → Z exists. It is given by
X ×Z Y = {(x, y) ∈ X × Y | f (x) = g(y)},
together with the projection maps. Indeed, if s : T → X and t : T → Y
satisfy f s = gt, then the map
h : T → X ×Z Y, u 7→ (s(u), t(u)).
is the unique map making the diagram of the definition commute.
In the case that X = {⋆} and f the map ⋆ 7→ z, then we find
{⋆} ×Z Y = g −1 (z),
the fiber of Y over z.
In the case that X, Y are subsets of Z and f and g are the respective
inclusions we find X ×Z Y = X ∩ Y .
Example 9.12. Similarly, in Top we have
X ×Z Y = {(x, y) ∈ X × Y | f (x) = g(y)}
with the induced topology from the product topology on X × Y .
Example 9.13. Similarly, if f1 : M1 → N and f2 : M2 → N are R-
module homomorphisms, then
{(x1 , x2 ) ∈ M1 × M2 | f1 (x1 ) = f2 (x2 )}
is a sub-R-module of M1 × M2 , and one verifies that it is the pullback
of f1 and f2 .
92 9. LIMITS AND COLIMITS
ker f M
f
0 N
is cartesian in R Mod.
X s
f
ιX
h
Z S T
ιY
g t
Y
commute.
X s
f
ιX
h
Z S T
ιY
g t
Y
2
ψ
3
then a functor X : I → C can be thought of as a diagram
X1
X(φ)
X2
X(ψ)
X3
of objects and morphisms in C. See also Example 5.10.
Definition 9.19. The limit of a functor X : I → C consists of
(1) an object limI X in C
(2) for every object i in I a morphism πi : limI X → Xi
such that
(1) for every φ : i → j in I we have πj = X(φ) ◦ πi
(2) for every T in C and for every collection of morphisms ti : T →
Xi satisfying tj = X(φ) ◦ ti for all φ : i → j, there is a unique
h : T → limI X with ti = πi h for all i.
Of course, the limit of I → C, if it exists, is unique up to unique
isomorphism. The limit is sometimes written limi Xi or limI Xi , but
one should be careful to remember that it depends on the full functor
X, and not just on the objects (Xi )i∈ob I .
Examples 9.20. If I theQ discrete category on a set I (see ??), then
limI X is the product i∈I Xi (if it exists). If I is empty, then the
limit of the unique functor ∅ → C is the final object of C (if it exists).
Taking for I the category
1
2,
3
3. LIMITS AND COLIMITS 95
3
recovers the notion of pushout.
Example 9.23. Let I be the category with ob I = N and such that for
all i < j we have Hom(i, j) = ∅, and for all i ≥ j we have Hom(i, j) =
{⋆}. In a picture:
0 ←− 1 ←− 2 ←− 3 ←− · · · .
Let S0 ⊃ S1 ⊃ S2 ⊃ · · · be a decreasing chain of sets. Then this defines
a functor
S : I → Set, i 7→ Si
which for i ≥ j maps the unique map i → j to the inclusion Si ,→ Sj .
96 9. LIMITS AND COLIMITS
Sj Si
T
commutes, is the same as toTgive a map t : T → i Si . From this it
follows easily that limi Si = i Si .
For the colimit, note that a collection of maps ti : Si → T such that
for all i ≥ j the diagram
Sj Si
ti
tj
T
commutes is completely determined by t0 : S0 → T (since ti must be
the restriction of t0 to the subset Si ⊂ S0 ), and one easily verifies that
colimi Si = S0 .
Exercises
Exercise 9.1. Let X and Y be topological spaces. Show that the
cartesian product X × Y with the product topology is the product of
X and Y in the category Top.
Exercise 9.2. Let f0 : M → N0 and f1 : M → N1 be morphisms in
R Mod. Show that their fibered coproduct exists. (Hint: construct the
fibered coproduct as a quotient module of N0 ⊕ N1 ).
Exercise 9.3. Does the category of pointed topological spaces Top⋆
have products and/or coproducts? And if so, what are they? Does
the forgetful functor Top⋆ → Top commute with products and/or
coproducts?
Exercise 9.4. Let C be a category and let X and Y be objects in C.
Find a category P in which the products of X and Y are precisely the
final objects. Conclude that Proposition 9.2 can be deduced directly
from Proposition 4.21.
Exercise 9.5. Show that the pushout of the inclusion map {0, 1} →
[0, 1] and the map {0, 1} → {⋆} in Top is the circle.
Exercise 9.6. Let C be a category. Consider the diagonal functor
∆: C → C × C
defined by X 7→ (X, X) and f 7→ (f, f ). When does ∆ have a left
adjoint? And a right adjoint?
Exercise 9.7 (Coproduct of commutative rings). Let R and S be com-
mutative rings.
(1) Show that there is a unique ring structure on the Z-module
R ⊗Z S such that
(r1 ⊗ s1 )(r2 ⊗ s2 ) = r1 r2 ⊗ s1 s2 .
(2) Show that R → R ⊗Z S, r 7→ r ⊗ 1 and S → R ⊗Z S, s 7→ 1 ⊗ s
are ring homomorphisms.
(3) Show that R ⊗Z S is the coproduct of R and S in CRing.
Exercise 9.8. Let R be a ring and let
f
M P
g φ
ψ
Q N
EXERCISES 101
of R-modules (in particular the limit exists). Here the first product
ranges over all objects i in I, and the second ranges over all triples
(i, j, f ) with i and j objects in I and f : i → j a morphism in I. Verify
EXERCISES 103
by hand that your exact sequence is correct in the special cases where
the limit is a product or a pullback.
Exercise 9.20 (Arbitrary colimits of modules). Formulate and prove
an analogous statement for colimits of modules.
Exercise 9.21. Let R and S be rings, let A be an (R, S)-module and
let
0 −→ M1 −→ M2 −→ M3
be an exact sequence of R-modules. Use Theorem 9.29 to prove that
the induced sequence
0 −→ HomR (A, M1 ) −→ HomR (A, M2 ) −→ HomR (A, M3 )
is exact in S Mod. (See Exercise 2.8 for a more direct approach).
Exercise 9.22. Consider the functor F : Grp → Ab, G 7→ Gab . (See
Example 5.5 and Exercise 8.3).
(1) Let f : G1 → H and g : G2 → H be group homomorphisms.
Show that the pullback of f and g exists, and is isomorphic to
{(s, t) ∈ G × G | f (s) = g(t)}.
(2) Let f : Z/3Z → S3 be an injective homomorphism and let
g : {1} → S3 be the trivial homomorphism. Compute the pull-
back in Grp of f and g, as well as the pullback in Ab of F (f )
and F (g).
(3) Conclude that F does not have a left adjoint.
(4) Show that F does commute with finite products.
CHAPTER 10
Chain complexes
0 0 0
3. THE HOMOTOPY CATEGORY 107
Hi+1 (β)
··· Hi+1 (N• ) Hi+1 (P• )
Hi (α) Hi (β)
Hi (M• ) Hi (N• ) Hi (P• )
Hi−1 (α)
Hi−1 (M• ) Hi−1 (N• ) ···
of R-modules.
gi − fi = d′i+1 hi + hi−1 di
holds in HomR (Mi , Mi′ ). We say that f and g are homotopic, and write
f ∼ g, if there exists a homotopy from f to g.
108 10. CHAIN COMPLEXES
f2 g2 h1 f1 g1 h0 f0 g0
but note that in the definition of homotopy it is not required that the
hi ’s commute with the horizontal maps d in any way.
The equation defining homotopy can be remembered as
g − f = dh + hd,
omitting the indices which can be reinserted in only one meaningful
way.
Proposition 10.7. Let R be a ring and M• , M•′ chain complex of R-
modules. Then homotopy is an equivalence relation on the set HomR Ch (M• , M•′ ).
□
Proposition 10.8. Let R be a ring and f, g : M• → M•′ homotopic
morphisms of chain complexes of R-modules. Then
(1) for any morphism s : M•′ → N• in R Ch, the compositions sf
and sg are homotopic;
(2) for any morphism t : N• → M• in R Ch, the compositions f t
and gt are homotopic.
Proof. Let (hi )i be a homotopy from f to g. In the first case, one
verifies that (si+1 hi )i is a homotopy from sf to sg, and in the second
case, that (hi ti )i is a homotopy from f t to gt. □
Definition 10.9. The homotopy category of chain complexes of R-
modules, denoted R Ho, is the category with
(1) ob R Ho := ob R Ch
(2) HomR Ho (M• , N• ) := HomR Ch (M• , N• )/ ∼
where composition and identity maps are inherited from composition
and identity maps in R Ch.
Proposition 10.8 guarantees that composition in R Ho is well-defined.
Proposition 10.10. Let f, g : M• → M•′ be homotopic maps in ChR ,
and let i be an integer. Then Hi (f ) = Hi (g) as maps Hi (M• ) → Hi (M•′ ).
3. THE HOMOTOPY CATEGORY 109
Exercises
Exercise 10.1 (Functoriality of homology). Let f : M• → M•′ be a
morphism of chain complexes of R-modules.
(1) Show fi (ker di ) ⊂ ker d′i ;
(2) Show fi (im di+1 ) ⊂ im d′i+1 ;
(3) Conclude that fi induces an R-linear map Hi (M ) → Hi (M ′ ).
Exercise 10.2. Let
. . . → M 2 → M 1 → M0 → N → 0
be an exact sequence of R-modules. Show that the complex
M • = . . . → M 2 → M1 → M0 → 0 → · · ·
satisfies H0 (M• ) ∼
= N and Hn (M• ) = 0 for all n ̸= 0.
Exercise 10.3. Let R be a non-zero ring. Show that the two chain
complexes
··· 0 0 0 0 ···
id
··· 0 R R 0 ···
are isomorphic in R Ho.
Exercise 10.4. Let n > 1 and let f be the morphism in Z Ch given by
the diagram
n
··· 0 Z Z 0 ···
π
Free resolutions
satisfying
δ0 = d′1 h0
δi = d′i+1 hi + hi−1 di (i ≥ 1)
Example 11.10. The zero module M = {0} has the zero resolution,
but also the non-trivial free resolution
id π
0 −→ R −→ R −→ M −→ 0,
hence the corresponding complexes
··· 0 0 0 0 ···
··· 0 R R 0 ···
are isomorphic in R Ho. See also Exercise 10.3.
We can now summarise this section into one powerful theorem.
Theorem 11.11. There exists a functor
F : R Mod → R Ho, M 7→ F• (M )
and an isomorphism of functors
∼
α : H0 ◦ F −→ idR Mod
such that for every R-module M , the complex F• (M ) together with the
isomorphism αM forms a free resolution of M .
The proof goes directly against our basic principle that ‘construc-
tions depending on choices do not give rise to functors’.
Proof of Theorem 11.11. Using Proposition 11.6, choose for ev-
ery R-module M a free resolution
M π
· · · −→ F2 (M ) −→ F1 (M ) −→ F0 (M ) −→ M −→ 0.
This defines for every R-module M an object F• (M ) ∈ R Ho, and an
∼
isomorphism αM : H0 (F• (M )) → M (induced by πM ).
Now for every φ : M → N in R Mod, Theorem 11.8 gives a unique
morphism F• (φ) : F• (M ) → F• (N ) such that the square of R-modules
αM
H0 (F• (M )) M
H0 (F• (φ)) φ
αN
H0 (F• (N )) N
commutes. This provides the necessary data for a functor F• , and
immediately shows that α is an isomorphism of functors, provided that
the data defining F• indeed forms a functor.
118 11. FREE RESOLUTIONS
Exercises
Exercise 11.1. Consider the ring R = Z[X]. Give a free resolution of
the R-module Z[X]/(X, 2).
Exercise 11.2. Let K be a field and consider the subring R = K[X 2 , X 3 ]
of the polynomial ring K[X]. Let M be the R-module R/(X 2 , X 3 ).
Find a free resolution of M .
Exercise 11.3. Let R be a commutative ring.
(1) Assume that r ∈ R is not a zero divisor in R. Show that R/rR
has a free resolution of the form
0 −→ R −→ R −→ R/(r) −→ 0.
(2) Let r, s ∈ R. Assume that r is not a zero divisor in R, and
that s̄ is not a zero divisor in R/rR. Show that R/(s, r) has a
free resolution of the form
0 −→ R −→ R2 −→ R −→ R/(r, s) −→ 0.
(3, ⋆) Try to formulate and prove an analogous statement for mod-
ules of the form R/(r, s, t), etcetera.
Exercise 11.4. Let n be a positive integer, and consider the ring R :=
Z[X]/(X n − 1). Let M be the quotient module R/(X − 1), π : R → M
the quotient map. Show that
β α β α π
· · · −→ R −→ R −→ R −→ R −→ M −→ 0,
with α(r) = (X − 1)r and β(r) = (X n−1 + · · · + X + 1)r, is a free
resolution of the R-module M .
Exercise 11.5. Let R = Z/4Z and let M be the R-module Z/2Z.
Find a free resolution of M .
Exercise 11.6. Let K be a field, n > 1 and let R be the matrix
ring Matn (K). Let M = K n be the left R-module of column vectors.
Show that M does not have a finite free resolution consisting of finitely
generated free R-modules.
Exercise 11.7. Let 0 → M1 → M2 → M3 → 0 be a short exact
sequence of R-modules. Show that there exist free R-modules F1 , F2 ,
120 11. FREE RESOLUTIONS
0 M1 M2 M3 0
with exact rows and surjective vertical maps.
Exercise 11.8 (Free resolution of a short exact sequence). Let 0 →
M1 → M2 → M3 → 0 be a short exact sequence of R-modules. Show
that there exist free resolutions
· · · −→ Fi,2 −→ Fi,1 −→ Fi,0 −→ Mi −→ 0
for i = 1, 2, 3, and a short exact sequence
0 −→ F1,• −→ F2,• −→ F3,• −→ 0
of chain complexes compatible with the exact sequence 0 → M1 →
M2 → M3 → 0.
Exercise 11.9 (Uniqueness of free resolution functor). Let F and G
∼ ∼
be functors R Mod → R Ho. Let α : H0 ◦ F → id and β : H0 ◦ G → id
be isomorphisms. Assume that for every M the pairs (F (M ), α) and
(G(M ), β) are free resolutions of M . Show that the functors F and G
are isomorphic.
Exercise 11.10. Let M• be a chain complex of R-modules with Mi = 0
for all i ̸= 0, 1. Show that there exists a chain complex F• and a
morphism α : F• → M• such that
(1) Hi (α) is an isomorphism for all i, and
(2) Fi is free for all i.
Exercise 11.11 (⋆). Let M• be a chain complex of R-modules with
Mi = 0 for all i < 0. Show that there exists an F• and α as in Exercise
11.10.
CHAPTER 12
In other words, if
· · · −→ F1 −→ F0 −→ M −→ 0
is a free resolution of M , then the group ExtnR (M, N ) is defined as the
quotient group
ker Hom R (Fn , N ) → Hom R (F n+1 , N )
ExtnR (M, N ) = ,
im HomR (Fn−1 , N ) → HomR (Fn , N )
where the maps between the Hom groups are induced from the maps
in the free resolution, and where we set Fi = 0 for i < 0, as before.
Remark 12.2. A priori the functor ExtnR (−, −) depends on the choices
of free resolutions involved in F• (−), but different choices give rise to
isomorphic functors ExtnR (−, −).
Example 12.3. Let m be a positive integer. We compute the groups
ExtnZ (Z/mZ, Z) using the definition. As a first step we need to find a
free resolution of Z/mZ. The obvious choice
m
0 −→ Z −→ Z −→ Z/mZ −→ 0
leads to the complex
m
F• = · · · −→ 0 −→ Z −→ Z −→ 0 −→ 0 −→ · · ·
with F1 = F0 = Z. Note that Hom(Z, Z) = Z, so that applying
the contravariant additive functor HomZ (−, Z) to this complex gives a
complex of the form
H• = · · · −→ 0 −→ 0 −→ Z −→ Z −→ 0 −→ · · ·
with H0 = H−1 = Z. One checks that the map Z → Z is multiplication
by m. We find Hi (H• ) = 0 for all i ̸= −1, and H−1 (H• ) = Z/mZ.
From this we conclude
(
Z/mZ n = 1
ExtZ (Z/mZ, Z) ∼
n
=
0 n ̸= 1
Proof. Let
· · · −→ F1 −→ F0 −→ M −→ 0
be a free resolution of an R-module M . Then by Exercise 2.9 we get
an exact sequence
0 −→ Hom(M, N ) −→ Hom(F0 , N ) −→ Hom(F1 , N ).
Using the definition of Ext0 we find
Ext0 (M, N ) = H0 (Hom(F• , N )) = ker(Hom(F0 , N ) −→ Hom(F1 , N )),
which gives an isomorphism Ext0 (M, N ) = Hom(M, N ), functorial in
M. □
We will see that the module Ext1 (M, N ) is in bijection with iso-
morphism classes of short exact sequences
0 −→ N −→ E −→ M −→ 0
of R-modules. There is also an interpretation to the modules Extn (M, N )
with n > 1 in terms of exact sequences
0 −→ N −→ E1 −→ · · · −→ En −→ M −→ 0,
but the statement is more delicate.
of abelian groups.
124 12. THE Ext FUNCTORS
which, taking into account the vanishing of Exti for i < 0 and the fact
that Ext0 = Hom, gives precisely the exact sequence of the theorem.
One verifies that this sequence does not depend on the choice of free
resolutions. □
0 N E′ M 0
of R-modules. We define the set extR (M, N ) to be the set of equivalence
classes of extensions of M by N .
Note that the morphism E → E ′ in the above diagram is auto-
matically an isomorphism, see Exercise 2.5. Warning: there can be
non-equivalent extensions with E ∼
= E ′ , see Exercise 12.11.
We will now construct a map
θ : extR (M, N ) → Ext1R (M, N )
and show that it is a bijection. To define the map, consider an element
e ∈ extR (M, N ), represented by a short exact sequence
0 −→ N −→ E −→ M −→ 0.
By Theorem 12.5 this induces a long exact sequence, of which a part
reads
· · · −→ HomR (N, N ) −→ Ext1R (M, N ) −→ · · ·
We define θ(e) ∈ Ext1R (M, N ) to be the image of idN under the above
map.
Theorem 12.7. The map
θ : extR (M, N ) → Ext1R (M, N )
is a bijection.
Proof. We construct map
ψ : Ext1R (M, N ) → extR (M, N )
but omit the tedious verification that it is a two-sided inverse.
Choose a free module F and a surjection F → M . Let K be the
kernel. Then we have a short exact sequence
γ
0 −→ K −→ F −→ M −→ 0.
The induced long exact sequence of Theorem 12.5 contains
δ
HomR (F, N ) −→ HomR (K, N ) −→ Ext1R (M, N ) −→ Ext1R (F, N ).
126 12. THE Ext FUNCTORS
Exercises
Exercise 12.1. Let R be a ring, F a free R-module, and N an R-
module. Show that ExtiR (F, N ) = 0 for all i ̸= 0.
Exercise 12.2. Let K be a field. Let M and N be K-modules. Show
that ExtiK (M, N ) = 0 for all i ̸= 0.
Exercise 12.3. Let n and m be positive integers. Compute for all i
the Z-modules
(1) ExtiZ (Z, Z/mZ);
(2) ExtiZ (Z/nZ, Z);
(3) ExtiZ (Z/nZ, Z/mZ).
Exercise 12.4. Let K be a field. Consider the ring R = K[X 2 , X 3 ] ⊂
K[X]. Let I = (X 2 , X 3 ). Show that Ext1R (I, R/I) is non-zero, and
conclude that I is not a principal ideal. Show that also Ext2R (R/I, R/I)
is non-zero.
Exercise 12.5. Let K be a field. Consider the ring R = K[X, Y ] and
the R-module M = K[X, Y ]/(X, Y ). Compute Ext2R (M, R). Conclude
that M does not have a free resolution of the form 0 → F1 → F0 →
M → 0.
Exercise 12.6. Let R be a principal ideal domain. Show that for every
i ≥ 2, for every finitely generated R-module M , and for every R-module
N we have ExtiR (M, N ) = 0.
Exercise 12.7. Let R be a ring, N an R-module and n ≥ 1. As-
sume that ExtnR (M, N ) = 0 for all R-modules M . Show that also
Extn+1
R (M, N ) = 0 for all R-modules M . (Hint: consider a short exact
sequence of the form 0 → K → F → M → 0 with F a free module).
Exercise 12.8. Let
0 −→ N −→ E −→ M −→ 0
be a short exact sequence of R-modules. Let φ : N → N ′ be a morphism
of R-modules, and let E ′ be the pushout of N → E and φ : N → N ′ .
Show that there is a short exact sequence
0 −→ N ′ −→ E ′ −→ M −→ 0
of R-modules. (Hint, see Exercise 9.8).
128 12. THE Ext FUNCTORS
131