Category Theory


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 dom,cod:𝐴→𝑂.

Definition I.2.2

In a directed graph, the set of composable pairs of arrows is the set

𝐴×𝐴𝑂≔{βŸ¨π‘”,π‘“βŸ©|𝑔,π‘“βˆˆπ΄,dom𝑔=cod𝑓}.

Definition I.2.3

A category is a directed graph with two addition functions, id:𝑂→𝐴;𝑐↦id𝑐 and ∘:𝐴×𝐴𝑂→𝐴;βŸ¨π‘”,π‘“βŸ©β†¦π‘”βˆ˜π‘“ such that

dom(idπ‘Ž)=π‘Ž=cod(idπ‘Ž), dom(π‘”βˆ˜π‘“)=dom𝑓, cod(π‘”βˆ˜π‘“)=cod(𝑔)

for all objects π‘Žβˆˆπ‘‚ and all composable pairs of arrows βŸ¨π‘”,π‘“βŸ©βˆˆπ΄Γ—π΄π‘‚, and such that the associativity and unit axioms hold.

For a category π’žοΈ€, we write Ob(π’žοΈ€)=𝑂,Ar(π’žοΈ€)=𝐴, and π‘βˆˆπ’žοΈ€,π‘“βˆˆπ’žοΈ€ to mean π‘βˆˆOb(π’žοΈ€),π‘“βˆˆAr(π’žοΈ€) respectively.

Definition I.2.4

Given a category π’žοΈ€ and two objects 𝑏,π‘βˆˆπ’žοΈ€, the hom-set

homπ’žοΈ€(𝑏,𝑐)≔{𝑓|π‘“βˆˆπ’žοΈ€,dom𝑓=𝑏,cod𝑓=𝑐}
is the set of arrows from 𝑏 to 𝑐 in π’žοΈ€.

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 Matr𝐾 has objects β„•0 and hom(𝑛,π‘š)=β„³οΈ€π‘šΓ—π‘›(𝐾), with composition the usual matrix product.

Definition I.2.11

For 𝑉 a family of sets, the category Ens𝑉 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

𝑇(1𝑐)=1𝑇𝑐,𝑇(π‘”βˆ˜π‘“)=π‘‡π‘”βˆ˜π‘‡π‘“
are satisfied.

Example I.3.2

The power set functor 𝒫︁:Setβ†’Set 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 𝑓1,𝑓2:𝑏→𝑏′, 𝑇𝑓1=𝑇𝑓2 implies 𝑓1=𝑓2.

Exercise I.3.1

TODO quotients, Lie algebras

Exercise I.3.2

TODO

Exercise I.3.3

TODO functor interpretation in special categories

Exercise I.3.4

TODO prove no functor sending groups to centres

Exercise I.3.5

TODO find two different functors on Grp with object function the identity

I.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

FigureΒ I.1: An example of a natural transformation, 𝜏:𝑆→̇𝑇 for functors 𝑆,𝑇:πŸ‘β†’π’žοΈ€

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 Setβ†’Set, and that evaluation 𝑒𝑋:𝑋𝑆×𝑆→̇𝑋, defined by 𝑒(β„Ž,𝑠)=β„Ž(𝑠), the value of the function β„Ž at π‘ βˆˆπ‘†, is a natural transformation.

Solution. Denote such a functor 𝑇:Setβ†’Set. Let the arrow function of 𝑇 be 𝑇(𝑓:𝑋→𝑋′):π‘‹π‘†β†’π‘‹β€²π‘†β‰”π‘“βˆ˜βˆ’ defined by (π‘“βˆ˜βˆ’)β„Ž=π‘“βˆ˜β„Ž.

We can verify that this satisfies the functor axioms:

𝑇(1𝑋)=1π‘‹βˆ˜βˆ’=1𝑋𝑆

and, for all β„Žβˆˆπ‘‹π‘†,

𝑇(𝑓)βˆ˜π‘‡(𝑔)β„Ž=((π‘“βˆ˜βˆ’)∘(π‘”βˆ˜βˆ’))β„Ž=(π‘“βˆ˜βˆ’)(π‘”βˆ˜β„Ž)=π‘“βˆ˜(π‘”βˆ˜β„Ž)=(π‘“βˆ˜π‘”)βˆ˜β„Ž=((π‘“βˆ˜π‘”)βˆ˜βˆ’)β„Ž=𝑇(π‘“βˆ˜π‘”)β„Ž

so 𝑇(π‘“βˆ˜π‘”)=𝑇(𝑓)βˆ˜π‘‡(𝑔).

Then note that

(π‘“βˆ˜π‘’π‘‹)(β„Ž,𝑠)=𝑓(β„Ž(𝑠))=(π‘“βˆ˜β„Ž)𝑠=𝑒𝑋′(π‘“βˆ˜β„Ž,𝑠)=(π‘’π‘‹β€²βˆ˜(π‘“βˆ˜βˆ’))(β„Ž,𝑠)=(π‘’π‘‹β€²βˆ˜(𝑇(𝑓)Γ—1𝑆))(β„Ž,𝑠),

i.e. π‘“βˆ˜π‘’π‘‹=π‘’π‘‹β€²βˆ˜(𝑇(𝑓)Γ—1𝑆).

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 π»Γ—βˆ’:Grpβ†’Grp, and each morphism 𝑓:𝐻→𝐾 of groups defines a natural transformation π»Γ—βˆ’β†’Μ‡πΎΓ—βˆ’.

Solution.

For a fixed group 𝐻, define the functor π»Γ—βˆ’:Grpβ†’Grp by

(π»Γ—βˆ’)𝐺↦𝐻×𝐺

and

(π»Γ—βˆ’)𝑔↦1𝐻×𝑔

for any group homomorphism 𝑔.

We can verify that this definition satisfies the functor axioms:

(π»Γ—βˆ’)1𝐺=1𝐻×1𝐺=1𝐻×𝐺=1(π»Γ—βˆ’)𝐺

and

(π»Γ—βˆ’)(𝑔1βˆ˜π‘”2)=1𝐻×(𝑔1βˆ˜π‘”2)=(1𝐻×𝑔1)∘(1𝐻×𝑔2)=((π»Γ—βˆ’)𝑔1)∘((π»Γ—βˆ’)𝑔2).

Then for any morphism 𝑓:𝐻→𝐾 of groups, for any groups 𝐺1,𝐺2, and for any group homomorphism 𝑔:𝐺1→𝐺2, the following diagram commutes:

where 𝑔𝐺:𝐺×𝐺1→𝐺×𝐺2≔1𝐺×𝑔 and 𝑓𝐺:𝐻×𝐺→𝐾×𝐺≔𝑓×1𝐺.

This commutes because

π‘”πΎβˆ˜π‘“πΊ1=(1𝐾×𝑔)∘(𝑓×1𝐺1)=(1πΎβˆ˜π‘“)Γ—(π‘”βˆ˜1𝐺1)=(π‘“βˆ˜1𝐻)Γ—(1𝐺2βˆ˜π‘”)=𝑓𝐺2×𝑔𝐻.

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, 𝑇𝑔=β„Ž(𝑆𝑔)β„Žβˆ’1 for all π‘”βˆˆπΊ.

Solution.

β€œβŸΉβ€:

Since there is a natural transformation 𝜏:𝑆→̇𝑇, for every π‘”βˆˆπΊ, the following diagram commutes:

FigureΒ I.4: The natural transformation 𝜏:𝑆→𝑇

with πœβˆ—πΊβ‰•β„Ž for β„Žβˆˆπ».

Then for every π‘”βˆˆπΊ,

πœβˆ—πΊβˆ˜(𝑆𝑔)=(𝑇𝑔)βˆ˜πœβˆ—πΊsoβ„Ž(𝑆𝑔)=(𝑇𝑔)β„Žso𝑇𝑔=β„Ž(𝑆𝑔)β„Žβˆ’1.

β€œβŸΈβ€:

Suppose that there exists some β„Žβˆˆπ» s.t. for all π‘”βˆˆπΊ, 𝑇𝑔=β„Ž(𝑆𝑔)β„Žβˆ’1.

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:

  1. 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 βŸ¨π‘”,π‘“βŸ©.
  2. Conversely, every such function 𝜏 comes from a unique natural transformation with πœπ‘=𝜏(1𝑐).

Solution.

  1. 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 πœπ‘β‰”πœ(1𝑐), that defines that function.

Then for any arrow 𝑓:𝑐→𝑐′,

π‘‡π‘“βˆ˜πœ(1𝑐)=𝜏(𝑓1𝑐)βŸΉπ‘‡π‘“βˆ˜πœπ‘=πœπ‘“

and

𝜏(1𝑐𝑓)=𝜏(1𝑐)βˆ˜π‘†π‘“βŸΉπœπ‘“=πœπ‘βˆ˜π‘†π‘“,

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, FinVect𝐹, is equivalent to the category Matr𝐹 (recalling that Matr𝐹 is the category with objects all positive integers, and arrows from 𝑛 to π‘š all π‘šΓ—π‘› matrices under 𝐹).

Solution.

STP that there exist functors 𝑆:Matr𝐹→FinVect𝐹 and 𝑇:FinVect𝐹→Matr𝐹 and natural isomorphisms 𝐼FinVectπΉβ‰…π‘‡βˆ˜π‘†, 𝐼MatrπΉβ‰…π‘†βˆ˜π‘‡, with 𝐼𝐢 the identity functor for a category 𝐢.

For each vector space 𝑉, fix a basis 𝐡𝑉. Define 𝑇𝑉≔dim𝑉,π‘‡β„Žβ‰”rep𝐡𝑉,π΅π‘‰β„Ž for each vector space 𝑉 and linear transformation β„Ž:π‘‰β†’π‘Š, and define 𝑆𝑛=𝐹𝑛, 𝑆𝑀=(𝑣⃗↦𝑀𝑣⃗) for each π‘›βˆˆβ„• and π‘€βˆˆβ„³οΈ€π‘šΓ—π‘›.

We can verify that 𝑆,𝑇 are functors:

𝑇(1𝑉)=𝐼=1𝑛=1𝑇𝑉;𝑇(π‘”βˆ˜β„Ž)=rep𝐡𝑉,π΅π‘Š(π‘”βˆ˜β„Ž)=π‘‡π‘”βˆ˜π‘‡β„Ž;𝑆(1𝑛)=1𝐹𝑛;𝑆(π‘ƒβˆ˜πΊ)=𝑣⃗↦𝑃𝑄𝑣⃗=π‘†π‘ƒβˆ˜π‘†π‘„.

Then for each vector space 𝑉 define a vector isomorphism πœπ‘‰:𝑉→𝐹𝑛 defined by 𝑉↦(π‘‡βˆ˜π‘†)𝑉, and for each π‘›βˆˆβ„• define πœŽπ‘›β‰”id.

Then the following diagrams commute:

hence πΌβ‰…π‘†βˆ˜π‘‡, πΌβ‰…π‘‡βˆ˜π‘†, so Matr𝐹 and FinVect𝐹 are equivalent.

I.5 Monics, epics, and zeroes

Definition I.5.1

An arrow 𝑒:π‘Žβ†’π‘ is invertible in π’žοΈ€ if there is an arrow π‘’βˆ’1:π‘Žβ†’π‘βˆˆπ’žοΈ€ such that π‘’βˆ˜π‘’βˆ’1=1𝑏 and π‘’βˆ’1βˆ˜π‘’=1π‘Ž.

Remark I.5.2

If such an π‘’βˆ’1 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 𝑓1,𝑓2:π‘‘β†’π‘Ž, π‘šβˆ˜π‘“1=π‘šβˆ˜π‘“2 implies 𝑓1=𝑓2.

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 𝑔1,𝑔2:π‘‘β†’π‘Ž, 𝑔1βˆ˜β„Ž=𝑔2βˆ˜β„Ž implies 𝑔1=𝑔2.

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 β„Žβˆ˜π‘Ÿ=1𝑏).

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 π‘”βˆ˜β„Ž=1, then 𝑔 is a split epi, and β„Ž a split monic.

Definition I.5.14

An arrow 𝑓:𝑏→𝑏 is idempotent if π‘“βˆ˜π‘“=𝑓.

Proposition I.5.15

If π‘”βˆ˜β„Ž=1, then 𝑓=β„Žβˆ˜π‘” is defined and is idempotent (π‘“βˆ˜π‘“=𝑓).

Definition I.5.16

We say that an idempotent 𝑓 splits when there exists arrows 𝑔,β„Ž with 𝑓=β„Žπ‘” and π‘”β„Ž=1.

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 hom𝒒︀(π‘₯,π‘₯).

If there is an arrow 𝑓:π‘₯β†’π‘₯β€², then hom𝒒︀(π‘₯,π‘₯)β‰…hom𝒒︀(π‘₯β€²,π‘₯β€²) 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 invertible

Exercise I.5.2

TODO prove monic compose monic is monic, same for epi

Exercise I.5.3

TODO If π‘”βˆ˜π‘“ is monic, is 𝑔 monic?

Exercise I.5.4

TODO rings

Exercise I.5.5

TODO show epi in Grp is surjection

Exercise I.5.6

TODO show that all idempotents split in Set

Exercise I.5.7

TODO

Exercise I.5.8

TODO

Exercise I.5.9

TODO show that if 𝑇:𝐢→𝐡 is faithful and 𝑇𝑓 monic, 𝑓 monic

I.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 π’žοΈ€op has objects Ob(π’žοΈ€) and arrows 𝑓op for each π‘“βˆˆAr(π’žοΈ€), with 𝑓:π‘Žβ†’π‘β†¦π‘“op:𝑏→𝑐.

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 π’žοΈ€op.

Definition II.2.4

Given a functor 𝑇:π’žοΈ€op→ℬ︀op, the opposite functor 𝑇op is defined by 𝑐↦𝑇𝑐 and 𝑓op↦(𝑇𝑓)op.

Remark II.2.5

The assignments π’žοΈ€β†¦π’žοΈ€op and 𝑇↦𝑇op defines a functor from Catβ†’Cat.

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 𝑆:π’žοΈ€opβ†’π’ŸοΈ€, and we write 𝑆̅𝑓=𝑆𝑓op, then 𝑆̅ is a contravariant functor from π’žοΈ€β†’π’ŸοΈ€.

A contravariant functor 𝑆̅ satisfies

𝑆̅(1𝑐)=1𝑆̅𝑐,𝑆̅(𝑓𝑔)=(𝑆̅𝑔)(𝑆̅𝑓),

and, given an arrow 𝑓:π‘Žβ†’π‘βˆˆπ’žοΈ€, 𝑆̅ sends 𝑓 to 𝑆̅𝑓:π‘†Μ…π‘β†’π‘†Μ…π‘Ž.

Definition II.2.8

For a locally small category π’žοΈ€, we define for each object π‘Žβˆˆπ’žοΈ€ the covariant hom-functor

π’žοΈ€(π‘Ž,βˆ’)=hom(π‘Ž,βˆ’):π’žοΈ€β†’Set,

which sends each object 𝑏 to the hom-set homπ’žοΈ€(π‘Ž,𝑏), and each arrow π‘˜:𝑏→𝑏′ the function

hom(π‘Ž,π‘˜):hom(π‘Ž,𝑏)β†’hom(π‘Ž,𝑏′)

defined by π‘“β†¦π‘˜βˆ˜π‘“ for each arrow 𝑓:π‘Žβ†’π‘.

This function hom(π‘Ž,π‘˜) 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

π’žοΈ€(βˆ’,𝑏)=hom(βˆ’,𝑏):π’žοΈ€opβ†’Set

that sends each object π‘Ž to homπ’žοΈ€(π‘Ž,𝑏) and each arrow 𝑔:π‘Žβ†’π‘Žβ€² to the function

hom(𝑔,𝑏):hom(π‘Žβ€²,𝑏)β†’hom(π‘Ž,𝑏)
defined by π‘“β†¦π‘“βˆ˜π‘”, sometimes written π‘”βˆ— and called β€œcomposition with 𝑔 on the right”.

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 1𝑏,1𝑐 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 cases

Exercise II.3.2

TODO preorders

Exercise 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.

Ob(π’žοΈ€)={(𝑐𝑖)π‘–βˆˆπΌ|π‘π‘–βˆˆOb(π’žοΈ€π‘–)};Ar(π’žοΈ€)={(𝑓𝑖)π‘–βˆˆπΌ|π‘“π‘–βˆˆAr(π’žοΈ€π‘–)};𝑃𝑗((𝑐𝑖)π‘–βˆˆπΌ)=𝑐𝑗.

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 Matr

Exercise II.3.5

TODO topological spaces

II.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 rings

Exercise II.4.2

Describe ℬ︀𝑋, for 𝑋 a finite set.

Solution. Objects are the functors 𝑋→ℬ︀; that is, functors that assign to each π‘₯1,π‘₯2,…,π‘₯𝑛 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

TODO Abβ„•

Exercise 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 Fin𝐺, where Fin is the category of finite sets.

Solution. The objects are all functors 𝑇:𝐺→Fin; because 𝐺 has a single object βˆ—, each object of Fin𝐺 is a finite set 𝑋 (along with some extra structure).

Therefore Fin𝐺=Fin.

Exercise II.4.6

Let 𝐌 be the infinite cyclic monoid (with elements 1,π‘š,π‘š2,…).

Show that, in the functor categories (Matr𝐾)2 and (Matr𝐾)𝐌, the objects are matrices, and isomorphic objects are exactly equivalent and similar matrices, respectively.

Solution. TODO

Exercise II.4.7

TODO

Exercise II.4.8

TODO

II.5 The category of categories

TODO

Exercise II.5.1

For locally small categories π’œοΈ€,ℬ︀,π’žοΈ€, establish a natural isomorphism

Cat(π’œοΈ€Γ—β„¬οΈ€,π’žοΈ€)β‰…Cat(π’œοΈ€,π’žοΈ€β„¬οΈ€).

Solution.

For 𝑇:π’œοΈ€Γ—β„¬οΈ€β†’π’žοΈ€, let πœ‘π’œοΈ€,ℬ︀,π’žοΈ€π‘‡:π’œοΈ€β†’π’žοΈ€β„¬οΈ€ be defined by

π‘Žβ†¦π‘†π‘Ž:β„¬οΈ€β†’π’žοΈ€;π‘“β†¦π‘ˆπ‘“:β„¬οΈ€β†’π’žοΈ€,

where we define functors π‘†π‘Ž and π‘ˆπ‘“ by

π‘†π‘Žπ‘=𝑇(π‘Ž,𝑏); π‘†π‘Žπ‘”=𝑇(1π‘Ž,𝑔);π‘ˆπ‘“π‘”=𝑇(𝑓,𝑔); π‘ˆπ‘“π‘=𝑇(𝑓,1𝑏).

Then given a functor π‘Š:π’œοΈ€β†’π’žοΈ€β„¬οΈ€, let πœ“π’œοΈ€,ℬ︀,π’žοΈ€π‘Š:π’œοΈ€Γ—β„¬οΈ€β†’π’žοΈ€ be defined by

(π‘Ž,𝑏)↦(π‘Šπ‘Ž)𝑏; (𝑓,𝑔)↦(π‘Šπ‘“)𝑔.

Clearly πœ‘πœ“=πΌπ’œοΈ€β†’π’žοΈ€β„¬οΈ€; the converse is less obvious but still simple.

(πœ“βˆ˜πœ‘)𝑇=πœ“{π‘Žβ†¦{𝑏↦𝑇(π‘Ž,𝑏)𝑔↦𝑇(1π‘Ž,𝑔)𝑓↦{𝑏↦𝑇(𝑓,1𝑏)𝑔↦𝑇(𝑓,𝑔)={(π‘Ž,𝑏)↦𝑇(π‘Ž,𝑏)(𝑓,𝑔)↦𝑇(𝑓,𝑔)=𝑇.

Hence πœ“βˆ˜πœ‘=πΌπ’œοΈ€Γ—β„¬οΈ€β†’π’žοΈ€.

Therefore πœ“=πœ‘βˆ’1, so πœ‘ is a bijection.

TODO show naturality

Exercise II.5.2

For categories π’œοΈ€,ℬ︀,π’žοΈ€, establish natural isomorphisms

  1. (π’œοΈ€Γ—β„¬οΈ€)π’žοΈ€β‰…π’œοΈ€π’žοΈ€Γ—β„¬οΈ€π’žοΈ€

  2. π’žοΈ€π’œοΈ€Γ—β„¬οΈ€β‰…(π’žοΈ€β„¬οΈ€)π’œοΈ€.

Solution.

  1. Note that (π’œοΈ€Γ—β„¬οΈ€)π’žοΈ€, π’œοΈ€π’žοΈ€Γ—(ℬ︀)π’žοΈ€:π’žοΈ€opβ†’Cat.

    Let πœ‘π’œοΈ€,ℬ︀,π’žοΈ€:(π’œοΈ€Γ—β„¬οΈ€)π’žοΈ€β†’π’œοΈ€π’žοΈ€Γ—β„¬οΈ€π’žοΈ€ be defined by

    𝑇:π’žοΈ€β†’π’œοΈ€Γ—β„¬οΈ€β†¦(πœ‹π’œοΈ€βˆ˜π‘‡)Γ—(πœ‹β„¬οΈ€βˆ˜π‘‡),

    and define πœ“π’œοΈ€,ℬ︀,π’žοΈ€:π’œοΈ€π’žοΈ€Γ—β„¬οΈ€π’žοΈ€β†’(π’œοΈ€Γ—β„¬οΈ€)π’žοΈ€ by

    π‘†Γ—π‘ˆβ†¦(𝑐↦(𝑆𝑐,π‘ˆπ‘))

    for objects and arrows 𝑐 in π’žοΈ€.

    Clearly(?) πœ“=πœ‘βˆ’1.

    Then in order for πœ‘ to be natural, we want, for 𝐹:π’œοΈ€β†’π’œοΈ€β€², 𝐺:ℬ︀→ℬ︀′, 𝐻:π’žοΈ€β€²β†’π’žοΈ€,

    to commute.

    We have that

    ((π»βˆ—βˆ˜πΉβˆ—)Γ—(π»βˆ—βˆ˜πΊβˆ—))(πœ‘π‘‡)=((π»βˆ—βˆ˜πΉβˆ—)Γ—(π»βˆ—βˆ˜πΊβˆ—))((πœ‹π’œοΈ€βˆ˜π‘‡)Γ—(πœ‹β„¬οΈ€βˆ˜π‘‡))=(π»βˆ˜πœ‹π’œοΈ€βˆ˜π‘‡βˆ˜π»)Γ—(πΊβˆ˜πœ‹β„¬οΈ€βˆ˜π‘‡βˆ˜π»);πœ‘((π»βˆ—βˆ˜(πΉΓ—πΊβˆ—))𝑇)=πœ‘((𝐹×𝐺)βˆ˜π‘‡βˆ˜π»)=(πœ‹π’œοΈ€βˆ˜(𝐹×𝐺)βˆ˜π‘‡βˆ˜π»)Γ—(πœ‹β„¬οΈ€βˆ˜(𝐹×𝐺)βˆ˜π‘‡βˆ˜π»)=(πΉβˆ˜πœ‹π’œοΈ€βˆ˜π‘‡βˆ˜π»)Γ—(πΊβˆ˜πœ‹β„¬οΈ€βˆ˜π‘‡βˆ˜π»)

    hence πœ‘ is natural.

  2. TODO

Exercise II.5.3

TODO

Exercise II.5.4

TODO

Exercise 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

TODO

Exercise II.5.7

If 𝑇:π’œοΈ€β†’π’ŸοΈ€ is a functor, show that its arrow functions π‘‡π‘Ž,𝑏:π’œοΈ€(π‘Ž,𝑏)β†’π’ŸοΈ€(π‘‡π‘Ž,𝑇𝑏) define a natural transformation between functors π’œοΈ€opΓ—π’œοΈ€β†’Set.

Solution.

Note that (π‘Ž,𝑏)β†¦π‘‡π‘Ž,𝑏 is a transformation 𝜏:π’œοΈ€(βˆ’,βˆ’)β†’Μ‡π’ŸοΈ€(π‘‡βˆ’,π‘‡βˆ’).

For 𝜏 to be natural in both of its arguments, we want that for π‘Ž,𝑏,π‘Žβ€²,π‘β€²βˆˆπ’œοΈ€, 𝑓:π‘Žβ†’π‘Žβ€²βˆˆπ’œοΈ€op, 𝑔:π‘β†’π‘β€²βˆˆπ’œοΈ€,

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

TODO

Exercise II.6.2

TODO

Exercise II.6.3

Define πœ‹β„°οΈ€,πœ‹π’ŸοΈ€,πœ‹π’žοΈ€2 on arrows πœ‹βˆ—s the projections of (𝑇↓𝑆) for functors 𝑇:β„°οΈ€β†’π’žοΈ€,𝑆:π’ŸοΈ€β†’π’žοΈ€.

Solution. Define

πœ‹β„°οΈ€βŸ¨π‘˜,β„ŽβŸ©=π‘˜;πœ‹π’ŸοΈ€βŸ¨π‘˜,β„ŽβŸ©=β„Ž;πœ‹π’žοΈ€2βŸ¨π‘˜,β„ŽβŸ©=βŸ¨π‘‡π‘˜,π‘†β„ŽβŸ©.

We now show functoriality on πœ‹β„°οΈ€ and πœ‹π’žοΈ€2; functoriality of πœ‹π’ŸοΈ€ follows by symmetry.

πœ‹β„°οΈ€βŸ¨1𝑒,1π‘‘βŸ©=1𝑒=1πœ‹β„°οΈ€βŸ¨π‘’,π‘‘βŸ©;πœ‹β„°οΈ€βŸ¨π‘˜βˆ˜π‘˜β€²,β„Žβˆ˜β„Žβ€²βŸ©=π‘˜βˆ˜π‘˜β€²=πœ‹β„°οΈ€βŸ¨π‘˜,β„ŽβŸ©βˆ˜πœ‹β„°οΈ€βŸ¨π‘˜β€²,β„Žβ€²βŸ©;πœ‹π’žοΈ€2⟨1𝑒,1π‘‘βŸ©=βŸ¨π‘‡1𝑒,𝑆1π‘‘βŸ©=⟨1𝑇𝑒,1π‘†π‘‘βŸ©=1πœ‹π’žοΈ€2βŸ¨π‘’,π‘‘βŸ©;πœ‹π’žοΈ€2βŸ¨π‘˜βˆ˜π‘˜β€²,β„Žβˆ˜β„Žβ€²βŸ©=βŸ¨π‘‡(π‘˜βˆ˜π‘˜β€²),𝑆(β„Žβˆ˜β„Žβ€²)⟩=βŸ¨π‘‡π‘˜βˆ˜π‘‡π‘˜β€²,π‘†β„Žβˆ˜π‘†β„Žβ€²βŸ©=βŸ¨π‘‡π‘˜,π‘†β„ŽβŸ©βˆ˜βŸ¨π‘‡π‘˜β€²,π‘†β„Žβ€²βŸ©=πœ‹π’žοΈ€2βŸ¨π‘˜,β„ŽβŸ©βˆ˜πœ‹π’žοΈ€2βŸ¨π‘˜β€²,β„Žβ€²βŸ©.

Exercise II.6.4

Given functors 𝑇,𝑆:π’ŸοΈ€β†’π’žοΈ€, show that a natural transformation 𝜏:𝑇→̇𝑆 is exactly a functor 𝜏:π’ŸοΈ€β†’(𝑇↓𝑆) such that πœ‹π‘‡πœ=πœ‹π‘†πœ=idπ’ŸοΈ€, 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 π‘‘βˆˆπ’ŸοΈ€,

𝐹1𝑑=βŸ¨π‘‡1𝑑,𝑆1π‘‘βŸ©=⟨1𝑇𝑑,1π‘†π‘‘βŸ©=1πœπ‘‘=1𝐹𝑑

and, for 𝑓:π‘Žβ†’π‘,𝑔:π‘β†’π‘βˆˆπ’ŸοΈ€,

𝐹(π‘”βˆ˜π‘“)=βŸ¨π‘‡(π‘”βˆ˜π‘“),𝑆(π‘”βˆ˜π‘“)⟩=βŸ¨π‘‡π‘”βˆ˜π‘‡π‘“,π‘†π‘”βˆ˜π‘†π‘“βŸ©=βŸ¨π‘‡π‘”,π‘†π‘”βŸ©βˆ˜βŸ¨π‘‡π‘“,π‘†π‘“βŸ©=πΉπ‘”βˆ˜πΉπ‘“.

Then we have, for an object π‘‘βˆˆπ’ŸοΈ€,

πœ‹π‘‡πΉπ‘‘=πœ‹π‘‡(πœπ‘‘:𝑇𝑑→𝑆𝑑)=𝑑;πœ‹π‘†πΉπ‘‘=πœ‹π‘†(πœπ‘‘:𝑇𝑑→𝑆𝑑)=𝑑;

and for an arrow 𝑓:π‘Žβ†’π‘βˆˆπ’ŸοΈ€,

πœ‹π‘‡πΉπ‘“=πœ‹π‘‡βŸ¨π‘‡π‘“,π‘†π‘“βŸ©=𝑓;πœ‹π‘†πΉπ‘“=πœ‹π‘†βŸ¨π‘‡π‘“,π‘†π‘“βŸ©=𝑓.

Therefore πœ‹π‘‡πΉ=πœ‹π‘†πΉ=idπ’ŸοΈ€.


Conversely, suppose we have a functor 𝜏:π’ŸοΈ€β†’(𝑇↓𝑆) with πœ‹π‘‡πœ=πœ‹π‘†πœ=idπ’ŸοΈ€. 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 π‘ƒπ’žοΈ€2=πœ‹π’žοΈ€2𝐿, for πœ‹βˆ— the projection functors of the comma category (𝑇↓𝑆). TODO define what 𝑑0,𝑑1 are.

Solution. Define 𝐿 by

π‘₯↦(𝑓:π‘₯β†’π‘₯β€²)↦=βŸ¨π‘ƒβ„°οΈ€π‘“,π‘ƒπ’ŸοΈ€π‘“βŸ©.

Then for object π‘₯βˆˆπ’³οΈ€,

πœ‹β„°οΈ€πΏπ‘₯=πœ‹β„°οΈ€()=𝑃ℰ︀π‘₯,

and for arrow 𝑓:π‘₯β†’π‘₯β€²βˆˆπ’³οΈ€,

πœ‹β„°οΈ€πΏπ‘“=πœ‹β„°οΈ€βŸ¨π‘ƒβ„°οΈ€π‘“,π‘ƒπ’ŸοΈ€π‘“βŸ©=𝑃ℰ︀𝑓.

Hence πœ‹β„°οΈ€πΏ=𝑃ℰ︀, and by symmetry πœ‹π’ŸοΈ€πΏ=π‘ƒπ’ŸοΈ€.

Moreover,

πœ‹π’žοΈ€2𝐿π‘₯=πœ‹π’žοΈ€2()=π‘ƒπ’žοΈ€2π‘₯;πœ‹π’žοΈ€2𝐿𝑓=πœ‹π’žοΈ€2βŸ¨π‘ƒβ„°οΈ€π‘“,π‘ƒπ’ŸοΈ€π‘“βŸ©=βŸ¨π‘‡π‘ƒβ„°οΈ€π‘“,π‘†π‘ƒπ’ŸοΈ€π‘“βŸ©=π‘ƒπ’žοΈ€2𝑓.

Therefore π‘ƒπ’žοΈ€2=πœ‹π’žοΈ€2𝐿.

We now show that 𝐿 is the unique functor satisfying this property.

Suppose that there exists a functor 𝐿′:π’žοΈ€β†’(𝑇↓𝑆)≠𝐿 satisfying π‘ƒβˆ—=πœ‹βˆ—πΏ for βˆ—=β„°οΈ€,π’ŸοΈ€,π’žοΈ€2.

Then either βˆƒπ‘₯βˆˆπ’³οΈ€ with 𝐿′π‘₯≠𝐿π‘₯, or βˆƒπ‘“βˆˆπ’³οΈ€ with 𝐿′𝑓≠𝐿𝑓.

Suppose the former. Then either πœ‹β„°οΈ€πΏβ€²π‘₯β‰ πœ‹β„°οΈ€πΏπ‘₯, or πœ‹π’ŸοΈ€πΏβ€²π‘₯β‰ πœ‹π’ŸοΈ€πΏπ‘₯, or πœ‹π’žοΈ€2𝐿′π‘₯β‰ πœ‹π’žοΈ€2𝐿π‘₯, 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

TODO

Exercise 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 𝐻:π’ŸοΈ€β†’Set, 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 𝐻:Grpβ†’Set 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

TODO

Exercise III.1.2

Find a universal element for the contravariant power set functor 𝒫︀:Setopβ†’Set.

Solution. We want a pair βŸ¨π‘‹βˆˆSetop,π‘†βŠ†π‘‹βŸ©, such that for every π‘Œ,π‘‡βŠ†π‘Œ there is a unique function 𝑓:π‘Œβ†’π‘‹ with (𝒫︀𝑓)𝑆=𝑇. By the definition of 𝒫︀ on functors, this is equivalent to π‘“βˆ’1𝑆=𝑇.

For this 𝑓 to be uniquely determined by π‘“βˆ’1𝑆=𝑇 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

TODO

Exercise III.1.4

Use only universality (of projections) to prove the following isomorphisms of group theory:

  1. For normal subgroups 𝑀,𝑁 of 𝐺 with π‘€βŠ²π‘, (𝐺/𝑀)/(𝑁/𝑀)≅𝐺/𝑀;
  2. For subgroups 𝑆 and 𝑁 of 𝐺, 𝑁 normal, with join 𝑆𝑁, 𝑆𝑁/𝑁≅𝑆/π‘†βˆ©π‘.

Solution.

  1. TODO