Formalizing the Metatheory of Logical Calculi and Automatic Provers in Isabelle/HOL (Invited Talk) Jasmin Christian Blanchette

Formalizing the Metatheory of Logical Calculi and Automatic Provers in Isabelle/HOL (Invited Talk) Jasmin Christian Blanchette

Formalizing the Metatheory of Logical Calculi and Automatic Provers in Isabelle/HOL (Invited Talk) Jasmin Christian Blanchette To cite this version: Jasmin Christian Blanchette. Formalizing the Metatheory of Logical Calculi and Automatic Provers in Isabelle/HOL (Invited Talk). CPP 2019 - The 8th ACM SIGPLAN International Conference on Certified Programs and Proofs, Jan 2019, Cascais, Portugal. 10.1145/3293880.3294087. hal- 01937136 HAL Id: hal-01937136 https://hal.archives-ouvertes.fr/hal-01937136 Submitted on 27 Nov 2018 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Formalizing the Metatheory of Logical Calculi and Automatic Provers in Isabelle/HOL (Invited Talk) Jasmin Christian Blanchette Theoretical Computer Science Department of Computer Science Vrije Universiteit Amsterdam Amsterdam, the Netherlands [email protected] Abstract Paradoxically, the automated reasoning community has IsaFoL (Isabelle Formalization of Logic) is an undertaking largely stood on the sidelines of these developments. Like the that aims at developing formal theories about logics, proof shoemaker’s children who go barefoot, we reflexively turn systems, and automatic provers, using Isabelle/HOL. At the to “pen and paper”—by which we usually mean LATEX—to de- heart of the project is the conviction that proof assistants fine our logics, specify our proof systems, and establish their have become mature enough to actually help researchers soundness and completeness. The automatic/interactive di- in automated reasoning when they develop new calculi and vide of our community is part of the reason. Few automatic tools. In this paper, I describe and reflect on three verification prover developers have first-hand experience with a proof subprojects to which I contributed: a first-order resolution assistant. Nevertheless, it stands to reason that the mem- prover, an imperative SAT solver, and generalized term or- bers of the automated reasoning community should be early ders for λ-free higher-order logic. adopters of proof assistants. If we cannot convince these close colleagues of the value of tools called “theorem provers,” CCS Concepts • Theory of computation → Logic and how are we going to seduce mainstream mathematicians, verification; Automated reasoning; philosophers, and engineers? 1 Keywords proof systems, theorem provers, proof assistants The IsaFoL (Isabelle Formalization of Logic) effort aims at changing this situation. This “coalition of the willing” was ACM Reference Format: inaugurated in 2015, initially as a Bitbucket repository that Jasmin Christian Blanchette. 2019. Formalizing the Metatheory of would enable Mathias Fleury in Saarbrücken and Anders Logical Calculi and Automatic Provers in Isabelle/HOL (Invited Talk). Schlichtkrull in Copenhagen to carry out their respective In Proceedings of the 8th ACM SIGPLAN International Conference Ph.D. projects while avoiding duplicated work. Their fore- on Certified Programs and Proofs (CPP ’19), January 14–15, 2019, Cascais, Portugal. ACM, New York, NY, USA, 13 pages. https://doi. sighted and well-funded bosses, Christoph Weidenbach and org/10.1145/3293880.3294087 Jørgen Villadsen, have made this project possible. My motto for the project is “Coq at POPL, why not Isa- 1 Introduction belle at CADE?” But in fact, proof assistants, including Isa- belle, have been represented at CADE and IJCAR for several At programming language conferences such as POPL and years, thanks to Tobias Nipkow, Lawrence Paulson, Chris- ICFP, submissions are often accompanied by formalizations. tian Urban, and others. Moreover, René Thiemann, Christian Proof assistants are even used in the classroom to teach Sternagel, and their colleagues have been using Isabelle to language semantics and type systems [70, 80]. formalize term rewriting for over a decade. Their IsaFoR 2 Permission to make digital or hard copies of all or part of this work for library [98] directly inspired IsaFoL. personal or classroom use is granted without fee provided that copies Our main objective with IsaFoL is to develop libraries and are not made or distributed for profit or commercial advantage and that a methodology to support modern research in automated rea- copies bear this notice and the full citation on the first page. Copyrights soning, especially about propositional and first-order logic. for components of this work owned by others than the author(s) must Proof assistants can help when developing proofs, but also be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific when modifying them, to study generalizations and variants. permission and/or a fee. Request permissions from [email protected]. Reviewing becomes much easier when a formalization exists; CPP ’19, January 14–15, 2019, Cascais, Portugal © 2019 Copyright held by the owner/author(s). Publication rights licensed 1https://bitbucket.org/isafol/isafol to ACM. 2Font aficionados will notice the divergent preferences concerning serifs ACM ISBN 978-1-4503-6222-1/19/01...$15.00 and kernings. Pronunciation is also crucial: to avoid confusion, Japanophiles https://doi.org/10.1145/3293880.3294087 should clearly articulate izaforu (IsaFoL) and izafo¯ (IsaFoR). CPP ’19, January 14–15, 2019, Cascais, Portugal J. C. Blanchette reviewers can then focus on checking the definitions and Formalize logic in logic. Employ automatic provers to formalize theorem statements. Although my primary interest lies in their own metatheory. But as the project advanced, I started metatheory per se, once we have formal libraries, we can to appreciate its deeper value. The overwhelmingly positive build verified provers and proof checkers on top of them. response at CADE, CPP, IJCAR, and JAR has convinced me The project has grown to include contributions from re- that this research program was overdue. searchers and students in Amsterdam, Copenhagen, Gothen- I am excited about recent developments, where flaws and burg, Grenoble, Munich, Saarbrücken, and Zurich. Contrib- limitations revealed in formalization motivate new research. utors include Heiko Becker, Alexander Bentkamp, Andreas We are gradually moving from carrying out case studies, Halkjær From, Alexander Birch Jensen, Peter Lammich, John where the proof assistant aspect is predominant, to writ- Bruntse Larsen, Julius Michaelis, Tobias Nipkow, Nicolas ing metatheory papers that only briefly mention the formal Peltier, Andrei Popescu, Simon Robillard, Sophie Tourret, development in their introduction. Dmitriy Traytel, and Petar Vukmirović. The IsaFoL reposi- tory on Bitbucket is where much of the development takes 2 A First-Order Ordered Resolution Prover place. Once individual entries have become mature enough, Nearly two decades after its publication, the Handbook of they tend to migrate to Isabelle’s Archive of Formal Proofs, Automated Reasoning [84] remains an invaluable resource which is continuously tested and updated to work with the for researchers in the area. In 2014, I started formalizing its most recent version of Isabelle. The maintenance burden Chapter 2, written by Bachmair and Ganzinger [3]. The first largely falls onto the Isabelle developers. four sections present the metatheory of ordered resolution The use of Isabelle/HOL was initially motivated by per- with selection, culminating in Section 4.3 with a refutation- sonal preference, but it has turned out to be a fortunate ally complete first-order prover, RP, based on this calculus. choice. Isar proofs [104], parameterized modules [4], (co)data- At the time, I had little experience using Isabelle, so it was types [10], the code generator [38], the Refinement Frame- fortunate that Traytel agreed to act as my mentor. work [53], Imperative HOL [26], and the Sledgehammer The chapter had been haunting me as a tsundoku for a [76] and Nitpick [16] tools have all played important roles. couple of years. Formalizing it meant I would finally have Higher-order logic’s lack of expressiveness is often cited as a to take it from my reading pile and read it thoroughly. But drawback of the system, but it has not been an issue for me there were also sound scientific reasons to choose this target in this project. Using Isabelle has been an opportunity to “eat for formalization, as we remarked later [89, Section 1]: my own dog food,” gaining insights into how the subsystems I am responsible for—the (co)datatypes, Sledgehammer, and The text is a standard introduction to superposition-like Nitpick—could be improved. calculi (together with Handbook Chapters 7 and 27). It In his invited SAS 2018 paper [73], Peter O’Hearn put offers perhaps the most detailed treatment of the lifting forward the notion that of a resolution-style calculus’s static completeness to a saturation prover’s dynamic completeness. It introduces in most research papers one gets a description of where a considerable amount of general infrastructure, includ- a project got to, but not how it got there. We get the ing different types of inference systems

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    14 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us