Introduction To Categories Work in Progr
Introduction To Categories Work in Progr
DR SERGI SIMON
Part II of module TOPICS IN ALGEBRA AND GEOMETRY
(M31448, year 2021/2022)
FURTHER READING:
Mac Lane, S., Categories for the Working Mathematician
Lang, S., Algebra (Graduate Texts in Mathematics, Springer 211)
Atiyah, M. et al, Introduction To Commutative Algebra
Adámek, J. et al, Abstract and Concrete Categories: The Joy of Cats
Simon, S., Algebra and Topology Lecture Notes (Moodle)
1
Definition 1. A category C consists of: C
(i) a class Obj(C ) whose elements are called objects of the category C;
(ii) a class Hom(C ) of (homo)morphisms, arrows or maps between the objects.
Fixing any A, B ∈ Obj(C ), HomC (A, B ) is the class of all morphisms from A to B, written
A Ð→ B f :A→B
f
or for every f ∈ HomC (A, B );
A is called the domain or source and B is called the codomain or target of the morphism; if
(A, B ) ≠ (A′, B ′), then HomC (A, B ) ∩ HomC (A′, B ′) = ∅;
(iii) and a law of composition for any A, B, C ∈ Obj(C )
Definition 4. C is a small category if both Obj (C ) and Hom (C ) are sets and not proper classes, and
large otherwise. It is locally small if for every A, B ∈ Obj (C ), HomC (A, B ) is a set (called a homset).
Definition 5. A concrete category C is ( for the time being) one whose objects are sets, potentially with
additional structures (i.e. have underlying sets) and whose morphisms are maps between these sets.
– Again, it is small because Obj (2) is a set (of size 2) and Hom (2) is a set (of size 3).
– Bear in mind that these objects and morphisms are primitive notions in that A1, A2 are not
expected to be sets, and f, 1A1 , 1A2 are not expected to be functions. We can visualize this
with a diagram (i.e. a directed graph where vertices are objects and edges are morphisms):
f g %
S /
T U /
s✤ /
f (s ) ✤ /
g (f (s))
Again, associativity is easy to check: s ↦ t ↦ u ↦ v will always have v as the final image
f g h
⎪
❥❥5 S ;T
)
⎪
/
⎪
⎪
❥
{a}
❥
{a}
❥❥ ❥
⎪
❥
❥
λy /
⎪
❥❥❥
λ
⎪
y S
⎪
⎪
⎩ a
f ○λy ✤ /
y
We know that f ○ λx ≡ f ○ λy :
a ✝✩❋❋❋ f ○λx
❋❋
λ
❋❋ x
❋❋
❋❋
❋❋
❋# f
x✤ /
f (x)
=
①; y✤ f
/
f> (y )
①①①
①
①①
①①
✽①①①
①①
λ y
a ✚
f ○λy
thus the assumption that f is a mono implies λx ≡ λy , hence both functions map a to the
same element, which implies x = y □ 7
Let us prove the converse:
(⇐ assume f : S → T is injective. We want to prove it monic in Set. Let A ∈ Obj (Set) and
g, h ∈ HomSet (A, S ). We have the diagram
f ○g
A ❚❚❚❚❚❚g❚❚
❚❚❚❚ f #
❥❥❥❥4
*
S /
< T
❥❥❥❥
❥❥❥❥
A h
f ○h
assume f ○ g ≡ f ○ h. That means f (g (x)) = f (h (x)) for every x ∈ A. But we know
f is injective, thus this implies g (x) = h (x) for every x ∈ A. That is the same as saying
g ≡ h. Thus, f injective implies f mono. □
– As said in the previous page, epic is also equivalent to surjective in morphisms of Set.
– A morphism that is both epic and monic is called a bimorphism.
– Thus, it follows from the above that bijective is equivalent to bimorphism in Set.
– How does this being a bimorphism relate to being an isomorphism?
∗ In Set, they are equivalent concepts. We call Set a balanced category because of this.
More on this in the next slide.
∗ In general, though, isomorphism implies bimorphism, but the converse need not be true.
Later on we will see a category and a morphism exemplifying this.
8
● So in a nutshell: when are two sets S1, S2 considered equivalent in the category Set?
(
Whenever S1 ≅ S2 in Set i.e. there exist isomorphisms S1 h S2 in Set, or functions
⎫
S2 ⎪⎪
⎪ ⎧
⎪
f
⎪
⎪ ⎪
⎪
S1 g ○f
⎪ ⎪
/
f (x) ⎪⎪
⎪ ⎪
⎪
⎪
⎪ ⎪
f g
x i.e.
⎪ ⎪
✤ '
/
g ○ f = 1 S S S1
⎪ ⎪
/ /
S1
⎪ ⎪
1 2
⎪
⎪ ⎪
⎪
f (x) g (f (x)) = x
✤ ✤
x / /
⎪
⎪
⎪ ⎪
⎪
⎪
S1 ⎪⎪ ⎪
⎪
f i.e.
g f '
⎪ ⎪
f ○ g = 1 S S S2
⎪ ⎪
/ /
S2 /
S2 2 1
⎪
g (y ) ⎪ ⎩
⎭
y ✤ / y ✤ /
g ( y ) ✤ /
f (g (y )) = y
in other words: whenever there exists at least one bijective function between S1 and S2
(because an invertible function is the same as a bijective function, Exercise).
● Set Theory studies properties conserved by isomorphisms of sets, i.e. bijective functions, e.g.
– cardinality because if there exists S1 → S2 bijective, then #S1 = #S2;
– countability, i.e. whether or not there exists a bijection N → given set;
if there exists f : S1 → S2 bijective, then S1 is countable if and only if S2 is countable.
– subsets, i.e. if there exists S1 → S2 in Set, then S1 and S2 have similar subset lattices.
≅
Obj (Grp) = {all groups} , HomGrp (G1, G2) = {all group morphisms G1 → G2} .
Definition 8. A group (G, ⋆) is a set G endowed with a binary operation ⋆ such that:
– ⋆ is internal, i.e. x ⋆ y ∈ G for every x, y ∈ G,
– ⋆ is associative, i.e. x ⋆ (y ⋆ z ) = (x ⋆ y ) ⋆ z for every x, y, z ∈ G,
– ⋆ has a neutral (identity) element eG ∈ G: eG ⋆ x = x ⋆ eG = x for every x ∈ G,
– every element x ∈ G has an inverse, i.e. x−1 ∈ G such that x−1 ⋆ x = x ⋆ x−1 = eG.
between the underlying sets G1 → G2 such that f (x △ y ) = f (x) □f (y ) for every x, y ∈ G1.
f
– The composition rendering this a category is the same as in Set, i.e. composition of the
underlying functions of group morphisms: (g ○ f ) (x) = g (f (x)).
– It is large, because if Obj (Grp) were a set, we would arrive to Russell’s paradox.
– It is also locally small, for the same reason as Set.
– it is concrete because each of its objects has an underlying set.
– it is a subcategory of Set, but it is not a full subcategory as we will see in a moment:
∗ Obj (Grp) ⊂ Obj (Set) because every group is also set;
∗ HomGrp (G1, G2) ⊂ HomSet (G1, G2); every group morphism is, after all, a function
● When are two groups (G1, ⋆), (G2, ⊙) considered equivalent in the category Grp?
Whenever (G1, ⋆) ≅ (G2, ⊙) in Grp i.e. whenever there exist
f ∈ HomGrp (G1, G2), g ∈ HomGrp (G2, G1) that are mutual inverses:
⎫
⎪ ⎧
⎪
⎪
⎪
⎪
⎪
⎪
f g ○f
⎪ ⎪
G1 G2
⎪ ⎪
/
a✤ f (a ) ⎪
⎪
⎪ ⎪
⎪
⎪ i.e.
f g '
f ( x1 ⋆ y 1 ) = f ( x1 ) ⊙ f ( y 1 ) ⎪ ⎪
/
g ○ f = 1 G G G1
⎪ ⎪
/ /
G1
⎪ ⎪
1 2
⎪
⎪ ⎪
⎪
a✤ f (a) ✤ / g (f (a)) = a
/
⎪ ⎪
G2 G1
⎪ ⎪
/
⎪
⎪
⎪ ⎪
⎪
⎪
g f
i.e.
'
⎪ ⎪
b ✤ /
g (b ) f ○ g = 1 G G G2
g ( x2 ⊙ y 2 ) = g ( x2 ) ⋆ g ( y 2 ) ⎪ ⎪
/ /
G2 2 1
⎪
⎭ ⎩ g (b ) f (g (b)) = b
✤ ✤
b / /
meaning whenever there exists a morphism between them which is bijective as a function
(the inverse of a bijective morphism is also a morphism, Exercise).
● Group Theory studies properties conserved by isomorphisms of groups, i.e. bijective group
morphisms, e.g.
– abelianity because if there exists G1 → G2, then G1 is abelian if and only if G2 is.
≅
– being cyclic, solvable, finite, long etcetera, for the same reason: if G1 ≅ G2 then one has
the given property if, and only if, the other has it too.
– all the properties Grp inherits from the larger category Set, e.g. cardinality, countability, etc.
Why is Grp not a full subcategory of Set?.
We know every morphism of groups is a morphism of sets (i.e. a function). Is the converse true?
{a, b, c, d} ⎫
⎪ {●, △, ,}
f
⎪
⎪
/
⎪
⎪
⎪
⎪
⎪ this is a function between sets,
a ✚❩❩❩❩❩❩❩❩❩❩❩❩❩❩❩❩❩ ❥❥❥❥❥❥❥5 ●
⎬
❩❩❥❩
❥❥❥❥ ❩❩❩❩❩,
⎪
✙❨❨❨❨ ❥❥
⎪
⎪
❥ ❨❨❨ ❦
⎪
✯❥❥❥❥❥ ❦❦❦❦❨❨❨❨❨❨❨,
⎪
c ❦❦❦❦❦❦❦❦ ❦ ❦
,
⎪
❦
⎪
⎭
✰ ❦ ❦❦
d ❦❦
if we define group structures on both sets with the following Cayley tables,
⋆ a b c d
+ ● △ ,
Exercise: prove ({a, b, c, d} , ⋆) and
a a b c d
● ● △ ,
({●, △, ,} , +) are indeed groups
b b c d a
△ △ , ●
c c d a b
, , ● △
d d a b c
then if the group morphism fails at least in one pair of elements, f will not be a group morphism:
} Ô⇒ f (b ⋆ c) ≠ f (b) + f (c) ,
f (b ⋆ c) = f (d ) = △
f (b ) + f (c ) = , + ● = ,
hence f ∉ HomGrp (({a, b, c, d} , ⋆) , ({●, △, ,} , +)), in other words:
Every group morphism is a set morphism, but the converse is generally not true.
Another example. Sets S := {a, b, c, d} and T := {x, y, z, t} are isomorphic in Set:
all we need to find is at least one isomorphism of Set between them, i.e. a bijective function:
{a, b, c, d} / {x, y, z, t}
f
a ✚❩❩❩❩❩❩❩❩❩❩❩❩❩❩ ♦7 x
❩❩❩❩❩♦❩♦♦♦♦
❩
b ✚❩❩❩❩❩❩❩❩❩❩❩❩♦❩♦❩♦♦♦♦♦♦ ❩❩❩, y
❩❩❩❩❩❩
♦♦♦ ❩❩❩❩,
c ✚❩❩❩♦❩♦❩♦❩♦❩♦❩♦❩♦❩❩❩❩❩❩❩ z
✴♦♦♦ ❩❩❩❩❩❩❩
❩❩,
d t
which we know is bijective because it has an inverse (equally bijective of course):
{x, y, z, t} / {a, b, c, d}
g
x ✎❖❖❖❖ ❞❞❞❞❞❞ a
❞2
❖❖❞❖❞❞❞❞❞❞❞❞❞❞❞
❞
y ✩❞❞❞❞ ❖❖❖❖❖❖❞❖❞❖❞❞❞❞❞❞❞❞❞❞❞2 b
❞ ❖❖
❞❞❞❞❞❞ ❖❖❖
z ✩❞❞❞❞ ❞❞❞❞❞ ❞
❞ ❞❞❞❖❞❖❞❖❞❖❞ c
❖ ❞2
❞ ❞❞ ❞❞❞ ❖❖ '
t ✩❞❞❞❞ d
That they are mutual inverses can be checked very easily: we check g ○ f = 1{x,y,z,t},
{a, b, c, d} / {x, y, z, t} / {a, b, c, d}
f g
a ✔❚❚❚❚❚❚❚ ♦♦7 x
❚❚❚❚
♦♦♦♦♦
b✤ ❚❚❚❚ ♦♦
♦♦♦♦❚♦❚❚❚❚❚
/y
♦♦♦ ❚❚❚❚
*
c ✚❩❩❩♦❩♦❩♦❩♦❩♦❩♦❩♦❩❩❩❩❩❩❩ z
✴♦♦♦ ❩❩❩❩❩❩❩
❩❩,
d t
is bijective and checking the morphism property on each pair of elements is easy, e.g.
f (b ⋆ c) = f (d) = x, f (b ) □ f (c) = y □ t = x ⇒ f (b ⋆ c ) = f (b ) □ f (c )
(and you can check the rest of cases yourselves, Exercise). 14
– But assume we change one of the group operations, say the one on T = {x, y, z, t}:
⋆ a b c d ⋅ x y z t
a a b c d x y x t z
b b c d a y x y z t
c c d a b z t z y x
d d a b c t z t x y
● T is also a group with the new operation ⋅ (Exercise);
/ (T, ⋅); you can find bijective functions between the underlying sets, e.g.
● but (S, ⋆) ≅
{a, b, c, d} / {x, y, z, t} {a, b, c, d} / {x, y, z, t} ⎫
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
a ✚❩❩❩❩❩❩❩❩❩❩❩❩❩❩ ♦7 x a ✔❚❚❚❚❚❚❚ 7x
functions defined in
⎬
❩❩❩❩❩♦❩♦♦♦♦ ❚❚❚❚ ♦♦ ♦♦♦
⎪
❩ ❚❚❚❚ ♦♦♦♦
b ✚❩❩❩❩❩❩❩❩❩❩❩❩♦❩♦❩♦♦♦♦♦♦ ❩❩❩, y
⎪
b✤ /y
the previous two slides
⎪
♦♦❚♦❚❚❚❚❚
⎪
♦
⎪
♦ ❩❩❩❩❩❩❩❩ ♦ ❚
♦♦♦
⎪
❚❚❚*
♦♦♦
⎪
❩❩,
c ✚ ♦❩♦❩♦❩♦❩❩❩❩❩❩❩❩❩❩ z c ✚❩❩❩♦❩♦❩♦❩♦❩♦❩♦❩♦❩❩❩❩❩❩❩ z
⎪
❩❩❩ ♦♦
⎭
✴♦♦♦ ❩❩❩❩❩❩❩
❩❩, ✴♦♦♦ ❩❩❩❩❩❩❩
❩❩,
d t d t
but no such bijection is a morphism between (S, ⋆) and (T, ⋅). This is easy to prove:
the identity elements are e(S,⋆) = c and e(T,⋅) = y; the smallest number of times we have
to operate b with itself to obtain e(S,⋆) (called the order of b) is 4, whereas no element in
(T, ⋅) has order 4 . Any bijective morphism would preserve order (Exercise) hence
– you can find bijective maps S → T but they will not be morphisms (S, ⋆) → (T, ⋅),
– and morphisms (S, ⋆) → (T, ⋅) exist (e.g. map all of S to y) but none are bijective.
Thus the heuristic conclusion is: being isomorphic in Grp is harder than in Set.
● Grp has an important subcategory of its own: Ab, the large, concrete category of abelian groups,
Obj (Ab) = {all abelian groups} , HomAb (G1, G2) = HomGrp (G1, G2) .
R ∖ {0}
f 1 / f2 / f f4
R R (0, ∞) Z 3 / Q8 Z /
Z
/ x / x / 2
x✤ e x✤ e k✤ i
/ k k✤ k
then f1, f2, f3, f4 ∈ HomSet, f1, f2, f3 ∈ HomGrp, f1, f2 ∈ HomAb and
16
f2 is an isomorphism in Ab.
● Ring, the large, concrete category of rings, is given by
Obj (Ring) = {rings} , HomRing (R1, R2) = {ring morphisms R1 → R2} .
Definition 11. A ring (R, +, ⋅) is a set R endowed with two binary operations +, ⋅ such that:
– +, ⋅ are internal, i.e. x + y and x ⋅ y ∈ R for every x, y ∈ R,
– (R, ⋅) is an abelian group (see the preceding slide),
– ⋅ is associative, i.e. x ⋅ (y ⋅ z ) = (x ⋅ y ) ⋅ z for every x, y, z ∈ R,
– +, ⋅ satisfy the distributive properties:
x ⋅ (y + z ) = (x ⋅ y ) + (x ⋅ z ) and (x + y ) ⋅ z = (x ⋅ z ) + (y ⋅ z ) , for every x, y, z ∈ R,
Additional properties:
– If ⋅ has a neutral element, 1R such that 1R ⋅ x = x ⋅ 1R = x for every x ∈ R, we call
R unitary or unital.
– If x ⋅ y = y ⋅ x for every x, y ∈ R, we call R commutative.
Examples
∗ with the usual + and ⋅, (Z, +, ⋅) , (Q, +, ⋅) , (R, +, ⋅) , (C, +, ⋅) ∈ Obj (URing);
∗ the set of n × n matrices with coefficients in a ring R, with the usual matrix sum and
product, Matn (R) ∈ Obj (URing) and 1Matn(R) = Idn, the n × n identity matrix.
∗ the subset of even numbers 2Z = {2k : k ∈ Z} ⊂ Z is a ring with same operations as Z, i.e.
(2Z, +, ⋅) ∈ Obj (Ring), but (2Z, +, ⋅) ∉ Obj (URing) .
∗ with the usual operations, (N, +, ⋅) ∉ Obj (Ring) (let alone Obj (URing)).
– CRing, the category of commutative rings, is full in Ring:
Obj (CRing) = {commutative rings} ,
HomCRing ((R1, +, ⋅) , (R2, ,, /)) = HomRing ((R1, +, ⋅) , (R2, ,, /)) ;
Examples
∗ with the usual + and ⋅, (Z, +, ⋅) , (Q, +, ⋅) , (R, +, ⋅) , (C, +, ⋅) ∈ Obj (CRing);
∗ Matn (R) ∉ Obj (CRing) because matrix product is not commutative if n > 1.
An important full subcategory of Ring, URing and CRing:
– Int, the category of integral domains, is given by
Obj (Int) = {integral domains} , HomInt (R1, R2) = HomRing (R1, R2) ;
Definition 13. An integral domain (or simply a domain) is a commutative, unitary ring
(R, +, ⋅) that has no divisors of zero (other than 0R itself ), i.e. for any x, y ∈ R, x ⋅ y implies
x = 0 or y = 0.
Examples (see References and Algebra Notes for examples and definitions):
∗ with the usual + and ⋅, (Z, +, ⋅) , (Q, +, ⋅) , (R, +, ⋅) , (C, +, ⋅) ∈ Obj (Int);
∗ the ring of polynomials R [X ] with coefficients in R (whenever R is a domain itself ) is
also a domain;
∗ Euclidean domains, i.e. domains allowing a division process (with a quotient and a
remainder) similar to that of Z and polynomials over Q, R or C;
∗ principal ideal domains (PID), i.e. domains all of whose ideals are principal, expressible
as multiples of a single generator, e.g. (Z, +, ⋅), R [X ], Q [X ] are PID but Z [X ] is not;
∗ unique factorization domains (UFD), i.e. domains all of whose elements can be decom-
posed in unique fashion in terms of products of irreducible elements; e.g. all PID are UFD.
19
– Let n ∈ Z. The set of possible remainders upon division by n, {0, 1, . . . , n − 1}, yields the
set of congruence classes of integers modulo n, Zn := {0, 1, . . . , n − 1} (also written
Z/ (n) or Z/nZ) by way of the equivalence relation (expressed in different ways)
k1 − k2 is a k1, k2 have the same remainder
k1 = k2 ⇔ k1 ≡ k2 mod n ⇔ ⇔
multiple of n upon division by n
for instance, 3 = 7 = 11 = −1 in Z4.
∗ we can define the following operations on Zn,
k1 + k2 := r, r, q ∈ Z being such that k1 + k2 = nq + r and 0 ≤ r < n,
k1 ⋅ k2 := R, R, Q ∈ Z being such that k1k2 = nQ + R and 0 ≤ R < n.
and it can be proved that (Zn, +, ⋅) ∈ Obj (CRing) , Obj (URing), for instance (Z4, +, ⋅)
has the following operation tables:
+ 0 1 2 3 ⋅ 0 1 2 3
0 0 1 2 3 0 0 0 0 0
1 1 2 3 0 1 0 1 2 3
2 2 3 0 1 2 0 2 0 2
3 3 0 1 2 3 0 3 2 1
also (Zn, +, ⋅) ∈ Obj (Int) if and only if n = 0 or n is a prime number.
For instance (Z4, +, ⋅) described above is not a domain. 20
An important full subcategory of Ring, URing, CRing and Int:
– Field, the category of fields, is given by
Obj (Field) = {fields} , HomField (F1, F2) = HomRing (F1, F2) ;
Definition 14. A field is a commutative, unitary ring (R, +, ⋅) in which every nonzero element
is invertible (with respect to ⋅): if x ∈ R ∖ {0R }, then there exists y ∈ R such that x ⋅ y = 1R .
Examples
∗ with the usual + and ⋅, (Q, +, ⋅) , (R, +, ⋅) , (C, +, ⋅) ∈ Obj (Field);
∗ (Z, +, ⋅) ∉ Obj (Field) because the only invertible elements in Z are ±1.
∗ (Zn, +, ⋅) ∈ Obj (Field) if and only if n is a prime number.
∗ (H, +, ⋅), Hamilton’s quaternions, endowing 4-dimensional space with a ring structure:
dk bi + dk
i2 = j2 = k2 = ijk = −1
– The category of groups, Grp, is balanced, however. In other words every epic and monic
morphism of groups is also an isomorphism.
22
● Given a ring R, the large, concrete category of R-modules is R − Mod given by
Obj (R − Mod) = {R-modules} , HomR−Mod (M1, M2) = {R-linear maps M1 → M2} .
Definition 15. Given a ring (R, +, ⋅), an R-module or module over R is a set M endowed with
two operations (one internal, one external)
M ×M /M R×M M
/
(m 1 , m 2 ) ✤ /m
1 m2 (r, m) ✤ /r m
– f (m1 n1) = f (m1) f (n1), ∀m1, n1 ∈ M1, i.e. f ∈ HomAb ((M1, ) , (M2, ));
– f (r m) = r f (m), for every r ∈ R, m ∈ M1.
In particular, the category of Z-modules “is” the category of abelian groups. More on this later.
● Ring Theory studies properties conserved by ring isomorphisms and modules over them, i.e.
ring or module morphisms that are bijective as functions e.g.
– the ones inherited from Set, e.g. cardinality, etc.
– the ones inherited from Grp and Ab for the first operation in a ring, e.g. cyclic ideals.
– commutativity: if R1 ≅ R2 then R1 is commutative if, and only if, R2 is.
– their ideal lattices, or being division rings, factorial, principal, long etcetera.
● Commutative Algebra studies properties conserved by isomorphisms of commutative rings
and modules over commutative rings, e.g.
– all of the above,
– being finitely generated as modules, being Artinian, Noetherian modules, long etcetera.
– being Artinian rings, Noetherian rings, fields, domains, Euclidean, PID, UFD, long etcetera.
● Linear Algebra studies the category of vector spaces K −Vect (i.e. modules over a field K),
thus properties conserved by isomorphisms of K-vector spaces, e.g.
– the ones inherited from Set or, for the vector sum , category Ab,
– dimension, i.e. the size of a basis: if V ≅ W in K −Vect, then dimK V = dimK W .
– number and structure of vector subspaces and direct summands,
– long etcetera
24
A few more examples of large, concrete categories
● Let K be a field. Intuitively speaking, an affine space is any set of points A such that if we fix an
a ∈ A, the segments (properly defined) between a and the rest of elements of A form a K-vector
Ð
→
space A having a as its additive neutral element (i.e. the zero vector, 0, or abelian group neutral
element for ):
⎫
⎪
a5 ⎪
⎪
⎪
⎪
a3
a4 ⎪
⎪
⎪ And choosing another
a2 a6
⎪
⎪
⎪
a7
⎪ origin instead of a0
⎬
⎪
⎪
⎪
⎪
yields a vector space of
⎪
⎪ Ð
→
⎪
⎪
⎪ the same dimension as A
⎪
ak
⎪
a1
⎪
⎭
a0
The large, concrete category of affine spaces is K −Aff given by
Obj (K −Aff) = {K-affine spaces} , HomK−Aff (A1, A2) = {affine maps A1 → A2} .
Ð
→
where a function f : A1 → A2 is called affine if it is consistent with a similar linear map f ∈
Ð→ Ð→
HomK−Vect(A1, A2) in a certain way.
25
– For instance, Rn = {(x1, . . . , xn) : xi ∈ R} can be seen
∗ as a vector space (which we can still denote as Rn), in which case 0 = (0, . . . , 0) is
the additive neutral element, and each of its vector or linear subspaces is the kernel (or
nullspace) of a linear map, i.e. the solution to a set of linear equations:
underlying set is the same), if we choose the origin to be any other point (e.g.
p0 = (1, 1, . . . , 1)) and the arrows joining p0 to the other points form a vector space with
the same structure (i.e. isomorphic) to the vector space Rn. In this case, affine subspaces
are the set of solutions to a set of affine equations – in this context, an affine map (as de-
scribed in the previous slide) is defined as a linear map followed by a possible translation:
R ⇔ S = {x ∈ R : Ax = b} ,
S affine subspace of An for some A ∈ Matm×n (R) .
n
26
– Examples of this are easy to find. An affine subspace of An
R of dimension d can be described
by a system of n − d affine equations:
AFFINE PLANE (d = 2) x
{ x − y + 2z = 1 }
1 −1 2 y = 1
´¹¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¸¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹¶ z
´¸¶
A ´¹¹ ¹ ¸¹ ¹ ¹¶ b
x
AFFINE LINE (d = 1)
{ }
x + 2y = 1
x + 3 y − 2z = 3
x
1 2 0 y
1
1 3 −2 = 3
z
´¹¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹¸¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¶ ´¹¹ ¹ ¸¹ ¹ ¹¶ ´¹¸¹ ¶
A x b
AFFINE POINT (d = 0)
1 2 0 x 1 AFFINE AND VECTOR LINE (d = 1)
1 3 −2 y = 3
{ }
1 −1 2 z 1 x + 6y + 11z = 0
´¹¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¸¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹¶ ´¹¹ ¹ ¹ ¹ ¹¸¹ ¹ ¹ ¹ ¹ ¹¶ ´¹¹ ¹ ¹ ¹ ¸ ¹ ¹ ¹ ¹ ¹ ¶ 3y + 5 z = 0
A x b x
1 6 11 y
0
0 3 5 = 0
z
´¹¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¸ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹ ¹¶ ´¹¹ ¹ ¸¹ ¹ ¹¶ ´¹¸¹ ¶
A x 0
– When are two affine subspaces S1, S2 considered “equivalent” in K − Aff? Whenever
S1 ≅ S2 in this category, i.e. mutually inverse affine functions S1 i S2 exist.
)
– In the context C = R − Aff (e.g. that of the figures in the previous slide) this entails the
existence of an affine isomorphism, meaning a function S1 → S2 which is:
f
– Affine Geometry studies properties left invariant by affine isomorphisms. Which are
basically the same as those of Linear Algebra , plus some others, e.g. parallelism, simplicial
medians and barycenters, cross ratio, etcetera.
– Affine maps x ↦ Ax + b are usually mistaken with linear maps x ↦ Ax. Linear implies
affine (it is affine with trivial translation b = 0) but affine does not necessarily imply linear.
28
– For instance, spaces S1 and S2, seen as affine subspaces of A2R, are isomorphic in R−Aff: a
translation can transform one set into the other, and a translation is an affine bijection:
S1 = {y − 2x = 1} S2 = {y − 2x = −12}
Needless to say you can find infinitely many such translations, e.g.
x = 2xx+ 1
F (x) = x2+x 6 = Id2 x + 6
−1
S1 = {y − 2x = 1} S2 = {y − 2x = −12}
but the existence of at least one, and the fact it is bijective, is enough to establish S1 ≅ S2 in
the category of affine spaces. Meaning: they are “essentially” the same object in this category.
– R−Aff is not full as a subcategory of, say, Set, because not every morphism of sets (i.e. func-
tion) A1 → A2 need be affine, for instance,
+ 2 x2
f (x) = 27 + 4 x2
x = 2xx+ 1
S1 = {y − 2x = 1} S2 = {y − 2x = −12}
is a function between the two sets S1 and S2, i.e. f ∈ HomSet (S1, S2), but it is not an affine
function; it is actually the restriction F ∣S1 where
A2R F /
A2R
x ✤ / 2 x2 + 7
y y + 4 x2 − 2 x + 1
– these two, on the other hand, are isomorphic, thus categorically “the same”:
x + 5 y − 4z = 4 x + 3y − 4z = −6
x
f (x)
f −1 (X) X
x f ∈ Hom (R−Aff) 1 2 3 x 1
x= y 0 1 −1 y + 3
z 0 0 1 z 2
1 2 3 −1 x 1 f −1 ∈ Hom (R−Aff) X
0 1 −1 y − 3 X= Y
0 0 1 z 2 Z
● An algebraic variety is a subset of An n
R or AC described by a system of algebraic, i.e. polynomial
equations in n variables, i.e. the set of zeros of a finite number of polynomial functions.
Examples:
– any affine (including linear) subspace of Rn or Cn, such as the ones in the previous slides, is
an algebraic set, because an affine map, e.g. x + 5y − 4z − 4, is a polynomial of degree one.
– not every algebraic manifold is an affine subspace, however:
– When will we consider two algebraic varieties V1, V2 equivalent in a consistent manner?
Whenever a biregular function V1 → V2 exists, i.e. such that
f
f /
g / h /
≅ ≅ ≅
f g h
(x, ax + b) ✤ /
(x, 0) ✤ /
(x, x2) ✤ /
Exercise
f −1 g −1 h−1 (x, y ) satisfying the
(t, at + b) o ✤
(t, 0) o ✤
(t, t2) o Exercise
✤
equation of a parabola
– In Algebraic Geometry properties conserved by biregular functions are relevant, e.g. di-
mension (also known as Krull dimension in Commutative Algebra).
– If we add one property, namely that a variety “resembles” Rp at each point locally, then an
algebraic variety is called an algebraic manifold and is also studied by Algebraic Geometry.
– R−Aff is not full as a subcategory of R−Var, which is not full itself in Set. Exercise.
So far we have
Affine Spaces
studied by
⊂ Algebraic Varieties and Manifolds
studied by
Affine Geometry ⊅ Algebraic Geometry
● A larger category: differentiable (or smooth, or C k manifolds), i.e. subsets of An R that can
be defined, at least locally (by way of a tool called an atlas), by C k functions, i.e. functions
f (x1, . . . , xn) at least k times differentiable and having continuous kth partial derivatives:
Obj Diffk = {all C k manifolds M ⊂ Rn} ,
HomDiffk M1, M2 = { k times continuously differentiable functions M1 → M2}
Every algebraic manifold is a differentiable manifold because polynomials are C k for every k (in
fact they are C ∞ and C ω ), but the converse is generally not true:
Tq S
Tp C
C q
p ≇ S
because their dimension, i.e. the dimension of their respective tangent spaces at any point,
is not the same: one is a manifold of dimension 1 (a differentiable curve), the other is a
manifold of dimension 2 (a differentiable surface);
∗ geodesics and their distribution within the manifold, long etcetera.
A pattern is clear: every topic studies a particular category
Affine Spaces
studied by
⊂ Algebraic Varieties and Manifolds
studied by
⊂ Differentiable Manifolds
studied by
Affine Geometry ⊅ Algebraic Geometry ⊅ Differential Geometry
● Define the category of topological spaces (see Topology Notes, Chapter 2) is Top by
Obj (Top) = {topological spaces} , HomTop (X1, X2) = {continuous functions X1 → X2} .
36
Example: relevant to our previous examples is the Euclidean topology on subsets S of An R,
whose open sets are those containing an open “circular” disk centered on any element of S:
OPEN
– affine spaces, algebraic manifolds and differentiable manifolds are Euclidean topological
spaces, but the converse is not true in general, for instance this topological curve is not a
differentiable curve:
The curve has a point with no unique
tangent line; the functions defining the
curve are continuous but they are not
differentiable at that point
– obviously, Top is not full in Set; think of examples of functions R → R with discontinuities.
– Topology has an interest in properties conserved by the isomorphisms of Top, which are
called homeomorphisms; think of the topological analogues of diffeomorphisms in Diffk ,
biregular functions in R−Var or affine isomorphisms in R−Aff; homeomorphisms are f :
(X, τX ) → (Y, τY ) such that
∗ f is continuous,
∗ f is bijective,
∗ f −1 is continuous.
there are many such properties, e.g.
∗ the possibility of deciding how “close” points are (i.e. the existence of a metric or distance),
∗ connectedness, i.e. being “in one piece”,
∗ compactness, intuitively (in the Euclidean case) being closed as well as the ability to see
the entire space if we are far enough,
∗ long etcetera including separability, countability axioms, ...
– We know that in a concrete category, f isomorphism implies f a bijective function. We
now have an example in which the converse is not true: not every continuous bijective map
between topological spaces is an isomorphism in Top. In other words:
Top is not a balanced category.
Exercise: find one such continuous and bijective (but not having a continuous inverse)
function, or look for an example in the Topology notes, e.g. Exercise 33 (p. 50).
● It is clear that we have a nested sequence of subcategories of Set:
● The smaller the category, the more rules, objects and properties it must preserve, thus the
more constraints it has – and thus the easier it becomes, which is why Affine Geometry allows
much less freedom, hence is much easier to learn than Topology or Set Theory. It also explains
why Group Theory is much easier than Set Theory,
Groups
studied by
⊂ Sets
studied by
Group Theory ⊅ Set Theory
39
Examples of small categories
● Let G be a group. Define category C by
40
● If we do not require each element to be invertible, we have something more general than a group:
Definition 19. A monoid (M, ⋆) is a set M endowed with a binary operation ⋆ such that:
– ⋆ is internal, i.e. x ⋆ y ∈ M for every x, y ∈ M ,
– ⋆ is associative, i.e. x ⋆ (y ⋆ z ) = (x ⋆ y ) ⋆ z for every x, y, z ∈ M ,
– ⋆ has a neutral (identity) element eM ∈ M : eM ⋆ x = x ⋆ eM = x for every x ∈ M ,
Let M be a monoid. Define category C in the same manner as we did in the previous slide:
– however, not every morphism f ∈ HomC (M, M ) is an isomorphism. For instance, in the
monoid (Z, ⋅), element 2 is not invertible with respect to ⋅ (its multiplicative element would
be 12 ∉ Z) but it is a morphism Z → Z of C.
2
41
● Let (S, ≤) be a poset, i.e. a partially ordered set. See the folder Background Material for
a small introduction to what that means. We define the small, non-concrete category C by
{(a, b)} , a ≤ b,
Obj (C ) := S, HomC (a, b) = {
∅ a>b
– Associative law is observed: a ≤ b and b ≤ c imply a ≤ c due to the transitive property:
– C is small, obviously, because Obj (Set) and HomC (a, b) ∀a, b are sets.
– You will find that for finite, total ordered sets (S, ≤), this category is “essentially the same”
as the categories N defined in the first lecture.
42
Examples of categories defined from other categories
● Let C be a category. We define the arrow category D := Arr (C ) by
Obj (D) = Hom (C ) , i.e. every object is a morphism f ∈ HomC (A, B ) for some A, B ∈ Obj (C ),
≡
≡
– we still need to define a law of composition on D. This will be simply given by placing com-
mutative squares next to one another: given the following two morphisms in D = Arr (C ),
{A → B} Ð→ {A → B } , {A → B } Ð→ {A → B }
f ′ f′ ′(α,β ) ′ ′ (α′,β ′) ′′ f ′′ ′′
and
{A → B} , {A → B } .
f f ′′ ′′
(α′, β ′) ○ (α, β ) := (α′ ○ α, β ′ ○ β ) ∈ HomD ′′
– Of course, we need to check the final claim, i.e. that (α′, β ′) ○ (α, β ) is indeed a morphism
in D. We have two commutative diagrams in C,
A α /
A′ A′ α′ /
A′′ A A′ A′′
f f′ f′ f ′′ where f , f′ , f ′′ ∈ Obj (D)
β′
β
B /
B′
B′ /
B ′′ B B ′′ B′
and studying α′ ○ α and β ′ ○ β equates to pasting these two diagrams together:
A α /
A′ α′ /
A′′
f f′ f ′′
β
β′
B /
B ′′ /
B′
associativity of ○ and commutativity of the two original diagrams implies
f ′′ ○ α′ ○ α = f ′′ ○ α′ ○ α = β ′ ○ f ′ ○ α = β ′ ○ f ′ ○ α = β ′ ○ β ○ f = β ′ ○ β ○ f
thus the following is commutative:
A α′○α A′′
/
A A′′
f ⟲ f ′′ ⇒ α′, β ′ ○ (α, β ) = (α′ ○ α, β ′ ○ β ) ∈ HomD f , f ′′
B
β ′○β /
B ′′
B B ′′
Exercise: prove associativity of the composition in D.
● See §3.4.1, Lemma 3.4.4 (the Five Lemma), Example 3.4.5, Definition 3.4.8 in the typeset
Algebra Notes. Given two R-modules M and N , define the large, concrete category C by
Obj (C ) = {all extensions of M by N , i.e. short exact sequences 0 → M → E → N → 0}
and given any two such extensions, define exact sequence i.e. short exact sequences of the form
⎧
⎪
⎪
⎪ E : 0 → M → E → N → 0,
f g
⎨
⎪
⎪
⎪ → →
f˜
→
g̃
N →0
⎩ F : 0 M F
morphisms E → F are given by ϕ ∈ HomR−Mod (E, F ) yielding a commutative diagram:
f g
0 /
M✤ /
E✤ /
N✤ /
0
✤ ✤ ✤
idM
✤
✤
✤
✤ ϕ
✤
✤ idN (3)
✤ ✤ ✤
f˜
✤ ✤ ✤
g̃
0 /
M /
F /
N /
0
in other words (if we take the two identity morphisms for granted in an abridged notation):
⎧
⎪ all morphisms E → F closing the diagram: ⎫
⎪
⎪
⎪
⎪ ⎪
⎪
⎪
⎪
⎪
⎪ ⎪
⎪
⎪
⎪
⎪
=E✤ ❇
⎪
⎪
HomC (E, F) = ⎨ ⎬
④④④ ✤ ❇❇❇
④ ❇❇
⎪ ⎪
④④ ❇❇
⎪ ⎪
④④ ✤
⎪
⎪
0 N /0 ⎪
⎪
✤
M ✤ϕ
⎪ ⎪
/
⎪ ⎪
❈❈ ⑤>
⎪
⎪ ⎪
⎪
❈❈❈ ✤ ⑤⑤
⎪ ⎪
❈❈ ✤ ⑤⑤
⎩ ⎭
❈ ⑤⑤
! ⑤
F 45
– All morphisms are isomorphisms in this category; indeed, the Five Lemma automatically
implies every morphism ϕ such as the one appearing in (3) will always be an isomorphism in
R−Mod, thus inducing an isomorphism in C.
– there may be objects in C such that there is no morphism between them. For instance,
Exercise, defining morphisms of Z-modules
(2) = {2k : k ∈ Z} i π τ pr
/ Z Z / Z2 (2) / (2) × Z2 (2) × Z2 / Z2
2k ✤ / 2k k✤ /k
k✤ / k, 0 (2k, m) ✤ /m
ss
9 Z✤ ❏❏❏❏
i
ss
ssss ✤
✤
❏❏ π
❏❏
❏❏
sss ❏❏
s ✤ %
0 /
(2) ■■ ✤
✤ ∄ : Z2 /
0
■■ ✉✉
■■ ✤ ✉✉✉
pr
■■ ✉
τ ■■
$
✤
✉✉
✉✉
(2) × Z2
where Cartesian product (2) × Z2 is endowed with Z-module structure with operations
(2k1, n1) + (2k2, n2) = (2k1 + 2k2, n1 + n2) , m ⋅ (2k, n) = (2mk, mn) ;
we will see a general version of × later on.
46
● Let C be a category. We define the opposite or dual category C op by inverting all the morphisms:
47
Examples
– (S, ≤)op = (S, ≥).
– Isomorphism is a self-dual categorical statement.
– Validity for every category implies validity of the dual for every category.
– Here is an example of how to find the dual E op from any categorical definition E:
M : a morphism f : M → N such that f g = f h implies g = h.
M op: a morphism f : N → M such that gf = hf implies g = h.
in other words: the Definitions of monic and epic in 3 are duals of one another.
– Another example:
Lemma 20. For a morphism f : A → B in Set, the following are equivalent:
1. f is monic;
2. f is left-invertible, i.e. there exists g : B → A such that g ○ f = idA.
The dual of Lemma 20 is the Lemma 21 below (Exercise). Observe how we operate with
compositions and the interchange of notions M , M op in the previous item:
Lemma 21. For a morphism f : A → B in Set, the following are equivalent:
1. f is epic;
2. f is right-invertible, i.e. there exists g : B → A such that f ○ g = idB .
Thus all you need to do (Exercise) is prove one of these Lemmae, knowing that by doing so
you will also prove its dual.
Exercises
● Prove everything marked as Exercise in this Section.
● Prove the following. If you can prove a result by merely proving its dual, make sure you do.
1. In an arbitrary category C, every isomorphism is monic and epic.
2. The inclusion of Z in Q is a monic and epic morphism in the category of rings but it is not
an isomorphism. Thus Ring is not balanced.
3. The composition of monic (resp. epic) morphisms is a monic (resp. epic) morphism.
4. If g ○ f is monic (resp. epic) then f is monic (resp. g is epic).
5. If g ○ f is an isomorphism, then f is monic and g is epic.
49
II Universal objects
Initial and final objects
Lemma 23. A is an initial (resp. final) object of C iff, it is a final (resp. initial) object of C op.
Proposition 24. Every initial (resp. final) object is unique up to a unique isomorphism.
Corollary 25. If a zero object exists, then every initial object and every final object is isomorphic to
the zero object.
50
Definition 26. Let C be a category with a zero object, which we will denote o. For every pair of
objects A, B ∈ Obj (C ), we define the zero morphism 0AB : A → B by the composition of unique
morphisms (remember Def. 22 (iii)) A → o → B.
Lemma 27. Morphism 0AB : A → B does not depend on the zero object o chosen to define it. The
composition of any morphism with 0XY is a zero morphism as well.
Definition 28. Let C be a category with a zero object. Let f ∈ HomC (A, B ). A kernel of f ,
written ker f , is a morphism i : K → A such that f ○ i is the zero morphism 0KB and for
every morphism j : X → A such that such that f ○ j = 0XB , there exists a unique morphism
h : X → K such that i ○ h = j:
KO✤ ❆❆❆
✤ ❆❆
❆❆
f ○i=0
✤
✤
❆❆ i
❆❆
✤ ❆❆
❆❆
✤ ❆
✤ f $
h✤ >A B
/
:
✤ ⑥⑥
⑥⑥
✤
⑥⑥⑥
✤ ⑥⑥
⑥⑥
✤
⑥⑥
⑥ j
✤
⑥⑥ f ○j =0
X 51
● The dual of a kernel is called a cokernel, cokerf of f : A → B in a category C with a zero
object. You can fill out the blanks yourselves (Exercise):
⑧⑧?
1 ●✤
⑧⑧ ✤
⑧⑧⑧ ✤
⑧⑧ ✤
⑧⑧⑧ ✤
⑧⑧ ✤
⑧⑧
● /
● ❄❄
❄❄
✤
✤
❄❄ ✤
❄❄ ✤
❄❄ ✤
❄❄
❄❄ ✤
❄❄ ✤
-
●
The following are left as Exercises as well:
Lemma 29.
(i) If it exists in C, every kernel (resp. cokernel) is unique up to isomorphism, i.e. any two kernels
(resp. cokernels) of f : A → B are isomorphic in a certain category.
(ii) Every kernel is a monic morphism. Thus every cokernel is an epic morphism.
(iii) ker (coker (ker f )) = ker f and coker (ker (cokerf )) = cokerf .
52
Example: in categories Grp, Ab, Ring, R−Mod, K−Vect kernels and cokernels exist and coincide
with the definitions familiar to each of those categories:
– in Grp and Ab, given a morphism f : G1 → G2, the inclusion morphism
x ✤ /
x
is a kernel (according to Def. 28 above) of f . In the usual context of Group Theory, we use
the same terminology kernel for both K (which we also label ker f ) and i : K → G1.
– Same applies to f : A → B in Ring, R−Mod, K−Vect and in general, categories whose ob-
jects have an underlying additive abelian group (more on this in the Exercises section later):
ker f refers to either K = {x ∈ A : f (x) = 0B }, or injective morphism K ↪ A.
i
– For instance, a linear map between K-vector spaces f : V1 → V2 can be expressed (fixing
bases on each space) with a matrix A; the kernel of f coincides with the equally-called kernel
(or nullspace) of matrix A: ker f = ker A = {v ∈ V1 : Av = 0} or its inclusion morphism
in V1:
ker f = ker A = {v ∈ V1 : Av = 0} Ð→ V1
i
x✤ /
a
{a} ❴*4
S but between a fixed {a} and any S
a✤ /
... there are #S functions
3. All groups with a single element G = {a} are zero objects of the category Grp (as well as Ab):
x✤ /
a
{a} /
G and a group morphism must map the identity element
a✤ /
eG a of {a} to the identity element of G
4. In a poset (S, ≤) (see slide 42), the smallest element, if it exists, is an initial object, and the largest
element, if it exists, is a final object. Exercise
54
5. Let (G, ⋅) be a group and H be subgroup of H (i.e. x ⋅y ∈ H for every x, y ∈ H). The following
is one of the most important constructs in Group Theory and has counterparts in Ring, R−Mod
and other categories as well.
– Define the category C whose objects are morphisms to other groups, vanishing on elements
of H, and whose arrows are those rendering the resulting diagrams commutative:
⎪ ⎪
2 ⑤⑤⑤⑤
✤
⎪
⎪ ⎪
⎪
✤
⎪
⎪
⎪ ⎪
⎪
⎪
⎪ ⎪
❇❇ ✤
⎪ ⎪
❇❇
⎪ ⎪
❇! ✤
f
⎩ ⎭
1
G 1
These indeed map objects of C to objects of C because if H ⊂ ker f1, then f1 (H ) = {0G1 }
thus f2 (H ) = ϕ (f1 (H )) = {0G2 }. Compositions work as well:
G k
f3rrrrrr9 3 a❈❈❈❈❈
r ❈❈
rrr
rrr f2 ψ ❈/
G ▲▲▲▲ G2 ψ○ϕ because (ψ ○ ϕ) ○ f1 = ψ ○ f2 = f3
▲▲▲
▲▲▲
ϕ ④④
④④=
▲▲▲ ④④
f1 % ④④
G1
and associativity in Hom (C ) follows from that of ○ in Grp. Thus C is a category.
– If H is a normal subgroup of G, i.e, its left cosets are equal to its right cosets,
f
G ❊❊❊ ;✇
/
G1
❊❊ ✇
❊❊
π G /H "
❊❊
✇
✇
ϕ
G /H
– For instance if G = Z with usual addition (abelian, thus all subgroups are normal) and
H = 3Z = (3) = {3k : k ∈ Z}, then the quotient is the group whose three elements are
three infinite subsets of Z:
f
(Z, +) (S3, ○)
/
m + N = {m + n : n ∈ N } = {n + m : n ∈ N } = N + m,
and thus the quotients will always exist as modules and produce initial objects of C defined
three slides ago, but this time with R−Mod:
f
M ●●● /
M1
M /N = {[m] = m + N : m ∈ M } , ●● :✈
●● ✈
●● ✈
π M /N #
● ✈
✈
∃!f˜ if N ⊂ ker f
M /N
– And given that a ring R is always a module over itself and its submodules are the ideals of R,
the same applies in Ring:
f
R ❈❈❈ /
R1
R/I = {[r] = r + I : r ∈ R} , ❈❈ ②<
❈❈ ②
π R /I !
❈❈
②
②
∃!f˜ if I ⊂ ker f
R /I
58
6. Let M, N be two R-modules. Let us define an important algebraic construct categorically.
– The Cartesian product M ×N can be endowed with an R-module structure with operations
(m 1 , n 1 ) + (m 2 , n 2 ) = (m 1 + m 2 , n 1 + n 2 ) , r ⋅ (m, n) = (r ⋅ m, r ⋅ n) ;
we will see more on this when we talk about products in categories.
– A bilinear map M × N → P is any function between R-modules M × N → P such that
1. f (m1 + m2, n) = f (m1, n) + f (m2, n) for every m1, m2 ∈ M, n ∈ N ;
2. f (m, n1 + n2) = f (m, n1) + f (m, n2) for every m ∈ M, n1, n2 ∈ N ; and
3. f (r ⋅ m, n) = f (m, r ⋅ n) for every m ∈ M, n ∈ N and r ∈ R.
– Define C by
⎪ ⎪
ss
⎪ ⎪
ss ✤
⎪
⎪ ⎪
⎪
✤
M × N ✤ϕ
⎪
⎪ ⎪
⎪
❑❑❑
⎪
⎪ ⎪
⎪
❑❑❑❑ ✤
⎪ ⎪
❑❑❑
g ❑% ✤
⎩ P′ ⎭
Then C has an initial object π⊗ : M × N → M ⊗R N . This R-module M ⊗R N is called
the tensor product of M and R.
– What does this mean? It means any bilinear map M × N → P factorizes in a unique way
as a composition of the distinguished bilinear map π⊗ : M × N → M ⊗R N and a linear
map (i.e. an R-module morphism) M ⊗R N → P . Thus the initial nature of M ⊗R N is
evident (pay attention to the arrows, and see π⊗ : M × N → M ⊗R N as a single entity):
e ar❤❤❤❤4 M ⊗✤ R N
in
bil ❤❤❤❤
π ❤⊗❤❤❤❤❤ ✤
❤❤❤❤ ✤
M × N ❱❱❱❱❱❱ ✤
✤ ∃ ! f˜ linear
❱❱❱❱ ✤
❱
f biline❱❱❱❱❱❱❱❱❱❱❱ ✤
ar ❱❱❱+
P
– The actual definition of M ⊗R N and π⊗ can be seen e.g. in §3.6 in the Algebra Notes
but suffice it to say that π⊗ maps every pair (m, n) to a single element m ⊗ n (hence the
reduction from bilinear to linear) in such a way that
(m1 + m2)⊗n = m1⊗n+m2⊗n, m⊗(n1 + n2 ) = m⊗n1 +m⊗n2 , r⋅(m ⊗ n) = (rm)⊗n = m⊗(rn)
in which case a basis of Rn ⊗R Rn will consist of n2 matrices expressed in the following form
1 0 ⋯ 0 0 1 ⋯ 0 0 0 ⋯ 1
0 0 ⋯ 0 0 0 ⋯ 0 0 0 ⋯ 0
e1 ⊗ e1 = ⋮ ⋮ ⋱ ⋮ , e1 ⊗ e2 = ⋮ ⋮ ⋱ ⋮ , ⋯ e1 ⊗ en = ⋮ ⋮ ⋱ ⋮ ,
0 0 ⋯ 0 0 0 ⋯ 0 0 0 ⋯ 0
0 0 ⋯ 0 0 0 ⋯ 0 0 0 ⋯ 0
1 0 ⋯ 0 0 1 ⋯ 0 0 0 ⋯ 1
e2 ⊗ e1 = ⋮ ⋮ ⋱ ⋮ , e2 ⊗ e2 = ⋮ ⋮ ⋱ ⋮ , ⋯ e2 ⊗ en = ⋮ ⋮ ⋱ ⋮ ,
0 0 ⋯ 0 0 0 ⋯ 0 0 0 ⋯ 0
⋮ ⋮ ⋱ ⋮
0 0 ⋯ 0 0 0 ⋯ 0 0 0 ⋯ 0
0 0 ⋯ 0 0 0 ⋯ 0 0 0 ⋯ 0
en ⊗ e1 = ⋮ ⋮ ⋱ ⋮ , en ⊗ e2 = ⋮ ⋮ ⋱ ⋮ , ⋯ en ⊗ en = ⋮ ⋮ ⋱ ⋮ ,
1 0 ⋯ 0 0 1 ⋯ 0 0 0 ⋯ 1
and any element of the form (4) can be expressed in a unique manner as a linear combination
of the above: x ⊗ y = x1y1 (e1 ⊗ e1) + x1y2 (e1 ⊗ e2) + . . . .
– Does that mean that every element in Rn ⊗R Rn can be expressed as x ⊗ y ?
Not at all; the set S = {x ⊗ y : x, y ∈ Rn} generates Rn ⊗R Rn, meaning every element
in the vector space Rn ⊗R Rn can be expressed as a combination of elements of S, albeit not
in a unique manner–you need a basis for that additional uniqueness property, and you have
one in the preceding slide.
– For instance: if n = 3, the following element of R3 ⊗R R3 can be expressed in terms of the
elements of S in different ways
4 3 11 1 0 1 4 1 4 0 8
T= 12 6 30 = 0 ⊗ 1 + 3 ⊗ 2 = 1 ⊗ 3 + 1 ⊗ 3
4 6 14 4 1 1 10 3 11 −1 19
and this will also be reflected in the expression of the basis elements (which will also be vec-
tors of length nm) and the rest of the arguments written before will apply here as well. For
instance, in this expression the above example for n = m = 3 reads
4
12
4
1 0 1 4 1 4 0 8 3
0 ⊗ 1 + 3 ⊗ 2 = 1 ⊗ 3 + 1 ⊗ 3 = 6
4 1 1 10 3 11 −1 19 6
11
30
14
i.e. the matrix of the previous slide stacked in one column (this is not the only way to do it).
– The reason why both methods (matrices or long vectors) are equivalent to one another and
equally useful to represent elements of Rn ⊗R Rm will not be dealt with in too much detail
here; suffice it to say that they are a consequence of certain isomorphisms that hold true for
spaces of finite dimension (some of those can be found in §3.6 of the Notes).
– What happens if we have a bilinear function defined on Rn × Rm?
To make it easier, let us do it with an example: the following is a bilinear map (Exercise)
R2 × R3 B /
R4
x1 y 1 + x1 y2 + x2 y 3
y1
x1 2 x1 y 3 + x2 y 1 + 3 x 2 y 2 + x 2 y 3
x2 , y2 ✤ /
B ( x, y ) = 4 x1 y2 + x1 y 3 + x2 y 1 + x2 y 2 + x2 y 3
y3
x 2 y 1 + x2 y 3
the Universal Property of the Tensor Product (in other words, the fact that π⊗ : R2 × R3 →
R4 is an initial object of the category C defined earlier) implies the existence of a unique linear
map B̃ : R2 ⊗R R3 → R4 such that
⎧
⎪ ⎫
⎪
⎪
⎪
⎪
M ⎪
⎪
⎪
⎪
⎪ ⎪
⎪
= ✤
f ④④④ ✤
⎪ ⎪
④④
⎪
⎪
⎪ ⎪
⎪
⎪
⎪ N ⎪
❈❈ ✤
⎪ ⎪
❈❈ ✤
g ❈!
⎩ ⎭
An initial object (Def. 22) of this category, X → R(X ), provides precisely a free R-module
with a basis having the same cardinality as X.
● The converse is true: every free module equals R(X ) for some set X (Th. 3.3.3 in Algebra Notes).
● Let us see this with an example whose outcome we already know: the R-vector space M = R3.
To prove that R3 is a free module of dimension 3, let us choose an arbitrary set whose cardinality
equals the dimension, i.e. X = {a, b, c}. Define τ to be the following set function:
X τ /
R3
1
a ✤ / 0
0
We deliberately choose these vectors because we know
0 they form a basis (commonly known as the canonical (5)
b ✤ / 1 basis)
0
0
c ✤ / 0
1
Consider any other vector space, e.g. N = R2, and any other set function, e.g.
f
X /
R2
1
a✤ /
2
2
b✤ /
3
−1
c✤ /
7
66
● Then there exists a unique linear (i.e. ∈ HomR−Mod) function f˜ : R3 → R2 closing the diagram
= ✤
⑤⑤ ✤
R3
τ ⑤⑤
⑤⑤
✤
⑤⑤
✤
X ❇❇❇ ✤ f˜
❇❇ ✤
❇❇ ✤
❇!
f
R2
We know we can find this function because Linear Algebra provides us with the tools to do so:
f˜
R3 /
R2
x x
y ✤ / 1 2 −1
y
z
2 3 7 z
What happens if we choose some other vector space N and some other function in X → N ?
We will still have a unique linear function f˜ : R3 → N closing the corresponding diagram.
Exercise: prove this as formally as you can.
● Thus X → R3 is an initial object of the category D{a,b,c}. This is how Category Theory
τ
characterizes the notion “R3 has a basis”. It also relates well to practical problems, because
τ ({a, b, c}) is indeed a basis.
● In the definition of τ , you could have chosen another set of 3 linearly independent vectors instead
of the canonical basis chosen in (5); everything stated above would still be true (albeit with a
different definition of f˜, think why) and τ ({a, b, c}) would still be a basis of R3.
● The logical question is: can we extend this construction to a general concrete category C?
Let X be a set and define, once again, DX by its objects and morphisms,
⎧
⎪ ⎫
⎪
⎪
⎪
⎪
A ⎪
⎪
⎪
⎪
⎪ ⎪
⎪
f ⑤> ✤
⎪ ⎪
⑤⑤ ✤
⑤⑤
X → A, X → B = ⎨ ϕ ∈ HomC (A, B ) : ϕ ○ f = g X ❇❇ ✤✤ ϕ ⎬
f g ⑤⑤⑤ ✤
HomDX
⎪
⎪
⎪ ⎪
⎪
⎪
⎪
⎪ ⎪
⎪
❇❇
⎪ ⎪
✤
⎪ ⎪
❇❇
g ❇ ✤
⎩ ⎭
❇
B
i.e. for every function X → A there is a unique ψ ∈ HomC (F, A) such that ψ ○ i = f ,
f
F
> ✤
i⑤⑤⑤⑤⑤⑤ ✤
⑤⑤ ✤
✤
X ❇❇❇ ✤ ψ
❇❇ ✤
❇❇ ✤
f ❇
A
and if it exists, F ∈ Obj (C ) is unique save for isomorphism in C (or in DX ).
68
Examples
– It is clear from Th. 3.3.3 in Algebra Notes that R−Mod, hence also Ab, have free objects.
See Exercise 406 (p. 396) in those Notes for a proof of uniqueness up to isomorphism in
R−Mod, and think of how you would extend it to an arbitrary category.
– Same applies to the category of groups, Grp. Let X = {xi}i∈I be any set; define X =
{xi}i∈I to be a set of the same cardinality as X. Define Y := X ∪ X. A word in X is any
finite concatenation of elements of Y , i.e. elements of the form
⑥⑥
B✤ ❆❆❆
⑥⑥ ✤ ❆❆
f1 ⑥⑥⑥⑥⑥ ✤ ❆❆
f
❆❆ 2
⑥⑥
✤ ϕ ❆❆
❆❆
⑥⑥⑥ ✤ ❆❆
⑥ ✤ ❆❆
~⑥
⑥ p p2
1
A1 o
A /
A2
We call A a product of A1 and A2 and write A = A1 × A2.
● A product of A1 and A2, if it exists, is unique up to isomorphism: given two of them, A → Ai
fi
f˜i
and à → Ai, the unique morphisms ϕ and ψ resulting from the above definition yield
A✤ ❅❅❅
⑦⑦
⑦⑦ ✤ ❅❅
⑦ ❅❅
f 1⑦⑦⑦⑦
⑦ ✤ ❅❅ 2f
⑦ ψ ✤✤ ❅❅
❅❅ and the same uniqueness applied to the outer diagram
⑦⑦⑦ ✤ ❅❅
f˜ f˜
⑦ ❅❅
implies ϕ ○ ψ = 1A . Same thing if you now place A in the
⑦
⑦
1 2 /
A1 o
Ã✤ A2
_❅❅
❅❅
❅❅
✤ ⑦⑦⑦
?
middle row: you will obtain ψ ○ ϕ = 1Ã
❅❅ ✤ ⑦⑦
⑦⑦
❅❅
❅ ϕ ✤✤ ⑦⑦
⑦
f 1 ❅❅❅❅❅ ✤ ⑦⑦⑦⑦ f 2
⑦⑦
A
● More in general, let C be a category and {Ai}i∈I ⊂ Obj (C ) a set of objects. We define C ′ by
There is no product in this category. We will prove this by verifying that there is no
product Z2 × Z2 in C. Such a product P → Z2 ought to be cyclic as well, hence P ≅ Zn
p 1 ,2
for some n, and there should be a unique ϕ rendering the following commutative:
idZ Z✤ 2 ▼▼▼ id
rrr
r ▼▼▼ Z
2
rrr ✤
ϕ 2 ▼▼▼
rrrrr ✤ ▼▼▼
▼&
x r
Z2 o
p1 Zn p2
/
Z2
idZ r
Z✤ 2 ▼▼▼
2 rrrr ▼▼▼
0
✤ ψ
rr ✤ ▼▼▼
rrr ▼▼▼
x rr
r ▼&
Z2 o
p1 Zn p2
/
Z2
> B
fi ⑤⑤⑤⑤⑤
⑤
⑤⑤
Ai ❇ ψ
❇❇
❇❇
gi ❇❇
C
Definition 33. We say {Ai → C} ∈ Obj (C ′) is a coproduct of {Ai}i∈I if it is an initial object
hi
i∈I
of C ′. We write C = ∐i∈I Ai . In other words, for any {Ai → B}
fi
∈ Obj (C ′) there exists a
i∈I
unique f ∈ HomC (∐i∈I Ai, B ) such that fi = f ○ hi for every i ∈ I:
fi
Ai ❏❏❏ ✉:
/
B
❏❏ ✉
❏❏ ✉
❏❏ ✉
✉
hi ❏% ✉ f
∐i∈I Ai
● Again, in virtue of Proposition 24,
Lemma 34. ∐i∈I Ai is unique up to isomorphisms in C.
Examples
– In the category C = Set the coproduct is the disjoint union with the obvious injections:
given X1, X2 ∈ Obj (Set), X1 ∐ X2 := X1 ⊎ X2–think of how you would inject X1, X2
into X1 ⊎ X2 with adequate morphisms.
– In Top the coproduct is the disjoint union with the corresponding natural topology.
– Ab has a coproduct: direct sum. Given a family of abelian groups, {Gi}i∈I , we define
S
idZ♦♦♦♦♦♦♦ O✤✤ 3 id
7 g❖❖❖
❖❖❖Z
❖❖❖
♦♦♦
♦♦ ψ✤ ❖❖❖
❖❖❖
♦♦♦
Z h1
/
Z⊕Z h o
Z
2
would imply
(1, 2, 3) = f1 (1) = ψ (h1 (1)) = ψ (1, 0) , (1, 3) = f2 (1) = ψ (h2 (1)) = ψ (0, 1) ,
but (1, 1) = (1, 0) + (0, 1) = (0, 1) + (1, 0), hence
ψ (1, 1) = (1, 2, 3) (1, 3) = (2, 3) , ψ (1, 1) = (1, 3) (1, 2, 3) = (1, 2) ,
contradiction.
– Grp does have a coproduct, though; it is called the free product but it is constructed in a
different way and is usually not abelian even if the groups it is built from are.
Exercises
● Prove everything marked as Exercise in this Section.
● A pre-additive category C is one satisfying the following:
– for every A, B ∈ Obj (C ), HomC (A, B ) is an abelian group, written additively;
– composition of morphisms is Z-bilinear, i.e.
g + g ′ ○ f + f ′ = g ○ f + g ○ f ′ + g ′ ○ f + g ′ ○ f ′.
Prove that if C is a pre-additive category and A ∈ Obj (C ), the following are equivalent:
(i) A is an initial object;
(ii) A is a final object;
(iii) A is a zero object;
(iv) 1A = 0, i.e. the neutral element of (HomC (A, A) , +);
(v) (HomC (A, A) , +) is a trivial group, i.e. consisting of only one element.
● Let C be a pre-additive category. Given A1, A2 ∈ Obj (C ), a biproduct of A1, A2 is a family of
morphisms pj : B → Aj , ij : Aj → B such that pj ○ ij = 1Aj and i1 ○ p1 + i2 ○ p2 = 1B .
Prove that for a pair of objects {A1, A2} in a pre-additive category, the following are equivalent:
(i) {A1, A2} has a product;
(ii) {A1, A2} has a biproduct; 77
(iii) {A1, A2} has a coproduct.
● An additive category is a pre-additive category with a zero object such that every pair of objects
has a biproduct. An additive category such that
(i) every morphism has a kernel and a cokernel,
(ii) every monic morphism is a kernel,
(iii) and every epic morphism is a cokernel,
is called abelian.
Let C be an abelian category. Prove the First Isomorphism Theorem: every morphism f in C
factorizes in the form f = k ○ c, where k is monic and c is epic.
● Let R be a ring.
(i) Prove that for a morphism f : M → N in R−Mod, the following are equivalent:
(a) f is monic;
(b) ker f = {0M }, where ker f = {m ∈ M : f (m) = 0N } is the kernel of f .
(ii) State the dual of the above statement (which will automatically be true).
78
II Functors
First notions
Definition 35. Let C1 and C2 be two categories. A covariant functor (resp. contravariant functor)
is an assignation F : C1 → C2 defined as follows:
– for every A ∈ Obj (C1), F (A) ∈ Obj (C2);
– for every A, B ∈ Obj (C1), we have a correspondence (a class function)
HomC1 (A, B ) /
HomC2 (F (A) , F (B ))
f✤ /
F (f )
HomC1 (A, B ) /
HomC2 (F (B ) , F (A))
resp.
f✤ /
F (f )
such that for any morphisms f, g, and whenever composition makes sense,
∗ F (g ○ f ) = F (g ) ○ F (f ) (resp. F (g ○ f ) = F (f ) ○ F (g )), i.e.
F (f ) F (g ) F (f ) F (g )
F (A ) /
F (B ) /
2 F (C ) resp. F (A ) o l F (B ) o F (C )
F (gf ) F (gf )
80
Examples
● A constant functor C → C ′ maps all objects in C to a fixed object in C ′, and all morphisms in C
to the identity morphism of said fixed object: fixing C ∈ Obj (C ′),
C /
C′
A✤ /
C
f 1C
B C ✤ /
Grp F /
Set
(G1, ⋅) ✤ /
G1
f f
(G2, △) ✤ /
G2
is called the forgetful functor because it “forgets” or “chooses to ignore” the structure of the
groups and morphisms and sees them as naked sets and functions.
● Similarly, there are forgetful functors on other categories we have seen, e.g. Ab → Set,
Top → Set, R−Mod → Set, R−Var → Set, etc.
● Forgetful functors also exist if we ignore one of the operations, e.g. Ring → Ab, R−Mod → Ab.
● Same applies to forgetful functor Top● → Top (we will define Top● later) or to “forgetting
about the metric” Met → Top where Met is the category of metric spaces whose morphisms
are continuous functions according to the classical δ − ϵ definition you already know.
82
● For a given ring R and a ∈ R, the following is a covariant functor:
R−Mod a⋅ /
R−Mod
Ring U /
Grp
C F /
Set
B1 /
HomC (A, B1) HomC (A, B1)
f⋆ /
HomC (A, B2)
where
f F (f ):=f⋆ g✤ /
f ○g
B2 /
HomC (A, B2)
is a covariant functor (Exercise) that is usually written F = HomC (A, ⋅).
We will see this is part of a more general type of functors: those called representable.
● A special case of the above is when C = R − Mod, the category of R-modules. Fixing M ∈
Obj (C ), assignation F = HomR (M, ⋅) : C → C given by M1 → HomR (M, M1) and
F (f ) = f⋆ : g ↦ f ○ g is thus covariant. In particular, if C = Ab then HomZ (G1, G2)
is an abelian group and we have have a functor Ab → Ab as well.
84
● Let us find the dual to the previous general example. Let C be locally small and A ∈ Obj (C ). The
assignation C → Sets defined by F (B ) = HomC (B, A) and
F
C F /
Set
B1 /
HomC (O B1, A) HomC (B2, A)
f⋆ /
HomC (B1, A)
where
f F (f ):=f ⋆ g✤ /
g○f
B2 /
HomC (B2, A)
is written F = HomC (⋅, A) and is a contravariant functor (check the arrows). Again, this is a
special case of what will be defined to be a representable functor.
● An example of the above. Let A = R with the Euclidean topology. We could see F =
HomTop (⋅, R) as a functor Top → Set, but given the existence of ring operations in R, we
can restrict the codomain (Exercise: why?):
Top F /
CRing
X /
HomTop(X, R) g ○O f
O
f F (f )
85
HomTop (Y, R)
❴
Y /
g
● Given C = R−Mod and M ∈ Obj (C ), F = M ⊗R ⋅ : C → C given by N ↦ M ⊗R N and
f
N❴ 1 ✤ /
N❴ 2
F F
F (f )=idM ⊗f
M ⊗R N1 ✤ /
M ⊗R N2
m ⊗ n1 ✤ /
m ⊗ f (n 1 )
● The dual version: in the same hypotheses as above, assignation F = ⋅ ⊗R M given by N →
N ⊗R M and f → f ⊗ idM is a contravariant functor.
● Let f : R → S be a ring morphism. Let C = R − Mod. Assignation F = S ⊗R ⋅ : C → C given
by
f
M1 /
M2
M → S ⊗R M, F F (6)
F (f )=idS ⊗f
S ⊗R M1 /
S ⊗R M2
is a covariant functor. Exercise: you can build the contravariant dual.
86
● A pointed topological space is simply a pair (X, x0) consisting of a topological space (X, τ )
and a distinguished point x0 ∈ X. The category of pointed spaces, Top●, is defined by
Obj (Top●) := {((X, τ ) , x0 ) : (X, τ ) ∈ Obj (Top) , x0 ∈ X} ,
HomTop● (((X, τX ) , x0 ) , ((Y, τY ) , y0 )) := {f ∈ HomTop ((X, τX ) , (Y, τY )) : f (x0 ) = y0 } .
– A loop or closed path based at x0 ∈ X is a continuous function γ : [0, 1] → (X, x0) such
that γ (0) = γ (1) = x0 (with the obvious understanding that τ[0,1] = τEuclidean):
γ X
x0
0 1
We usually call the image γ ([0, 1])of the loop (i.e. the curve) a loop and label it γ as well.
– Two loops γ1, γ2 based at x0 ∈ X are called homotopical to one another, γ1 ∼ γ2, if they
can be deformed into one another continuously without ceasing to be subsets of X.
87
– For instance all loops on the 2-sphere S2 are homotopical to the constant loop x0:
x0
– The torus T2, on the other hand, has loops that are not homotopical to one another:
γ x0
88
– Also loop γ ∗ γ which is basically γ run twice, is not homotopic to the original γ, but it is to
the loop β shown below:
x0
β
– This operation ∗ can also be extended to two different loops, e.g. taking γ and then α would
be homotopic to this:
89
– Important facts (not proven here):
○ operation ∗ is well-defined as long as all loops start and end in the same point;
○ homotopy is a relation of equivalence;
○ ∗ works well with equivalence classes, i.e. if γ1 ∼ γ2 and β1 ∼ β2, then β1γ1 ∼ β2γ2;
○ thus, if we denote the class of equivalence of all paths homotopic (deformable) to γ as [γ ]
and all paths homotopic to β as [β ], we can define an product of paths [γ ] ∗ [β ];
○ the set of equivalence classes by ∼ is a group with ∗ and is called the fundamental group
π1 (X, x0). There are higher-order homotopy groups πn (X ) but we will not study them.
– Examples
∗ All paths in S2 can be contracted to a single point. Thus π1 S2, x0 ≅ {1}, the group of a
single element.
∗ The torus T2 had two non-homotopic paths, γ and α, and everything else was homotopic
to a product of γ k and αj , k, j ≥ 0. An isomorphism of groups can be easily built:
ϕ
π1 T 2 , x0 , ∗ /
(Z × Z, +)
[ γ ] k ∗ [ α] j ✤ /
(k, j ) ,
i.e. mapping [γ ] ↦ (1, 0), [α] ↦ (0, 1), and path product transforms into additions of
integers, e.g. instance [γα] ↦ (1, 1), γ 2α ↦ (2, 1), γ −1α3 ↦ (−1, 3), etc.
– It appears as though we are building an assignation Top● → Grp which:
∗ maps every pointed topological space (X, x0) to its homotopy group π1 (X, x0);
∗ works well with morphisms in each category if every continuous function
f : (X, τX ) → (Y, τY ) such that f (x0) = y0, is corresponded with this function:
f∗
π1 (X, x0) /
π1 (Y, y0)
[γ ] ✤ /
[f ○ γ ]
which happens to be a morphism of groups and is well-defined because f ○ γ : [0, 1] → Y
is a closed loop based at y0 ∈ Y (I will leave the details to you if you are interested).
∗ maps compositions in Hom (Top●) to group morphism compositions: (g ○ f )∗ = g∗ ○f∗
In other words: we have a covariant functor, named the fundamental group functor:
π1
Top● /
Grp
(X, x0) /
π1 (X, x0) [γ❴ ]
f π1 (f )=f∗
(Y, y0) /
π1 (Y, y0) [f ○ γ ]
91
– This functor is an important example of a category probing into another–in this case it shows
light on what Algebra can “see” from Topology and translate into its own inner workings.
– A consequence of this: proofs of otherwise complicated results may become simpler. For
instance: the 2-sphere is not homeomorphic to the torus, i.e. S2 ≇ T2 in Top. Indeed,
∗ If they were, then the pointed topological spaces would be isomorphic in Top● as well:
S2, x0 ≅ T2, f (x0) for some homeomorphism f : S2 → T2.
∗ But if ≅ in Top●, given that functors preserve isomorphisms, their
fundamental groups would also have to be isomorphic in Gr.
∗ However, the fundamental groups are not isomorphic:
π1 = {1} ≇ Z × Z = π1
92
Faithful, full and dense functors
Definition 36. Let F : C1 → C2 be a covariant functor. For every A, B ∈ Obj (C1), we have a class
function
HomC1 (A, B ) /
HomC2 (F (A) , F (B ))
(7)
f✤ /
F (f )
We say
1. F is a faithful functor if (7) is injective;
2. F is a full functor if (7) is surjective;
3. F is fully faithful if the two above items hold;
4. F is dense or essentially surjective if for every B ∈ Obj (C2) there exists A ∈ Obj (C1) such
that F (A) ≅ B.
96
Definition 38.
– Let F : C → D a functor and X ∈ Obj (D). A universal arrow from object X to functor
F is a pair (UX , υ ) consisting of UX ∈ Obj (C ) and υ ∈ HomD (X, F (UX )), having the
following, called a universal property: for every A ∈ Obj (C ), if ϕ ∈ HomD (X, F (A)), there
exists a unique Φ : UX → A in C such that F (Φ) ○ υ = ϕ, i.e.
UX X ❋❋❋ υ /
F (U X )
✤ ❋❋
✤ ❋❋
❋❋
✤ ❋❋
✤ Φ ❋❋ F (Φ)
✤ ϕ ❋❋
❋❋
❋❋
✤ "
A F (A )
in C in D
– In the special case in which D = Set, X = {x} and υ : {x} → F (UX ) is defined by
υ (x) = ι, we can drop the subindex from U and call (U, ι) a universal element of F .
The above definition can be dualized into that of a universal arrow from functor F to object X
(Exercise: write it in detail) and the property will still be called universal.
● The constructions in Section II can be characterized as universal arrows or elements as defined
above, for instance tensor products, quotient groups, quotient R-modules, free modules, etc.
Exercises
● Prove every statement marked Exercise in the Section.
● Prove that every faithful functor reflects commutative diagrams.
● Express the defining property of a free object in a category Cas a universal property according to
the last definition in this Section.
● Repeat the above with the tensor product of two R-modules.
● Prove that the functor F : URing → Grp defined by R ↦ R⋆ (the set of all invertible elements
of R) is not essentially surjective.
● Prove that the inclusion functor URing ↪ Ring is faithful but is neither full nor essentially
surjective.
98
IV. Natural transformations
● We have already seen that we can compose functors F : C1 → C2 and G : C2 → C3,
A ↦ (G ○ F ) (A) := G (F (A)) , f ↦ (G ○ F ) (f ) := G (F (f )) ,
and a “rule of signs” applies concerning their covariant-contravariant character (Exercise).
● Recall the identity functor defined at the beginning of the Examples subsection in III:
idC
C /
C
A✤ /
A
f f
B ✤ /
B
Definition 39. We say a functor F : C1 → C2 is an isomorphism of categories if a functor
G : C2 → C1 exists such that
/
Examples
● For every functor F : C1 → C2, there exists an identity natural transformation idF : F ⇒ F
defined by mapping every object A ∈ Obj (C1) to (idF )A := 1F (A) (the identity morphism
F (A) → F (A) in C2). The naturality diagram is nearly trivial in this case:
(idF )A =1F (A )
1 1 /
F (A 1 ) F (A 1 )
F (f ) F (f )
F (A 2 ) /
F (A 2 )
(idF )A =1F (A )
2 2
101
● Let Mon be the category of monoids (Def. 19), i.e. same definition as groups but without
guaranteed invertibility of every element
Obj (Mon) = {all monoids (M, ⋆)} ,
HomMon ((M1 , ⋆) , (M2 , ⋅)) = {f : M1 → M2 : f (x ⋆ y ) = f (x) ⋅ f (y ) ∀x, y ∈ M1 , f (eM1 ) = eM2 }
Let n ∈ N, C the category of commutative and unital rings, and define the following two functors:
Matn U
C /
Mon C /
Mon
R1 ✤ /
Matn (R1) R1 ✤ /
U (R 1 )
f Matn (f ) f U (f )
R2 ✤ /
Matn (R2) R2 ✤ /
U (R 2 )
where
– Matn (R) is the monoid of n × n matrices with coefficients in ring R,
– Matn (f ) is the morphism that maps every matrix ai,j to matrix f ai,j ,
i,j i,j
– U ((R, +, ⋅)) := (R, ⋅), because every ring is a monoid with its second operation,
– U (f ) = f for every ring morphism.
Our intention is to find a natural transformation Matn ⇒ U .
– Define the following correspondence between the two functors
Matn
for every A ∈ Matn (R1), U (f ) detR1 (A) = f detR1 (A) ; basic Linear Algebra
implies f detR1 (A) = detR1 f (A) for every ring morphism f : R1 → R2. Thus
detR2 ○Matn (f ) = U (f ) ○detR1 , hence (9) commutes and (8) is a natural transformation.
● For every R-module M , define M ⋆ = HomR−Mod (M, R) to be the dual of M and being a set
of morphisms between two modules, it naturally has an R-module structure itself with operations
104
For every M ∈ Obj (R−Mod), define
τM τ M (m )
M /
F (M ) = M ⋆⋆ M⋆ R
where
/
m✤ /
τ M (m ) f✤ /
f (m )
τM (m) is a morphism of R-modules:
τ M ( m ) ( f 1 + f 2 ) = ( f 1 + f 2 ) ( m ) = f 1 ( m ) + f 2 ( m ) = τ M ( m ) ( f 1 ) + τ M (m ) ( f 2 ) ,
τM (m) (af ) = (af ) (m) = af (m) = aτM (m) (f ) .
Hence τM is a morphism of R-modules: τM (m1 + m2) = τM (m1) + τM (m2) and
τM (am) = aτM (m) . Indeed, let us show this for the first identity,
τM (m1 + m2 ) (f ) = f (m1 ) + f (m2 ) = τM (m1 ) (f ) + τM (m2 ) (f ) = [τM (m1 ) + τM (m2 )] (f ) .
ω ↦ f ⋆⋆ (ω ) : N ⋆ → R by g ↦ ω (g ○ f ). For every g ∈ N ⋆,
f ⋆⋆ (τM (m)) (g ) = τM (m) (g ○ f ) = g (f (m)) and τN (f (m)) (g ) = g (f (m)) ,
M ⊗R R/I ≅ /
M /IM
f ⊗1 f
N ⊗R R/I ≅ /
N /IN
This is precisely the naturality diagram for the correspondence.
106
Definition 41. We say natural transformation ϕ : F → G is an natural isomorphism or a natural
equivalence or an isomorphism of functors if ϕA is an isomorphism for every A ∈ Obj (C1). In
such case we call F and G (naturally) isomorphic and write F ≅ G, and we can define the inverse
natural equivalence
ϕ−A1
1
F (A
O 1 ) o
G (A
O 1
)
F (f ) G (f )
F (A 2 ) o G (A 2 )
ϕ−A1
2
Lemma 42.
(i) The composition of natural transformations is a natural transformation.
(ii) The composition of natural isomorphisms is a natural isomorphism.
(iii) ϕ−1 ○ ϕ = idF and ϕ ○ ϕ−1 = idG.
We can now write that general characterization of two categories as “basically the same”:
Definition 43. Let C1, C2 be two categories and F : C1 → C2 a functor. We say F is an equivalence
of C1 to C2 if there exists a functor G : C2 → C1 such that G ○ F ≅ idC1 and F ○ G ≅ idC2 . We say
C1 and C2 are equivalent and write C1 ≈ C2.
More examples
● The identity transformation idF : F ⇒ F is always a natural isomorphism.
● Let (G, ⋆) ∈ Obj (Grp) be any group. Define the opposite group (Gop, ⋆op) as having the same
underlying set as G and operation x ⋆op y := y ⋆ x. This is a group as well (Exercise) and we
can always define the following functor:
op
Grp /
Grp
op
G1 ✤ /
G1
where f op := f.
f f op
op
G2 ✤ /
G2
Let us prove functors idGrp and op are naturally isomorphic. All we need for every G is an
isomorphism ηG : G → Gop such that the naturality diagram
ηG op
1
G1 /
G1
f f op
op
G2 ηG
/
G 2
2
108
is commutative.
Hence we need to find an isomorphism of groups ηG : G → Gop for every G, such that
f op ○ ηG1 = ηG2 ○ f for every group morphism f : G1 → G2.
– For every group G, define ηG : G → Gop by ηG (g ) := g −1.
= g implies ηG is a morphism G → Gop and is
−1
– The fact (gh)−1 = h−1g −1 and g −1
equal to its own inverse (ηG ○ ηG = idG), thus is an isomorphism as well.
– For every g ∈ G1, group morphism properties imply that
−1
η G 2 ○ f (g ) = f (g ) = f g −1 = f ηG1 (g ) = f ○ ηG1 (g ) = f op ○ ηG1 (g )
and this means the naturality square is always commutative, thus idGrp ≅ op
109
● Let V be an n-dimensional K-vector space. Let C be the following category with a single element
C F /
C′
V ✤ /
F (V ) = V
f F (f )=f
V ✤ /
F (V ) = V
is an equivalence of categories. Indeed, define G : C ′ → C by G (W ) := V for every W ∈
Obj (C ′). There always exists an isomorphism of vector spaces of dimension n (again, basic Linear
Algebra) ϕW : W → V and G (f ) are defined to render the diagram below commutative,
W ϕ≅ / V = G (W )
W
f G (f ) i.e. G (f ) := ϕW ′ ○ f ○ ϕ−W1
W ′ϕ ≅ / V = G (W ′ )
W′
111
Definition 45. Let C be a category. We define a skeleton of C as any full (as in Def. 7) subcategory
constructed by picking one representative from every isomorphism class of objects of C; these represen-
tatives will be the objects of the skeleton.
● The following is a very important and useful characterization:
Theorem 46. Let F : C1 → C2 a covariant functor. The following are equivalent:
1. F is an equivalence of categories.
2. F is a full, faithful and essentially surjective functor.
In particular, every category is equivalent to its skeleton and two categories are equivalent if and only
if their skeletons are isomorphic.
● For instance, this makes the proof that the inclusion functor for finite-dimensional vector spaces
in slide 110 is an equivalence of categories, much easier. Exercise.
● We will prove 1. ⇒ 2. in Theorem 46 and leave the other implication as an Exercise. Let
F : C1 → C2 and G : C2 → C1 such that G○F ≅ idC1 and F ○G ≅ idC2 . For every B ∈ Obj (C2),
ϕ τ
τB
F (G (B )) ≅ B and G (B ) ∈ Obj (C1), hence F is dense. Similarly so is G.
112
– Given A1, A2 ∈ Obj (C1) we have a commutative diagram
ϕA
1
G (F (A1)) ≅
/
A1
G(F (f )) G(F (g )) f g
ϕA
G (F (A2)) ≅ 2 /
A2
with the understanding GF (f ) = ϕ−A1 ○ f ○ ϕA1 .
2
– Assume F (f ) = F (g ). Then G (F (f )) = G (F (g )), hence f = g. Thus F is faithful.
Similarly G is faithful.
– Let g : F (A1) → F (A2). We need h : A1 → A2 such that F (h) = g. For h to exist the
diagram
ϕA
G (F (A1)) ≅ 1 /
A✤ 1 o ≅ G (F (A ))
ϕA 1
G (g ) ✤ 1 G(F (h))
ϕA ✤ h
G (F (A2)) ≅ 2 /
A2 o ≅ G (F (A ))
ϕA 2
2
must be commutative, and to that effect we define h := ϕA2 ○ G (g ) ○ ϕ−A1 which is the
1
same bijection HomC1 (A1, A2) ≅ HomC1 (GF (A1) , GF (A2)) we used earlier. Then
G (g ) = G (F (h)), and the fact G is faithful implies g = F (h). Hence F is full.
Exercises
● Prove everything marked as an Exercise in this section.
● Let C be the category of sets and define, for every A ∈ Obj (C ) and any set map f : A → B,
P (A) := {B : B ⊂ A} , P (f ) = f −1
(i) Prove P defines a contravariant functor P : C → C.
(ii) Let X = {0, 1} ∈ Obj (C ). Prove P is naturally equivalent to functor HomC (⋅, X ).
● Let R be a ring, I an ideal and M an R-module. Let F (M ) := {x ∈ M : Ix = 0}.
(i) Prove that F (M ) is a submodule of M isomorphic to HomR (R/I, M ).
(ii) Prove that F induces a covariant functor in the category of R-modules, and that it is natu-
rally equivalent to HomR (R/I, ⋅).
● Let R be a ring. Then the following covariant functors of the category of associative, commu-
tative R-algebras with neutral elements to the category Ab of abelian groups are representable
(Exercise):
(i) Gm (B ) := B ⋆, the multiplicative group of invertible elements of B.
(ii) µn (B ) := {x ∈ B : xm = 1}, multiplicative group of n-th roots of unity in B.
(iii) Ga : (B ) = B ⋆, the additive group of B.
114
● Prove that the natural transformation between F ⇒ idR−Mod between the bi-dual functor F :
M ↦ M ⋆⋆ and the identity functor shown in the earlier Examples is a natural isomorphism.
● Let A, B, C, D be categories and H : C → A, F, G : A → B, T : B → D covariant functors. Let
τ : F → G be a natural transformation of functors. Prove that correspondences C ↦ τH (C ),
C ∈ Obj (C ) and A ↦ T (τA), A ∈ Obj (A), define natural transformations, respectively, σ :
F H → GH, ρ : T F → T G.
● If R is a unital ring, we have R-module isomorphisms between M and HomR−Mod (R, M )
given by m ↦ ϕm : r ↦ r ⋅ m and ϕ ↦ ϕ (1). Prove they define a natural isomorphism
idR−Mod ≅ HomR−Mod (R, ).
● Prove that categories R − Mod and Matn (R) − Mod are equivalent.
115
TOPICS IN ALGEBRA
AND GEOMETRY
Second Coursework
M31448 –Academic Session 2021–2022
Instructions
a) Answer all four exercises.
b) This is worth 50% of your total mark for this unit.
c) You must undertake this assignment individually.
d) All claims and statements must be justified.
e) Bonus marks will only be counted if the rest of the given exercise has ≥ 20 marks.
f) Submission method: by Moodle through the available dropbox.
g) Submission deadline: January 28, 2022, at 4PM
(i) (10 marks) Show that the above definition on objects cannot be extended to morphisms in such a
way as to define a covariant functor in F : Grp → Grp.
(ii) (5 marks) Define C with the same objects, but having epimorphisms as the only morphisms. Prove
C is a subcategory of Grp.
(iii) (10 marks) Prove there does exist a functor C → Grp with the same definition on objects as (1).
(i) (15 marks) Prove that the functor F1 : R → G defined on objects by F1 (R) := R⋆ and restriction of
morphisms is neither faithful nor full.
(ii) (10 marks) Now define a functor F2 : R → G which is faithful, using GLn (R), the general linear
group of degree n ≥ 2, as a tool.
(iii) (Bonus 10 marks) Is the functor you found in (ii) an equivalence of categories? Prove your claim in
the most economical way possible.
2 ACADEMIC SESSION: 2021–2022
(i) (10 marks) Extend the above definition on objects to a functor On : Grp → Set.
4. Let R be an integral domain and R − Mod the category of R-modules. Let T be the torsion functor on
this category which takes every M to T (M ).
(i) (15 marks) Build a natural transformation τ of T to the identity functor on R − Mod.
(ii) (10 marks) Study whether τ can be a natural isomorphism for some ring R.
(iii) (Bonus 10 marks) Let F be the functor which maps every module M to the quotient M/T (M ).
Build a natural transformation σ of the identity functor on R − Mod to F and study for which rings
this is a natural isomorphism.