论文标题

教正式的逻辑微积分

Teaching a Formalized Logical Calculus

论文作者

From, Asta Halkjær, Jensen, Alexander Birch, Schlichtkrull, Anders, Villadsen, Jørgen

论文摘要

经典的一阶逻辑在许多方面都是数学,语言学,计算机科学和人工智能工作的核心,因此值得详细定义它。我们介绍了一阶逻辑的序列演算的健全性和完整性证明,在交互式证明助手isabelle/hol中正式化。我们的形式化是基于Stefan Berghofer的工作,此后我们已更新以使用Isabelle的声明性证明风格Isar(正式证明的档案归档,入门符合条件,2007年8月 / 2018年7月)。我们代表带有de bruijn指数的变量;这使得对人类读者的替换较低。但是,与使用字符串代表的变量实现相比,自然数的性质可产生优雅的解决方案。所考虑的序列演算具有始终空的先例的特殊特性和成功的公式列表。我们获得了序列演算的声音和完整性的证明,这是其Tableau对应物的反二元性的衍生结果。我们不仅努力介绍声音和完整性证明的结果,而且还深入研究了一种类似编程的方法,以形式化一阶逻辑语法,语义和序列的计算。我们在计算机科学逻辑学士课程中使用形式化,并讨论我们的经验。

Classical first-order logic is in many ways central to work in mathematics, linguistics, computer science and artificial intelligence, so it is worthwhile to define it in full detail. We present soundness and completeness proofs of a sequent calculus for first-order logic, formalized in the interactive proof assistant Isabelle/HOL. Our formalization is based on work by Stefan Berghofer, which we have since updated to use Isabelle's declarative proof style Isar (Archive of Formal Proofs, Entry FOL-Fitting, August 2007 / July 2018). We represent variables with de Bruijn indices; this makes substitution under quantifiers less intuitive for a human reader. However, the nature of natural numbers yields an elegant solution when compared to implementations of substitution using variables represented by strings. The sequent calculus considered has the special property of an always empty antecedent and a list of formulas in the succedent. We obtain the proofs of soundness and completeness for the sequent calculus as a derived result of the inverse duality of its tableau counterpart. We strive to not only present the results of the proofs of soundness and completeness, but also to provide a deep dive into a programming-like approach to the formalization of first-order logic syntax, semantics and the sequent calculus. We use the formalization in a bachelor course on logic for computer science and discuss our experiences.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源