Category Theory Course Notes
Ettore Forigo
A category (1-category) π consists of:
1 - A class Ob(π) of objects of π
2 - βX,Y β Ob(π).
a class Homπ(X,Y ) of morphisms from X to Y
3 - βX β Ob(π).
an identity morphism idX β Homπ(X,X)
4 - βX,Y,Z β Ob(π).
a composition rule:
Homπ(Y,Z) Γ Homπ(X,Y ) β Homπ(X,Z)
(g,f)g β f
Such that it satisο¬es the following axioms:
1 - Associativity of composition:
βX,Y,Z,W β Ob(π).
βf β Homπ(X,Y ),g β Homπ(Y,Z),h β Homπ(Z,W).
h β (g β f) = (h β g) β f
2 - Neutrality:
βX,Y β Ob(π).
βf β Homπ(X,Y ).
idY β f = f β§ f β idX = f
A category is thin if parallel morphisms are always the same, meaning that there
is only one morphism between two objects.
In a thin category all morphisms are monic and epic.
An object I of a category π is initial (dual of terminal, special case of a colimit
(of a functor from π to the empty category))
β
βX β Ob(π).
β!f β Homπ(I,X)
An object T of a category π is terminal (dual of initial, special case of limit (of
a functor from the empty category to π))
β
βX β Ob(π).
β!f β Homπ(X,T)
A morphism f : X β Y in a category π (f β Homπ(X,Y )) is a monomorphism
(or monic in π) (dual of epimorphism)
β
βZ β Ob(π).βp,q β Homπ(Z,X).
f β p = f β q p = q
Example:
In Set monomorphisms are precisely the injective maps.
Monomorphisms βcan be cancelledβ from the left.
A split monomorphism (dual of split epi) is a morphism f : X β Y such that
there exists a morphism g : Y β X such that:
g β f = idX
Proposition: every split mono is a mono.
Proposition: in Set, every mono f : X β Y where X is inhabited is a split mono,
assuming LEM holds.
A morphism f : X β Y in a category π (f β Homπ(X,Y )) is an epimorphism
(or epic in π) (dual of monomorphism)
β
βZ β Ob(π).βp,q β Homπ(Y,Z).
p β f = q β f p = q
Example:
In Set epimorphisms are precisely the surjective maps.
Epimorphisms βcan be cancelledβ from the right.
A split epimorphism (dual of split mono) is a morphism f : X β Y such that
there exists a morphism g : Y β X such that:
f β g = idY
Proposition: every split epi is an epi.
Proposition: in Set, every epi is a split epi ββ assuming LEM holds.
A morphism f : X β Y in a category π (f β Homπ(X,Y )) is an isomorphism
β
βg β Homπ(Y,X).
f β g = idY β§ g β f = idX
idXβX β Ob(π) is always an isomorphisms for every category π.
Objects X and Y in a category π are isomorphic
β
there exists an isomorphism between X and Y (XY )
In Set, if there exists an isomorphism between X and Y , X and Y are called eqinumerous.
βThe mother of all dualitiesβ
Let π be a category. Then its opposite category πop is the following category:
- Ob(πop) : = Ob(π)
- Homπop(X,Y ) : = Homπ(Y,X)
- identities and composition inherited from π
idX β Homπ(X,X) = idXop β Homπop(X,X)
f β g : = gop β fop
Observations / Remarks:
- An object I of π is initial in π
β
I is terminal when regarded as an object of πop
- A morphism in π is a monomorphism
β
it is an epimorphism in πop
injective maps in Set (monomorphism in Set) β surjective maps in Set
(epimorphism in Set)
β€ β β₯
β© β βͺ
β β
β β quotient set
Γ (cartesian product) β disjoint union (tagged)
f β g β g β f
A product (dual of coproduct, special case of limit) of two objects X and Y in a
category π consists of:
- an object P of π
- a morphism ΟX : P β X in π
- a morphism ΟY : P β Y in π
such that for every object Q of π together with morphisms ΟX : Q β X,ΟY : Q β Y
there is exactly one morphism Q β P such that the following diagram commutes:
ΟX = ΟXβ!
ΟY = ΟY β!
Remarks:
- ΟX and ΟY are called projection morphisms (also in limits).
- Products are always associative and commutative up to isomorphism.
- There is also the notion of the (co) product of zero, one, three, four, ... objects.
- The zero case of a product is just a terminal object, an object with exactly one morphism from each object.
A coproduct (dual of product, special case of colimit) of two objects X and Y
in a category π consists of:
- an object C of π
- a morphism ΞΉX : X β C in π
- a morphism ΞΉY : Y β C in π
such that for every object D of π together with morphisms ΟX : X β D,ΟY : Y β D
there is exactly one morphism C β D which renders the following diagram
commutative:
ΟX =! β ΞΉX
ΟY =! β ΞΉY
Remarks:
- Products in πop are precisely coproducts in π
- The zero case of a coproduct is the same as an initial object.
A (covariant) functor F : πβπ from a category π to a category π consists of:
- an object F(X) β Ob(π) for each object X β Ob(π)
- a morphism F(f) : F(X) β F(Y ) in π for each morphism f : X β Y in π
such that:
- βX β Ob(π).F(idX) = idF(X)
- βX,Y,Z β Ob(π).βf : X β Y βπ,g : Y β Z in π.F(g β f) = F(g) β F(f)
Motto:
Functors ββπ are β-shaped diagrams in π
Functors preserve commutative diagrams
Functors preserve isomorphisms
A contravariant functor πβπ is a covariant functor πop βπ
The identity functor Idπ on a category π is the following functor:
Idπ : πβπ
XX
ff
Let X0 be an object of a category π.
The constant functor Idπ on X0 is the following functor:
Idπ : πβπ
XX
ff
A forgetful functor βforgetsβ or drops some or all of the inputβs structure or
properties βbeforeβ mapping to the output.
Examples:
- From vector space category to group category
- From vector space category to set category
- From abelian group category to group category
The discrete category associated with a set X, written π(X), is a category containing all the objects of X as objects, and no morphisms between diο¬erent objects, just the identity morphisms.
Claim:
Any map between sets can be turned into a functor.
Let f : X β Y be a map between sets.
Consider the discrete categories π(X),π(Y ).
Then f induces the following functor π(X) β D(Y ):
xf(x)
idxidf(x)
A functor F : πβπ is essentially surjective iο¬:
βY β Ob(π).βX β Ob(π)|F(X)Y
A functor F : πβπ is faithful iο¬:
βX,Y β Ob(π).
βf,g : X β Y in π
F(f) = F(g) f = g
Reformulation: iο¬
βX,Y β Ob(π).
Homπ(X,Y ) β Homπ(F(X),F(Y ))
fF(f)
is injective.
A functor F : πβπ is full iο¬:
βX,Y β Ob(π).
βg : F(X) β F(Y ) in π
βf : X β Y in π|F(f) = g
Reformulation: iο¬
βX,Y β Ob(π).
Homπ(X,Y ) β Homπ(F(X),F(Y ))
fF(f)
is surjective.
A functor is fully faithful iο¬ it is full and faithful.
Reformulation: iο¬
βX,Y β Ob(π).
Homπ(X,Y ) β Homπ(F(X),F(Y ))
fF(f)
is bijective.
An elementary equivalence is a fully faithful, essentially surjective functor.
Categories are called equivalent iο¬ there is an elementary equivalence between
them.
Remark:
Equivalent categories have exactly the same categorical properties.
A natural transformation Ξ· : F β G between two functors F,G : C β D
consists of:
- for each object X β Ob(π) a morphism Ξ·X : F(X) β G(X) in π
such that for all morphisms f : X β Y in π, the naturality square commutes:
G(f) β Ξ·X = Ξ·Y β F(f)
Motto:
Natural transformations are uniform families of morphisms.
Let π,π be categories.
The functor category [π,π] has:
- as objects: all functors πβπ
- as morphisms: Hom[π,π](F,G) : =
- as identity: for the object F, the identity idF : F β F (idF )X : F(X) β F(X)
given by idF(X)
- as composition rule:
(Ο β Ξ·)X : = ΟX β Ξ·X
Ξ·X : F(X) β G(X)
ΟX : G(X) β H(X)
(Ο β Ξ·)X : F(X) β H(X)
and Ο β Ξ· should be natural.
A category π is small when Ob(π) is just a set and not a proper class.
The 1-category of 1-categories, Cat has:
- as objects: all categories
- as morphisms: HomCat(π,π) : =
- as identities Idπ (the identity functor)
- as composition rule:
F : πβπ
G : πββ°
G β F : πββ°
XG(F(X))
fG(F(f))
There are two issues with this deο¬nition:
- Size issue (in ZFC). (itβs too big, the objects donβt ο¬t in a proper class?)
Remedies:
- just consider the category of small categories
- switch foundations
- It ignores natural transformations
Remedy:
Consider the 2-category of 1-categories
The 2-category of 1-categories has:
- as objects: all 1-categories
- as morphisms: functors
- as -2-morphisms / 2-cells: natural transformations
A cone (dual of cocone) of a diagram (functor) F : ββπ in a category π
consists of:
- an object A of π (the βtipβ of the cone)
- for each object X β Ob(π), a morphism ΟX : A β F(X)
such that for all morphisms f : X β Y in β, the triangle:
ΟY = ΟX β F(f)
commutes.
A cocone (dual of cone) of a diagram (functor) F : ββπ in a category π
consists of:
- an object A of π (the βtipβ of the cocone)
- for each object X β Ob(π), a morphism ΟX : F(X) β A
such that for all morphisms f : X β Y in β, the triangle:
ΟX = ΟY β F(f)
commutes.
A morphism between a cone (A,(ΟX)X) and a further cone (B,(ΟX)X) of a
diagram F : β βπ consists of a morphism f : A β B in π such that:
ΟX = ΟY β f
commutes.
A limit (dual of colimit) of a diagram F : ββπ is a terminal cone of
F, that is, a terminal object in the category of of cones of cones of F.
Remark:
A terminal object of π is the limit of the unique functor from the empty category
to π.
A colimit (dual of limit) of a diagram F : ββπ is an initial cocone of F.
Remark:
An initial object of π is the colimit of the unique functor from the empty
category to π.
Let f,g : X β Y . Then the equalizer of f and g is the following function:
Eq(f,g) = x β X|f(x) = g(x)
A pullback P (also called ο¬ber product of the domains over the codomain) (dual
of pushout) is the limit of a diagram consisting of two morphisms f : X β Z and
g : Y β Z with a common codomain.
It comes equipped with two natural morphisms P β X and P β Y .
A pushout P (also called ο¬bered coproduct) (dual of pullback) is the colimit of
a diagram consisting of two morphisms f : Z β X and g : Z β Y with a
common domain.
It comes equipped with two morphisms X β P and Y β P.
A small diagram in π is a diagram ββπ where β is a small category.
A category π is complete (dual of cocomplete) iο¬ every small diagram in π has a
limit (it has all small limits).
Assuming LEM, the only categories which have all limits or all colimits are (some) thin categories.
A category π is cocomplete (dual of complete) iο¬ every small diagram in π has
a colimit (it has all small colimits).
π complete ββπop cocomplete.
A presheaf (plural presheaves) on a category π is a functor πop β Set
Motto:
we picture a presheaf F on π as an βideal, ο¬ctional, object of πβ in that we know
its relation to actual objects of π
(X hat) is a presheaf:
πop β Set
THomπ(T,X)
A presheaf F : πop β Set is representable iο¬:
βX β Ob(π) : F
Let F : C β D, G : D β C
Then, F β£ G βF is left adjoint to Gβ
(or G β’ F (βG is right adjoint to Fβ))
iο¬ for every object X β Ob(π),Y β Ob(π) there is an isomorphism:
Homπ(F(X),Y )Homπ(X,G(Y ))
naturally in X and Y .
Every adjunction L β£ R gives rise to a monad:
The monad functor will be: M : = R β L
The natural transformation:
Ξ· : Id β M
will be given by:
Ξ·X : X β R(L(X))
which is in 1:1 correspondence with:
idRL(X) : RL(X) β RL(X)
since:
Hom(LA,B)Hom(A,RB)
which means that:
LA β B
is in 1:1 correspondence with:
A β RB
The natural transformation:
ΞΌ : M β M β M
will be given by:
ΞΌX : RLRL(X) β RL(X)
induced from:
LRL(X) β L(X)
which is in 1:1 correspondence with:
idRL(X) : RL(X) β RL(X)
Remark:
The monad axioms should also be checked.
The βproduct-Hom adjunctionβ or currying adjunction is the following:
_ Γ S β£ HomSet(S, _)
Hom Set(X Γ S,Y )HomSet(X,HomSet(S,Y ))
βββ β£ βextending the contextβ β£ βββ
The left adjunctions means that it is possible to freely convert between proofs of
the following kind:
βAssume βx β X : A(x) ... Hence B.β (βx β X : A(x) β’ B)
and
βLet x β X be arbitrary. Assume A(x) ... Hence B.β (A(x) β’xβXB)
The right adjunction means that it is possible to freely convert between proofs of
the following kind:
βLet x β X be arbitrary. Assume A ... Hence B(x).β (A β’xβXB(x))
and
βAssume A. ... Hence βx β X : B(x).β (A β’ (βx β X.B(x)))
A monoid consists of:
- a set M
- an element e β M
- an operation β : M Γ M β M
such that:
- βx β M.x β e = x = e β x
- βx,y,z β M.(x β y) β z = x β (y β z)
Equivalently, a monoid consists of:
- an object M
- a morphism 1 from a terminal object to every other object.
- a map M Γ M β M
such that certain diagrams commute.
A monoidal category (sometimes called tensor category) consists of:
- a category π
- a functor β : πΓπβπ
- an object 1 β Ob(π)
- natural isomorphisms:
- 1 β XX
- X β 1X
- X β (Y β Z)(X β Y ) β Z
such that certain coherence conditions are satisο¬ed.
Remark:
In any monoidal category one can speak of monoid objects.
A monad over a category π consists of:
- a functor M : πβπ
- a natural transformation Ξ· : Idπβ M
- a natural transformation ΞΌ : M β M β M
such that certain diagrams commute.
Every monad is given rise to by an adjunction (always of a free and forgetful
functor pair).
There are two ways of factorizing a monad into adjoint functors, one is the Kleisli
category.
The Kleisli category πM of a monad M in a category π is the following
category:
- objects: objects of π
- morphisms: HomπM(X,Y ) : = Homπ(X,M(Y ))
The category nCob (βthe cobordism categoryβ) has:
- as objects (n β 1)-dimensional oriented manifolds
- as morphisms: n-dimesional cobordisms between those
Hilb is the category of Hilbert spaces (vector spaces with additional
structure).
Hilbert spaces are important in quantum physics, because they can be used to model βslicesβ of spacetime.
A topological quantum ο¬eld theory (in spacetime dimension n) is
a monoidal functor between the monoidal categories nCob and Hilb:
Z : nCob β Hilb
Z maps each (n β 1)-dimensional slice of n-dimensional spacetime to the Hilbert space modelling that slice, and Z maps a morphism X β Y in nCob to the βpropagatorβ Z(X) β Z(Y ).