Well-Founded Coalgebras Meet König's Lemma
Henning Urbat, Thorsten Wißmann
TL;DR
The paper generalizes König's lemma to coalgebras for finitary endofunctors $H$ over locally finitely presentable categories, showing that every well-founded $H$-coalgebra is the directed join of its fg-carried well-founded subcoalgebras and that the well-founded coalgebras form a locally presentable category. It develops two simple constructions of the initial algebra via filtrations by well-founded and recursive coalgebras, respectively, using a coproduct-extension technique that preserves well-foundedness and recursivity. The approach subsumes diverse instances beyond Set, including graphs in a topos, nominal transition systems, and convex transition systems, yielding König's lemma variants in these settings. These results bridge termination principles with coalgebraic reasoning, offering new tools for constructing initial algebras and analyzing state-based systems in broad categorical frameworks.
Abstract
König's lemma is a fundamental result about trees with countless applications in mathematics and computer science. In contrapositive form, it states that if a tree is finitely branching and well-founded (i.e. has no infinite paths), then it is finite. We present a coalgebraic version of König's lemma featuring two dimensions of generalization: from finitely branching trees to coalgebras for a finitary endofunctor H, and from the base category of sets to a locally finitely presentable category C, such as the category of posets, nominal sets, or convex sets. Our coalgebraic König's lemma states that, under mild assumptions on C and H, every well-founded coalgebra for H is the directed join of its well-founded subcoalgebras with finitely generated state space -- in particular, the category of well-founded coalgebras is locally presentable. As applications, we derive versions of König's lemma for graphs in a topos as well as for nominal and convex transition systems. Additionally, we show that the key construction underlying the proof gives rise to two simple constructions of the initial algebra (equivalently, the final recursive coalgebra) for the functor H: The initial algebra is both the colimit of all well-founded and of all recursive coalgebras with finitely presentable state space. Remarkably, this result holds even in settings where well-founded coalgebras form a proper subclass of recursive ones. The first construction of the initial algebra is entirely new, while for the second one our approach yields a short and transparent new correctness proof.
