arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2312.06962cs.PLmath.LO
收藏

用于多参数良基递归的严格单调Brouwer树

Strictly Monotone Brouwer Trees for Well-founded Recursion Over Multiple Arguments

Joseph Eremondi

AI总结:

针对Brouwer树代数性质不佳、难以适配良基递归严格序的问题,提出具备良好代数性质、并运算对后继分配的严格单调Brouwer树,给出构造方法与等价转换方式,所有结果均在Agda中实现验证。

摘要:

序数可用于证明依赖类型程序的终止性。Brouwer树是一种特殊的序数记法,能非常便捷地为高阶数据结构分配大小。它们通过极限构造子扩展了自然数,因此函数的大小可以是其像中所有值大小的上确界。这些大小随后可用于定义良基递归:只要递归调用所作用值的大小严格小于当前大小,就允许任意递归调用。\n遗憾的是,Brouwer树的代数性质并不良好。它们可以在等式层面被刻画为并半格,其中并运算取两棵树的最大值。然而,该并运算与后继构造子的相互作用不佳,因此无法与良基递归中使用的严格序正确配合。\n我们提出了严格单调Brouwer树(Strictly Monotone Brouwer trees,简称SMB-trees),这是Brouwer树的一种改进版本,具备良好的代数性质。SMB树由与Brouwer树构造子签名相同的函数构建,且满足所有Brouwer树不等式。不过,它们的并运算对后继运算满足分配律,因此适用于良基递归或等式推理。\n我们展示了如何借助依赖对和严谨的定义,在较弱的公理要求下,将性质不良的定义转化为性质良好的定义。我们实现了一个针对Brouwer树的递归定义最大值算子,该算子可匹配后继构造子并对其进行专门处理。随后,我们将SMB树定义为Brouwer树的一个子集,其中递归最大值运算可计算出最小上界。最后,我们证明每一棵Brouwer树都可以通过与自身进行无限次并运算,转化为对应的SMB树。所有定义和定理均在Agda中实现。

英文摘要:

Ordinals can help prove termination for dependently typed programs. Brouwer trees are a particular ordinal notation that make it very easy to assign sizes to higher order data structures. They extend natural numbers with a limit constructor, so a function's size can be the supremum of the sizes of values from its image. These can then be used to define well-founded recursion: any recursive calls are allowed so long as they are on values whose sizes are strictly smaller than the current size. Unfortunately, Brouwer trees are not algebraically well-behaved. They can be characterized equationally as a join-semilattice, where the join takes the maximum of two trees. However, it does not interact well with the successor constructor, so it does not interact properly with the strict ordering used in well-founded recursion. We present Strictly Monotone Brouwer trees (SMB-trees), a refinement of Brouwer trees that are algebraically well-behaved. SMB-trees are built using functions with the same signatures as Brouwer tree constructors, and they satisfy all Brouwer tree inequalities. However, their join operator distributes over the successor, making them suited for well-founded recursion or equational reasoning. We show how, using dependent pairs and careful definitions, an ill-behaved definition can be turned into a well-behaved one, with light axiomatic requirements. We implement a recursively-defined maximum operator for Brouwer trees that matches on successors and handles them specifically. Then, we define SMB-trees as the subset of Brouwer trees for which the recursive maximum computes a least upper bound. Finally, we show that every Brouwer tree can be transformed into a corresponding SMB-tree by joining it with itself an infinite number of times. All definitions and theorems are implemented in Agda.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑