initial algebra
In mathematics, an initial algebra is an initial object in the category of -algebras for a given endofunctor . This initiality provides a general framework for induction and recursion.
In mathematics, an initial algebra is an initial object in the category of -algebras for a given endofunctor . This initiality provides a general framework for induction and recursion. \begin{align} \operatorname{zero} \colon 1 &\longrightarrow\mathbf{N} \\ * &\longmapsto 0 \end{align} and \begin{align} \operatorname{succ}\colon \mathbf{N}&\longrightarrow\mathbf{N} \\ n &\longmapsto n + 1. \end{align} Then the set of natural numbers together with the function is an initial -algebra. The initiality (the universal property for this case) is not hard to establish; the unique homomorphism to an arbitrary -algebra , for an element of and a function on , is the function sending the natural number to , that is, , the -fold application of to . The set of natural numbers is the carrier of an initial algebra for this functor: the point is zero and the function is the successor function. ==Final coalgebra== Dually, a final coalgebra is a terminal object in the category of -coalgebras. The finality provides a general framework for coinduction and corecursion. For example, using the same functor as before, a coalgebra is defined as a set together with a function . Defining such a function amounts to defining a partial function whose domain is formed by those x \in X for which does not belong to . Having such a structure, we can define a chain of sets: being a subset of on which is not defined, which elements map into by , which elements map into by , etc., and containing the remaining elements of . With this in view, the set \mathbf{N} \cup \{\omega\} , consisting of the set of natural numbers extended with a new element , is the carrier of the final coalgebra, where f' is the predecessor function (the inverse of the successor function) on the positive naturals, but acts like the identity on the new element : , . This set \mathbf{N} \cup \{\omega\} that is the carrier of the final coalgebra of is known as the set of conatural numbers. For a second example, consider the same functor as before. In this case the carrier of the final coalgebra consists of all lists of natural numbers, finite as well as infinite. The operations are a test function testing whether a list is empty, and a deconstruction function defined on non-empty lists returning a pair consisting of the head and the tail of the input list.
References
No reference rows published for this article.
Cite this article
MLA
"initial algebra." encyclopegia.org, 2026, https://encyclopegia.org/wiki/initial-algebra. Accessed 24 November 2026.
Chicago
"initial algebra." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/initial-algebra.
APA
encyclopegia.org. (2026). initial algebra. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/initial-algebra
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON