Abstract
An Isabelle/HOL formalisation of Gödel’s two incompleteness theorems is presented. The work follows Świerczkowski’s detailed proof of the theorems using hereditarily finite (HF) set theory (Dissertationes Mathematicae 422, 1–58, 2003). Avoiding the usual arithmetical encodings of syntax eliminates the necessity to formalise elementary number theory within an embedded logical calculus. The Isabelle formalisation uses two separate treatments of variable binding: the nominal package (Logical Methods in Computer Science 8(2:14), 1–35, 2012) is shown to scale to a development of this complexity, while de Bruijn indices (Indagationes Mathematicae 34, 381–392, 1972) turn out to be ideal for coding syntax. Critical details of the Isabelle proof are described, in particular gaps and errors found in the literature.
Similar content being viewed by others
References
Bagaria, J.: A short guide to Gödel’s second incompleteness theorem. Teorema 22(3), 5–15 (2003)
Boolos, G.S.: The logic of provability, Cambridge University Press (1993)
de Bruijn, N.G.: Lambda calculus notation with nameless dummies, a tool for automatic formula manipulation, with application to the Church-Rosser Theorem. Indag. Math. 34, 381–392 (1972)
Feferman, S. (ed.): Kurt Gödel, Collected Works, volume I. Oxford University Press (1986)
Franzén, T.: Gödel’s theorem: An incomplete guide to its use and abuse. A K Peters (2005)
Gabbay, M.J., Pitts, A.M.: A new approach to abstract syntax with variable binding. Form. Asp. Comput. 13, 341–363 (2001)
Gödel, K.: On completeness and consistency. In: Feferman 4, pp 234–236
Gödel, K.: On formally undecidable propositions of Principia Mathematica and related systems. In: Feferman 4, pp. 144–195. First published in 1931 in the Monatshefte für Mathematik und Physik (1931)
Grandy, R.E.: Advanced Logic for Applications. Reidel (1977)
Harrison, J.: Re: Gödel’s incompleteness theorem, Email dated 15 January (2014)
Harrison, J.: Towards self-verification of HOL Light. In: Furbach, U., Shankar, N. (eds.) Automated Reasoning — Third International Joint Conference, IJCAR, 2006, LNAI 4130, pp. 177–191. Springer (2006)
Harrison, J.: Handbook of Practical Logic and Automated Reasoning. Cambridge University Press (2009)
Richard, E.H.: An Introduction to Mathematical Logic. PWS Publishing Company (1995)
Hurd, J., Melham, T.: Theorem Proving in Higher Order Logics: TPHOLs 2005, LNCS 3603. Springer (2005)
Kirby, L.: Addition and multiplication of sets. Math. Logic Q. 53(1), 52–65 (2007)
Kunen, K.: Set Theory : An Introduction to Independence Proofs. North-Holland (1980)
Lochbihler, A.: Formalising finfuns — generating code for functions as data from Isabelle/HOL. In: Berghofer, S., Nipkow, T., Urban, C., Wenzel, M. (eds.) TPHOLs, vol. 5674 of Lecture Notes in Computer Science, pp. 310–326. Springer (2009)
Nipkow, T.: More Church-Rosser proofs (in Isabelle/HOL). J. Autom. Reason. 26, 51–66 (2001)
Nipkow T., Lawrence, C. P.: Proof pearl: Defining functions over finite sets. In: Hurd and Melham 14, pp. 385–396.
Nipkow, T., Paulson, L.C., Wenzel, M.: Isabelle/HOL: A Proof Assistant for Higher-Order Logic. Springer. An up-to-date version is distributed with Isabelle (2002)
Norrish, M., Vestergaard, R.: Proof pearl: de Bruijn terms really do work. In: Schneider, K., Brandt, J. (eds.) Theorem Proving in Higher Order Logics: TPHOLs 2007, LNCS 4732, pp. 207–222. Springer (2007)
O’Connor, R.: Essential incompleteness of arithmetic verified by Coq. In Hurd and Melham 14
Russell, S.S.: O’Connor. Incompleteness & Completeness: Formalizing Logic and Analysis in Type Theory. PhD thesis, Radboud University Nijmegen (2009)
Lawrence, C.: Paulson. Set theory for verification: I. From foundations to functions. J. Autom. Reas. 11(3), 353–389 (1993)
Paulson, L.C.: The relative consistency of the axiom of choice — mechanized using Isabelle/ZF. LMS J. Comput. Math. 6, 198–248 (2003). http://www.lms.ac.uk/jcm/6/lms2003-001/
Paulson, L.C.: Gödel’s incompleteness theorems. Archive of Formal Proofs. November. Formal proof development. (2013). http://afp.sf.net/entries/Incompleteness.shtml
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)
Pitts, A.M.: Nominal sets names and symmetry in computer science. Cambridge University Press (2013)
Shankar, N.: Proof-checking Metamathematics. PhD thesis, University of Texas at Austin (1986)
Shankar, N.: Metamathematics Machines, and Gödel’s Proof. Cambridge University Press (1994)
Shankar, N., Shankar, B.: Church-Rosser and de Bruijn indices. E-mail (2013)
Świerczkowski, S.: Finite sets and Godel’s̈ incompleteness theorems. Dissertationes Mathematicae 422, 1–58 (2003). http://journals.impan.gov.pl/dm/Inf/422-0-1.html
Urban, C.: Nominal techniques in Isabelle/HOL. J. Autom. Reason. 40(4), 327–356 (2008)
Urban, C., Kaliszyk, C.: General bindings and alpha-equivalence in Nominal Isabelle. Log. Methods Comput. Sci. 8(2:14), 1–35 (2012)
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Paulson, L.C. A Mechanised Proof of Gödel’s Incompleteness Theorems Using Nominal Isabelle. J Autom Reasoning 55, 1–37 (2015). https://doi.org/10.1007/s10817-015-9322-8
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10817-015-9322-8