Refer Aluffi (2009, p. 18).
Categories
Definition 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:
- For every object of , there exists (at least) one morphism of morphisms, the identity on .
- 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 .
- This ‘composition law’ is associative: if , , and , then .
- The identity morphisms are identities with respect to composition: for all , we have , .
Also, note that if two morphisms are the same, then necessarily they have the same source and the same target: source and target are part of the datum of a morphism (and by extension, set-functions too).
Refer (Aluffi, 2009, p. 20) for examples.
Note
In Aluffi (2009, p. 22) Example 3.5, we could drop the requirement for morphisms in to be commutative diagrams. In this new category, call it , morphisms correspond to all morphisms . However, such a category doesn’t yield anything new, since is the same as long as the domains of and are fixed. In other words, morphisms in depend only on the ‘s and ignore the maps to . So, is essentially itself, where the objects are the pairs , but the ‘s are forgotten in defining the morphisms.
Example 2.
Let be a category. Let . Define a new category like so:
consists of diagrams
in , denoted by ; and
morphisms
are commutative diagrams
As in example 3.5, the identities are inherited from the identities in : for in , the identity corresponds to the diagram
The composition is achieved by combining the diagrams of and in the following manner
and since is a category, it follows that the diagram obtained by removing , i.e,
commutes. Associativity immediately follows from the fact that composition is associative in .
Example 3.
(Formalizing Example 3.10)
Let be a category. Choose two fixed morphisms and in , with the same target . Define a category as follows:
contains commutative diagrams
in , and
morphisms correspond to commutative diagrams
Again, the identities are inherited from .
The composition is obtained by combining the diagrams of and like so:
and as before, it follows that
commutes. Associativity follows from being a category.
Morphisms
Isomorphisms and automorphisms
Definition 4(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. A category can be constructed form any set endowed with a reflexive and transitive relation (ensuring identities and composition respectively). If the relation also happens to be symmetric, the category constructed is a groupoid (every morphism now has an inverse).
Note
The notion of a “bijective homomorphism” does NOT always correspond to what an isomorphism is in general categories. Consider as a counter example.
Proposition 5.
The inverse of an isomorphism is unique.
Proof.
This is an utterly standard verification.□
To hammer the point home, if is a morphism with a left-inverse and a right inverse , then necessarily is an isomorphism, , and this morphism is the (unique) inverse of .
More utterly standard stuff:
Proposition 6.
- 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 .
A morphism of an object of a category to itself is called an endomorphism. is denoted by .
Definition 7(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 6, we can infer than is a group for all objects of all categories :
- is closed under composition;
- composition is associative
- contains , the identity for composition;
- every element has an inverse .
Note that we have already shown this for the category , the category of groups with morphisms being group homomorphisms.
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 8(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 9(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.
Important
In , a function is an isomorphism iff it is both injective and surjective, hence 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. Thus, this is not a property one should expect to hold in every category.
As another example of being special, notice that while
can be easily proven universally, the converse is not generally true (It is true, of course, in ). For example 1, 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.
A group theoretic digression
At this point, the question “When does a surjective homomorphism have a right inverse?” naturally arises. If is a surjective homomorphism, I conjectured that the answer is yes when is isomorphic to a subgroup of (based on having constructed a right inverse for this homomorphism). However, a much stronger condition is required: The existence of a right inverse for is equivalent to the short exact sequence
splitting (Cf. Conrad (22 C.E.) Theorem 3.3).
Universal Properties
Definition 10.
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.
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 11.
Let be a category.
- If are both initial objects in , then .
- If are both final objects in , then .
Moreover, these isomorphisms are uniquely determined.
Proof.
Since are initial objects, . Let , . It follows that and , whence and are isomorphisms. The same proof works for final objects.□
The same object can be both initial and final, as singletons are in the category of pointed sets.
Definition 12.
We say that a construction satisfies a universal property when it may be viewed as a terminal object of a category.
Note
Try to see the universal property we stated for free groups in the context of this new definition.
Quotients
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
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
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 13.
The product of objects in a category is the isomorphism class of final objects in the category , as defined in Example 2.
Example 14(Products of sets).
Let , and let . Consider the product with the two natural projections:
Then for every , there exists a unique morphism such that
commutes. In other words, is a singleton, whence is final in .
Coproducts
Definition 15.
The coproduct of objects in a category is the isomorphism class of initial objects in the category .
Example 16(Disjoint union of Sets).
Let . Let . Consider the disjoint union with the inclusion maps and :
Then for every , there exists a unique morphism such that
commutes. So, is initial in .