Category Theory: Terminal and Initial Object
In category theory, objects should be considered as “black boxes”. We don’t know what they are; we can only name them and reason about their relationships with other objects through morphisms. In other words, we can specify what an object is by specifying how it relates to all the other objects in the category. This way of specifying objects via universal property is called universal construction. This powerful framework forces us to abstract away from “implementation” details and focus on the essence of what we are studying. Below, we present the universal properties of the terminal and initial objects, which are two primary examples of universal constructions.
Definition of the Terminal Object
In a category , an object is said to be terminal when for every object in , there exists a unique morphism . Given that every object of a category must have an identity morphism, we can already say that the terminal object has a unique endomorphism, which is the identity morphism .
flowchart LR
X["Any object X"] -->|"unique morphism ∃!"| T["Terminal object T"]
T -->|"only endomorphism: id_T"| T