Categories

Definition 318.1(Category).

A category consists of

  • a class of objects of this category; and
  • for every two objects of , a set of morphisms, with the properties listed below.

Properties of morphisms:

  1. For every object of , there exists a morphism , called the identity on .
  2. One can compose morphisms: two morphisms and determine a morphism . That is, for every triple of objects of , there is a function (of sets) , and the image of the pair is denoted by .
  3. This ‘composition law’ is associative: if , , and , then .
  4. The identity morphisms are identities with respect to composition: for all , we have , .

A category is called concrete if the objects of the category are structured sets and the arrows of the category are (certain) functions.

Example 318.2(Concrete categories).

  • Groups and group homomorphisms
  • -modules and -module homomorphisms
  • Vector spaces and linear transformations
  • Topological spaces and continuous maps
  • Posets and monotone functions

The strength of category theory lies in its abstraction: objects do not have to be sets, and morphisms do not have to be functions.

Example 318.3(Finite categories).

Example 318.4(The category Rel).

Take sets as objects and take binary relations as arrows. That is, an arrow is an arbitrary subset . The identity arrow on a set is the identity relation. Given and , define composition by

Example 318.5(Preorders).

A preorder is a set equipped with a binary relation thata is both reflexive and transitive: , and if and , then (what differentiates a preorder from a poset is the lack of antisymmetry). Any preorder can be regarded as a category by taking the objects to be the elements of and taking a unique arrow, if and only if . The reflexive and transitive conditions on ensure that this is indeed a category. Note that for any is a singleton if , and empty otherwise.

505e6c

Example 318.6(Slice categories).

Let be a category, and fix an object of . Define a new category as follows:

  • consists of all morphisms from any object of to ; thus, objects of are morphisms of the type

    ZA:f
  • morphisms

    Z1A!Z2Af1f2

    are commutative diagrams

    Z1Z2A¾f1f2

Example 318.7.

Let be a category. Let . Define a new category like so:

  • consists of diagrams

    AZBfg

    in , denoted by ; and

  • morphisms

    AZ1Bf1g1¡!AZ2Bf2g2

    are commutative diagrams

    AZ1Z2Bf1¾g1f2g2

As in example 3.5, the identities are inherited from the identities in : for in , the identity corresponds to the diagram

AZZBf1Zgfg

The composition is achieved by combining the diagrams of and in the following manner

AZ1Z2Z3Bf1¾g1f2g2¿f3g3

and since is a category, it follows that the diagram obtained by removing , i.e,

AZ1Z3Bf1¿¾g1f3g3

commutes. Associativity immediately follows from the fact that composition is associative in .

db40b9

Morphisms

Isomorphisms and automorphisms

Definition 318.8(Isomorphism).

A morphism is an isomorphism if it has a (two-sided) inverse under composition: that is, if such that

Groupoids

A category in which every morphism is an isomorphism is called a groupoid. If the preorder in Example 5 is symmetric, the category constructed is a groupoid (every morphism now has an inverse).

Proposition 318.9.

The inverse of an isomorphism is unique.

To hammer the point home, if is a morphism with a left-inverse and a right inverse , then is necessarily an isomorphism, , and this morphism is the (unique) inverse of .

More utterly standard stuff:

Proposition 318.10.

  • Each identity is an isomorphism and its own inverse.
  • If is an isomorphism, then is an isomorphism and further .
  • If , are isomorphisms, then is an isomorphism and .
2c97fa

A morphism of an object of a category to itself is called an endomorphism. is denoted by .

Definition 318.11(Automorphism).

An automorphism of an object of a category is an isomorphism form to itself. The set of automorphisms of is denoted by ; it is a subset of .

From Proposition 10, we can infer than is a group for all objects of all categories .

Monomorphisms and epimorphisms

Note that defining qualities of morphisms by their actions on ‘elements’ (as we did in ) is not an option here, because objects of an arbitrary category do not (in general) have ‘elements’. However, recall that properties of morphisms in such as injectivity and surjectivity did have alternative formulations which did not reference ‘elements’ at all (left cancellable and right cancellable functions, respectively). It turns out that these formulations of these notions do transfer nicely into the categorical setting.

Definition 318.12(Monomorphism).

Let be a category. A morphism is a monomorphism if the following holds: for all objects of and all morphisms ,

In other words, is a monomorphism if it is left cancellable.

Definition 318.13(Epimorphism).

Let be a category. A morphism is an epimorphism if the following holds: for all objects of and all morphisms ,

In other words, is an epimorphism if it is right cancellable.

In , the monomorphisms are precisely the injective functions, and the epimorphisms are precisely the surjective functions.

Several things that we take for granted in break in general categories:

epic + monic isomorphism

In , a function is an isomorphism iff it is both injective and surjective, i.e iff it is both a monomorphism and an epimorphism. But in the category defined by on , every morphism is both a monomorphism and an epimorphism (since there is at most one morphism between any two objects, the defining conditions become vacuously true), while the only isomorphisms are identities.

epic right invertible, monic left invertible

While

can be easily proven universally, the converse is not generally true (It is true, of course, in ). For example, the map defines a left-cancellable group homomorphism . However, there is no group homomorphism such that . Similarly, the map defines a right-cancellable group homomorphism . However, since every homomorphism must map to , is not right invertible.

epic surjective

In , (!) and , epic surjective.

does not conform to the standards of its brethren, unfortunately. Consider the inclusion homomorphism . is an epimorphism in since if homomorphisms agree on , then they must agree on :

This makes for another example of a morphism which is monic and epic but not an isomorphism.

monic injective

We’ll get back to this in a bit.


Universal Properties

Definition 318.14.

Let be a category.

  • We say that is initial in if for all , is a singleton.
  • We say that is final in if for all , is a singleton.

Example 318.15.

is initial in . Singletons are final in .

A category need not have initial and final objects, and when they exist, they may not be unique. However, they are unique up to a unique isomorphism. Initial and final objects are collectively referred to as terminal objects.

Proposition 318.16.

Let be a category.

  • If are both initial objects in , then .
  • If are both final objects in , then .

Moreover, these isomorphisms are uniquely determined.

The same object can be both initial and final, as singletons are in the category of pointed sets.

Definition 318.17.

We say that a construction satisfies a universal property when it may be viewed as a terminal object of a category.

Example 318.18(Quotienting by equivalence relations).

Let be an equivalence relation defined on a set . Let be a category with objects , where is any set, satisfying the property

Let objects be denoted by . Morphisms are commutative diagrams

Z1Z2A¾'1'2

Denote by the canonical projection from to . Then, is an initial object of . Indeed, for any arbitrary in , we can find a unique such that

A=»ZA'¼'

commutes.

This information can be sloppily summarized like so:

The quotient is universal with respect to the property of mapping to a set in such a way that equivalent elements have the same image.

Products

Definition 318.19(Universal property of products).

The product of objects in a category is the isomorphism class of final objects in the category , as defined in Example 7.

Example 318.20(Products of sets).

Let , and let . Consider the product with the two natural projections:

AA£BB¼A¼B

Then for every , there exists a unique morphism such that

AZA£BBf¾g¼A¼B

commutes. In other words, is a singleton, whence is final in .

Exercise 318.21(Products of groups).

As another trivial example, show that for , the product group that we know and love satisfies the universal property of products.

Example 318.22(Product topology).

YQXX®1X®2:::X®3X®4f2f3f4f19!f¼3¼2¼1¼4

Coproducts

Definition 318.23(Universal property of coproducts).

The coproduct of objects in a category is the isomorphism class of initial objects in the category .

Example 318.24(Disjoint union of Sets).

Let . Let . Consider the disjoint union with the inclusion maps and :

AAqBBiAiB

Then for every , there exists a unique morphism such that

AAqBZBiAfA¾iBfB

commutes. So, is initial in .

Example 318.25.

If and are abelian groups, then the product satisfies the universal property for coproducts in .

What are coproducts in ?

Exercise 318.26.

Prove that the free group is a coproduct of by itself in the category .


Free objects

Definition 318.27(Free objects).

Let be a concrete category. Let be a set. A free object on is a pair consisting of an object in and an injection , that satisfies the following universal property:

For any object in and any map between sets , there exists a unique morphism in making this diagram commute:

ABXfig

Exercise 318.28.

Show that the existence of a free object on the one element set in a concrete category implies that monomorphisms are injective.

Example 318.29(A monic morphism which is not injective).

An abelian group is divisible if, for every positive integer and every , there exists such that .

In the category of divisible (abelian) groups, the map is a non-injective monomorphism.

Indeed, suppose that are such that . Let . Then . If , then let be such that . Then , hence ; and similarly . Now, must be an integer, but

a contradiction. Therefore, , so . Thus, and is a monomorphism.