Chapter 9
Category theory
9.1. Categories
The extremely broad concept of a “category” allows us to deal with many of the constructions in mathematics in an abstract context. We begin with the definition. We will mostly ignore set-theoretical considerations that can be used to put what follows on a firmer basis, but note that a class is a collection of objects that can be larger than a set, e.g., the class of all sets, in order that we might avoid Russell’s paradox.
Definition 9.1.1. §
A category is
- (1)
-
a class of objects ,
- (2)
-
for every , a class of morphisms from to , where we often use the notation to indicate that is an element of , and
- (3)
-
a composition map
for each that takes for and to the composition , subject to the properties that
- i.
-
for each , there exists an identity morphism such that, for all and with , we have
and
- ii.
-
composition is associative, i.e.,
Definition 9.1.2. §
We say that a category is small if its class of objects is a set.
Remark 9.1.3. §
What we call a category is often referred to as a locally category, and a category in that terminology allows the morphisms between a pair of objects to form a class, not just a set.
Examples 9.1.4. §
- a.
-
The category which has sets as its objects and maps of sets as its morphisms.
- b.
-
The category which has groups as its objects and group homomorphisms as it morphisms.
- c.
-
Similarly, we have categories Ring, the objects of which we take to be the (possibly zero) rings with and with morphisms the ring homomorphisms that preserve , and Field.
- d.
-
If is a ring, then the category has objects the left -modules and morphisms the left -module homomorphisms.
- e.
-
The category Top which has topological spaces as its objects and continuous maps as its morphisms.
We may construct new categories out of old. The following provides a useful example.
Definition 9.1.5. §
Let and be categories. The product category is the category with objects the pairs with and and morphisms for any in and in .
Definition 9.1.6. §
Given a category , we define the opposite category to have the same class of objects as and
for .
Definition 9.1.7. §
A monoid is a set with an associative binary operation and an identity element for the operation.
Example 9.1.8. §
Any monoid gives rise to a category with one object, morphisms equal to the elements of , and composition law given by multiplication. Then is again a monoid with the same elements but the multiplication reversed. A category with one object is also called a monoid, and we have a one-to-one correspondence between monoids and these categories.
We will often have cause to single out a particular class of morphisms in a category known as isomorphisms.
Definition 9.1.9. §
Let be a category.
- a.
-
A morphism in is an isomorphism if there exists morphism in such that and .
- b.
-
Two objects and in are said to be isomorphic if there exists an isomorphism in .
- c.
-
If is a morphism and (resp., ), then we say that is a right inverse (resp., a left inverse) to . If both and , then we say that is (an) inverse to , or that and are inverse to each other (or mutually inverse, or inverses).
Examples 9.1.10. §
- a.
-
The isomorphisms in are the bijections.
- b.
-
The isomorphisms in are the isomorphisms of groups.
- c.
-
The isomorphisms in Top are the homeomorphisms.
Definition 9.1.11. §
- a.
-
A morphism in a category is a monomorphism if for any with , the property that implies .
- b.
-
A morphism in a category is an epimorphism if for any with , the property that implies .
Examples 9.1.12. §
- a.
-
In and , a morphism is a monomorphism (resp., epimorphism) if and only if it is injective (resp., surjective).
- b.
-
The natural injection in Ring is an epimorphism, since a ring homomorphism is completely determined by its value on .
Remark 9.1.13. §
A morphism in a category is a monomorphism if and only if the opposite morphism in is an epimorphism.
We have the following.
Lemma 9.1.14. §
Let and be morphisms in a category such that . Then is a monomorphism and is an epimorphism.
Proof.
Let be morphisms such that . Then
Thus is a monomorphism. Similarly, is an epimorphism, or apply Remark 9.1.13. □
In other words, right inverses are monomorphisms and left inverses are epimorphisms.
Definition 9.1.15. §
Let be a category and .
Definition 9.1.16. §
A subcategory of a category is a category with objects consisting of a subclass of and morphisms for consisting of a subset of containing for and such that composition maps in agree with the restriction of the composition maps in between the same objects.
Examples 9.1.17. §
- a.
-
The category of abelian groups with morphisms the group homomorphisms between abelian groups is a subcategory of .
- b.
-
The category Field is a subcategory of .
9.2. Functors
To compare two categories, we need some notion of a map between them. Such maps are referred to as functors. There are two basic types.
Definition 9.2.1. §
Let and be categories.
- a.
-
A covariant functor (or simply functor) between two categories and is a map of objects and a map of morphisms
for each such that and for all and for each .
- b.
-
As with a covariant functor, a contravariant functor is again a map on objects, but with maps between sets of morphisms of the form
that satisfies and .
We give some examples of functors.
Examples 9.2.2. §
- a.
-
We have the forgetful functors , , and , which take objects to their underlying sets and morphisms to the corresponding set-theoretic maps.
- b.
-
We have another forgetful functor from to the category of abelian groups.
- c.
-
A homomorphism of monoids induces a functor of the corresponding categories, and conversely.
- d.
-
The opposite functor that is the identity on objects and takes a morphism to its opposite morphism in is contravariant.
Remark 9.2.3. §
A contravariant functor may also be viewed as a covariant functor , in particular by composing with the opposite functor .
Remark 9.2.4. §
A subcategory of a category is endowed with a canonical inclusion functor that takes an object of to the same object of and is the identity map on morphism.
Definition 9.2.5. §
Let be a functor.
- a.
-
The functor is called faithful if it is one-to-one on morphisms.
- b.
- c.
-
A functor is fully faithful if it is both faithful and full.
- d.
-
A subcategory is called a full subcategory if it the corresponding inclusion functor is full.
Remark 9.2.6. §
Every functor takes isomorphisms to isomorphisms.
Remark 9.2.7. §
The inclusion functor attached to a subcategory is always faithful.
Remark 9.2.8. §
A fully faithful functor is sometimes referred to as an embedding of categories, or sometimes a full embedding (and when so, a faithful but not necessarily full functor might instead be referred to as an embedding).
Examples 9.2.9. §
- a.
-
The category is a full subcategory of .
- b.
-
The category Field is a full subcategory of Ring.
- c.
-
The above-described forgetful functors to sets are faithful but not full.
- d.
-
The category in which the objects are sets but the morphisms are bijections of sets is a subcategory of Set that has the same objects but is not full.
Definition 9.2.10. §
A directed graph is a collection consisting of
Terminology 9.2.11. §
In category theory, we often refer to the vertices of a directed graph as dots and the edges as arrows.
Example 9.2.12. §
The following picture provides the data of a directed graph with vertices and edge sets with between and elements each:
Diagram description: A directed graph with four vertices
This is a directed graph. No equality of different paths is asserted.
Objects, listed by row and column:
- Row 1, from left to right: column 1: dot; column 2: dot.
- Row 2, from left to right: column 1: dot; column 2: dot.
Arrows and lines:
- A curved arrow from dot (row 1, column 1) to dot (row 1, column 2), without a label.
- An arrow from dot (row 1, column 1) to dot (row 1, column 2), without a label.
- An arrow from dot (row 1, column 2) to dot (row 2, column 2), without a label.
- An arrow from dot (row 2, column 1) to dot (row 2, column 2), without a label.
- A curved arrow from dot (row 2, column 2) to dot (row 1, column 2), without a label.
Definition 9.2.13. §
The category (freely) generated by a directed graph is the category with and, for , with equal to the set of all words for some (with providing the empty word) with for for , with and , together with the composition given by concatenation of words.
Example 9.2.14. §
Consider the directed graph given by
Diagram description: A directed path with three vertices
This is a directed graph. No equality of different paths is asserted.
Objects, listed by row and column:
- Row 1, from left to right: column 1: v subscript (1); column 2: v subscript (2); column 3: v subscript (3).
Arrows and lines:
- An arrow from v subscript (1) to v subscript (2), labelled e subscript (1).
- An arrow from v subscript (2) to v subscript (3), labelled e subscript (2).
The category generated by has three objects and morphism sets
Example 9.2.15. §
Consider the directed graph given by
Diagram description: Two vertices with an arrow in each direction
This is a directed graph. No equality of different paths is asserted.
Objects, listed by row and column:
- Row 1, from left to right: column 1: v subscript (1); column 2: v subscript (2).
Arrows and lines:
- A curved arrow from v subscript (1) to v subscript (2), labelled e subscript (1).
- A curved arrow from v subscript (2) to v subscript (1), labelled e subscript (2).
Let be the category generated . For the set consists of the words with alternating letters and that start with and end with (including the empty word if ).
Definition 9.2.16. §
A diagram in is a functor from a category generated by a graph to .
Remark 9.2.17. §
Let be a directed graph, let be the category generated by , and let be a category. Given a map and functions for each , there exists a unique functor that agrees with on and on for every .
Remark 9.2.18. §
Often, we consider finite graphs, in which every collection of vertices and edges is finite. The resulting diagrams are known as finite diagrams.
Definition 9.2.19. §
A commutative diagram in is a diagram , where is the category generated by a graph, which is a constant function on every set of morphisms.
Example 9.2.20. §
To give a functor from as in Example 9.2.14 to a category is to proscribe three objects in and two morphisms and . Thus, such a diagram may be represented by
and it is automatically commutative.
Example 9.2.21. §
To give a functor from as in Example 9.2.15 to a category is to proscribe two objects in and two morphisms and . The diagram
Diagram description: Two morphisms in opposite directions
The diagram commutes if and only if f composed with g is the identity of B, and g composed with f is the identity of A. These inverse relations are a condition, not an assumption about arbitrary f and g.
Objects, listed by row and column:
- Row 1, from left to right: column 1: A; column 2: B.
Arrows and lines:
- A curved arrow from A to B, labelled f.
- A curved arrow from B to A, labelled g.
is commutative if and only if and .
9.3. Natural transformations
Definition 9.3.1. §
Let be two (covariant) functors. A natural transformation is a class of morphisms for each subject to the condition that
Diagram description: Naturality square
The structural squares and triangles displayed here commute.
Objects, listed by row and column:
- Row 1, from left to right: column 1: F(A); column 2: G(A).
- Row 2, from left to right: column 1: F(B); column 2: G(B).
Arrows and lines:
- An arrow from F(A) to G(A), labelled eta subscript (A).
- An arrow from F(A) to F(B), labelled F(f).
- An arrow from G(A) to G(B), labelled G(f).
- An arrow from F(B) to G(B), labelled eta subscript (B).
commutes for every and . If instead and are contravariant functors, then the direction of the vertical arrows in the diagram are reversed.
Example 9.3.2. §
Consider the functor that sends an abelian group to its torsion subgroup (i.e., the subgroup of elements of finite order) and takes a homomorphism to its restriction . Let denote the identity functor. For each abelian group , we can define to be the inclusion map. We clearly have for all , so is a natural transformation.
Example 9.3.3. §
If we think of groups and as monoids, so that functors are homomorphisms, then a natural transformation between two homomorphisms is given simply by an element such that for all .
Definition 9.3.4. §
Let be functors. A natural transformation is said to be a natural isomorphism if each for is an isomorphism.
Remark 9.3.5. §
Every natural isomorphism has an inverse with for .
Definition 9.3.6. §
Let be functors, and let be morphisms for each . We say that these morphisms are natural if the form a natural transformation .
Definition 9.3.7. §
Two categories and are said to be equivalent if there exist functors and and natural isomorphisms and . Two such functors and are said to be quasi-inverse, and and are said to be equivalences of categories.
Example 9.3.8. §
A category with one object and one morphism is equivalent to the category with two objects , and four morphisms, the identity morphisms of and and isomorphisms and . We have quasi-inverse functors and with and and and for all . To see naturality, note that every morphism between two objects in either category is unique.
The following theorem provides a standard example of equivalence of categories.
Theorem 9.3.9 (Morita equivalence). §
The category of left modules over a ring is equivalent to the category of left modules over for every .
Proof.
Let be the --bimodule of row vectors of length with -entries. Let be the --bimodule of column vectors of length with -entries. Define
for left -modules and and . Also, define
for left -modules and and . Since multiplication induces isomorphisms
both and are naturally isomorphic to identity functors. □
Definition 9.3.10. §
Given two categories and with small, the functor category has objects the functors and morphisms the natural transformations between functors, defining composition of natural transformations via composition of the morphisms determining them.
Definition 9.3.11. §
Let be a category and be an object.
- a.
-
We have a functor given by
and, for ,
for all .
- b.
-
We have a contravariant functor with
for , , and .
Definition 9.3.12. §
Let be a small category. The Yoneda embedding is the functor
defined by for and for in given by
for each in and any .
Remark 9.3.13. §
The reader should check that the Yoneda embedding is a well-defined functor.
Theorem 9.3.14. §
Let be a small category. The Yoneda embedding is fully faithful.
Proof.
We first show faithfulness. Let be two morphisms with . Then
As for fullness, suppose that for some . We claim that , where . To see this, note that the fact that is a natural transformation means, in particular, that the diagram
Diagram description: Naturality for represented functors
The structural squares and triangles displayed here commute.
Objects, listed by row and column:
- Row 1, from left to right: column 1: h superscript (A)(A); column 2: h superscript (B)(A).
- Row 2, from left to right: column 1: h superscript (A)(C); column 2: h superscript (B)(C).
Arrows and lines:
- An arrow from h superscript (A)(A) to h superscript (B)(A), labelled eta subscript (A).
- An arrow from h superscript (A)(A) to h superscript (A)(C), labelled h superscript (A)(f).
- An arrow from h superscript (B)(A) to h superscript (B)(C), labelled h superscript (B)(f).
- An arrow from h superscript (A)(C) to h superscript (B)(C), labelled eta subscript (C).
commutes for any . Applying both compositions to the identity morphism of , we get the two equal terms
and
and therefore, the desired equality. □
Remark 9.3.15. §
Similarly, we have a fully faithful contravariant functor
given by the for and natural transformations between them. This is just the Yoneda embedding for the category .
Theorem 9.3.14 can be thought of as a more general version of the following standard theorem of group theory.
Corollary 9.3.16 (Cayley’s theorem). §
Every group is isomorphic to a subgroup of the symmetric group on .
Proof.
Consider the monoid formed by . Recall that in , morphisms are elements of . As is a functor, Yoneda’s lemma provides an injective function
on morphisms with the properties that and for . Since has only the object , and , this induces a one-to-one function with and satisfying and . In particular, we have for every , so its image lands in , and the resulting map is an injective homomorphism. □
We shall later require the following strengthening of Theorem 9.3.14.
Theorem 9.3.17 (Yoneda’s lemma). §
For any object of a small category and contravariant functor , there is a bijection
given by that is natural in and .
Proof.
Let . Given , consider the composition
where is evaluation at . This defines a natural transformation . If and , then
by the naturality of . On the other hand, if , then
Hence the maps and are inverse to each other. □
9.4. Limits and colimits
In this section, denotes a category, and denotes a small category.
Notation 9.4.1. §
We write to denote, more simply, that is an object in .
Definition 9.4.2. §
Let be a functor. When it exists, the limit of is a pair consisting of an object in and morphisms
for each such that for all morphisms in and with the universal property that if is any object of together with morphisms for which for all morphisms , then there exists a unique morphism such that for all .
Notation 9.4.3. §
We usually use to refer more simply to a pair that is a limit of , with the maps understood.
Remark 9.4.4. §
The universal property of the limit of a functor as in Definition 9.4.2 may be visualized by commutative diagrams
Diagram description: Universal property of a limitThe structural squares and triangles displayed here commute. Objects, listed by row and column:
Arrows and lines:
|
Lemma 9.4.5. §
If and are limits of a functor , then there is a unique isomorphism such that for all .
Proof.
There are morphisms and that are unique with the respective properties that and for all . Note that we have for all . On the other hand, the universal property of implies that the identity is the unique morphism such that for all , so . Similarly, is the identity of by its universal property. Therefore, the unique map is an isomorphism. □
Remark 9.4.6. §
Lemma 9.4.5 says that a limit, when it exists, is unique up to unique isomorphism (respecting the universal property) and for that reason, we refer to “the”, rather than “a”, limit.
If has only identity morphisms, then the limit of a functor is determined entirely by the image objects for all . Hence the notation in the following definition makes sense.
Definition 9.4.7. §
Let be a category with only identity morphisms, and let be a functor. Set for each .
- a.
-
The limit of , when it exists, is called the product of the .
- b.
-
resulting from the universal property of the product are known as projection maps.
Examples 9.4.8. §
The product coincides with direct product in the categories , , Top, Ring and . Products of more than one object do not exist in the category Field.
Remark 9.4.9. §
A commutative diagram in a category arises from a functor , where is a category generated by a directed graph. Therefore, we may speak of the limit of the diagram.
Definition 9.4.10. §
The limit of a diagram
Diagram description: The diagram defining a pullbackThese objects and maps are the input diagram for the construction described in the surrounding text; no additional equality of its parallel maps is asserted. Objects, listed by row and column:
Arrows and lines:
| (9.4.1) |
Remark 9.4.11. §
The pullback of (9.4.1) is endowed with morphisms and that make
Diagram description: Pullback square
The structural squares and triangles displayed here commute.
Objects, listed by row and column:
- Row 1, from left to right: column 1: A subscript (1) times subscript (B) A subscript (2); column 2: A subscript (1).
- Row 2, from left to right: column 1: A subscript (2); column 2: B.
Arrows and lines:
- An arrow from A subscript (1) times subscript (B) A subscript (2) to A subscript (2), labelled p subscript (2).
- An arrow from A subscript (1) times subscript (B) A subscript (2) to A subscript (1), labelled p subscript (1).
- An arrow from A subscript (1) to B, labelled f subscript (1).
- An arrow from A subscript (2) to B, labelled f subscript (2).
commute.
Example 9.4.12. §
In , , Top, and , the pullback is the subobject (i.e., subset, subgroup, subspace, or submodule) with underlying set
We also have the dual notion to limits:
Definition 9.4.13. §
Let be a functor. When it exists, the colimit of is a pair consisting of an object together with morphisms
for each such that for all morphisms and with the universal property that if is any object of together with morphisms for which for all morphisms , then there exists a unique morphism such that for all .
Notation 9.4.14. §
A colimit of a functor is usually denoted simply by the object , with the morphisms omitted.
Remark 9.4.15. §
The properties of the colimit expressed in Definition 9.4.13 may be summarized by the commutativity of the diagrams
Diagram description: Universal property of a colimit
The structural squares and triangles displayed here commute.
Objects, listed by row and column:
- Row 1, from left to right: column 1: F(i); column 3: F(j).
- Row 2, from left to right: column 2: colimit F.
- Row 3, from left to right: column 2: X.
Arrows and lines:
- A curved arrow from F(i) to X, labelled beta subscript (i).
- An arrow from F(i) to colimit F, labelled alpha subscript (i).
- An arrow from F(i) to F(j), labelled F( kappa ).
- A curved arrow from F(j) to X, labelled beta subscript (j).
- An arrow from F(j) to colimit F, labelled alpha subscript (j).
- An arrow from colimit F to X, labelled f.
for all in .
We have the obvious analogue of Lemma 9.4.5, which again tells us that we may speak of “the” colimit.
Lemma 9.4.16. §
If and are colimits of a functor , then there is a unique isomorphism such that for all .
Remark 9.4.17. §
When it exists, the colimit of in satisfies
so its underlying object is an limit in .
Definition 9.4.18. §
The colimit of a functor from a category with only identity morphisms is called a coproduct, and it is denoted .
Examples 9.4.19. §
- a.
-
The coproduct in and Top of two objects and is the disjoint union .
- b.
- c.
-
The coproduct in (and in particular ) of two -modules and is the direct sum .
- d.
-
The coproduct in the category of commutative rings and is the tensor product .
Remark 9.4.20. §
Examples 9.4.19(a-d) generalize directly to arbitrary collections of objects.
Remark 9.4.21. §
Much as with limits, we may speak of a colimit of a diagram in a category.
Definition 9.4.22. §
The colimit of a diagram
Diagram description: The diagram defining a pushoutThese objects and maps are the input diagram for the construction described in the surrounding text; no additional equality of its parallel maps is asserted. Objects, listed by row and column:
Arrows and lines:
| (9.4.2) |
in is called the pushout .
Remark 9.4.23. §
The pushout of the diagram (9.4.2) fits into a diagram
Diagram description: Pushout square
The structural squares and triangles displayed here commute.
Objects, listed by row and column:
- Row 1, from left to right: column 1: B; column 2: A subscript (1).
- Row 2, from left to right: column 1: A subscript (2); column 2: A subscript (1) coproduct subscript (B) A subscript (2).
Arrows and lines:
- An arrow from B to A subscript (1), labelled g subscript (1).
- An arrow from B to A subscript (2), labelled g subscript (2).
- An arrow from A subscript (1) to A subscript (1) coproduct subscript (B) A subscript (2), labelled iota subscript (1).
- An arrow from A subscript (2) to A subscript (1) coproduct subscript (B) A subscript (2), labelled iota subscript (2).
where and are induced by the universal property of the colimit.
Example 9.4.24. §
In and Top, the pushout is the quotient (set or topological space) of the disjoint union of and under the equivalence relation identifying with for all .
Definition 9.4.25. §
We say that a category admits the limit (resp., colimit) of a functor if the limit (resp., colimit) exists in .
Remark 9.4.26. §
More generally, we may speak of admitting the limits (or colimits) of any collection of functors from small categories to .
Definition 9.4.27. §
Example 9.4.28. §
Definition 9.4.29. §
A category is called cocomplete if it admits all colimits.
Remark 9.4.30. §
To say that is complete is to say that is cocomplete.
Proposition 9.4.31. §
The category is both complete and cocomplete.
Proof.
Let be a functor. We merely describe the limit and colimit of and leave the rest to the reader. The limit is
and the colimit is
where is the minimal equivalence relation satisfying for and if there exists with . □
Remark 9.4.32. §
In fact, the categories , , , , , and admit all limits and colimits.
The reader will easily verify the following.
Proposition 9.4.33. §
Let be a small category and a (co)complete category. Then the category is (co)complete.
Corollary 9.4.34. §
Let be a small category and be (co)complete. Let be a functor, and supposing that is small, consider the Yoneda embedding . Then has a (co)limit in .
Definition 9.4.35. §
A directed set is a set together with a partial ordering on such that for any , there exists with and .
Definition 9.4.36. §
- a.
-
in a category is referred to as the sequential limit of the objects .
- b.
-
in a category is referred to as the sequential colimit of the objects .
Example 9.4.37. §
In , the sequential limit of the groups with respect to homomorphisms given by reduction modulo is the group of -adic integers. The sequential colimit of these same groups with respect to the maps induced by multiplication modulo is the group , equal to the -power torsion in .
The sequential limit (resp., sequential colimit) is just a special case of the notion of an inverse limit (resp., direct limit), which is a more usual terminology.
Definition 9.4.38. §
- a.
-
A directed category is a category with a nonempty directed set of objects and at most one morphism for any , which exists if and only if .
- b.
-
A codirected category is a category such that is directed.
Definition 9.4.39. §
Let be a codirected category. The limit of a functor is referred to the inverse limit of the objects over the inverse system of objects for and morphisms for in , and it is denoted .
Definition 9.4.40. §
Let be a directed category. The colimit of a functor is the direct limit of the objects over the directed system of objects for and morphisms for in and is denoted (or sometimes just ).
Examples 9.4.41. §
- a.
-
The inverse limit of the (commutative) rings with respect to homomorphisms given by reduction modulo is the ring known as the -adic integers.
- b.
-
The direct limit of the abelian groups with respect to the multiplication-by- maps is equal to the subgroup of elements of -power order (under addition) in .
- c.
-
The absolute group of all automorphisms of the field of algebraic numbers is isomorphic to the inverse limit of the collection of all for a finite, normal extension of inside , with respect to the maps given by restriction with . Note that the set of field extensions is directed as the compositum of two normal extensions is normal, and the resulting category is codirected as we use only the restriction morphisms.
For certain diagrams, limits and colimits can be quite boring, especially when the diagram contains an initial object in the case of limits, or terminal object in the case of colimits.
Definition 9.4.42. §
- a.
-
An initial object in is an object such that for each , there is a unique morphism in .
- b.
-
A terminal object in is an object such that for each , there is a unique morphism in .
- c.
-
An zero object in is an object that is both initial and terminal.
Remark 9.4.43. §
Terminal and initial objects are unique up to unique isomorphism when defined.
We provide some examples.
Examples 9.4.44. §
We omit the proof of the following easy lemma.
Lemma 9.4.45. §
Let be a small category and a functor.
9.5. Adjoint functors
The following definition allows us to weaken the property of being quasi-inverse to one of “adjointness”.
Definition 9.5.1. §
We say that is left adjoint to if there exist bijections
for each and such that the form a natural transformation of functors
We also say that is right adjoint to , and we say that and are adjoint functors.
Remark 9.5.2. §
To say that is a natural transformation in Definition 9.5.1 is a fancier way of saying that given morphisms in and in , we have a commutative diagram
Diagram description: Naturality of an adjunction
The structural squares and triangles displayed here commute.
Objects, listed by row and column:
- Row 1, from left to right: column 1: Hom subscript (script D)(F(C),D); column 2: Hom subscript (script C)(C,G(D)).
- Row 2, from left to right: column 1: Hom subscript (script D)(F(C prime ),D prime ); column 2: Hom subscript (script C)(C prime ,G(D prime )).
Arrows and lines:
- An arrow from Hom subscript (script D)(F(C),D) to Hom subscript (script C)(C,G(D)), labelled eta subscript ((C,D)).
- An arrow from Hom subscript (script D)(F(C),D) to Hom subscript (script D)(F(C prime ),D prime ), labelled t maps to g composed with t composed with F(f).
- An arrow from Hom subscript (script C)(C,G(D)) to Hom subscript (script C)(C prime ,G(D prime )), labelled u maps to G(g) composed with u composed with f.
- An arrow from Hom subscript (script D)(F(C prime ),D prime ) to Hom subscript (script C)(C prime ,G(D prime )), labelled eta subscript ((C prime ,D prime )).
Remark 9.5.3. §
If and are quasi-inverse functors, then we have bijections
for and , where in and is a natural isomorphism . These form a natural transformation between functors , so is right adjoint to . Similarly, using , we see that is left adjoint to .
Example 9.5.4. §
The forgetful functor is right adjoint to the functor that takes a set to the free group on and a map of sets to the unique homomorphism with . That is, the restriction map
is inverse to the map that takes to , and these bijections are easily seen to be natural.
The following is perhaps the most standard example of adjointness: that of and in categories of modules.
Example 9.5.5. §
Let and be algebras over a commutative ring . Fix an -balanced --bimodule . Define a functor by on -modules and on -module homomorphisms . Define another functor by on -modules and for and . Then the isomorphism of Theorem 8.4.29 is the adjunction map
These isomorphisms are natural in and , and hence is left adjoint to .
Proposition 9.5.6. §
Fix categories and , and suppose that all limits exist. The functor has a left adjoint given by taking to the constant functor , where for all , and taking for to the natural transformation given by for all .
Proof.
We must describe natural isomorphisms
for and . I.e., given a natural tranformation , we must associate a map , and conversely. Such a natural transformation consists of maps
that are compatible in the sense that for all . Thus, the existence of a unique is simply the universal property of the limit. On the other hand, if we have , then we have maps
where is the map arising in the definition of the limit. These maps then define the universal transformation . □
We now see exactly how adjointness weakens inverseness.
Definition 9.5.7. §
Two categories and are said to be equivalent if there exist functors and and natural isomorphisms and . Two such functors and are said to be quasi-inverse, and and are said to be equivalences of categories.
Example 9.5.8. §
A category with one object and one morphism is equivalent to the category with two objects , and four morphisms, the identity morphisms of and and isomorphisms and . We have quasi-inverse functors and with and and and for all . To see naturality, note that every morphism between two objects in either category is unique.
Notation 9.5.9. §
Let be a natural transformation between functors .
- a.
-
If is a functor, then we define a natural transformation by
for all objects of .
- b.
-
If is a functor, then we define a natural transformation by
for all objects of .
Definition 9.5.10. §
Let and be functors.
- a.
-
A unit for the pair is a natural transformation .
- b.
-
A counit for the pair is a natural transformation .
- c.
-
A unit-counit adjunction is a pair , a unit for , and a counit for satisfying
as morphisms in and
as morphisms in .
Proposition 9.5.11. §
A functor is left adjoint to a functor if and only if there exists a unit-counit adjunction for the pair .
Proof.
Suppose that is left adjoint to . We define as follows. For , we have bijections
by adjointness, and we define to be the image of . For , we also have
and define by taking to be the image of under the inverse of this map. We leave it to the reader to check that these are natural and form a unit-counit adjunction. The converse is left to the reader as well. □
9.6. Representable functors
Definition 9.6.1. §
Let be a contravariant functor. Then is said to be representable if there exists a natural isomorphism for some . (In other words, we have natural bijections
for all objects of .) We then say that represents .
Using Yoneda’s lemma and assuming to be small, we can reword Definition 9.6.1 as saying that there exists such that there are compatible bijections between the set of natural transformations and the set of morphisms for each .
Example 9.6.2. §
Consider the contravariant functor which takes a set to its power set , the set of all subsets of and a map to the map by mapping to . Then is represented by the set via the isomorphism
by . These isomorphisms form a natural transformation:
Diagram description: Representation of the power-set functor
The structural squares and triangles displayed here commute.
Objects, listed by row and column:
- Row 1, from left to right: column 1: Maps (T,left brace0,1right brace); column 2: P(T).
- Row 2, from left to right: column 1: Maps (S,left brace0,1right brace); column 2: P(S).
Arrows and lines:
- An arrow from Maps (T,left brace0,1right brace) to P(T), labelled isomorphism symbol.
- An arrow from Maps (T,left brace0,1right brace) to Maps (S,left brace0,1right brace), labelled h superscript (left brace0,1right brace)(f).
- An arrow from P(T) to P(S), labelled P(f).
- An arrow from Maps (S,left brace0,1right brace) to P(S), labelled isomorphism symbol.
for . Here, the lefthand vertical map takes to and the righthand vertical map takes a subset of to . We check that
The following is a corollary of Yoneda’s lemma.
Lemma 9.6.3. §
A representable functor is represented by a unique object up to isomorphism. If and represent a contravariant functor , then such an isomorphism is unique making the diagrams
Diagram description: Uniqueness of a representing object
The structural squares and triangles displayed here commute.
Objects, listed by row and column:
- Row 1, from left to right: column 1: Hom subscript (script C)(A,B); column 2: F(A).
- Row 2, from left to right: column 1: Hom subscript (script C)(A,C); column 2: F(A).
Arrows and lines:
- An arrow from Hom subscript (script C)(A,B) to F(A) (row 1, column 2), labelled isomorphism symbol.
- An arrow from Hom subscript (script C)(A,B) to Hom subscript (script C)(A,C), labelled h superscript (A)(f).
- Equality joins F(A) (row 1, column 2) and F(A) (row 2, column 2), without a label.
- An arrow from Hom subscript (script C)(A,C) to F(A) (row 2, column 2), labelled isomorphism symbol.
commute for all .
Proof.
Let be a representable (contravariant) functor represented by and . Then we have natural isomorphisms and . The composition is equal to for a unique by the weak form of Yoneda’s lemma. □
Theorem 9.6.4. §
Let be a functor between small categories.
- a.
-
The functor has a right adjoint if and only if the functor is representable for each . If is right adjoint to , then is representable by .
- b.
-
If has a right adjoints and , then there exists a unique natural isomorphism such that diagrams
Diagram description: Uniqueness of a right adjoint
The structural squares and triangles displayed here commute.
Objects, listed by row and column:
- Row 1, from left to right: column 1: Hom subscript (script D)(F(C),D); column 2: Hom subscript (script C)(C,G(D)).
- Row 2, from left to right: column 1: Hom subscript (script D)(F(C),D); column 2: Hom subscript (script C)(C,G prime (D)).
Arrows and lines:
- An arrow from Hom subscript (script D)(F(C),D) (row 1, column 1) to Hom subscript (script C)(C,G(D)), labelled eta subscript ((C,D)).
- Equality joins Hom subscript (script D)(F(C),D) (row 1, column 1) and Hom subscript (script D)(F(C),D) (row 2, column 1), without a label.
- An arrow from Hom subscript (script C)(C,G(D)) to Hom subscript (script C)(C,G prime (D)), labelled f maps to xi subscript (D) composed with f.
- An arrow from Hom subscript (script D)(F(C),D) (row 2, column 1) to Hom subscript (script C)(C,G prime (D)), labelled eta prime subscript ((C,D)).
commute for all and , where the horizontal morphisms are the adjunction isomorphisms.
Proof.
Assume that has a right adjoint , and consider the adjunction morphisms
In other words,
so represents . In this case, the uniqueness in part b is an immediate consequence of Lemma 9.6.3.
Now suppose that is representable for each by some object (chosen using the axiom of choice). Then there exist isomorphisms that are natural in . We must also define on morphisms in . Such an induces a natural transformation which provides morphisms
for all and thus induces , and these are natural in . Thus, we have a natural transformation . Since the Yoneda embedding is fully faithful, we have a unique morphism inducing this natural transformation, which we define to be . We leave to the reader the check that as defined is a functor. □
Definition 9.6.5. §
Let be a covariant functor. We say that is representable if there exists a natural isomorphism for some . (That is, there are natural isomorphisms
in .) In this case, we say that represents .
Remark 9.6.6. §
A covariant functor is representable if and only if the contravariant functor is representable. The same object of will represent both objects.
Example 9.6.7. §
Let be the forgetful functor. Then can be represented by . To see this, we define the set map
by for . Naturality is clear.
Example 9.6.8. §
Let be the functor which sends a group to its subset of elements of order dividing . Then can be represented by .
Example 9.6.9. §
Consider a functor between small categories. To say that the contravariant functor is representable is exactly to say that there exists an object in such that one has natural isomorphisms
for . In other words, is representable if and only if exists in .
Example 9.6.10. §
Consider a functor between small categories. View as a covariant functor . To say that the functor is representable is exactly to say that there exists an object such that one has natural isomorphisms
for . In other words, is representable if and only if exists in .
9.7. Equalizers and images
Definition 9.7.1. §
Let be a category, and let
Diagram description: Two parallel morphismsThese objects and maps are the input diagram for the construction described in the surrounding text; no additional equality of its parallel maps is asserted. Objects, listed by row and column:
Arrows and lines:
| (9.7.1) |
be a diagram in .
- a.
-
The limit of the diagram (9.7.1), when it exists, is called its equalizer.
- b.
-
The colimit of (9.7.1) is called its coequalizer.
We have a commutative diagram:
Diagram description: Equalizer and coequalizer maps
The first arrow is the equalizer arrow: precomposing f and g with it gives equal maps. The last arrow is the coequalizer arrow: postcomposing f and g with it gives equal maps. The parallel arrows f and g need not themselves be equal.
Objects, listed by row and column:
- Row 1, from left to right: column 1: equalizer (f,g); column 2: A; column 3: B; column 4: coequalizer (f,g).
Arrows and lines:
- An arrow from equalizer (f,g) to A, without a label.
- An arrow from A to B, labelled f.
- An arrow from A to B, labelled g.
- An arrow from B to coequalizer (f,g), without a label.
Examples 9.7.2. §
Lemma 9.7.3. §
Let be morphisms in a category .
- a.
-
Suppose that exists. Then the induced map is a monomorphism.
- b.
-
Suppose that exists. Then the induced map is an epimorphism.
Proof.
Suppose that are morphisms in such that . Let , and note that . But then is unique such that by the universal property of . Since as well, we have . Part b follows from part a by working in the opposite category. □
Theorem 9.7.4. §
A category that admits all products and equalizers is complete, and a category that admits all coproducts and coequalizers is cocomplete.
Proof.
For the second statement, by taking the opposite category, we are reduced to the first statement. Let be a category that admits all products and equalizers. Let be a functor from a small category , and consider the equalizer of the two morphisms
defined via the universal property of the second product as the unique morphisms satisfying
and
for morphisms in , where denotes projection onto the -coordinate in the second product and denotes projection to the -coordinate in the first.
Let be the morphism defining the equalizer. We claim that the equalizer , together with the maps for , satisfies the univeral property of . By definition, for any morphism in as above, we have
Moreover, given and morphisms for such that for all , we have a product map such that
and
so there exists a unique morphism with for all . That is, satisfies the universal property of the limit. □
Definition 9.7.5. §
In a category with a zero object , the zero morphism between objects is the composition of of morphisms proscribed by the fact that is both initial and terminal.
Definition 9.7.6. §
Let be a category with a zero object. Let be a morphism in , and let be the zero morphism.
Examples 9.7.7. §
- a.
-
In , the categorical notions of kernel and cokernel agree with the usual ones.
- b.
-
In , kernel is the usual notion, and the cokernel of a group homomorphism with the quotient of by the normal closure of .
There are different notions of image and coimages in categories. We use the following.
Definition 9.7.8. §
Let be a morphism in a category .
- a.
-
The image of is an object of together with a monomorphism such that there exists a morphism such that and such that if us a monomorphism and is a morphism such that , then there exists a unique morphism such that .
- b.
-
The coimage of is an object together with an epimorphism such that there exists a morphism with and such that if is an epimorphism and is a morphism such that , the there exists a unique morphism such that .
Remark 9.7.9. §
In the definition of the image of , then is uniquely determined as is a monomorphism and . Moreover, if as stated, then , and is a monomorphism, so . That is the diagram
Diagram description: Universal factorization through an image
The structural squares and triangles displayed here commute.
Objects, listed by row and column:
- Row 1, from left to right: column 1: A; column 3: B.
- Row 2, from left to right: column 2: image f.
- Row 3, from left to right: column 2: C.
Arrows and lines:
- An arrow from A to B, labelled f.
- An arrow from A to image f, labelled pi.
- A curved arrow from A to C, labelled e.
- An arrow from image f to B, labelled iota.
- An arrow from image f to C, labelled psi.
- A curved arrow from C to B, labelled g.
commutes. Finally, note that is forced to be a monomorphism since is. The analogous statements hold for the coimage.
Proposition 9.7.10. §
Let be a morphism in a category .
- a.
-
If admits equalizers, then the canonical morphism is an epimorphism.
- b.
-
If admits coequalizers, then the canonical morphism is a monomorphism.
Proof.
We prove only part a, as part b is proven similarly. Suppose that satisfy . Then by definition of the equalizer, there exists a unique morphism such that for the canonical monomorphism , we have . On the other hand, consider the composite monomorphism , where is the morphism of the image. Note that , so by definition of the image, there exists a unique morphism such that . Then , so . On the other hand,
As is a monomorphism, we have as well. □
Remark 9.7.11. §
If has finite products, finite coproducts, equalizers, and coequalizers, we may also make the following definition of the image an coimage of a morphism .
This definition agrees with that already given if every morphism in factors through an equalizer morphism and admits finite limits and colimits. We omit the nontrivial proof.
Lemma 9.7.12. §
For any in a category that admits equalizers (or coequalizers) and for which and exist, there is a unique morphism such that the composition
of induced morphisms is .
Proof.
We suppose that admits equalizers. By Proposition 9.7.10, the canonical morphism with is an epimorphism. By the definition of , there then exists a unique morphism such that . Then . If also satisfies , then , and is a monomorphism, so . Thus by the uniqueness of . □
Definition 9.7.13. §
We say that a morphism in a category that admits an image and coimage of is strict if the induced morphism is an isomorphism.
Example 9.7.14. §
Every morphism in the category of -modules is strict.
9.8. Additive and abelian categories
Definition 9.8.1. §
An additive category is a category with the following properties:
- i.
-
for , the set of morphisms in has an abelian group law (addition) with the property that for any diagram
Diagram description: Additivity of composition
This diagram records the composable morphisms in the distributivity identity: h composed with (g subscript 1 plus g subscript 2) composed with f equals the sum of h composed with g subscript 1 composed with f and h composed with g subscript 2 composed with f.
Objects, listed by row and column:
- Row 1, from left to right: column 1: A; column 2: B; column 3: C; column 4: D.
Arrows and lines:
- An arrow from A to B, labelled f.
- An arrow from B to C, labelled g subscript (1).
- An arrow from B to C, labelled g subscript (2).
- An arrow from C to D, labelled h.
in , we have
- ii.
-
has a zero object ,
- iii.
-
admits finite coproducts.
In an additive category , there always exists the zero morphism is the identity element in the abelian group .
Examples 9.8.2. §
- a.
-
The categories and are additive categories, with the usual addition of homomorphisms.
- b.
-
The full subcategory of finitely generated -modules is an additive category.
In an additive category, we denote the coproduct of two objects and by .
Lemma 9.8.3. §
Finite products exist in an additive category, and there are natural isomorphisms
for . The resulting inclusion morphisms and projection morphisms and obtained by viewing as a product and coproduct, respectively, satisfy and for , while
Proof.
We have morphisms by definition. We also have maps defined by
and the universal property of the coproduct. We then have
and hence , again by the universal property.
Given an object and morphisms , we then have a morphism
which is unique such that
Hence satisfies the universal property of the product. □
Definition 9.8.4. §
An object in an additive category together with objects , inclusion morphisms , and projection morphisms for for which is zero if and if and for which is called a biproduct of the objects and , and we write it as .
The notion of a biproduct allows us to reinterpret addition in an additive category. First, note the following definitions.
Definition 9.8.5. §
Let be an object in an additive category .
- a.
-
The diagonal morphism in is the unique morphism induced by two copies of and the universal property of the product.
- b.
-
The codiagonal morphism in is the unique morphisms induced by two copies of and the universal property of the coproduct.
Definition 9.8.6. §
Let be an additive category, and let and be morphisms in . The biproduct, or direct sum, of the maps and is the morphism induced as the (morphism defined by the universal property of the) coproduct of the composite maps , the latter morphisms being inclusions.
Remark 9.8.7. §
Equivalently, the direct sum of and as in Definition 9.8.6 is induced as the product of the composite maps , the initial morphisms being projections.
Of course, we could make these definitions in an arbitrary category using products and coproducts.
Lemma 9.8.8. §
Let be two morphisms in an additive category . Then we have
Proof.
Let and respectively denote the inclusion maps and projection maps for the biproduct , and similarly for . We have
Taking the first term without loss of generality, we have
□
Definition 9.8.9. §
A functor between additive categories is called additive if for each , the map
is a group homomorphism.
Example 9.8.10. §
Let be an additive category. Then for any , the functors and may be considered as functors to , rather than . The resulting functors are additive.
Lemma 9.8.11. §
A functor of additive categories is additive if and only if preserves biproducts, which is to say that the natural morphisms and are inverse isomorphisms for all objects in .
Proof.
Suppose first that is an additive functor. Note that and for , but by additivity of . Again by additivity of , we have
It follows that is a biproduct of and in , so in particular it is a coproduct.
On the other hand, if preserves biproducts and are morphisms in , then it is easy to see that , and Lemma 9.8.8 tells us that
□
Corollary 9.8.12. §
Let be a fully faithful functor of additive categories. Then is an additive functor.
Remark 9.8.13. §
For additive functors, we may consider a finer notion of representability than we previously studied. If is an additive contravariant (resp., covariant) functor of additive categories, then we may consider it to be representable if there exists an object and a natural isomorphism (resp., ). In this case, the morphisms for will be isomorphisms of groups.
Lemma 9.8.14. §
A morphism in an additive category that admits kernels is a monomorphism if and only if it has zero kernel. A morphism in an additive category that admits cokernels is an epimorphism if and only if it has zero cokernel.
Proof.
Let be a monomorphism, and let be the induced morphism. Since by definition of the kernel, we have , as is a monomorphism. This forces to be , since factors through . (Or, one could just apply Lemma 9.7.3.) On the other hand, suppose that has trivial kernel, and let be maps with . Then , and by universal property of the kernel, factors through , i.e., is .
The proof for cokernels is similar, or is the result on kernels in the opposite (additive) category. □
Proposition 9.8.15. §
Let be an additive category that admits kernels and cokernels. Let be a morphism in . Then
and
Proof.
We prove the first isomorphism. Let . By Yoneda’s lemma, it suffices to show that and are naturally isomorphic. For , we have a map
that takes a morphism and composes it with the morphism given by definition of the equalizer of the maps . It is a bijection by the universal property of the equalizer.
For any and morphisms such that , note that there exists a unique morphism with . Any such that then satisfies for any such and any . On the other hand, note that the themselves satisfy the property that and are morphisms with . In other words, we have
Now, we are in an additive category, so this equals
| (9.8.1) |
By the universal property of , for any with , there is a morphism with . If , then , and this works for any with . On the other hand, itself satisfies so is such a . It follows that the set in (9.8.1) equals
By the universal property of , this is in bijection with , taking an in the set to the unique morphism to through which it factors. Clearly, the composition of these bijections is natural in , so we have the desired natural isomorphism. □
Definition 9.8.16. §
An abelian category is an additive category in which
Examples 9.8.17. §
- a.
- b.
-
The full subcategory of of finitely generated -submodules is not necessarily abelian. E.g., when is commutative and non-noetherian, we can take to be an ideal of that is not finitely generated, and so the kernel of is not in .
Remark 9.8.18. §
Note that if is an abelian category, then so is . The roles of mono- and epimorphisms, kernels and cokernels, and images and coimages switch in and .
Proposition 9.8.19. §
The functor category from a small category to an abelian category is abelian.
Proof.
We sketch the proof. First, note that it is additive: we have the zero functor which sends all objects to the zero object and all morphisms to the zero (identity) morphism of the zero object, and if are functors, then is given by and for in . This can be used to define the addition on morphisms (i.e., natural transformations) as before.
Next, the kernel of a natural transformation is defined by and for is the kernel of the induced morphism . The cokernel is defined similarly. Note that
and similarly for images. Finally, since is abelian, the natural map is an isomorphism on objects in , hence has a natural inverse determined by the inverses of these morphisms. □
Terminology 9.8.20. §
In an abelian category , we typically refer to a coproduct (when it exists) as a direct sum, and we write in place of .