arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.05715cs.LO
收藏

混合归纳与余归纳类型的大小变化原理

The Size-Change Principle for Mixed Inductive and Coinductive types

Pierre Hyvernat

AI总结:

本文针对嵌套归纳与余归纳类型,改进大小变化原理以检查递归定义的完全性,确保其相对于相应类型的正确性。

摘要:

本文展示了如何利用Lee、Jones和Ben Amram的大小变化原理来检查具有归纳类型和余归纳类型的类ML/Haskell编程语言中任意递归定义的正确性。朴素地使用大小变化原理来检查生产性和终止性是直接的,但当归纳类型和余归纳类型嵌套时,这种方法是不可靠的。然而,我们可以调整大小变化原理来检查“完全性”,这恰好对应于相对于相应(余)归纳类型的正确性。

英文摘要:

This paper shows how to use Lee, Jones and Ben Amram's size-change principle to check correctness of arbitrary recursive definitions in an ML / Haskell like programming language with inductive and coinductive types. Naively using the size-change principle to check productivity and termination is straightforward but unsound when inductive and coinductive types are nested. We can however adapt the size-change principle to check ``totality'', which corresponds exactly to correctness with respect to the corresponding (co)inductive type.

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

↑