Initial Algebras Unchained -- A Novel Initial Algebra Construction Formalized in Agda (2405.09504v3)
Abstract: The initial algebra for an endofunctor F provides a recursion and induction scheme for data structures whose constructors are described by F. The initial-algebra construction by Ad\'amek (1974) starts with the initial object (e.g. the empty set) and successively applies the functor until a fixed point is reached, an idea inspired by Kleene's fixed point theorem. Depending on the functor of interest, this may require transfinitely many steps indexed by ordinal numbers until termination. We provide a new initial algebra construction which is not based on an ordinal-indexed chain. Instead, our construction is loosely inspired by Pataraia's fixed point theorem and forms the colimit of all finite recursive coalgebras. This is reminiscent of the construction of the rational fixed point of an endofunctor that forms the colimit of all finite coalgebras. For our main correctness theorem, we assume the given endofunctor is accessible on a (weak form of) locally presentable category. Our proofs are constructive and fully formalized in Agda.
- A classification of accessible categories. J. Pure Appl. Algebra 175 (2002), 7–30.
- On Well-Founded and Recursive Coalgebras. In Foundations of Software Science and Computation Structures - 23rd International Conference, FOSSACS 2020, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2020, Dublin, Ireland, April 25-30, 2020, Proceedings (Lecture Notes in Computer Science, Vol. 12077), Jean Goubault-Larrecq and Barbara König (Eds.). Springer, 17–36. https://doi.org/10.1007/978-3-030-45231-5_2
- Initial Algebras Without Iteration ((Co)algebraic pearls). In 9th Conference on Algebra and Coalgebra in Computer Science, CALCO 2021, August 31 to September 3, 2021, Salzburg, Austria. 5:1–5:20. https://doi.org/10.4230/LIPICS.CALCO.2021.5
- Iterative algebras at work. Math. Struct. Comput. Sci. 16, 6 (2006), 1085–1131. https://doi.org/10.1017/S0960129506005706
- Jiří Adámek. 1974. Free algebras and automata realizations in the language of categories. Commentationes Mathematicae Universitatis Carolinae 015, 4 (1974), 589–602. http://eudml.org/doc/16649
- Abstract and Concrete Categories. The Joy of Cats.
- Jiří Adámek and Jiří Rosický. 1994. Locally Presentable and Accessible Categories. Cambridge University Press.
- Steve Awodey. 2010. Category Theory. OUP Oxford. http://books.google.de/books?id=-MCJ6x2lC7oC
- Recursive coalgebras from comonads. Inf. Comput. 204, 4 (2006), 437–468. https://doi.org/10.1016/j.ic.2005.08.005
- Claudia Centazzo. 2004. Generalized algebraic models. Ph. D. Dissertation. Département de Mathématique de la Faculté des Sciences de l’Université catholique de Louvain.
- A characterization of locally D𝐷Ditalic_D-presentable categories. Cah. Topol. Géom. Différ. Catég. 45, 2 (2004), 141–146.
- Adam Eppendahl. 1999. Coalgebra-to-Algebra Morphisms. In Conference on Category Theory and Computer Science, CTCS 1999, Edinburgh, UK, December 10-12, 1999 (Electronic Notes in Theoretical Computer Science, Vol. 29), Martin Hofmann, Giuseppe Rosolini, and Dusko Pavlovic (Eds.). Elsevier, 42–49. https://doi.org/10.1016/S1571-0661(05)80305-6
- Three equivalent ordinal notation systems in cubical Agda. In Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP 2020, New Orleans, LA, USA, January 20-21, 2020. 172–185. https://doi.org/10.1145/3372885.3373835
- Jason Z. S. Hu and Jacques Carette. 2021. Formalizing Category Theory in Agda. In Proceedings of the 10th ACM SIGPLAN International Conference on Certified Programs and Proofs (Virtual, Denmark) (CPP 2021). Association for Computing Machinery, New York, NY, USA, 327–342. https://doi.org/10.1145/3437992.3439922
- Well-founded coalgebras, revisited. Math. Struct. Comput. Sci. 27, 7 (2017), 1111–1131. https://doi.org/10.1017/S0960129515000481
- Joachim Lambek. 1968. A Fixpoint Theorem for complete Categories. Mathematische Zeitschrift 103 (1968), 151–161. http://eudml.org/doc/170906
- Stefan Milius. 2010. A Sound and Complete Calculus for Finite Stream Circuits. In Proceedings of the 25th Annual IEEE Symposium on Logic in Computer Science, LICS 2010, 11-14 July 2010, Edinburgh, United Kingdom. IEEE Computer Society, 421–430. https://doi.org/10.1109/LICS.2010.11
- A New Foundation for Finitary Corecursion – The Locally Finite Fixpoint and Its Properties. In Proc. 19th International Conference on Foundations of Software Science and Computation Structures (FoSSaCS 2016) (LNCS, Vol. 9634), Bart Jacobs and Christof Löding (Eds.). Springer, 107–125. https://doi.org/10.1007/978-3-662-49630-5_7
- A new foundation for finitary corecursion and iterative algebras. Inf. Comput. 271 (2020), 104456. https://doi.org/10.1016/j.ic.2019.104456
- Gerhard Osius. 1974. Categorical set theory: A characterization of the category of sets. Journal of Pure and Applied Algebra 4, 1 (1974), 79–119. https://doi.org/10.1016/0022-4049(74)90032-2
- Andrew M. Pitts and S. C. Steenkamp. 2021. Constructing Initial Algebras Using Inflationary Iteration. In Proceedings of the Fourth International Conference on Applied Category Theory, ACT 2021, Cambridge, United Kingdom, 12-16th July 2021. 88–102. https://doi.org/10.4204/EPTCS.372.7
- Formalization of Transfinite Induction in Coq. In 2019 Chinese Automation Congress (CAC). 1001–1005. https://doi.org/10.1109/CAC48633.2019.8997376
- Paul Taylor. 1996. Intuitionistic Sets and Ordinals. J. Symb. Log. 61, 3 (1996), 705–744. https://doi.org/10.2307/2275781
- Paul Taylor. 1999. Practical Foundations of Mathematics. Cambridge studies in advanced mathematics, Vol. 59. Cambridge University Press.
- Paul Taylor. 2023. Well Founded Coalgebras and Recursion. https://www.paultaylor.eu/ordinals/welfcr.pdf accessed on 2024-01-27.
- Henning Urbat. 2017. Finite Behaviours and Finitary Corecursion. In 7th Conference on Algebra and Coalgebra in Computer Science, CALCO 2017, June 12-16, 2017, Ljubljana, Slovenia. 24:1–24:16. https://doi.org/10.4230/LIPIcs.CALCO.2017.24
- Ernst Zermelo. 1904. Beweis, daß jede Menge wohlgeordnet werden kann. Math. Ann. 59 (1904), 514–516.