- Initial and terminal objects
-
"Terminal element" redirects here. For the project management concept, see work breakdown structure.
In category theory, an abstract branch of mathematics, an initial object of a category C is an object I in C such that for every object X in C, there exists precisely one morphism I → X. The dual notion is that of a terminal object (also called terminal element): T is terminal if for every object X in C there exists a single morphism X → T. Initial objects are also called coterminal or universal, and terminal objects are also called final.
If an object is both initial and terminal, it is called a zero object or null object.
Contents
Examples
- The empty set is the unique initial object in the category of sets; every one-element set (singleton) is a terminal object in this category; there are no zero objects.
- Similarly, the empty space is the unique initial object in the category of topological spaces; every one-point space is a terminal object in this category.
- In the category of non-empty sets, there are no initial objects. The singletons are not initial: while every non-empty set admits a function from a singleton, this function is in general not unique.
- In the category of groups, any trivial group is a zero object. The same is true for the categories of abelian groups, modules over a ring, and vector spaces over a field. This is the origin of the term "zero object".
- In the category of semigroups, the empty semigroup is the unique initial object and any singleton semigroup is a terminal object. There are no zero objects. In the subcategory of monoids, however, every trivial monoid (consisting of only the identity element) is a zero object.
- In the category Rel of sets and relations, the empty set is the unique zero object.
- In the category of pointed sets (whose objects are non-empty sets together with a distinguished element; a morphism from (A,a) to (B,b) being a function f : A → B with f(a) = b), every singleton is a zero object. Similarly, in the category of pointed topological spaces, every singleton is a zero object.
- In the category of rings with unity and unity-preserving morphisms, the ring of integers Z is an initial object. The trivial ring consisting only of a single element 0=1 is a terminal object. In the category of general rings with homomorphisms, the trivial ring is a zero object.
- In the category of fields, there are no initial or terminal objects. However, in the subcategory of fields of characteristic p, the prime field of characteristic p forms an initial object.
- Any partially ordered set (P, ≤) can be interpreted as a category: the objects are the elements of P, and there is a single morphism from x to y if and only if x ≤ y. This category has an initial object if and only if P has a least element; it has a terminal object if and only if P has a greatest element.
- If a monoid is considered as a category with a single object, this object is neither initial or terminal unless the monoid is trivial, in which case it is both.
- In the category of graphs, the null graph (without vertices and edges) is an initial object. The graph with a single vertex and a single loop is terminal. The category of simple graphs does not have a terminal object.
- Similarly, the category of all small categories with functors as morphisms has the empty category as initial object and the category 1 (with a single object and morphism) as terminal object.
- Any topological space X can be viewed as a category by taking the open sets as objects, and a single morphism between two open sets U and V if and only if U ⊂ V. The empty set is the initial object of this category, and X is the terminal object. This is a special case of the case "partially ordered set", mentioned above. Take P:= the set of open subsets
- If X is a topological space (viewed as a category as above) and C is some small category, we can form the category of all contravariant functors from X to C, using natural transformations as morphisms. This category is called the category of presheaves on X with values in C. If C has an initial object c, then the constant functor which sends every open set to c is an initial object in the category of presheaves. Similarly, if C has a terminal object, then the corresponding constant functor serves as a terminal presheaf.
- In the category of schemes, Spec(Z) the prime spectrum of the ring of integers is a terminal object. The empty scheme (equal to the prime spectrum of the trivial ring) is an initial object.
- If we fix a homomorphism f : A → B of abelian groups, we can consider the category C consisting of all pairs (X, φ) where X is an abelian group and φ : X → A is a group homomorphism with f φ = 0. A morphism from the pair (X, φ) to the pair (Y, ψ) is defined to be a group homomorphism r : X → Y with the property ψ r = φ. The kernel of f is a terminal object in this category; this is nothing but a reformulation of the universal property of kernels. With an analogous construction, the cokernel of f can be seen as an initial object of a suitable category.
- In the category of interpretations of an algebraic model, the initial object is the initial algebra, the interpretation that provides as many distinct objects as the model allows and no more.
Properties
Existence and uniqueness
Initial and terminal objects are not required to exist in a given category. However, if they do exist, they are essentially unique. Specifically, if I1 and I2 are two different initial objects, then there is a unique isomorphism between them. Moreover, if I is an initial object then any object isomorphic to I is also an initial object. The same is true for terminal objects.
ProofLet x and y be 2 different initial objects. Because x is initial there is a morphism f:x→y, and because y is initial, there is g:y→x. Then g o f is a morphism from x to x, as is 1x. Because x is initial there is only one such morphism so g o f and 1x are equal.
For complete categories there is an existence theorem for initial objects. Specifically, a (locally small) complete category C has an initial object if and only if there exist a set I (not a proper class) and an I-indexed family (Ki) of objects of C such that for any object X of C there at least one morphism Ki → X for some i ∈ I.
Equivalent formulations
Terminal objects in a category C may also be defined as limits of the unique empty diagram ∅ → C. Since the empty category is vacuously a discrete category, a terminal object can be thought of as an empty product. Dually, an initial object is a colimit of the empty diagram ∅ → C and can be thought of as an empty coproduct or categorical sum.
It follows that any functor which preserves limits will take terminal objects to terminal objects, and any functor which preserves colimits will take initial objects to initial objects. For example, the initial object in any concrete category with free objects will be the free object generated by the empty set (since the free functor, being left adjoint to the forgetful functor to Set, preserves colimits).
Initial and terminal objects may also be characterized in terms of universal properties and adjoint functors. Let 1 be the discrete category with a single object (denoted by •), and let U : C → 1 be the unique (constant) functor to 1. Then
- An initial object I in C is a universal morphism from • to U. The functor which sends • to I is left adjoint to U.
- A terminal object T in C is a universal morphism from U to •. The functor which sends • to T is right adjoint to U.
Relation to other categorical constructions
Many natural constructions in category theory can be formulated in terms of finding an initial or terminal object in a suitable category.
- A universal morphism from an object X to a functor U can be defined as an initial object in the comma category (X ↓ U). Dually, a universal morphism from U to X is a terminal object in (U ↓ X).
- The limit of a diagram F is a terminal object in Cone(F) the category of cones to F. Dually, a colimit of F is an initial object in the category of cones from F.
- A representation of a functor F to Set is an initial object in the category of elements of F.
Other properties
- The endomorphism monoid of an initial or terminal object I is trivial: End(I) = Hom(I,I) = { idI }.
- If a category C has a zero object 0 then for any pair of objects X and Y in C the unique composition X → 0 → Y is a zero morphism from X to Y.
References
- Adámek, Jiří; Horst Herrlich, and George E. Strecker (1990). Abstract and Concrete Categories. John Wiley & Sons. ISBN 0-471-60922-6. http://katmat.math.uni-bremen.de/acc/acc.pdf.
- Mac Lane, Saunders (1998). Categories for the Working Mathematician. Graduate Texts in Mathematics 5 ((2nd ed.) ed.). Springer. ISBN 0-387-98403-8.
This article is based in part on PlanetMath's article on examples of initial and terminal objects.
Categories:- Limits (category theory)
- Objects (category theory)
Wikimedia Foundation. 2010.