一句话:提出不依赖序数链、取所有有限递归余代数之余极限的初始代数构造,并在 Agda 中构造性形式化验证。
初始代数可为由函子 F 描述的数据结构提供递归与归纳模式。Adámek(1974)的经典构造从初始对象出发反复应用 F,直到到达不动点;这类似 Kleene 不动点定理,但依函子不同可能需要以序数为索引的超限多步才能终止。本文提出一种新的初始代数构造,不再基于序数索引链,而是受 Pataraia 不动点定理启发,取所有有限递归余代数的余极限,并与有理不动点(所有有限余代数的余极限)的构造相呼应。作者在(弱形式)局部可表现范畴上假设函子可及,给出主要正确性定理;证明是构造性的,并完全在 Agda 中形式化。
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.