arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1901.07820cs.LOcs.PL
收藏

混合归纳与余归纳类型的完全性

Totality for Mixed Inductive and Coinductive Types

Pierre Hyvernat

AI总结:

本文提出带完全性检查器的混合归纳余归纳类型语言\chariot,通过奇偶博弈和大小变化原则确保递归定义终止,并已实现原型验证。

摘要:

本文介绍了一种名为\chariot的ML/Haskell风格编程语言,该语言支持嵌套的归纳与余归纳代数数据类型。函数通过任意递归定义来定义,因此可能导致非终止及其他“不良”行为。\chariot配备了一个完全性检查器,用于标记可能行为不当的定义。在基于类型理论的证明助手(如Agda)的上下文中,这种完全性检查器是必需的。证明该检查器的正确性远非易事,且依赖于:将类型解释为奇偶博弈;将正确值解释为这些博弈的获胜策略;以及Lee、Jones和Ben Amram的大小变化原则,用于检查递归定义所诱导的策略是否为获胜策略。本文发展了前两点,最后一步是即将发表的论文的主题。已实现一个原型,可用于实验所得到的完全性检查器,为该原则提供了实践论据。

英文摘要:

This paper introduces an ML / Haskell like programming language with nested inductive and coinductive algebraic datatypes called \chariot. Functions are defined by arbitrary recursive definitions and can thus lead to non-termination and other ``bad'' behavior. \chariot comes with a totality checker that tags possibly ill-behaved definitions. Such a totality checker is mandatory in the context of proof assistants based on type theory like Agda. Proving correctness of this checker is far from trivial and relies on - an interpretation of types as parity games, - an interpretation of correct values as winning strategies for those games, - the Lee, Jones and Ben Amram's size-change principle, used to check that the strategies induced by recursive definitions are winning. This paper develops the first two points, the last step being the subject of an upcoming paper. A prototype has been implemented and can be used to experiment with the resulting totality checker, giving a practical argument in favor of this principle.

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

↑