Home Science Auto formalisation of Goedel's Second Incompleteness...
Science

Auto formalisation of Goedel's Second Incompleteness Theorem in Binary Recursive Arithmetic

Key Points

arXiv:2606.01898v2 Announce Type: replace Abstract: We report an experiment in autoformalisation of G\"odel's second incompleteness theorem in Agda using Claude. The theorem is formalised for Church's Basic Recursive Arithmetic, following the proof outline given in Guard's 1963 lecture notes. The entire Agda development, comprising approximately 50,000 lines and containing no postulates, was produced through interaction with Claude; the author did not write any Agda code.

arXiv:2606.01898v2 Announce Type: replace Abstract: We report an experiment in autoformalisation of G\"odel's second incompleteness theorem in Agda using Claude. The theorem is formalised for Church's Basic Recursive Arithmetic, following the proof outline given in Guard's 1963 lecture notes. The entire Agda development, comprising approximately 50,000 lines and containing no postulates, was produced through interaction with Claude; the author did not write any Agda code. Beyond the formalisation itself, the project provides a case study of the strengths and limitations of current large language models in mathematics. An initial autonomous attempt based on a paper of Rose failed because of a false Lemma; the resulting formal development produced by Claude established a statement superficially resembling G\"odel's theorem but mathematically unrelated to it. This failure was traced to an insufficient specification of the internal provability predicate, illustrating how an LLM may reason correctly from an incorrect formal specification. The final development follows Guard's proof and required the reconstruction of several implicit mathematical arguments, including the role of the internal numeral-encoding operation and the specification of substitution. The resulting formalisation clarifies a number of details left implicit in the original presentation and provides a fully machine-checked proof of G\"odel's second incompleteness theorem for Basic Recursive Arithmetic.
Goedel (ORG) Agda (ORG) Claude (PERSON) Church (ORG) Guard (ORG) Rose (PERSON) LLM (ORG)
Originally published by arXiv CS Read original →