Table of Contents
Fetching ...

Initial Algebras Unchained -- A Novel Initial Algebra Construction Formalized in Agda

Thorsten Wißmann, Stefan Milius

TL;DR

The paper tackles constructing initial algebras for endofunctors $F$ without relying on ordinal-indexed chains, instead defining the initial algebra as the colimit of all finitary recursive coalgebras in a Fil-accessible locally presentable category. It proves that this colimit $(A,\alpha)$ is locally finrec, that $\alpha: A\to FA$ is an isomorphism via Lambek's lemma, and thus $\alpha^{-1}$ yields the initial $F$-algebra; the results are given with a fully constructive Agda formalization. This approach avoids transfinite recursion and aligns with rational fixed-point ideas, while ensuring constructivity and mechanized verification, with detailed treatment of colimit creation and universality. The work advances mechanized category theory by providing a general, constructive construction of initial algebras and sheds light on how finite-describeable coalgebras build up the canonical data types modulo behavioural equivalence, with potential implications for well-founded coalgebras and quotient-rich formalizations.

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ámek (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.

Initial Algebras Unchained -- A Novel Initial Algebra Construction Formalized in Agda

TL;DR

The paper tackles constructing initial algebras for endofunctors without relying on ordinal-indexed chains, instead defining the initial algebra as the colimit of all finitary recursive coalgebras in a Fil-accessible locally presentable category. It proves that this colimit is locally finrec, that is an isomorphism via Lambek's lemma, and thus yields the initial -algebra; the results are given with a fully constructive Agda formalization. This approach avoids transfinite recursion and aligns with rational fixed-point ideas, while ensuring constructivity and mechanized verification, with detailed treatment of colimit creation and universality. The work advances mechanized category theory by providing a general, constructive construction of initial algebras and sheds light on how finite-describeable coalgebras build up the canonical data types modulo behavioural equivalence, with potential implications for well-founded coalgebras and quotient-rich formalizations.

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ámek (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.
Paper Structure (18 sections, 23 theorems, 18 equations, 3 figures)

This paper contains 18 sections, 23 theorems, 18 equations, 3 figures.

Key Result

Lemma 2.7

\begin{tikzpicture}[remember picture,overlay] \coordinate (labelpos); \tikz@scan@one@point\pgfutil@firstofone(labelpos)\relax \edef\curLabelX{\the\pgf@x} \tikz@scan@one@point\pgfutil@firstofone(current page.center)\relax \edef\pageCenterX{\the\pgf@x} \ifthenelse{\lengthtest{\pageCenterX

Figures (3)

  • Figure 1: Example of an algebra $(\mathbb{N},a)$ and the algebra homomorphism $h$ induced by the initial algebra $(I,i)$
  • Figure 2: Example of a recursive $F$-coalgebra $r\colon R\to FR$
  • Figure 3: Roadmap for the initial algebra theorem (\ref{['main:thm']})

Theorems & Definitions (45)

  • Definition 2.2
  • Remark 2.3
  • Remark 2.4
  • Example 2.5: adamek1994locally
  • Remark 2.6
  • Lemma 2.7: \onlineHtmlURL Hom-Colimit-Choice.html#hom-filtered-colimit-characterization
  • Definition 2.8: \onlineHtmlURL Canonical-Cocone.html#
  • Definition 2.9: adamek1994locally
  • Example 2.10
  • Definition 2.11
  • ...and 35 more