3. Initial and Terminal ObjectΒΆ
3.1. Universal PropertyΒΆ
We now introduce an idea that plays an important role in abstract mathematicsβthe concept of universal property.
An object \(\mathbf{0}\) in a category \(\mathcal C\) is called an initial (or free) object if for every object \(Aβ \mathcal C_{\mathrm{obj}}\) there exists a unique morphism \(!_A :\mathbf{0}\to A\).
This unique morphism property of initial objects is called a universal property, and we say that the initial object in a category \(\mathcal C\) is universal for all objects in \(\mathcal C\).
To give a better sense of the notion of universal property, let us look at another example, which is one of the most fundamental definitions of algebra.
Let \(\mathcal V\) be a variety of algebras of a certain signature. [1] Let \(X\) be a set. The free algebra generated by \(X\) is denoted by \(π½(X)\) and is defined as follows: for every algebra \(π = β¨A, \dotsβ© β \mathcal V\) and every function \(f : X β A\), there exists a unique homomorphism \(h:π½(X) β π\) such that \(β x β X, h(x) = f(x)\). We say that \(π½(X)\) is universal for \(\mathcal V\).
An object \(\mathbf{1}\) is called a terminal (or bound) object if for every object \(A\) in the same category there exists a unique morphism \(\langle\rangle_A : A\to\mathbf{1}\).
We have already seen many examples of free and bound objects; these are summarized in the table below.
Category | Initial (free) object | Terminal (bound) object |
---|---|---|
Set | empty set β | singleton set \(\{a\}\) |
Grph | empty graph \((\varnothing,\varnothing)\) | single loop \((\{a\},\{(a,a)\})\) |
Mon | trivial monoid \((\{e\},\{(e,e,e)\},e)\) | trivial monoid \((\{e\},\{(e,e,e)\},e)\) |
Grp | trivial group \((\{e\},\{(e,e,e)\},e)\) | trivial group \((\{e\},\{(e,e,e)\},e)\) |
Par | empty set β | empty set β |
Rel | empty set β | empty set β |
3.2. DualityΒΆ
Every definition and theorem in category theory can be dualized by reversing the direction of its arrows.
Given a category \(\mathcal C\) the opposite (or dual) category \(\mathcal C^{\mathrm{op}}\) has the same objects as \(\mathcal C\) and whenever \(f : Aβ B\) is a morphism in \(\mathcal C\) we define \(f : Bβ A\) to be a morphism in \(\mathcal C^{\mathrm{op}}\).
The identity morphisms in \(\mathcal C^{\mathrm{op}}\) are the same as those in \(\mathcal C\) and given morphisms \(g : C β B\) and \(f : B β A\) in \(\mathcal C^{\mathrm{op}}\) we define the composition \(f\circ_{\mathrm{op}} g : Cβ A\) to be the morphism \(g β f : A β C\) in \(\mathcal C\).
Intuitively, \(\mathcal C^{\mathrm{op}}\) is the same as \(\mathcal C\) but all the morphisms go in the other direction.
Usually \(\mathcal C^{\mathrm{op}}\) is very different from \(\mathcal C\). One exception to this is the category Rel. We have that \(\mathbf{Rel}^{\mathrm{op}} = \mathbf{Rel}\), as the definition of relation is symmetric between domain and codomain. Since Rel is its own dual we say that Rel is self-dual.
Our first example of dual concepts in category theory has already appeared: the notions of initial and terminal objects are dual.
3.3. Other interesting categoryΒΆ
We will now take a look at some other interesting category.
Up until now we have only considered category with an infinite number of elements. (Indeed, we have not even seen examples of any category whose objects form a set.)
There are category with a finite set of objects. We will detail a few of them, generally leaving out the identities in the corresponding diagrams.
The category 1 has only one object, called \(0\), and only one morphism, the identity \(\mathrm{id}_0 : 0\to0\).
Note that this is not the only category with one object.
One can also find more than one category with two or three elements, but we provide just one example of each here.
The category 2 has two objects, \(0\) and \(1\), and one nonidentity morphism \(f : 0β 1\).
Note that we did not need to describe any composition rule because the only possible morphism compositions in 2 are trivial. This is not the case for the following category.
The category 3 has three objects, \(0\), \(1\), and \(2\), and three nonidentity morphisms: \(f : 0β 1\), \(g : 1β 2\), and \(h : 0β 2\). We define \(gβ f = h\).
Carrying on with the topic of finiteness, consider the next example.
We now examine a category that comes from order theory.
A poset \((A, β€ )\) consists of a set \(A\) and a binary relation \(\leq\, β A^2\) such that for all \(x,y,zβ A\) we have
reflexivity: \(x β€ x\); antisymmetry: \(x β€ y\) and \(y β€ x\) imply \(x=y\); transitivity: \(x β€ y\) and \(y β€ z\) imply \(x β€ z\).
We have order-preserving maps from one poset to another, defined as follows:
Given posets \((A, β€ _A)\) and \((B, β€ _B)\) we say that a function \(f : Aβ B\) is monotone from \((A, β€ _A)\) to \((B, β€ _B)\) when for any \(x,yβ A\) we have that \(x β€ _Ay\) implies that \(f(x) β€ _Bf(y)\).
To signify that a function \(f\) from \(A\) to \(B\) is monotone with respect to order relations \(β€ _A\) and \(β€ _B\), we write \(f : (A, β€ _A)\to(B, β€ _B)\).
Here are more examples of important categories.
The objects of ACLat are the algebraic, complete lattices; the morphisms are the complete lattice homomorphisms.
Important note: in ACLat the morphisms are not required to preserve a certain part of the structure of the objects; specifically, compact elements need not map to compact elements.
3.4. Hom set and global elementΒΆ
In Set every object \(A\) is completely described by the morphisms \(f : \mathbf{1} β A\).
If \(A\) and \(B\) are objects from a category \(\mathcal C\), then the collection of morphisms from \(A\) to \(B\) is often denoted by \(\mathcal C(A,B)\), and we will follow this convention when itβs convenient to do so.
Some authors require that \(\mathcal C(A,B)\) always be a set and call \(\mathcal C(A,B)\) the hom set from \(A\) to \(B\). For the most part we will be concerned with categories for which \(\mathcal C(A,B)\) is always a set, but this distinction is something to be aware of.
If \(A\) is a set, then \(A β \) Set \((\mathbf{1},A)\). That is, there exists a bijection between \(A\) and the set Set \((\mathbf{1},A)\) of functions from \(\mathbf{1}\) to \(A\).
Given a category with an initial object \(\mathbf{1}\) and another object \(A\), the morphisms with domain \(\mathbf{1}\) and codomain \(A\) are called the points or global elements of \(A\).
In categories other than Set the initial object \(\mathbf{1}\) is not sufficient to completely describe all objects. For example, Grph \((\mathbf{1}, π)\) only describes the loops of G, as we see in the diagram below.
Question. Can we find other objects that describe π completely?
We can!
Consider the graph \(π_V = (\{a\}, β )\) with one vertex and no edges, and the graph \(π_E = (\{a,b\}, \{(a,b)\})\) with two vertices and a single edge from one vertex to the other. These lie in the boxed regions in the figure below.
We have that \(V_{π} β \mathbf{Grph}(π_V, π)\) and \(E_{π} β \mathbf{Grph}(π_E, π)\). Moreover, if \(e β \mathbf{Grph}(π_E, π)\) then \(s_{π}(e)=e(a)\) and \(t_{π}(e)=e(b)\), so we can view \(s_{π}(e)\) and \(t_{π}(e)\) as members of \(\mathbf{Grph}(π_V, π)\).
3.5. SolutionsΒΆ
Let \(A\) be a set and \(f: β β A\) a function. By definition of function,
so \(f = β \) is the unique function with domain β and codomain \(A\).
Thus, we see that the function \(f: β β A\) does exist and there is only one such function for each set \(A\), so β is initial in Set.
Consider a singleton set \(\{a\}\) and a set \(B\). Given a function \(f: B β \{a\}\), we must have \(f(b) = a\) for each \(b\in B\). This completely determines \(f\), so there is exactly one function from a set \(B\) to \(\{a\}\). Thus, \(\{a\}\) is terminal in Set.
Let \(G\) be a graph. We exhibit a graph homomorphism \(f: (β , β ) β G\). Necessarily both \(f_v: β β V(G)\) and \(f_e: β β E(G)\) are empty functions. Since \((β , β )\) has no edges, it is vacuously true that \(f = (f_v, f_e)\) is a graph homomorphism from \((β , β )\) to \(G\). Thus, we find that \(f\) exists and is uniquely determined, so the empty graph is initial in Grph.
Again let \(G\) be a graph and let \(A = (\{a\}, \{(a,a)\})\) be the graph with one vertex and a single loop. Since \(V(A) = \{a\}\) and \(E(A) = \{(a, a)\}\) are both singletons, we have unique choices for the functions \(f_v: V(G) β \{a\}\) and \(f_e: E(G) β \{(a,a)\}\). This establishes uniqueness.
To see that this pair \(f = (f_v, f_e)\) is a graph morphism from \(G\) to \(A\), note that for each edge \(e = (v_1, v_2) β E(G)\) we have \(f_e(e) = (a, a) = (f_v(v_1), f_v(v_2))\). Thus, the single loop \(A\) is terminal in Grph.
Let \(π = (M, β , e_{π)}\) be a monoid and consider a monoid morphism \(h\) from the trivial monoid \((\{e\}, \{(e,e,e)\}, e)\) to a monoid π. Since we require that \(h(e) = e_{π}\) in order for \(h\) to be a monoid homomorphism there can be at most one such \(h\). The function \(h:\{e\} \to M\) given by \(h(e) = e_{π}\) is indeed a monoid homomorphism, since
Therefore, the trivial monoid is initial in Mon.
Now instead consider a monoid morphism \(h\) from π to the trivial monoid. Since there is a unique function \(h: M β \{e\}\), and since this function trivially satisfies the definition of a monoid morphism, we have that there is a unique morphism \(h\) from any monoid π to the trivial monoid. Thus, the trivial monoid is terminal in Mon.
The argument that the trivial group is initial in Grp is essentially identical to that for the trivial monoid being initial in Mon. The underlying functions for the unique morphisms to and from the trivial group are the same, so it only remains to check that they respect the inversion operation. In both cases the desired conclusion follows immediately.
In order to see that β is initial in Par, note that for every set \(A\) and every partial function \(f: β β A\) we must have that \(\mathrm{dom}_f = β \) and that \(f\) is a total function \(f: β β A\). There does exist a unique such a function, which is the empty function, so there is exactly one morphism from emptyset to any set \(A\) in Par.
Also, β is terminal in Par. Consider an arbitrary partial function \(f: A β β \). Since \(f: \mathrm{dom}_f β β \) must be a total function, and since there is no total function from a nonempty set to β , we must have \(\mathrm{dom}_f = β \). Again we find that \(f\) can only be the empty function, which certainly exists, so β is terminal in Par.
Note that the difference between Par and Set in this case is that there are no total functions at all from a nonempty \(A\) to β , but there are partial functions from a nonempty \(A\) to β .
The empty set is also both initial and terminal in Rel. Given a set \(A\) we have that every relation \(R: A β β \) is a subset of \(A Γ β = β \), so \(R\) must be the empty relation.
Similarly, if \(R: β β A\) then again \(R\) is subset of \(β Γ A = β \), so \(R\) is the empty relation.
Note that objects, morphisms, and composition in \(\mathcal C^{\mathrm{op}}\) are well-defined.
By definition \(\mathrm{id}_A\) in \(\mathcal C^{\mathrm{op}}\) is \(\mathrm{id}_A\) in \(\mathcal C\), so \(\mathrm{id}_A: A β A\) is indeed a morphism in \(\mathcal C^{\mathrm{op}}\). The composition of two morphisms \(g: C β B\) and \(f: B β A\) is defined by \(f β_\mathrm{op} g = g β f\), so \(f β_\mathrm{op} g: C β A\) and \(f β_\mathrm{op} g\) has the appropriate domain and codomain. It then remains to verify the identity and associativity laws.
Given \(f: B β A\) in \(\mathcal C^{\mathrm{op}}\) we have that \(f\) is a morphism from \(A\) to \(B\) in \(\mathcal C\). By definition of composition in \(\mathcal C^{\mathrm{op}}\) and the identity law for \(\mathcal C\) we see that
as desired.
Similarly, given \(h: D β C\), \(g: C β B\), and \(f: B β A\) in \(\mathcal{C}^\mathrm{op}\) we find that
so the associative law holds, as well.
Suppose that \(\mathbf{1}\) is terminal in \(\mathcal C\). Then given an object \(A\) in \(\mathcal C\), there is a unique morphism \(β¨\ β©_A: A β \mathbf{1}\) in \(\mathcal C\). Consider a morphism \(f:\mathbf{1} β A\) in \(\mathcal C^\mathrm{op}\). By the definition of \(\mathcal C^\mathrm{op}\) the only such morphism is the unique morphism \(β¨\ β©_A: A β \mathbf{1}\) in \(\mathcal C\), so there is a unique morphism from \(\mathbf{1}\) to any object in \(\mathcal C^\mathrm{op}\). That is, \(\mathbf{1}\) is initial in \(\mathcal C^\mathrm{op}\).
On the other hand, suppose that \(\mathbf{1}\) is initial in \(\mathcal C^\mathrm{op}\). Then given an object \(A\) in \(\mathcal C^\mathrm{op}\), there is a unique morphism \(!_A:\mathbf{1} \to A\) in \(\mathcal C^\mathrm{op}\).
Consider a morphism \(f: A β \mathbf{1}\) in \(\mathcal C\). By definition of \(\mathcal C^\mathrm{op}\), the only such morphism is the unique morphism \(!_A:\mathbf{1} β A\) in \(\mathcal C^\mathrm{op}\), so there is a unique morphism from each object in \(\mathcal C\) to \(\mathbf{1}\). That is, \(\mathbf{1}\) is terminal in \(\mathcal C\).
In addition to the obvious symmetry in the two directions of the argument above, note that in order to show \(\mathbf{0}\) is initial in \(\mathcal C\) iff \(\mathbf{0}\) is terminal in \(\mathcal C^\mathrm{op}\), we can reuse what we have already shown by noting that \((\mathcal C^\mathrm{op})^\mathrm{op}\) is \(\mathcal C\), so this second statement reduces immediately to the first.
Solution to Exercise 3.3.1.
(to do)
Solution to Exercise 3.3.2.
(to do)
Solution to Exercise 3.3.3.
(to do)
Solution to Exercise 3.4.1.
(to do)
Footnotes
[1] | Donβt worry if you donβt know words like βvarietyβ or βsignatureβ mean. The point here is to give an example illustrating a universal property, and not to undertake a detailed study of algebraic structures. |