Skip to main content

Interactive Theorem Proving for Logic and Information

  • Chapter
  • First Online:
Natural Language Processing in Artificial Intelligence — NLPinAI 2021

Part of the book series: Studies in Computational Intelligence ((SCI,volume 999))

Abstract

Automated reasoning is the study of computer programs that can build proofs of theorems in a logic. Such programs can be either automatic theorem provers or interactive theorem provers. The latter are also called proof assistants because the user constructs the proofs with the help of the system. We focus on the Isabelle proof assistant. The system ensures that the proofs are correct, in contrast to pen-and-paper proofs which must be checked manually. We present applications to logical systems and models of information, in particular selected modal logics extending classical propositional logic. Epistemic logic allows intelligent systems to reason about the knowledge of agents. Public announcements can change the knowledge of the system and its agents. In order to account for this, epistemic logic can be extended to public announcement logic. An axiomatic system consists of axioms and rules of inference for deriving statements in a logic. Sound systems can only derive valid statements and complete systems can derive all valid statements. We describe formalizations of sound and complete axiomatic systems for epistemic logic and public announcement logic, thereby strengthening the foundations of automated reasoning for logic and information.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 149.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 199.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 199.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Bachmair, L., Ganzinger, H., McAllester, D.A., Lynch, C.: Resolution theorem proving. In: Robinson, J.A., Voronkov, A. (eds.) Handbook of Automated Reasoning, vol. 2, pp. 19–99. Elsevier and MIT Press (2001)

    Google Scholar 

  2. Baltag, A., Renne, B.: Dynamic epistemic logic. In: Zalta, E.N. (ed.) The Stanford Encyclopedia of Philosophy, Winter 2016 edn. Stanford University, Metaphysics Research Lab (2016)

    Google Scholar 

  3. Bentzen, B.: A Henkin-style completeness proof for the modal logic S5. CoRR (2019). https://arxiv.org/abs/1910.01697

  4. Benzmüller, C., Paulson, L.C.: Quantified multimodal logics in simple type theory. Logica Universalis 7(1), 7–20 (2013)

    Article  MathSciNet  Google Scholar 

  5. Berghofer, S.: First-Order Logic According to Fitting. Archive of Formal Proofs (2007). http://isa-afp.org/entries/FOL-Fitting.html

  6. Blanchette, J.C.: Formalizing the metatheory of logical calculi and automatic provers in Isabelle/HOL (invited talk). In: Mahboubi, A., Myreen, M.O. (eds.) Proceedings of the 8th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP 2019, Cascais, Portugal, 14–15 January 2019, pp. 1–13. ACM (2019)

    Google Scholar 

  7. Blanchette, J.C., Popescu, A.: Mechanizing the metatheory of Sledgehammer. In: Fontaine, P., Ringeissen, C., Schmidt, R.A. (eds.) FroCoS 2013. LNCS (LNAI), vol. 8152, pp. 245–260. Springer, Heidelberg (2013). https://doi.org/10.1007/978-3-642-40885-4_17

  8. Blanchette, J.C., Popescu, A., Traytel, D.: Abstract completeness. Archive of Formal Proofs (2014). https://isa-afp.org/entries/Abstract_Completeness.html. Formal proof development

  9. Blanchette, J.C., Popescu, A., Traytel, D.: Unified classical logic completeness. In: Demri, S., Kapur, D., Weidenbach, C. (eds.) IJCAR 2014. LNCS (LNAI), vol. 8562, pp. 46–60. Springer, Cham (2014). https://doi.org/10.1007/978-3-319-08587-6_4

    Chapter  Google Scholar 

  10. Blanchette, J.C., Popescu, A., Traytel, D.: Abstract soundness. Archive of Formal Proofs (2017). https://isa-afp.org/entries/Abstract_Soundness.html. Formal proof development

  11. Blanchette, J.C., Popescu, A., Traytel, D.: Soundness and completeness proofs by coinductive methods. J. Autom. Reason. 58(1), 149–179 (2016). https://doi.org/10.1007/s10817-016-9391-3

    Article  MathSciNet  MATH  Google Scholar 

  12. Braselmann, P., Koepke, P.: Gödel’s completeness theorem. Formal. Math. 13(1), 49–53 (2005)

    Google Scholar 

  13. Braselmann, P., Koepke, P.: A sequent calculus for first-order logic. Formal. Math. 13(1), 33–39 (2005)

    Google Scholar 

  14. Ebner, G., Hetzl, S., Reis, G., Riener, M., Wolfsteiner, S., Zivota, S.: System description: GAPT 2.0. In: Olivetti, N., Tiwari, A. (eds.) IJCAR 2016. LNCS (LNAI), vol. 9706, pp. 293–301. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-40229-1_20

  15. Fagin, R., Halpern, J.Y., Vardi, M.Y., Moses, Y.: Reasoning about Knowledge. MIT Press (1995)

    Google Scholar 

  16. Fitting, M.: First-Order Logic and Automated Theorem Proving. Graduate Texts in Computer Science, 2nd edn. Springer, New York (1996). https://doi.org/10.1007/978-1-4612-2360-3

  17. From, A.H.: Epistemic logic. Archive of Formal Proofs (2018). https://isa-afp.org/entries/Epistemic_Logic.html. Formal proof development

  18. From, A.H.: Public announcement logic. Archive of Formal Proofs (2021). https://isa-afp.org/entries/Public_Announcement_Logic.html. Formal proof development

  19. From, A.H., Eschen, A.M., Villadsen, J.: Formalizing axiomatic systems for propositional logic in Isabelle/HOL. In: Kamareddine, F., Sacerdoti Coen, C. (eds.) Intelligent Computer Mathematics - 14th International Conference, CICM 2021, Timisoara, Romania, 26–31 July 2021, Proceedings, Lecture Notes in Artificial Intelligence, vol. 12833, pp. 32–46. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-81097-9_3

  20. From, A.H., Jensen, A.B., Villadsen, J.: Formalized soundness and completeness of epistemic logic. In: LAMAS 2021–11th Workshop on Logical Aspects of Multi-Agent Systems (2021)

    Google Scholar 

  21. From, A.H., Lund, S.T., Villadsen, J.: A case study in computer-assisted meta-reasoning. In: Special Session on Computational Linguistics, Information, Reasoning, and AI 2021 (CompLingInfoReasAI 2021), Lecture Notes in Networks and Systems, 18th International Conference Distributed Computing and Artificial Intelligence, vol. 332, pp. 53–63. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-86887-1_5

  22. Gleißner, T., Steen, A.: The MET: the art of flexible reasoning with modalities. In: Benzmüller, C., Ricca, F., Parent, X., Roman, D. (eds.) Rules and Reasoning - Second International Joint Conference, RuleML+RR 2018, Luxembourg, 18–21 September 2018, Proceedings, Lecture Notes in Computer Science, vol. 11092, pp. 274–284. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-99906-7_19

  23. Gleißner, T., Steen, A., Benzmüller, C.: Theorem provers for every normal modal logic. In: Eiter, T., Sands, D. (eds.) LPAR 2021, 21st International Conference on Logic for Programming, Artificial Intelligence and Reasoning, Maun, Botswana, 7–12 May 2017, EPiC Series in Computing, vol. 46, pp. 14–30. EasyChair (2017). https://easychair.org/publications/paper/6bjv

  24. Hagemeier, C.: Formalizing intuitionistic epistemic logic in Coq (2021). https://www.ps.uni-saarland.de/~hagemeier/bachelor.php. BSc thesis

  25. Hales, T.C., et al.: A formal proof of the Kepler conjecture. Forum Math. Pi 5, 1–29 (2017). https://doi.org/10.1017/fmp.2017.1

    Article  MathSciNet  Google Scholar 

  26. Harper, R., Honsell, F., Plotkin, G.D.: A framework for defining logics. J. ACM 40(1), 143–184 (1993). https://doi.org/10.1145/138027.138060

    Article  MathSciNet  MATH  Google Scholar 

  27. Herbelin, H., Kim, S.Y., Lee, G.: Formalizing the meta-theory of first-order predicate logic. J. Korean Math. Soc. 54(5), 1521–1536 (2017)

    MathSciNet  MATH  Google Scholar 

  28. Ilik, D.: Constructive completeness proofs and delimited control. Ph.D. thesis. École Polytechnique (2010). https://tel.archives-ouvertes.fr/tel-00529021/document

  29. Ilik, D., Lee, G., Herbelin, H.: Kripke models for classical logic. Ann. Pure Appl. Logic 161(11), 1367–1378 (2010)

    Article  MathSciNet  Google Scholar 

  30. Jensen, A.B.: Towards verifying GOAL agents in Isabelle/HOL. In: ICAART 2021 - Proceedings of the 13th International Conference on Agents and Artificial Intelligence, vol. 1, pp. 345–352. SciTePress (2021)

    Google Scholar 

  31. Jensen, A.B., Hindriks, K.V., Villadsen, J.: On using theorem proving for cognitive agent-oriented programming. In: ICAART 2021 - Proceedings of the 13th International Conference on Agents and Artificial Intelligence, vol. 1, pp. 446–453. SciTePress (2021)

    Google Scholar 

  32. Jensen, A.B., Larsen, J.B., Schlichtkrull, A., Villadsen, J.: Programming and verifying a declarative first-order prover in Isabelle/HOL. AI Commun. 31(3), 281–299 (2018). https://doi.org/10.3233/AIC-180764

    Article  MathSciNet  MATH  Google Scholar 

  33. Kadziołka, J.: Solution to the xkcd blue eyes puzzle. Archive of Formal Proofs (2021). https://isa-afp.org/entries/Blue_Eyes.html. Formal proof development

  34. Krauss, A.: Defining Recursive Functions in Isabelle/HOL (2021). https://isabelle.in.tum.de/doc/functions.pdf

  35. Li, J.: Formalization of PAL\(\cdot \)S5 in proof assistant. CoRR (2020). https://arxiv.org/abs/2012.09388

  36. Manna, Z., Pnueli, A.: Formalization of properties of functional programs. J. ACM 17(3), 555–569 (1970). https://doi.org/10.1145/321592.321606

    Article  MathSciNet  MATH  Google Scholar 

  37. Margetson, J., Ridge, T.: Completeness theorem. Archive of Formal Proofs (2004). http://isa-afp.org/entries/Completeness.html. Formal proof development

  38. Martinez, M., Sequoiah-Grayson, S.: Logic and information. In: Zalta, E.N. (ed.) The Stanford Encyclopedia of Philosophy, Spring 2019 edn., Metaphysics Research Lab, Stanford University (2019)

    Google Scholar 

  39. Michaelis, J., Nipkow, T.: Formalized proof systems for propositional logic. In: Abel, A., Forsberg, F.N., Kaposi, A. (eds.) 23rd International Conference on Types for Proofs and Programs, TYPES 2017, 29 May–1 June 2017, Budapest, Hungary, LIPIcs, vol. 104, pp. 5:1–5:16. Schloss Dagstuhl - Leibniz-Zentrum für Informatik (2017)

    Google Scholar 

  40. Michaelis, J., Nipkow, T.: Propositional proof systems. Archive of Formal Proofs (2017). http://isa-afp.org/entries/Propositional_Proof_Systems.html. Formal proof development

  41. Nederpelt, R., Geuvers, H.: Type Theory and Formal Proof: An Introduction. Cambridge University Press (2014). https://doi.org/10.1017/CBO9781139567725

  42. Neeley, P.: A formalization of dynamic epistemic logic. Master’s thesis, Carnegie Mellon University (2021). https://paulaneeley.com/wp-content/uploads/2021/05/draft1.pdf

  43. Neeley, P.: Results in modal and dynamic epistemic logic: a formalization in Lean. Slides Lean Together Workshop (2021). https://leanprover-community.github.io/lt2021/slides/paula-LeanTogether2021.pdf

  44. Nipkow, T.: Programming and Proving in Isabelle/HOL (2021). https://isabelle.in.tum.de/doc/prog-prove.pdf

  45. Nipkow, T., Wenzel, M., Paulson, L.C. (eds.): Isabelle/HOL – A Proof Assistant for Higher-Order Logic. LNCS, vol. 2283. Springer, Heidelberg (2002). https://doi.org/10.1007/3-540-45949-9

  46. Paulson, L.C.: Gödel’s incompleteness theorems. Archive of Formal Proofs (2013). http://isa-afp.org/entries/Incompleteness.html, Formal proof development

  47. Paulson, L.C.: A machine-assisted proof of Gödel’s incompleteness theorems for the theory of hereditarily finite sets. Rev. Symb. Log. 7(3), 484–498 (2014). https://doi.org/10.1017/S1755020314000112

    Article  MathSciNet  MATH  Google Scholar 

  48. Paulson, L.C.: A mechanised proof of Gödel’s incompleteness theorems using Nominal Isabelle. J. Autom. Reason. 55(1), 1–37 (2015). https://doi.org/10.1007/s10817-015-9322-8

    Article  MATH  Google Scholar 

  49. Peltier, N.: A variant of the superposition calculus. Archive of Formal Proofs (2016). http://isa-afp.org/entries/SuperCalc.shtml, Formal proof development

  50. Persson, H.: Constructive completeness of intuitionistic predicate logic. Ph.D. thesis, Chalmers University of Technology (1996). http://web.archive.org/web/20001011101511/www.cs.chalmers.se/~henrikp/Lic/

  51. Pfenning, F., Schürmann, C.: System description: Twelf — a meta-logical framework for deductive systems. In: CADE 1999. LNCS (LNAI), vol. 1632, pp. 202–206. Springer, Heidelberg (1999). https://doi.org/10.1007/3-540-48660-7_14

  52. Popescu, A., Traytel, D.: A formally verified abstract account of Gödel’s incompleteness theorems. In: Fontaine, P. (ed.) Automated Deduction - CADE 27, pp. 442–461. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-29436-6_26

    Chapter  Google Scholar 

  53. Raffalli, C.: Krivine’s abstract completeness proof for classical predicate logic. https://github.com/craff/phox/blob/master/examples/complete.phx (2005, possibly earlier)

  54. Reiche, S., Benzmüller, C.: Public announcement logic in HOL. In: Martins, M.A., Sedlár, I. (eds.) Dynamic Logic. New Trends and Applications - Third International Workshop, DaLi 2020, Prague, Czech Republic, 9–10 October 2020, Revised Selected Papers, Lecture Notes in Computer Science, vol. 12569, pp. 222–238. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-65840-3_14

  55. Reis, G.: Facilitating meta-theory reasoning (invited paper). In: Pimentel, E., Tassi, E. (eds.) Proceedings Sixteenth Workshop on Logical Frameworks and Meta-Languages: Theory and Practice, Pittsburgh, USA, 16 July 2021, Electronic Proceedings in Theoretical Computer Science, vol. 337, pp. 1–12. Open Publishing Association (2021). https://doi.org/10.4204/EPTCS.337.1

  56. Reis, G., Naeem, Z., Hashim, M.: Sequoia: a playground for logicians. In: Peltier, N., Sofronie-Stokkermans, V. (eds.) IJCAR 2020. LNCS (LNAI), vol. 12167, pp. 480–488. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-51054-1_32

  57. Ridge, T.: A mechanically verified, efficient, sound and complete theorem prover for first order logic. Archive of Formal Proofs (2004). http://isa-afp.org/entries/Verified-Prover.shtml, Formal proof development

  58. Ridge, T., Margetson, J.: A mechanically verified, sound and complete theorem prover for first order logic. In: Hurd, J., Melham, T. (eds.) TPHOLs 2005. LNCS, vol. 3603, pp. 294–309. Springer, Heidelberg (2005). https://doi.org/10.1007/11541868_19

    Chapter  MATH  Google Scholar 

  59. Ringer, T., Palmskog, K., Sergey, I., Gligoric, M., Tatlock, Z.: QED at large: a survey of engineering of formally verified software. Found. Trends Program. Lang. 5(2–3), 102–281 (2019). https://doi.org/10.1561/2500000045

    Article  Google Scholar 

  60. Schlichtkrull, A., Blanchette, J., Traytel, D., Waldmann, U.: Formalizing Bachmair and Ganzinger’s ordered resolution prover. J. Autom. Reason. 64(7), 1169–1195 (2020). https://doi.org/10.1007/s10817-020-09561-0

    Article  MathSciNet  MATH  Google Scholar 

  61. Schlichtkrull, A., Blanchette, J.C., Traytel, D.: A verified functional implementation of Bachmair and Ganzinger’s ordered resolution prover. Archive of Formal Proofs (2018). https://isa-afp.org/entries/Functional_Ordered_Resolution_Prover.html. Formal proof development

  62. Schlichtkrull, A., Blanchette, J.C., Traytel, D.: A verified prover based on ordered resolution. In: Mahboubi, A., Myreen, M.O. (eds.) Proceedings of the 8th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP 2019, Cascais, Portugal, 14–15 January 2019, pp. 152–165. ACM (2019). https://doi.org/10.1145/3293880.3294100

  63. Schlichtkrull, A., Blanchette, J.C., Traytel, D., Waldmann, U.: Formalization of Bachmair and Ganzinger’s ordered resolution prover. Archive of Formal Proofs (2018). https://isa-afp.org/entries/Ordered_Resolution_Prover.html. Formal proof development

  64. Schlichtkrull, A., Blanchette, J.C., Traytel, D., Waldmann, U.: Formalizing Bachmair and Ganzinger’s ordered resolution prover. In: Galmiche, D., Schulz, S., Sebastiani, R. (eds.) Automated Reasoning - 9th International Joint Conference, IJCAR 2018, Held as Part of the Federated Logic Conference, FloC 2018, Oxford, UK, 14–17 July 2018, Proceedings, Lecture Notes in Computer Science, vol. 10900, pp. 89–107. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-94205-6_7

  65. Schlichtkrull, A., Villadsen, J., From, A.H.: Students’ Proof Assistant (SPA). In: Quaresma, P., Neuper, W. (eds.) Proceedings 7th International Workshop on Theorem Proving Components for Educational Software (ThEdu), Electronic Proceedings in Theoretical Computer Science, vol. 290, pp. 1–13. Open Publishing Association (2019). https://doi.org/10.4204/EPTCS.290.1

  66. Schlöder, J.J., Koepke, P.: The Gödel completeness theorem for uncountable languages. Formal. Math. 20(3), 199–203 (2012)

    Article  Google Scholar 

  67. Smullyan, R.M.: First-Order Logic. Springer, Heidelberg (1968). https://doi.org/10.1007/978-3-642-86718-7

  68. Tarski, A.: Logic, Semantics, Metamathematics: Papers from 1923 to 1938. Hackett Publishing (1983)

    Google Scholar 

  69. Tourret, S.: A comprehensive framework for saturation theorem proving. Archive of Formal Proofs (2020). https://isa-afp.org/entries/Saturation_Framework.html. Formal proof development

  70. Tourret, S., Blanchette, J.: A modular Isabelle framework for verifying saturation provers. In: C. Hritcu, A. Popescu (eds.) CPP 2021: 10th ACM SIGPLAN International Conference on Certified Programs and Proofs, Virtual Event, Denmark, 17–19 January 2021, pp. 224–237. ACM (2021). https://doi.org/10.1145/3437992.3439912

  71. Villadsen, J.: A micro prover for teaching automated reasoning. In: Seventh Workshop on Practical Aspects of Automated Reasoning (PAAR 2020) - Presentation Only/Online Papers, pp. 1–12 (2020). http://www.eprover.org/EVENTS/PAAR-2020.html

  72. Villadsen, J.: Tautology checkers in Isabelle and Haskell. In: Calimeri, F., Perri, S., Zumpano, E. (eds.) Proceedings of the 35th Edition of the Italian Conference on Computational Logic (CILC 2020), Rende, Italy, 13–15 October 2020, CEUR Workshop Proceedings, vol. 2710, pp. 327–341. CEUR-WS.org (2020). http://ceur-ws.org/Vol-2710/paper-21.pdf

  73. Waldmann, U., Tourret, S., Robillard, S., Blanchette, J.: A comprehensive framework for saturation theorem proving. In: Peltier, N., Sofronie-Stokkermans, V. (eds.) IJCAR 2020. LNCS (LNAI), vol. 12166, pp. 316–334. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-51074-9_18

  74. Wenzel, M.: The Isabelle/Isar Reference Manual (2021). https://isabelle.in.tum.de/doc/isar-ref.pdf

  75. Xiong, Z., Ågotnes, T., Zhang, Y.: The logic of secrets. In: LAMAS 2020–10th Workshop on Logical Aspects of Multi-Agent Systems (2020)

    Google Scholar 

Download references

Acknowledgement

We thank Frederik Krogsdal Jacobsen for comments on drafts.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jørgen Villadsen .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Villadsen, J., From, A.H., Jensen, A.B., Schlichtkrull, A. (2022). Interactive Theorem Proving for Logic and Information. In: Loukanova, R. (eds) Natural Language Processing in Artificial Intelligence — NLPinAI 2021. Studies in Computational Intelligence, vol 999. Springer, Cham. https://doi.org/10.1007/978-3-030-90138-7_2

Download citation

Publish with us

Policies and ethics