Altanis

1.8Universal Properties

Updated 11 May 2026Chapter (PDF)

The idea behind universal properties is that they generalize specific constructions by emulating their behavior.

Consider \emptyset in the category Set\Set. Note that, for any set SObj(Set)S \in \Obj(\Set), there is precisely one set-function/morphism f:Sf: \emptyset \to S (the empty function). There is no choice to be made for how to map \emptyset to SS, obviously.

Conversely, consider singletons of the form {}\{*\} in the category Set\Set. Note that, for any set SObj(Set)S \in \Obj(\Set), there is precisely one set-function f:S{}f: S \to \{*\} (the constant function ff \equiv *). There is no choice to be made for how to map SS to {}\{*\}, obviously.

We generalize this behavior to more general categories using the notion of initial and terminal objects.

[1.8.1]Definition(Initial, Terminal Objects)#

An object IObj(C)I \in \Obj(\sf{C}) is said to be initial if, for any AObj(C)A \in \Obj(\sf{C}), there is precisely one morphism that maps II to AA. Conversely, an object TObj(C)T \in \Obj(\sf{C}) is said to be terminal if, for any AObj(C)A \in \Obj(\sf{C}), there is precisely one morphism that maps AA to II. That is,

IObj(C):HomC(I,A) is a singleton,\forall I \in \Obj(\mathsf{C}): \qquad \Hom_{\sf{C}}(I, A) \text{ is a singleton,}
TObj(C):HomC(A,T) is a singleton.\forall T \in \Obj(\mathsf{C}): \qquad \Hom_{\sf{C}}(A, T) \text{ is a singleton.}
[1.8.2]Remark(Initial and Terminal Objects of Set\Set)#

Note then that \emptyset is the initial object of Set\Set and that all singletons {}\{*\} are terminal objects in Set\Set. But note that \emptyset is the singular, unique initial object of C\sf{C}, while there are infinitely many singletons {}\{*\} that are terminal objects of C\sf{C}. However, we will show that all initial and terminal objects are isomorphic to each other.

[1.8.3]Theorem(Initial and Terminal Objects Are Unique up to Isomorphism)#

Let C\sf{C} be a category.

  1. If I1,I2Obj(C)I_1, I_2 \in \Obj(\sf{C}) are initial, then I1I2I_1 \cong I_2.

  2. If T1,T2Obj(C)T_1, T_2 \in \Obj(\sf{C}) are terminal, then T1T2T_1 \cong T_2.

Proof.

To prove (1)(1), suppose I1I_1 and I2I_2 are initial objects of C\sf{C}. Then note the morphisms f:I1I2f: I_1 \to I_2 and g:I2I1g: I_2 \to I_1 are unique by the property of I1,I2I_1, I_2 being initial. Note then that gfEndC(I1)gf \in \End_{\sf{C}}(I_1) and fgEndC(I2)fg \in \End_{\sf{C}}(I_2). But note that morphisms of form I1I1I_1 \to I_1 and I2I2I_2 \to I_2 are unique since the two objects are initial, so EndC(I1)=EndC(I2)=1|\End_{\sf{C}}(I_1)| = |\End_{\sf{C}}(I_2)| = 1. Moreover, these sets must contain an identity morphism, so in reality fgfg and gfgf are forced to be identity morphisms. Since ff has a two-sided inverse gg, it is an isomorphism, completing the proof for (1)(1). The argument for (2)(2) follows in an entirely symmetric way.

A construction satisfies a universal property if, loosely speaking, it is the initial or terminal object of some category. We describe this by providing intuition for certain constructions satisfying universal properties.

[1.8.4]Remark(Quotient of Set Is Universal)#

Suppose AA is some set endowed with an equivalence relation \sim. Consider the following statement:

A/A/{\sim} is universal with respect to the property that AA maps to any set ZZ in such a way that elements equivalent under \sim have the same image.”

To decipher this, we systematically construct an accessory category where this universal construction manifests as an initial or terminal object. In general, whenever a construction is the solution to a universal problem, its accessory category is built as follows:

  • Objects: The possible “setups” satisfying the described property, generally a set paired with constraining morphisms.

  • Morphisms: Standard functions between the sets that make the diagrams formed by the constraining morphisms commute.

  • Initial/Terminal Objects: The universal solution is precisely the initial or terminal object of this category (unique up to isomorphism).

We now design this accessory category for our specific quotient property.

  • Objects: Pairs (φ,Z)(\phi, Z) where ZZ is a set and φ:AZ\phi: A \to Z is a function satisfying φ(a)=φ(a)\phi(a') = \phi(a'') whenever aaa' \sim a''.

  • Morphisms: A morphism from (φ1,Z1)(\phi_1, Z_1) to (φ2,Z2)(\phi_2, Z_2) is defined as a function σ:Z1Z2\sigma: Z_1 \to Z_2 that respects the mappings from AA. That is, the following diagram must commute:

Fix some arbitrary object (φ,Z)(\phi, Z). An initial object takes the form (φ,I)(\bar{\phi}, I) such that there exists a unique morphism σ:(φ,I)(φ,Z)\sigma: (\bar{\phi}, I) \to (\phi, Z). Consider the canonical projection π:AA/\pi: A \to A/{\sim}. Since aa    π(a)=π(a)a' \sim a'' \implies \pi(a') = \pi(a''), the pair (π,A/)(\pi, A/{\sim}) is a valid object. To satisfy the commutative diagram (σπ=φ\sigma \circ \pi = \phi), we are forced to define σ([a])=φ(a)\sigma([a]) = \phi(a). Because φ\phi respects \sim, this σ\sigma is uniquely determined and well-defined. Thus, (π,A/)(\pi, A/{\sim}) is indeed initial.

Conversely, a terminal object takes the form (φ,T)(\bar{\phi}, T) such that there exists a unique morphism σ:(φ,Z)(φ,T)\sigma: (\phi, Z) \to (\bar{\phi}, T). It makes sense to conjecture that φ\bar{\phi} sends every element of AA to a constant *, making T={}T = \{*\}. Since im(φ)\im(\bar{\phi}) is a singleton, all equivalent elements of AA trivially have the same image, satisfying the object constraint. Moreover, σ:ZT\sigma: Z \to T is unique since there is only one possible function mapping any set ZZ to a singleton. This unique σ\sigma trivially satisfies the required commutative diagram (σφ=φ\sigma \circ \phi = \bar{\phi}), proving (φ,T)(\bar{\phi}, T) is indeed terminal.

[1.8.5]Remark(Product of Sets is Universal)#

Fix two sets A,BA, B. We seek to show the product A×BA \times B satisfies a universal property. Consider the projections of A×BA \times B onto AA and BB.

We observe that the set in question is A×BA \times B, constrained by morphisms πA\pi_A and πB\pi_B. Let's consider an auxiliary category where sets of the form (X,fA,fB)(X, f_A, f_B) are objects—thus (A×B,πA,πB)(A \times B, \pi_A, \pi_B) form objects, and we have the following diagram.

σ:XA×B\sigma: X \to A \times B must be oriented in this direction to make the diagram commute. Now we simply show A×BA \times B is terminal.

Proof.

Fix any xXx \in X. Then note (πAσ)(x)=fA(x)(\pi_A \circ \sigma)(x) = f_A(x) and (πBσ)(x)=fB(x)(\pi_B \circ \sigma)(x) = f_B(x) by commutativity of the diagram. Suppose any other function, say σ\sigma', was such that σ:XA×B\sigma': X \to A \times B and made the diagram commute. But then, for each xXx \in X, the image under σ\sigma and σ\sigma' would be equivalent, and thus σσ\sigma \equiv \sigma', completing the uniqueness proof.

We sum this up by saying the product of two sets A×BA \times B is universal with respect to the two projection maps onto AA and BB.

[1.8.6]Remark(Disjoint Union of Sets is a Coproduct)#

The coproduct is the dual of the product, where dualization acts by flipping all the arrows in a category. It is trivial to show the disjoint union in Set\Set is an example of the coproduct.

Previously, we defined the Cartesian product and disjoint union by set-theoretic means and ran into the problem of these definitions to identify unique sets up to isomorphism. With category theory, we have defined these concepts not as sets, but by how they relate to their constituents and how they solve a universal problem. This is a perfectly valid definition that does not have to resolve this ambiguity.