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

命题直觉定理证明器的公式Transformers和组合测试生成器

Formula Transformers and Combinatorial Test Generators for Propositional Intuitionistic Theorem Provers

Paul Tarau

摘要:

我们开发组合测试生成算法,逐步更强大的定理证明,涵盖公式语言,从直觉逻辑的隐含片段,以充分的直觉命题逻辑。我们的算法支持穷举和随机生成这些逻辑公式。为了提供已知可证明的公式,通过Curry-Howard公式作为类型的对应,我们使用生成器来生成可类型化的lambda项和组合子表达式。除了发电机的几个类的公式,我们设计的算法,限制公式生成的规范代表之间的equiprovable公式,并引入程序转换,减少公式等价公式的一个更简单的结构。同样的转换,当反向应用时,会创建更难的公式,可以捕获合理性或不完整性错误。为了测试测试框架本身的有效性,我们描述了用于导出这些逻辑中的几个的轻量级定理证明器和用于在已知定理证明器中查找错误的用例。我们的Prolog实现可在:https://github.com/ptarau/TypesAndProofs和公式生成器和定理证明器的子集,在Python中实现可在:https://github.com/ptarau/PythonProvers。保留字:术语和公式生成算法,基于Prolog的定理证明器,公式作为类型,类型推断和类型栖息,组合测试,发现定理证明器中的错误。

英文摘要:

We develop combinatorial test generation algorithms for progressively more powerful theorem provers, covering formula languages ranging from the implicational fragment of intuitionistic logic to full intuitionistic propositional logic. Our algorithms support exhaustive and random generators for formulas of these logics. To provide known-to-be-provable formulas, via the Curry-Howard formulas-as-types correspondence, we use generators for typable lambda terms and combinator expressions. Besides generators for several classes of formulas, we design algorithms that restrict formula generation to canonical representatives among equiprovable formulas and introduce program transformations that reduce formulas to equivalent formulas of a simpler structure. The same transformations, when applied in reverse, create harder formulas that can catch soundness or incompleteness bugs. To test the effectiveness of the testing framework itself, we describe use cases for deriving lightweight theorem provers for several of these logics and for finding bugs in known theorem provers. Our Prolog implementation available at: https://github.com/ptarau/TypesAndProofs and a subset of formula generators and theorem provers, implemented in Python is available at: https://github.com/ptarau/PythonProvers. Keywords: term and formula generation algorithms, Prolog-based theorem provers, formulas-as-types, type inference and type inhabitation, combinatorial testing, finding bugs in theorem provers.

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

↑