Programming and verifying a declarative first-order prover in Isabelle/HOL

被引:7
|
作者
Jensen, Alexander Birch [1 ]
Larsen, John Bruntse [1 ]
Schlichtkrull, Anders [1 ]
Villadsen, Jorgen [1 ]
机构
[1] Tech Univ Denmark, DTU Compute, DK-2800 Lyngby, Denmark
关键词
Isabelle; verification; declarative proofs for first-order logic with equality; soundness; LCF-style prover; PROOF; FORMALIZATION; THEOREM; SOUNDNESS; CALCULUS;
D O I
10.3233/AIC-180764
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
We certify in the proof assistant Isabelle/HOL the soundness of a declarative first-order prover with equality. The LCF-style prover is a translation we have made, to Standard ML, of a prover in John Harrison's Handbook of Practical Logic and Automated Reasoning. We certify it by replacing its kernel with a certified version that we program, certify and generate code from; all in Isabelle/HOL. In a declarative proof each step of the proof is declared, similar to the sentences in a thorough paper proof. The prover allows proofs to mix the declarative style with automatic theorem proving by using a tableau prover. Our motivation is teaching how automated and declarative provers work and how they are used. The prover allows studying concrete code and a formal verification of correctness. We show examples of proofs and how they are made in the prover. The entire development runs in Isabelle's ML environment as an interactive application or can be used standalone in OCaml or Standard ML (or in other functional programming languages like Haskell and Scala with some additional work).
引用
收藏
页码:281 / 299
页数:19
相关论文
共 50 条
  • [1] Verifying a Sequent Calculus Prover for First-Order Logic with Functions in Isabelle/HOL
    From, Asta Halkjaer
    Jacobsen, Frederik Krogsdal
    [J]. JOURNAL OF AUTOMATED REASONING, 2024, 68 (03)
  • [2] Using Isabelle/HOL to Verify First-Order Relativity Theory
    Mike Stannett
    István Németi
    [J]. Journal of Automated Reasoning, 2014, 52 : 361 - 378
  • [3] A sequent calculus for first-order logic formalized in Isabelle/HOL
    From, Asta Halkjaer
    Schlichtkrull, Anders
    Villadsen, Jorgen
    [J]. JOURNAL OF LOGIC AND COMPUTATION, 2023, 33 (04) : 818 - 836
  • [4] Using Isabelle/HOL to Verify First-Order Relativity Theory
    Stannett, Mike
    Nemeti, Istvan
    [J]. JOURNAL OF AUTOMATED REASONING, 2014, 52 (04) : 361 - 378
  • [5] αleanTAP: A Declarative Theorem Prover for First-Order Classical Logic
    Near, Joseph P.
    Byrd, William E.
    Friedman, Daniel P.
    [J]. LOGIC PROGRAMMING, PROCEEDINGS, 2008, 5366 : 238 - 252
  • [6] Verifying Secure Speculation in Isabelle/HOL
    Griffin, Matt
    Dongol, Brijesh
    [J]. FORMAL METHODS, FM 2021, 2021, 13047 : 43 - 60
  • [7] Towards Verifying GOAL Agents in Isabelle/HOL
    Jensert, Alexander Birch
    [J]. ICAART: PROCEEDINGS OF THE 13TH INTERNATIONAL CONFERENCE ON AGENTS AND ARTIFICIAL INTELLIGENCE - VOL 1, 2021, : 345 - 352
  • [8] Verifying Java']Java programs by theorem prover HOL
    Wang, Anduo
    Fei, He
    Gu, Ming
    Song, Xiaoyu
    [J]. 30TH ANNUAL INTERNATIONAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE, VOL 1, REGULAR PAPERS/PANELS, PROCEEDINGS, 2006, : 139 - +
  • [9] Imperative functional programming with Isabelle/HOL
    Bulwahn, Lukas
    Krauss, Alexander
    Haftmann, Horian
    Erkoek, Levent
    Matthews, John
    [J]. THEOREM PROVING IN HIGHER ORDER LOGICS, PROCEEDINGS, 2008, 5170 : 134 - +
  • [10] Verifying Term Graph Optimizations using Isabelle/HOL
    Webb, Brae J.
    Hayes, Ian J.
    Utting, Mark
    [J]. PROCEEDINGS OF THE 12TH ACM SIGPLAN INTERNATIONAL CONFERENCE ON CERTIFIED PROGRAMS AND PROOFS, CPP 2023, 2023, : 320 - 333