Universal Properties and Basic Constructions/Universal Properties, Initial and Terminal Objects

Lesson 2.12,224 words

Universal Properties, Initial and Terminal Objects

A universal property characterizes an object by a for-all/exists-unique condition on the arrows into or out of it, and any two objects satisfying the same property are isomorphic by a unique isomorphism. Initial and terminal objects are the simplest cases; the free vector space, the discrete topology, and the ring of integers show the pattern at work.

╌╌╌╌

A category records objects and the arrows between them, and nothing else. Whatever we want to say about an object must therefore be said in terms of arrows. A universal property is the standard way of doing this: it characterizes an object by how every other object of the category relates to it. The description always has the same logical shape — for all objects of some kind, there exists a unique arrow satisfying an equation — and that shape has a central consequence: any two objects satisfying the same universal property are isomorphic, by a unique structure-compatible isomorphism.1

The shape of a universal property

The phrase there exists a unique such that abbreviates two claims, proved separately:

  • Existence. There is at least one with .
  • Uniqueness. There is at most one: any two elements satisfying are equal.

A universal property quantifies this over the whole category. It says of a distinguished object (often equipped with a distinguished arrow): for every object (perhaps equipped with an arrow of matching type), there exists a unique arrow relating to and making a stated diagram commute. The property is called universal because it describes by its relationship to the entire universe it inhabits, not by its internal contents.2

Because only arrows appear in the statement, a universal property never determines what the elements of really are. It determines up to isomorphism, and no finer — the resolution at which category theory works. Two constructions of the same universal object may look entirely different inside; the property guarantees they are interchangeable.

Terminal and initial objects

The smallest possible universal property mentions no auxiliary data at all.

The two definitions are mirror images: an initial object of is a terminal object of the opposite category, and vice versa.3 The uniqueness clause does the work: many objects receive an arrow from everything, but a terminal object receives exactly one arrow from each.

The terminal object : from every object of the category there is exactly one arrow into (dashed = forced, no choice available). The initial object is the mirror image, with all arrows leaving .

Examples across the standard categories

  • . A one-element set is terminal: the only function sends everything to . The empty set is initial: there is exactly one function , the empty function, which has no elements to place.4
  • and . The trivial group is both initial and terminal: a homomorphism out of must send the identity to the identity, and a homomorphism into has nowhere else to go.
  • (unital rings, unit-preserving homomorphisms). The terminal object is the zero ring. The initial object is — the worked example below. Initial and terminal objects exist but differ.
  • . The zero space is both initial and terminal.
  • A poset as a category. An initial object is a least element (bottom), a terminal object is a greatest element (top). A poset such as has neither, so categories may lack initial or terminal objects entirely.
  • . The empty space is initial and the one-point space is terminal, by the same reasoning as in .

An object that is both initial and terminal, as in , , and , is called a zero object. If a category has an initial object , a terminal object , and any arrow , then and the category has a zero object.5

The integers as an initial ring

The proof that is initial in is a template for every universal-property argument.6

Existence. Let be a ring. Define by

Routine checks confirm that preserves addition, multiplication, and the multiplicative identity.

Uniqueness. Let be any homomorphism. Since preserves the multiplicative identity, . Since preserves addition, for ,

and preservation of zero and negatives handles . So : once is fixed, the ring axioms determine every value.

Uniqueness up to unique isomorphism

A universal property identifies its object up to unique isomorphism. The statement and proof for initial objects recur, with more structure attached, for products, limits, adjoints, and representing objects. Adjoint functors, representable functors, and limits are three idioms for the same notion of universal property.7

The round-trip argument: initiality of forces the composite after to equal the identity on , because both are arrows from an initial object into and there can be only one.

The proof used nothing about sets, rings, or spaces — only the condition exactly one arrow. Leinster's Lemma 0.3, the same argument stated for rings, accordingly has very little to do with rings; it belongs at the level of the category.8

The practical consequence: once an object is characterized by a universal property, the construction that produced it can be discarded. Different textbooks build the same universal object in incompatible ways; the property certifies that all of them agree up to unique isomorphism, so we may speak of the terminal object, the product, the free group.

Elements as arrows

Terminal objects convert membership into composition. In , a function from the one-element set is a choice of a single element of : the functions correspond exactly to the elements of . Composition tracks this correspondence: if names the element and is any function, the composite names the element .9

Away from the notion behaves differently.

  • . A monoid homomorphism must send the identity to the identity, so every monoid has exactly one global element regardless of its size. The global elements of a monoid carry none of its interior structure.
  • Presheaves over a poset. A global element of a presheaf is a compatible thread of choices, one from each component set — a choice function respecting the restriction maps.
  • . Global elements of a space are its points, which is the origin of the term point for arrows out of in general categories.

The Yoneda lemma makes this precise: an object is determined by the arrows into it, and probing by arrows replaces probing by elements.

Universal properties with data

Most universal properties carry an auxiliary arrow alongside the object. The pattern: a distinguished object and a distinguished arrow into or out of it, such that every comparable pair factors through the distinguished one uniquely.

The free vector space

Let be a vector space over with basis , and define by . Linear algebra's fundamental convenience — a linear map may be defined freely on a basis — is a universal property of the pair : for every vector space and every function , there is a unique linear map with .10

The universal property of the vector space with basis indexed by : any function from into any vector space extends along to one and only one linear map with after equal to .

Existence is the familiar extend by linearity: define . Uniqueness holds because any linear map agreeing with on the basis is determined on all of — every vector is a finite linear combination of basis vectors, and linearity forces the value on each combination.

Restated as a bijection: composition with gives a one-to-one correspondence

This bijection is the defining data of an adjunction: the free functor is left adjoint to the underlying-set functor, and the correspondence above is the adjunction's hom-set bijection at .

The discrete topology

Give a set the discrete topology (all subsets open) to obtain a space , and let be the identity on points. Then for every space and every function , there is a unique continuous map with — namely itself, which is automatically continuous out of a discrete space.11

The property looks vacuous but is not: replace discrete by indiscrete (only and open) and it fails, because a function into an arbitrary space need not be continuous from the indiscrete topology. What the property records is precisely every map out of a discrete space is continuous, and that statement determines the discrete topology up to isomorphism among all topologies on all sets over . The indiscrete space satisfies the dual property — every function into it from a space is continuous — and the pair becomes a chain of adjunctions flanking the forgetful functor.

The tensor product

For vector spaces and , a bilinear map is linear in each variable separately. There exists a vector space and a bilinear map that is universal: every bilinear factors as for a unique linear . The pair is the tensor product, .12

Even before constructing , the uniqueness argument goes through verbatim. Suppose and are both universal. Universality of applied to the bilinear map yields a linear with ; universality of applied to yields with . Then is linear and satisfies , as does ; the uniqueness clause of 's universality forces , and symmetrically . So by a unique isomorphism compatible with the universal maps — the round-trip proof again, now for bilinear maps.

Algebra texts construct in several inequivalent-looking ways (quotients of free spaces, spaces of formal sums, dual constructions), and the universal property makes the differences irrelevant. Knowing the property, one can forget the construction.

The quotient of a set

An equivalence relation on a set has a quotient , the set of equivalence classes, with a surjection sending each element to its class. The pair is universal among the maps out of that identify -related elements: for every set and every function with whenever , there is a unique function with . So functions correspond one-to-one with functions constant on classes, the fact behind the isomorphism theorems of algebra.13

The universal property of the quotient by an equivalence relation: any constant on classes factors through by a unique map with after equal to .

Catalogue of initial and terminal objects

CategoryInitial objectTerminal objectZero object
any singleton none
empty spaceone-point spacenone
, , trivial object trivial object yes
(unital)zero ringno
poset least element (if any)greatest element (if any)only if is a point
empty categoryone-object, one-arrow category none

Two features of the catalogue deserve emphasis.

  • Existence is a property of the category, not a given. Posets without endpoints, and the category of fields (which has neither initial nor terminal object), show that the definitions can simply fail to be instantiated.
  • An initial object can carry structure. In the initial object is a genuinely informative ring, ; initial objects are free on nothing, and how much structure nothing generates depends on the axioms of the category.

Footnotes

  1. Leinster, Basic Category Theory, Introduction — universal properties presented jargon-free through Examples 0.1–0.9 before any categorical machinery. ↩
  2. Leinster, Introduction, Example 0.1 — the one-element set, and the reading of universal as describing an object's relationship to the entire universe in which it lives. ↩
  3. Simmons, An Introduction to Category Theory, §2.4 — initial and final objects defined; the duality across the opposite category is §2.8. ↩
  4. Simmons, §2.4, Example 2.4.2 — the singleton as final and the empty set as initial in ; the trivial group as zero object of . ↩
  5. Simmons, §2.4, Exercises 2.4.2 and 2.4.4 — zero objects; has one, has distinct initial and final objects. ↩
  6. Leinster, Introduction, Example 0.2 and Lemma 0.3 — as the initial ring, with the full existence and uniqueness proof. ↩
  7. Leinster, Introduction, closing remarks — adjoints, representables, and limits as three approaches to universal properties, the organizing plan of the book. ↩
  8. Leinster, Introduction, Lemma 0.3 — this proof has very little to do with rings. It really belongs at a higher level of generality. ↩
  9. Simmons, §2.4, Exercises 2.4.5–2.4.6 — global elements as elements in and as threads through a presheaf; Barr & Wells, Category Theory for Computing Science, §2.7.19 — constants of type . ↩
  10. Leinster, Introduction, Example 0.4 — the universal property of a vector space with a chosen basis. ↩
  11. Leinster, Introduction, Example 0.5 and Exercise 0.10 — the discrete space's universal property, and the indiscrete dual. ↩
  12. Leinster, Introduction, Example 0.6 and Lemma 0.7 — the tensor product characterized by universal bilinearity, with the uniqueness proof. ↩
  13. Leinster, Basic Category Theory, §3.1 — the quotient of a set by an equivalence relation and its universal property (condition 3.1), at the heart of the famous isomorphism theorems of algebra. ↩

╌╌ END ╌╌