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

归纳类型在对象逻辑层次上的形式化可数性

Countability of Inductive Types Formalized in the Object-Logic Level

Qinxiang Cao, Xiwei Wu

摘要:

有限长的整数列表的集合和整数标号的二叉树的集合都是可数无限的。许多归纳定义的类型也有可数的元素。本文给出了Coq语言中一阶归纳定义的形式化语法,并证明了它们在一定条件下是可数的。我们没有用Meta语言编写证明生成器,而是在Coq对象逻辑中开发了一个无公理证明。换句话说,我们的证明是一个依赖类型的Coq函数,从归纳定义的语法到类型的可数性。在此基础上,我们提出了一种Coq策略来自动证明具体归纳类型的可数性。我们还为可数性和归纳定义的语法开发了Coq库,这些库本身就有价值。

英文摘要:

The set of integer number lists with finite length, and the set of binary trees with integer labels are both countably infinite. Many inductively defined types also have countably many elements. In this paper, we formalize the syntax of first order inductive definitions in Coq and prove them countable, under some side conditions. Instead of writing a proof generator in a meta language, we develop an axiom-free proof in the Coq object logic. In other words, our proof is a dependently typed Coq function from the syntax of the inductive definition to the countability of the type. Based on this proof, we provide a Coq tactic to automatically prove the countability of concrete inductive types. We also developed Coq libraries for countability and for the syntax of inductive definitions, which have value on their own.

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

↑