Chapter 1
Category Theory
1.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 1.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 map
for each , called composition, where, for and , their composition is denoted ,
such 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 1.1.2. §
Definition 1.1.3. §
We say that a category is locally small if is a set for all .
Every example of a category we give will be locally small.
Examples 1.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.
Definition 1.1.5. §
A directed graph is a collection consisting of
Terminology 1.1.6. §
In category theory, we often refer to the vertices of a directed graph as dots and the edges as arrows.
Example 1.1.7. §
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 1.1.8. §
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 1.1.9. §
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 1.1.10. §
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 ).
We may construct new categories out of old. The following provides a useful example.
Definition 1.1.11. §
Let and be categories. The product category is the category with objects the pairs with and and morphisms for any in and in .
Definition 1.1.12. §
Given a category , we define the opposite category to have the same class of objects as and
for .
Definition 1.1.13. §
Given a category , its morphism category is the category with objects the morphisms in and morphisms for and in the pairs of morphisms and in with .
Example 1.1.14. §
Let be a monoid, which is to say a set with an associative binary operation and a two-sided identity element with respect to the operation. Then is a category with one object, morphisms equal to its elements, 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 1.1.15. §
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 1.1.16. §
- a.
-
The isomorphisms in are the bijections.
- b.
-
The isomorphisms in are the isomorphisms of groups.
- c.
-
The isomorphisms in Top are the homeomorphisms.
Example 1.1.17. §
Under the correspondence between monoids and single-object categories, groups correspond to exactly those single-object categories in which every morphism is an isomorphism.
Definition 1.1.18. §
- 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 1.1.19. §
- 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 1.1.20. §
A morphism in a category is a monomorphism if and only if the opposite morphism in is an epimorphism.
We have the following.
Lemma 1.1.21. §
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 1.1.20. □
In other words, right inverses are monomorphisms and left inverses are epimorphisms.
Definition 1.1.22. §
Let be a category and .
1.2. Functors and natural transformations
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 1.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 1.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.
-
For any category , we have a contravariant functor (as well as ) given by the identity on objects and the map on morphisms that takes to . The composition for a contravariant functor is a covariant functor .
- e.
-
Given an object for some category , we can define a functor by
and, for ,
for all .
- f.
-
We have a contravariant functor with
for , , and .
Definition 1.2.3. §
A diagram in is a functor from a category generated by a graph to .
Remark 1.2.4. §
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 1.2.5. §
Often, we consider finite graphs, in which every collection of vertices and edges is finite. The resulting diagrams are known as finite diagrams.
Definition 1.2.6. §
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 1.2.7. §
To give a functor from as in Example 1.1.9 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 1.2.8. §
To give a functor from as in Example 1.1.10 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 .
Remark 1.2.9. §
A morphism in for a category may be thought of as a commutative diagram
Diagram description: A morphism in the category of morphisms
The structural squares and triangles displayed here commute.
Objects, listed by row and column:
- Row 1, from left to right: column 1: A; column 2: B.
- Row 2, from left to right: column 1: A prime; column 2: B prime.
Arrows and lines:
- An arrow from A to B, labelled f.
- An arrow from A to A prime, labelled alpha.
- An arrow from B to B prime, labelled beta.
- An arrow from A prime to B prime, labelled g.
in .
Definition 1.2.10. §
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.
Remark 1.2.11. §
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 1.2.12. §
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 1.2.13. §
The inclusion functor attached to a subcategory is always faithful.
Remark 1.2.14. §
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 1.2.15. §
- 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.
Clearly, a functor always takes isomorphisms to isomorphisms. Of course, a fully faithful functor preserves notions of monomorphism, epimorphism, and isomorphism (in that has one of these properties if and only if has the same property). The reader may also quickly check the following.
Lemma 1.2.16. §
Let be a functor, and let be a morphism in . If is faithful and is a monomorphism (resp., epimorphism) then is a monomorphism (resp., epimorphism).
Definition 1.2.17. §
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.
Remark 1.2.18. §
Given two categories and with small and defining composition of natural transformations in the obvious way, we get a functor category with objects the functors and morphisms the natural transformations between functors.
Example 1.2.19. §
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 1.2.20. §
Let be functors. A natural transformation is said to be a natural isomorphism if each for is an isomorphism.
Remark 1.2.21. §
Every natural isomorphism has an inverse with for .
Definition 1.2.22. §
Let be functors, and let be morphisms for each . We say that these morphisms are natural if the form a natural transformation .
1.3. The Yoneda embedding
Definition 1.3.1. §
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 1.3.2. §
The reader should check that the Yoneda embedding is a well-defined functor.
Theorem 1.3.3. §
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 1.3.4. §
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 1.3.3 can be thought of as a more general version of the following standard theorem of group theory.
Corollary 1.3.5 (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 actually require the following strengthening of Theorem 1.3.3.
Theorem 1.3.6 (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. □
1.4. Limits and colimits
In this section, denotes a category, and denotes a small category.
Notation 1.4.1. §
We write to denote, more simply, that .
Definition 1.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 1.4.3. §
We usually use to refer more simply to a pair that is a limit of , with the maps understood.
Remark 1.4.4. §
The universal property of the limit of a functor as in Definition 1.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 1.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 1.4.6. §
Lemma 1.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 1.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 1.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 1.4.9. §
Given a commutative diagram in a category , it arises by definition from a functor , where is a category generated by a directed graph. Therefore, we may speak of the limit of the diagram.
Definition 1.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:
| (1.4.1) |
Remark 1.4.11. §
The pullback of (1.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 1.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 1.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 1.4.14. §
An colimit of a functor is usually denoted simply by the object , with the morphisms omitted.
Remark 1.4.15. §
The properties of the colimit expressed in Definition 1.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 1.4.5, which again tells us that we may speak of “the” colimit.
Lemma 1.4.16. §
If and are colimits of a functor , then there is a unique isomorphism such that for all .
Remark 1.4.17. §
When it exists, the colimit of in satisfies
so its underlying object is an limit in .
Definition 1.4.18. §
The colimit of a functor from a category with only identity morphisms is called a coproduct, and it is denoted .
Examples 1.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 CRings of commutative rings and is the tensor product .
Remark 1.4.20. §
Examples 1.4.19(a-d) generalize directly to arbitrary collections of objects.
Remark 1.4.21. §
Much as with limits, we may speak of a colimit of a diagram in a category.
Definition 1.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:
| (1.4.2) |
in is called the pushout .
Remark 1.4.23. §
The pushout of the diagram (1.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 1.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 1.4.25. §
We say that a category admits the limit (resp., colimit) of a functor if the limit (resp., colimit) exists in .
Remark 1.4.26. §
More generally, we may speak of admitting the limits (or colimits) of any collection of functors from small categories to .
Definition 1.4.27. §
Example 1.4.28. §
Definition 1.4.29. §
A category is called cocomplete if it admits all colimits.
Remark 1.4.30. §
To say that is complete is to say that is cocomplete.
Proposition 1.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 . □
The reader will easily verify the following.
Proposition 1.4.32. §
Let be a small category and a (co)complete category. Then the category is (co)complete.
Corollary 1.4.33. §
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 .
We explain some restricted and successively more general notions of limit and colimit.
Definition 1.4.34. §
- 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 object which is both initial and terminal is called a zero object.
Remarks 1.4.35. §
We provide some examples.
Examples 1.4.36. §
We omit the proof of the following easy lemma.
Lemma 1.4.37. §
Let be a small category and a functor.
Definition 1.4.38. §
- 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 1.4.39. §
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.
Recall that a directed set is a set with a partial ordering such that for any , there exists with and .
Definition 1.4.40. §
- 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 1.4.41. §
Let be a category such that is directed. 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 1.4.42. §
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 ).
It turns out that it is useful to generalize the notion of a directed system slightly in the context of category theory, keeping the requirement of being directed but weakening the requirement of the category arising from a partial ordering.
Definition 1.4.43. §
A small category is said to be filtered if it is nonempty and the following hold.
- i.
-
For every pair of objects in , there exists an object and morphisms and in .
- ii.
-
For every two morphisms in , there exists a morphism in such that .
Definition 1.4.44. §
A small category is said to be cofiltered if its opposite category is filtered.
Example 1.4.45. §
Any small category with a terminal (resp., initial) object is filtered (resp., cofiltered).
We are typically interested in cofiltered limits and filtered colimits, of which inverse limits and direct limits are respectively special cases. We denote such limits as we do inverse and direct limits. The axiom of choice, together with Lemmas 1.4.5 and 1.4.16, allows us to define functors as in the following definition.
Definition 1.4.46. §
Let be a category and a small category. Suppose that admits limits (resp., colimits) from . Then the limit (resp., colimit) functor
is any functor that takes a functor to a limit (resp., colimit) of and a natural transformation to the unique morphism
given by the universal property. When is cofiltered (resp., filtered), the limit (resp., colimit) functor is denoted (resp., ).
1.5. Adjoint functors
Definition 1.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 1.5.2. §
To say that is a natural transformation in Definition 1.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 1.5.3. §
Adjointness is a weak form of the property of being mutually inverse. I.e., if is a left and right inverse to (on objects and morphisms), then we have
so is left adjoint to , and similarly, is right adjoint to .
The following provides a standard example of adjoint functors.
Example 1.5.4. §
The forgetful functor is right adjoint to the functor taking a set to the free group on it. That is, for any set and group , there is a bijection of sets
where denotes the free group on .
Proposition 1.5.5. §
Let be a set. The functor is right adjoint to the functor given by and for any sets and .
Proof.
We define our bijections by
We leave the verification of naturality to the reader. □
Later, we will treat what is perhaps the most standard example of adjointness: that of and in categories of modules.
Proposition 1.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 1.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 1.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 1.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 1.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 1.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. □
1.6. Representable functors
Definition 1.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 1.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 1.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 1.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 1.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 1.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 1.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 1.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 1.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 1.6.8. §
Let be the functor which sends a group to its subset of elements of order dividing . Then can be represented by .
Example 1.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 1.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 .
1.7. Equalizers and images
Definition 1.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:
| (1.7.1) |
be a diagram in .
- a.
-
The limit of the diagram (1.7.1), when it exists, is called its equalizer.
- b.
-
The colimit of (1.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 1.7.2. §
Lemma 1.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. □
We begin with the notions of image and coimage in an arbitrary category.
Definition 1.7.4. §
Let be a morphism in a category that has finite products, finite coproducts, equalizers, and coequalizers.
Remark 1.7.5. §
The image of a morphism fits in a diagram
Diagram description: The image of a morphismThe outer pushout square commutes. The central image object receives the factorization of f from A and maps to the two copies of B; these factorization triangles commute. Objects, listed by row and column:
Arrows and lines:
| (1.7.2) |
where the morphism is induced by the universal property of and the morphism are identical to each other. Note that is a monomorphism, since it is an equalizer. Dually, we also have an induced epimorphism .
Example 1.7.6. §
We check that the definition of agrees with the usual notion in the category of -modules. We claim that and its inclusion in is the equalizer of the diagram
Diagram description: The image as an equalizer
These objects and maps are the input diagram for the construction described in the surrounding text; no additional equality of its parallel maps is asserted.
Objects, listed by row and column:
- Row 1, from left to right: column 1: B; column 2: B coproduct subscript (A) B.
Arrows and lines:
- An arrow from B to B coproduct subscript (A) B, labelled iota subscript (1).
- An arrow from B to B coproduct subscript (A) B, labelled iota subscript (2).
Since
the claim follows from Example 1.7.2(b).
Lemma 1.7.7. §
For any in a category that admits equalizers and coequalizers there is a unique morphism such that the composition
of induced morphisms is .
Proof.
Consider the diagram
Diagram description: Factorization through coimage and imageThis diagram describes the factorization of f through its coimage and image, and the equalizer and coequalizer maps that define them. The parallel arrows need not be equal; their relevant composites through f are equal. Objects, listed by row and column:
Arrows and lines:
| (1.7.3) |
where the diagonal map is from (1.7.2). We have that , so
We know that is a monomorphism since the image is an equalizer, so . By the universal property of the coimage, it follows that there exists a unique map making the diagram (1.7.3) commute. □
Definition 1.7.8. §
We say that a morphism in a category that admits equalizers and coequalizers is strict if the induced morphism is an isomorphism.
Example 1.7.9. §
Every morphism in the category of -modules is strict.