1 Definitions and Examples

Definition 1.1 (Category). A category C consists of:

  • (a)
    a collection obC of objects A,B,C,.
  • (b)
    a collection morC of morphisms f,g,h,.
  • (c)
    two operations dom, cod from morC to obC: we write f:AB for “f is a morphism and domf=A and codf=B”.
  • (d)
    an operation from obC to morC sending A to 1A:AA.
  • (e)
    a partial binary operation (f,g)fg on morC, such that fg is defined if and only if domf=codg, and in this case we have domfg=domg and codfg=codf.

These are subject to the axioms:

  • (f)
    f1A=f and 1Ag=g when the composites are defined.
  • (g)
    f(gh)=(fg)h whenever fg and gh are defined.

Remark 1.2.

  • (a) obC and morC needn’t be sets. If they are, we call C a small category.
  • (b) We could formalise the definition without mentioning objects, but we don’t.
  • (c) fg means “first g, then f”.

Example 1.3.

  • (a) Set= category of all sets and the functions between them. (Formally, a morphism of Set is a pair (f,B) where f is a set-theoretic function, and B is its codomain.)
  • (b) We have categories:
    • Group of groups and group homomorphisms

    • Rng of rings and homomorphisms

    • Vectk of vector spaces over a field k

    • and so on

  • (c) We have categories
    • Top of topological spaces and continuous maps

    • Met of metric spaces and non-expansive maps (i.e. f such that d(f(x),f(y))d(x,y))

    • Mfd of smooth manifolds and C maps

    Also TopGp for topological groups and continuous homomorphisms, etc...

  • (d) We have a category Htpy with the same objects as Top, but morphisms XY are homotopy classes of continuous maps.

    In general, given C and an equivalence relation on morC such that

    fgdomf=domg and codf=codg

    and

    fgfggh and kfkg when the composites are defined

    we can form a quotient category C.

  • (e) The category Rel has the same objects as Set, but morphisms AB are relations RA×B, with composition defined by
    RS={(a,c)|(b)(a,b)S(b,c)R}.

    We can also define the category Part of sets with partial functions.

  • (f) For any category C, the opposite category Cop has the same objects and morphisms as C but dom and cod are interchanged and composition is reversed.

    This yields a duality principle: if P is a true statement about categories, so is P obtained by reversing arrows in P.

  • (g) A (small) category with one object is a monoid (a semigroup with an identity). In particular, a group is a 1object small category whose morphisms are all isomorphisms.
  • (h) A groupoid is a category whose morphisms are all isomorphisms. For example, the fundamental groupoid π1(X) of a topological space X has points of X as objects, and morphisms xy are homotopy classes of paths from x to y (c.f. the fundamental group π1(X,x)).
  • (i) A discrete category is one whose only morphisms are identities. If C is such that for any pair of objects (A,B) there is at most one morphism AB then morC becomes a reflexive, transitive relation on obC. We call such a C a preorder. In particular, a poset is a small preorder whose only isomorphisms are identities.
  • (j) Given a field k, the category Matk has natural numbers as objects, and morphisms np are p×n matrices, with entries from k, and composition is matrix multiplication.

Definition 1.4 (Functor). Let C and D be categories. A functor F:CD consists of mappings F:obCobD and F+morCmorD such that:

  • F(domf)=domFf

  • F(codf)=codFf

  • F(1A)=1FA

  • F(fg)=(Ff)(Fg) whenever fg is defined.

We write Cat for the category of small categories and the functors between them.

Example 1.5.

  • (a) We have forgetful functors GpSet, RngSet, TopSet, … or slightly more interestingly, RngAbGp, MetTop, TopGpTop, TopGpGp, …
  • (b) The construction of free groups is a functor SetGp: given a set A, FA is the group freely generated by A, such that every mapping AG where G has a group structure extends uniquely to a homomorphism FAG. Given AfB, we define Ff:FAFB to be the unique homomorphism extending AfBFB. If we also have BgC, F(gf) and (Fg)(Ff) are both homomorphisms extending AfBgCFC.
  • (c) Given a set A, we define PA to be the set of subsets of A. Given f:AB, we define Pf:PAPB by Pf(A)=f(a)|aAB. So P is a functor SetSet.
  • (d) But we also have a functor P:SetopSet (or SetSetop): PA=PA and, for AfB, Gf:PBPA is given by Pf(B)=ainA|f(a)B. We use the term “contravariant functor CD” for a functor CDop.
  • (e) Given a vector space V over k, we write V for the space of linear maps Vk. Given f:VW, we write f:WV for the mapping 𝜃𝜃f. This defines a functor ():VectkopVectk.
  • (f) The mapping CCop, FF defines a functor CatCat.
  • (g) A functor between monoids is a monoid homomorphism; a functor between posets is a monotone map.
  • (h) Given a group G, a functor GSet is given by a set A equipped with a G-action (g,a)ga, i.e. a permutation representation of G. Similarly, a functor GVectk is a k-linear representation of G.
  • (i) The fundamental group construction is a functor Π1:TopGp, where Top is the category of topological spaces with basepoints, and morphisms being the continuous maps which preserve the basepoints.

Definition 1.6 (Natural transformation). Given categories C and D, and two functors CGFD, a natural transformation α:FG assigns to each AobC a morphism αA:FAGA in D, such that for any AfB in C, the square

  FA       F B


FααGfABfGA       GB
commutes (we call this square the naturality square for α at f). Given α as above, and β:GH, we define βα:FH by (βα)A=βAαA. We write [C,D] for the category of functors CD and natural transformations between them.

Example 1.7.

  • (a) Given a vector space V, we have a linear map αV:VV sending vV to the linear form 𝜃𝜃(v) on V. These maps define a natural transformation 1Vectk().
  • (b) There is a natural transformation α:1SetUF, where F is the free group functor and U is the forgetful functor GpSet, whose value at A is the inclusion AUFA. The naturality square
       A          B


fααUABF Uf FA       U FB
    commutes by the definition of Ff.
  • (c) For any A, we have a mapping ηA:APA given by AηA(a)={a}. This is a natural transformation 1SetP since Pf({a})={f(a)} for any aA.
  • (d) Given order-preserving maps PgfQ between posets, there exists a unique natural transformation fg if and only if f(p)g(p) for all PP.
  • (e) Given two group homomorphisms GvuH, a natural transformation uv is given by hH such that hu(g)=v(g)h for all gG, or equivalently u(g)=h1v(g)h, i.e. u and v are conjugate homomorphisms. In particular, the group of natural transformations uu is the centraliser of the image of u.
  • (f) If A and B are G-sets considered as functors GSet, a natural transformation f:AB is a G-invariant map, i.e. f:AB such that gf(a)=f(ga) for all aA, gG.
  • (g) The Hurewicz homomorphism links the homotopy and homology groups of a space X. Elements of πn(X,x) are homotopy classes of basepoint-preserving maps SnfX. If we think of Sn as Δn+1, f defines a singular n-cycle on X and homotopic maps differ by an n-boundary, so we get a well-defined map πn(X,x)hnHn(X). hn is a homomorphism, and it’s a natural transformation πnHnU, where U is the forgetful functor TopTop.

We have isomorphisms of categories: e.g. F:RelRelop defined by FA=A, FR=Ro={(b,a)|(a,b)R} is its own inverse.

But we have a weaker notion of equivalence of categories.

Lemma 1.8. Assuming that:

Then α is an isomorphism in [C,D] if and only if αA is an isomorphism in D for each A.

Proof.

  • Obvious since composition in [C,D].
  • Suppose each αA has an inverse βA. Given AfB in C, in the diagram
      GA       GB


GββFααfABfABF A      F B
    we have βB(Gf)=βB(Gf)αAβA=βBαB(Ff)βA=(Ff)βA.

Definition 1.9 (Equivalence of categories). Let C and D be categories. An equivalence between C and D consists of functors F:CD and G:DC together with natural isomorphisms α:1CGF, β:FG1D. We write CD if there exists an equivalence between C and D.

We say P is a categorical property if

(C has P and CD)D has P.

Example 1.10.

  • (a) The category Part of sets and partial functions is equivalent to Set (the category of pointed sets). We define F:SetPart by F(A,a)=A{a} and if f:(A,a)(B,b), with (Ff)(x)=f(x) if f(x)b and undefined otherwise. Then define G:PartSet by G(A)=(A{A},A) and if f:AB, then
    Gf(x)={f(x)if xA and f(x) is definedBotherwise.

    Then FG=1Part; GF1Set, but there is an isomorphism 1SetGF. Note that PartSet.

  • (b) We have an equivalence fdVectkfdVectkop: both functors are (), and both isomorphisms are α:1fdVectk().
  • (c) We have an equivalence fdVectkMatk: we define F:MatkfdVectk by F(n)=kn, F(nAp) is the linear map knkp represented by A (with respect to standard bases). TO define G, choose a basis for each V, and define G(V)=dimV,
    G(VfW)=matrix representing f with respect to chosen bases.

    GF=1Matk; the choice of bases yields isomorphisms kdimVV for each V, which form a natural transformation FG1fdVectk.

Definition 1.11 (Faithful / full / essentially surjective). Let F:CD be a functor.

  • (a)
    We say F is faithful if, given f and g in morC, (Ff=Fg, domf=domg, codf=codg)f=g.
  • (b)
    We say F is full if, for every g:FAFB in D, there exists f:AB in C with Ff=g.
  • (c)
    We say F is essentially surjective if, for any BobD, there exists AobC with FAB.

Note that if F is full and faithful, it’s essentially injective: given FA gFB in D, the unique AfB with Ff=g is an isomorphism.

We say DC is a full subcategory if the inclusion DC is a full functor.

Lemma 1.12. Assuming that:

  • F:CD

Then F is part of an equivalence CD if and only if F is full, faithful, essentially surjective.

Proof.

  • Suppose give G, α and β as in Definition 1.9. Then βB:FGBB witnesses the fact that F is essentially surjective. If AgfB satisfy Fg=Fg, then GFf=GFg; but f=αB1(GFf)αA, so f=g. Suppose given FAgFB; then f=αB1(Gg)αA satisfies GFf=Gf but G is faithful for the same reason as F, so Ff=g.
  • For each BobD, chose GBobC and an isomorphism βB:FGBB. Given BgC, define Gg:GBGC to be the unique morphism such that FGg=βC1gβB. Functoriality follows from uniqueness, and naturality of β. We define αA:AGFA to be the unique morphism such that FαA=βFA1:FAFGFA. αA is an isomorphism, and naturality squares for α are mapped by F to naturality squares for β1, so they commute.

Definition 1.13 (Skeleton). By a skeleton of a category C, we mean a full subcategory containing just one object from each isomorphism class.

We say C is skeletal if it’s a skeleton of itself.

Example. Matk is a skeletal category; it’s isomorphic to the skeleton of fdVectk consisting of the spaces kn.

However, working with skeletal categories involves heavy use of the axiom of choice.

Definition 1.14 (Monomorphism / epimorphism). Let f:AB be a morphism in a category C. We say f is a monomorphism (or monic) if, given ChgA, fg=fhg=h. We say f is an epimorphism (or epic) if it’s a monomorphism in Cop.

We write AfB to indicate that f is monic, and AfB to indicate that it’s epic.

We say C is balanced if every arrow which is monic and epic is an isomorphism.

We will call a monic morphism e split if it has a left inverse (and similarly we may define the notion of split epic).

Example 1.15.

  • (a) In Set, monic injective ( obvious; for consider morphisms {}A). Also, epic surjective ( obvious; for consider morphisms B{0,1}).
  • (b) In Gp, monic injective (for consider homomorphisms G), and epic surjective (but is quite non-trivial – it uses free products with amalgamation).
  • (c) In Rng, monic injective, but epic does not imply surjective (for example, consider ).
  • (d) In Top, monic injective and epic surjective (as in Set) but Top isn’t balanced.
  • (e) In preorder, all morphisms are monic and epic, so a preorder is balanced if and only if it’s an equivalence relation.