Remaining TODOs: 37
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
TODO
II.2 Contravariance and Opposites
TODO
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 contraints just enforce that each natural transformation is a function between -tuples of objects of .
Exercise II.4.3
TODOExercise II.4.4
TODO preordersExercise 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
TODO infinite cyclic monoidExercise II.4.7
TODOExercise II.4.8
TODO