Remaining TODOs: 54
This document contains notes for, and (not necessarily correct) solutions for exercises from Mac Lane, S. (1997), Categories For the Working Mathematician (2nd ed.).
I Categories, functors, and natural transformations
I.1 Axioms for categories
No exercises
I.2 Categories
Definition I.2.1
A directed graph is a set of objects, a set of arrows, and two functions .Definition I.2.2
In a directed graph, the set of composable pairs of arrows is the set
Definition I.2.3
A category is a directed graph with two addition functions, and such that
for all objects and all composable pairs of arrows , and such that the associativity and unit axioms hold.
For a category , we write , and to mean respectively.
Definition I.2.4
Given a category and two objects , the hom-set
Example I.2.5
- is the empty category.
- is the category with one object and one (identity) arrow.
- is the category with two objects , and one arrow (plus the identity arrows)
- is the category with three objects with non-identity arrows from and .
Definition I.2.6
A category is discrete if every arrow is an identity.Definition I.2.7
A monoid is a category with just one object.Remark I.2.8
Arrows can be parallel - that is, given objects , there can be several distinct arrows between and .Example I.2.9
A group is a monoid in which every arrow has a two-sided inverse under composition.Definition I.2.10
For a commutative ring , the category has objects and , with composition the usual matrix product.Definition I.2.11
For a family of sets, the category has object set , and arrows all functions between them, with composition the usual function composition.Definition I.2.12
A preorder is a category in which, for each pair of objects , there is at most one arrow .
We define a binary operation on a preorder such that iff there is an arrow in .
Remark I.2.13
Partial orders are preorder with antisymetry.TODO more examples?
I.3 Functors
Definition I.3.1
For categories , a functor consists of an object function which assigns to each object an object , and an arrow function which assigns to each arrow an arrow , such that the functor axioms
Example I.3.2
The power set functor assigns to each object the usual power set , and sends each arrow to such that, for each , .Remark I.3.3
Functors can be composed by composing object and arrow functions respectively.Remark I.3.4
For each category there is an identity functor which acts as an identity under functor composition.Definition I.3.5
An isomorphism between categories is a functor which is a bijection. (Equivalently, has a two-sided sided inverse).Definition I.3.6
A forgetful functor is one that simply βforgetsβ some or all of the structure of an algebraic object.Definition I.3.7
A functor is full when, for each , , there is an arrow such that .
That is, for each pair of objects in the image of , every arrow between and is also in the image of .
Definition I.3.8
A functor is faithful, or an embedding, when for each and parallel arrows , implies .Exercise I.3.1
TODO quotients, Lie algebrasExercise I.3.2
TODOExercise I.3.3
TODO functor interpretation in special categoriesExercise I.3.4
TODO prove no functor sending groups to centresExercise I.3.5
TODO find two different functors on Grp with object function the identityI.4 Natural transformations
Definition I.4.1
Given categories and functors , a natural transformation is a function that assigns to each object an arrow from such that, for any objects and arrow , . That is, for any such , the following diagram commutes:
Remark I.4.2
Despite the notation, a natural transformation isnβt a morphism between functors. It is an assignment from objects to (preexisting!) arrows - and the arrows are βnaturalβ in the sense that they are just arrows that would be pointing from to anyway. The only βinterestingβ part of a natural transformation is choosing which arrows to assign in the case of there being parallel arrows, in order to make each square as above commute.Example I.4.3
Definition I.4.4
A natural isomorphism is a natural transformation for which each is invertible in . Then we write .Definition I.4.5
An equivalence between categories and is a pair of functors such that and .Exercise I.4.1
Let be a fixed set, and the set of all functions . Show that is the object function of a functor , and that evaluation , defined by , the value of the function at , is a natural transformation.
Solution. Denote such a functor . Let the arrow function of be defined by .
We can verify that this satisfies the functor axioms:
and, for all ,
so .
Then note that
i.e. .
Therefore the following diagram commutes for any :
so is a natural transformation that assigns to each set an arrow .
Exercise I.4.2
Show that, if is a fixed group, then defines a functor , and each morphism of groups defines a natural transformation .
Solution.
For a fixed group , define the functor by
and
for any group homomorphism .
We can verify that this definition satisfies the functor axioms:
and
Then for any morphism of groups, for any groups , and for any group homomorphism , the following diagram commutes:
where and .
This commutes because
Hence defines a natural transformation that assigns as above for every object .
Exercise I.4.3
If and are groups (regarded as categories with one object each), and are functors (group homomorphisms), then there is a natural transformation iff and are conjugate, i.e. s.t, for all .
Solution.
ββ:
Since there is a natural transformation , for every , the following diagram commutes:
with for .
Then for every ,
ββ:
Suppose that there exists some s.t. for all , .
Then for all , so FigureΒ I.4 commutes for all . Hence the assignment defines a natural transformation .
Exercise I.4.4
TODO (involves preorders)Exercise I.4.5
Show that:
- Every natural transformation defines a function (also called ) which sends each arrow of to an arrow of in such a way that for each composable pair .
- Conversely, every such function comes from a unique natural transformation with .
Solution.
Given a natural transformation , the following diagram commutes for each of :
where .
Then taking a composable pair ,
b) Consider such a function , then we construct a natural transformation , assigning , that defines that function.
Then for any arrow ,
and
hence
which satisfies naturality. Moreover, this natural transformation is unique because by the unique definition of .
Remark
This gives an βarrows onlyβ description of a natural transformation.Exercise I.4.6
Let be a field. Then the category of all finite-dimensional vector spaces over , with morphisms all linear transformations, , is equivalent to the category (recalling that is the category with objects all positive integers, and arrows from to all matrices under ).
Solution.
STP that there exist functors and and natural isomorphisms , , with the identity functor for a category .
For each vector space , fix a basis . Define for each vector space and linear transformation , and define , for each and .
We can verify that are functors:
Then for each vector space define a vector isomorphism defined by , and for each define .
Then the following diagrams commute:
hence , , so and are equivalent.
I.5 Monics, epics, and zeroes
Definition I.5.1
An arrow is invertible in if there is an arrow such that and .Remark I.5.2
If such an exists, it is unique.Definition I.5.3
Two objects are isomorphic, written , if there is an invertible arrow (an isomorphism) between them.Definition I.5.4
An arrow is monic in when, for any parallel arrows , implies .
That is, is monic when it is left-cancellable.
Remark I.5.5
In Set and Grp, the monic arrows are precisely the injections/monomorphisms.Definition I.5.6
An arrow is epi in when it is right-cancellable; that is, for parallel arrows , implies .Remark I.5.7
In Set the epi arrows are the surjections/epimorphisms.Definition I.5.8
For an arrow , a section of in is a right-inverse of in (i.e. is section of if ).Proposition I.5.9
If has a section, it is epi.
Proof. TODO (not given in MacLane)β
Remark I.5.10
The converse (that an epi arrow has a section) is true in Set but not Grp. (TODO: proof?)Definition I.5.11
A retraction is a left-inverse.Remark I.5.12
Sections and retractions are not necessarily unique.Definition I.5.13
If we have arrows with , then is a split epi, and a split monic.Definition I.5.14
An arrow is idempotent if .Proposition I.5.15
If , then is defined and is idempotent ().Definition I.5.16
We say that an idempotent splits when there exists arrows with and .Definition I.5.17
An object is terminal in if, for every object object , there is exactly one arrow in .Proposition I.5.18
Any two terminal objects in are isomorphic.
Proof. TODO (not given)β
Definition I.5.19
An object is initial in if, for every object , there is exactly one arrow in .Definition I.5.20
A null object in is one that is both initial and terminal.Proposition I.5.21
If has a null object, then it is unique up to isomorphism.
Proof. TODOβ
Proposition I.5.22
Given a null object , for any objects , there is a unique arrow for and .
Proof. TODO (not given)β
Definition I.5.23
Such an arrow is called the zero arrow from to .Proposition I.5.24
Any composite with a zero arrow is a zero arrow.
Proof. TODO (not given)β
Definition I.5.25
A groupoid is a category in which every arrow is invertible.Remark I.5.26
Every object in a groupoid forms a group .
If there is an arrow , then under conjugation.
Definition I.5.27
A groupoid is connected if there is an arrow joining any two of its objects.Remark I.5.28
A connected groupoid can be determined up to isomorphism by a group and the set of objects.Exercise I.5.1
TODO find arrow epi and monic but not invertibleExercise I.5.2
TODO prove monic compose monic is monic, same for epiExercise I.5.3
TODO If is monic, is monic?Exercise I.5.4
TODO ringsExercise I.5.5
TODO show epi in Grp is surjectionExercise I.5.6
TODO show that all idempotents split in SetExercise I.5.7
TODOExercise I.5.8
TODOExercise I.5.9
TODO show that if is faithful and monic, monicI.6 Foundations
TODO
I.7 Large Categories
TODO
I.8 Hom-Sets
TODO
II Constructions on Categories
II.1 Duality
Definition II.1.1
The dual of some statement about categories is the same statement with βcodomainβ and βdomainβ swapped, and swapping ββ with .Remark II.1.2
The dual of the dual of a statement is the original statement.Remark II.1.3
Duality can be thought of as reversing arrows.Theorem II.1.4 (duality principle)
If a statement is a consequence of the category theory axioms, then so is its dual.Example II.1.5
A terminal object, if it exists, is unique; therefore, if an initial object exists, then it too is unique.Warning
Forming the dual of a statement involving several categories reverses the arrows within those categories, but does not reverse functors.II.2 Contravariance and Opposites
Definition II.2.1
For a category , the opposite category or dual category has objects and arrows for each , with .Remark II.2.2
The dual category is sometimes written .Remark II.2.3
A statement is true about iff the dual of that statement is true about .Definition II.2.4
Given a functor , the opposite functor is defined by and .Remark II.2.5
The assignments and defines a functor from .Definition II.2.6
A regular functor is covariant, meaning that, given an arrow , a functor maps to .Definition II.2.7
Given a functor , and we write , then is a contravariant functor from .
A contravariant functor satisfies
and, given an arrow , sends to .
Definition II.2.8
For a locally small category , we define for each object the covariant hom-functor
which sends each object to the hom-set , and each arrow the function
defined by for each arrow .
This function is sometimes written and called βcomposition with on the leftβ or βthe map induced by β.
Definition II.2.9
For each , we define the contravariant hom-functor
that sends each object to and each arrow to the function
Remark II.2.10
For arrows , because the following diagram commutes in Set:
II.3 Products of Categories
Definition II.3.1
For categories , , the product category has objects for each object of and of , and arrows for each arrow of and of , with the composite defined by
Definition II.3.2
The product category is equipped with projection functors defined by
for objects and arrows of , of .
Theorem II.3.3 (universal property of product categories)
For product category and any category with functors , there is a unique functor such that the following diagram commutes:
Proposition II.3.4 (Proposition 1 in Mac Lane)
Let be categories. For all objects and , let
be functors such that for all and .
Then there exists a bifunctor with for all and for all , if and only if, for every pair of arrows ,
These equal arrows in are then the value of the arrow function of and .
Proof.
Write to mean for any objects .
Then
Suppose that exists, then applying to this gives
which is equivalent to (1) by the definition of .
Conversely, if (1) holds then this defines satisfying the necessary conditions, and it can be verified that this is a bifunctor.β
Exercise II.3.1
TODO product categories special casesExercise II.3.2
TODO preordersExercise II.3.3
If is a family of categories indexed by a set , describe the product , its projections , and establish the universal property of these projections.
Solution.
The universal property of these projections in that, given a category and functors , there exists a unique functor such that for each .
Exercise II.3.4
TODO describe opposite of MatrExercise II.3.5
TODO topological spacesII.4 Functor categories
Definition II.4.1
Given categories , the functor category has objects all functors and arrows natural transformations between those functors.
For natural transformations , we define the composite . This is a βverticalβ composition, as demonstrated by the following diagram for any :
Each parallelogram commutes (since and natural), so overall the diagram must commute.
Exercise II.4.1
TODO ringsExercise II.4.2
Describe , for a finite set.
Solution. Objects are the functors ; that is, functors that assign to each an object of . That is, the objects are -tuples of objects of , where .
Arrows are natural transformations between such functors; because the only arrows in are the identities, the naturality constraints just enforce that each natural transformation is a function between -tuples of objects of .
Exercise II.4.3
TODOExercise II.4.4
For preorders and , describe and show that it is a preorder.
Solution. The objects of are all monotonic functions (see exercise TODO). The arrows of are all natural transformations between these functions - in particular by exercise TODO, a natural transformation between such exists, and is unique, iff for all . Therefore is a preorder and there is an arrow when .
Exercise II.4.5
If is a finite group, describe , where Fin is the category of finite sets.
Solution. The objects are all functors ; because has a single object , each object of is a finite set (along with some extra structure).
Therefore .
Exercise II.4.6
Let be the infinite cyclic monoid (with elements ).
Show that, in the functor categories and , the objects are matrices, and isomorphic objects are exactly equivalent and similar matrices, respectively.
Solution. TODO
Exercise II.4.7
TODOExercise II.4.8
TODOII.5 The category of categories
TODO
Exercise II.5.1
For locally small categories , establish a natural isomorphism
Solution.
For , let be defined by
where we define functors and by
Then given a functor , let be defined by
Clearly ; the converse is less obvious but still simple.
Hence .
Therefore , so is a bijection.
TODO show naturality
Exercise II.5.2
For categories , establish natural isomorphisms
.
Solution.
Note that .
Let be defined by
and define by
for objects and arrows in .
Clearly(?) .
Then in order for to be natural, we want, for ,
to commute.
We have that
hence is natural.
TODO
Exercise II.5.3
TODOExercise II.5.4
TODOExercise II.5.5
Take to be a set equipped with binary operations both with unit and satisfying
for all .
Show that , and that both are commutative.
Solution.
For any ,
hence .
Also,
therefore (and by equality, ) is commutative.
Exercise II.5.6
TODOExercise II.5.7
If is a functor, show that its arrow functions define a natural transformation between functors .
Solution.
Note that is a transformation .
For to be natural in both of its arguments, we want that for , , ,
should commute.
For ,
Therefore defined by is a natural transformation.
II.6 Comma categories
Definition II.6.1
For , is the category with objects for each , and arrows , those arrows where .
TODO diagrams
We call this category the category of objects under .
Remark II.6.2
.Definition II.6.3
is the category of objects over , consisting of objects for each , and arrows for which the corresponding satisfies .Remark II.6.4
If is terminal in , then (proof in exercise).Definition II.6.5
In general, for categories and functors , the comma category has objects and arrows those pairs of arrows where .
The composite is component-wise.
TODO diagrams
TODO this gets rid of the inclusion of the objects in the definitions of the arrows. Does this matter??
Exercise II.6.1
TODOExercise II.6.2
TODOExercise II.6.3
Define on arrows s the projections of for functors .
Solution. Define
We now show functoriality on and ; functoriality of follows by symmetry.
Exercise II.6.4
Given functors , show that a natural transformation is exactly a functor such that , with the projections of .
Solution.
Given a natural transformation , define to be the functor defined by object function and arrow function . This satisfies functoriality because, for object ,
and, for ,
Then we have, for an object ,
and for an arrow ,
Therefore .
Conversely, suppose we have a functor with . Then given an object , is an arrow . Moreover, given ,
by the definition of the comma category, this satisfies , which is precisely the requirement for to be natural, so is a natural transformation .
Exercise II.6.5
Given any commutative diagram of categories and functors,
show that there is a unique functor such that , , and , for the projection functors of the comma category . TODO define what are.
Solution. Define by
Then for object ,
and for arrow ,
Hence , and by symmetry .
Moreover,
Therefore .
We now show that is the unique functor satisfying this property.
Suppose that there exists a functor satisfying for .
Then either with , or with .
Suppose the former. Then either , or , or , as the three projections uniquely define each object of . This contradicts satisfying the relevant conditions, so it must be that there is an arrow with , but we encounter the same contradictions. Therefore no other satisfying functor exists, so is unique.
Exercise II.6.6
TODOExercise II.6.7
For terminal in , show that .
Solution. Define by (well-defined because terminal), and .
For , we must have , otherwise there would be two distinct arrows , which would contract the terminality of .
Define by , . Clealy and , so .
II.7 Free categories
TODO
II.8 Quotient categories
TODO
III Universals & limits
III.1 Universal arrows
Definition III.1.1
For a functor, and , a universal arrow from to is a pair with , s.t. for every , , there is a unique arrow with .
That is, for each ,
commutes for a unique .
Remark III.1.2
An arrow is universal if and only if is initial in .Remark III.1.3
It follows that is unique up to isomorphism in ; in particular, is unique up to isomorphism in .Definition III.1.4
For category and functor , a universal element of is a pair with and such that, for every , there is a unique with .Remark III.1.5
A universal element is a universal arrow in Ens, where is a singleton set.Remark III.1.6
For a locally small category , a universal arrow from to is exactly a universal element of the functor .Theorem III.1.7
Let be a normal subgroup of a group and consider the usual projection that sends each to its coset in .
Let be the functor defined by
that is, the functor that assigns to each group the set of group homomorphisms that kill .
Then is a universal element of .
Exercise III.1.1
TODOExercise III.1.2
Find a universal element for the contravariant power set functor .
Solution. We want a pair , such that for every there is a unique function with . By the definition of on functors, this is equivalent to .
For this to be uniquely determined by for every , we must have that is defined for every by for the same arbitrary and , and for every , for , and . If contained more elements, wouldnβt be unique.
Then .
This is unique up to isomorphism as required.
Exercise III.1.3
TODOExercise III.1.4
Use only universality (of projections) to prove the following isomorphisms of group theory:
- For normal subgroups of with , ;
- For subgroups and of , normal, with join , .
Solution.
TODO