An Error in a Computer Verified Proof of Incompleteness by Natarajan Shankar
James R Meyer Copyright © 2009 - 2026
Version v1 03 November 2011
The following is a HTML transcription of the paper that was in PDF format when originally published, you can see that paper at PDF An Error in a Computer Verified Proof of Incompleteness by Natarajan Shankar. The content is the same with some minor formatting changes; the footnotes are now clickable within the text. Some additional links have been added for convenience.
Abstract
This paper examines a proof of incompleteness by Natarajan Shankar, who claims that his proof has been verified by computer. This paper demonstrates that the proof has a fundamental error of logic which renders the proof invalid.
Contents:
1 Introduction
This paper demonstrates a fundamental error in a proof of incompleteness by Natarajan Shankar, published in 1994, N. Shankar, Metamathematics, Machines, and Gödel’s proof. Cambridge University Press, 1997. ISBN: 9780521585330. though Shankar first coded it in 1986. This paper does not discuss the implications of the failure of the computer verification software to detect the error in the proof; that will be published elsewhere.
2 Shankar’s proof
Shankar’s description of his incompleteness proof can be found in Shankar’s book on meta-mathematics.
N. Shankar, Metamathematics, Machines, and Gödel’s proof. Cambridge University Press, 1997. ISBN: 9780521585330.
It is written using the Boyer-Moore verification system,
Boyer-Moore, “The Boyer-Moore Theorem Prover (NQTHM).”
which uses the Lisp programming language.
The system referred to by Shankar has now been superseded by ACL2.
See “The ACL2 software system.” https://www.cs.utexas.edu/~moore/acl2/.
Shankar’s proof is a proof of incompleteness of a single formal system; the formal system is a system called {(P 1 2) represents the ‘is an element of’ symbol
In Lisp a function is written as (fn ai … an), where fn is a function name, and ai are Lisp expressions. Unlike many programming languages, Lisp has no data typing; data is inputted as either:
elemental data, which can be numerals, or symbols or symbol combinations. This includes the data
TandF, for Boolean values ‘true’ and ‘false’.list data, where the items in the list can be either lists or element values. In the Lisp of Shankar’s proof, all lists are constructed by the use of ordered pairs. Note that, a function that returns data can also be an item on a list.
Shankar mentions various divisions of Lisp expressions. The first division is into either syntactical expressions or data expressions. The term syntactical expressions is intended to refer to Lisp expressions that are those that are used to construct Lisp programs, while the term data expressions is intended to refer to Lisp expressions that are used as inputs to Lisp programs. However, in Lisp, a syntactical expression can also be used as a data input, so that the same symbol combination that is a Lisp expression can be both a Lisp data expression and a Lisp syntactical expression. Furthermore, every syntactical Lisp expression, when values are given for all its arguments, evaluates to a data expression; and there can be data expressions within syntactical expressions. This should be borne in mind when considering references to such expressions.
Shankar’s computer code Lisp expressions are presented here in monospace typewriter font, for example, (SUBST EXP VAR TERM FLG). Some of the other terminology used by Shankar includes:
The Lisp expression
(NCODE Z)is a Lisp function which is a Gödel numbering function, which for a givenz-expression Z , returns a numerical data value. Shankar also gives the alternative notation⌜Z⌝ for this Lisp expression. See Shankar’s section 4.3.2 Mapping N-Expressions to Sets[a/x, b/y] A represents theZ 2 formula that results from the substitution of the free variablex in theZ 2 formulaA by the valuea , and the substitution of the free variabley in theZ 2 formulaA by the valueb . See Shankar’s section 1.2.5 The Representability Theorem.⊢ A represents the concept ‘theZ 2 formulaA is provable in the systemZ 2 ’ (for a given set of axioms).
Shankar’s proof uses a proposition which he calls the Representability theorem. See Shankar’s section 4.4 The Representability Theorem The theorem, as Shankar states it is:
For any unary Lisp function
there is a
If (g X) = Y, then X⌝/x, ⌜Y⌝/y] Ag
If (g X) ≠ Y, then X⌝/x, ⌜Y⌝/y] ¬Ag
Shankar points out the need to provide a rigorous proof of his Representability theorem, stating:
‘Informal presentations of the representability proof show the details of the representability of one or two meta-theoretic functions and argue that the other functions can be similarly represented. Such an argument is acceptable for an informal exposition where the reader can be urged to grasp the general pattern, but is unacceptable for a formalized proof.’
Given the statement of the Representability theorem, it does not appear that there should be any great difficulty in stating the proposition in a fully formal format, where all the implicit assumptions are explicitly expressed. But instead of providing his Representability theorem in a fully formal format, and giving a formal proof of that theorem, Shankar circumvents the need to provide a computer verified proof of the theorem and justifies this by a series of vague informal assertions regarding what he calls a Lisp ‘interpreter’ function
‘The proof here has been formalized in the metatheory itself. The representability argument is simplified by demonstrating the representability of a Lisp interpreter, . The representability theorem is just the representability of this Lisp interpreter. It is shown that each of the Lisp functions used in the metatheoretic description of
Z 2 can be evaluated using the Lisp interpreter. The computability of the metatheory by the interpreter and the representability of the interpreter taken together, yield the representability of the metatheory. This subtle and seemingly innocuous use of a Lisp interpreter is perhaps the single most important “design decision” in the mechanical verification’.
The result is that, although Shankar claims that he has created a computer verified proof, in fact he has created a proof in which many of the steps of proof are indeed subjected to computer verification, but not every step in the proof is computer verified.
The statement of Shankar’s incompleteness theorem is: See Shankar’s Theorem 5.3.2
Where (SUBST (G GIVEN) 6 (NCODE (GCODE (G GIVEN))) 0),
then if either
In generating this ‘undecidable sentence’ U, Shankar defines a Lisp predicate by: See Shankar’s Section 5.3, Construction of the Undecidable Sentence. Note that the code is not actually used in the computer proof, but is an abbreviation of the actual code used. This does not affect the principles involved.
(P A GIVEN) ≜ (THEOREM (SUBST A 6 (NCODE(GCODE A)) 0) GIVEN)
In the above, A is a variable with the domain of Lisp A is the Lisp representation of (NCODE (GCODE A))GIVEN). The function SUBST represents the substitution, where the free variable 6.
So that if A is the Lisp representation of a (P A GIVEN) = T (here T represents ‘true’), then the (GCODE A)

Shankar states that this
Shankar now defines a (GCODE A)

Shankar claims that this Z 2 formula has one free variable (G GIVEN). His supposedly ‘undecidable sentence’ is that which is obtained by substituting the free variable (GCODE GIVEN))
U = (SUBST (G GIVEN) 6 (NCODE (GCODE (G GIVEN))) 0).
which gives the ‘undecidable’

The error in Shankar’s argument is now readily apparent, since this ‘sentence’ is defined in terms of (LIST f-p 0 1)U is not provable by the
Shankar does not give any details regarding the second argument of (LIST f-p 0 1)

and

and the ‘undecidable sentence’ as:

which is not a sentence at all, but a formula with a free variable
Shankar’s fundamental error arises from his assumption that he can use a Lisp expression (LIST f-p 0 1) that is a fixed value as a term that represents the concept of not one specific
Response from Shankar to the demonstration of the error in his proof
Shankar’s response to the demonstration of an error in his proof makes no attempt to rebut the demonstration of an error in his proof. He writes:
‘Gödel’s Theorem is hardly a typical theorem in the broad mathematical landscape, and clearly computer verification of its proof presents an unusual set of issues. …the issues raised in the article amount to mere nit-picking and indicate a fundamental misunderstanding of Gödel’s original argument.’
To nit-pick is to find an minor inconsequential defect. Shankar provides no logical argument to show how the confusion of a variable and a non-variable might be considered inconsequential. When Shankar claims that this author has a ‘fundamental misunderstanding of Gödel’s original argument’, one might reasonably expect that Shankar would provide some evidence to support this assertion; but Shankar declines to provide any such evidence.
References
Bibliography - Errors in other incompleteness proofs
- J. R. Meyer. “An Error in a Computer Verified Proof of Incompleteness by Russell O’Connor”, 2011.
- J. R. Meyer. An Error in a Computer Verified Proof of Incompleteness by John Harrison, 2011.
- J. R. Meyer. “A Fundamental Flaw in an Incompleteness Proof in the book ‘An Introduction to Gödel’s Theorems’ by Peter Smith.”
http://www.jamesrmeyer.com/pdfs/ff_smith.pdf, 2011 - J. R. Meyer. “A Fundamental Flaw In Incompleteness Proofs by Gregory Chaitin.”, 2011.
- J. R. Meyer. “A Fundamental Flaw In Incompleteness Proofs by S. C. Kleene.”, 2011.
Rationale: Every logical argument must be defined in some language, and every language has limitations. Attempting to construct a logical argument while ignoring how the limitations of language might affect that argument is a bizarre approach. The correct acknowledgment of the interactions of logic and language explains almost all of the paradoxes, and resolves almost all of the contradictions, conundrums, and contentious issues in modern philosophy and mathematics.
Site Mission
Please see the menu for numerous articles of interest. Please leave a comment or send an email if you are interested in the material on this site.
Interested in supporting this site?
You can help by sharing the site with others. You can also donate at
where there are full details.