Terminal Object
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
We define initial and terminal objects, which we shall use for describing algebras and initial algebras.
(Definition) Let π
be a category. An object 0
is the initial object of π
if, for all objects a
, there is a unique morphism 0 β a
.
(Definition) Let π
be a category. An object 1
is the terminal object of π
if, for all objects a
, there is a unique morphism a β 1
.
(Lemma) Initial and terminal objects are unique up to isomorphism.
(Proof) Let π be a category with initial objects 0 and 0β². There are unique morphisms 00β² βΆ 0 β 0β²
and 0β²0 βΆ 0β² β 0
, and 00 = id0
and 0β² 0β² = id0β²
. Hence, 0β²0 β 00β² = id0
and 00β² β 0β²0 = id0β²
. That is, 0 is unique up to isomorphism. Similarly, let π
be a category with terminal objects 1 and 1β². There are unique morphisms 11β² βΆ 1β² β 1
and 1β²1 βΆ 1 β 1β²
, and 11 = id1
and 1β²1β² = id1β²
. Hence, 11β² β 1β²1 = id1
and 1β²1 β 11β² = id1β²
. That is, 1 is unique up to isomorphism.
In Hask, Void (the empty or uninhabited type) is the initial object, and unit or ()
type is the terminal object.
In Set, the elements of a set π΄ can be considered as functions from a terminal object, that is, any singleton set, to π΄. More specifically, if π₯ β π΄ and 1 is a terminal object, then π₯ can be considered as a function π₯ βΆ 1 β π΄ which assigns π₯ to the element of 1.