Teaching a Formalized Logical Calculus
Asta Halkj{\ae}r From (Technical University of Denmark), Alexander, Birch Jensen (Technical University of Denmark), Anders Schlichtkrull, (Technical University of Denmark), J{\o}rgen Villadsen (Technical University, of Denmark)

TL;DR
This paper formalizes a sequent calculus for first-order logic in Isabelle/HOL, proving soundness and completeness, and discusses the methodology and educational use of the formalization.
Contribution
It provides a detailed formalization of first-order logic sequent calculus in Isabelle/HOL, including proofs of soundness and completeness, using de Bruijn indices and a programming-like approach.
Findings
Formalization of sequent calculus in Isabelle/HOL
Proofs of soundness and completeness established
Educational application in a logic course
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsLogic, programming, and type systems · Logic, Reasoning, and Knowledge · Semantic Web and Ontologies
