Category Theory


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

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 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 contraints just enforce that each natural transformation 𝜏 is a function between 𝑛-tuples of objects of ℬ︀.

Exercise II.4.3

TODO Abβ„•

Exercise II.4.4

TODO preorders

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

TODO infinite cyclic monoid

Exercise II.4.7

TODO

Exercise II.4.8

TODO