Corecursion exploits the existence of a morphism from a coalgebra for an endofunctor to a terminal coalgebra for the same endofunctor to define an operation. It is dual to recursion. See also coinduction.
For the endofunctor on Set, the terminal coalgebra is , the extended natural number system. Define a function :
where is as defined at extended natural number.
Then is an -coalgebra. The unique coalgebra morphism (to the terminal coalgebra ) is addition on the extended natural numbers. From this definition, we may read off these basic facts about :
(From the last two, it’s immediate to prove by coinduction that for all .)
Jiří Adámek, Introduction to Coalgebra, Theory and Applications of Categories 14 8 (2005) 157-199 [tac:14-8, pdf]
Lawrence Moss, Norman Danner, On the Foundations of Corecursion (journal, pdf)
Last revised on December 16, 2023 at 07:55:30. See the history of this page for a list of all contributions to it.