Logic and
Language


Copyright   James R Meyer    2012 - 2026 https://jamesrmeyer.com

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
  2. Shankar’s proof
  3. Shankar’s response
  4. References
  5. Bibliography

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 Z 2. The details of the Z 2 system are immaterial here; they are given in Shankar’s book. The Lisp language system does not directly use the actual symbols of the Z 2 formal system. Instead certain Lisp expressions are used which correspond to the formulas and terms of the Z 2 system, and which are called z-expressions. For example, the z-expression {(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 T and F, 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 given z-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 the Z 2 formula that results from the substitution of the free variable x in the Z 2 formula A by the value a, and the substitution of the free variable y in the Z 2 formula A by the value b. See Shankar’s section 1.2.5 The Representability Theorem.

  • ⊢ A represents the concept ‘the Z 2 formula A is provable in the system Z 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 g;
there is a Z 2 formula Ag with two free variables, x, y such that:

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 EV. He then subjects certain assertions regarding this Lisp function to computer verification. He states:

‘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 U is (SUBST (G GIVEN) 6 (NCODE (GCODE (G GIVEN))) 0),

then if either ⊢ U or ⊢ ¬U, then both ⊢ U and ⊢ ¬U.

 

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 z-expressions. The meaning is that, if A is the Lisp representation of A, where A is a variable whose domain is the Z 2 formulas, then the above asserts that the Z 2 formula, that is the result of the substitution of the free variable of a Z 2  formula A by the value ⌜(NCODE (GCODE A))⌝, is provable according to the given axioms (here represented by the term GIVEN). The function SUBST represents the substitution, where the free variable y of a Z 2  formula A is represented here by the number 6.

 

So that if A is the Lisp representation of a Z 2  formula A, the argument is that if (P A GIVEN) = T (here T represents ‘true’), then the Z 2 formula [ ⌜(GCODE A)⌝/y ] is provable in the given formal system. Shankar asserts that his Lisp evaluator function EV gives a representation of this  formula as:

Multi-line equation 1

Shankar states that this Z 2  formula has no free Z 2  variables, and is therefore a sentence. Here a ‘sentence’ means a proposition, so that it is a statement with no free variables. But while Shankar may have coded it as a sentence, by the definition of the evaluator function EV, its second argument is the Lisp expression to be evaluated, which, in this case, is the Lisp expression that corresponds to a variable A with the domain of Z 2   formulas. Clearly, this Lisp expression should be a variable value, not a fixed value, since it is directly dependent on the value of the Z 2 formula A.

 

Shankar now defines a Z 2 formula G by substituting ⌜(GCODE A)⌝ in the above formula by y, which gives the Z 2 formula G:

Multi-line equation 2

Shankar claims that this Z 2 formula has one free variable y. He says that for this  formula G, there is a corresponding Lisp representation, which he calls (G GIVEN). His supposedly ‘undecidable sentence’ is that which is obtained by substituting the free variable y in the formula G by ⌜(GCODE GIVEN))⌝. The Lisp representation of this defines the ‘undecidable sentence’ as:

U = (SUBST (G GIVEN) 6 (NCODE (GCODE (G GIVEN))) 0).

which gives the ‘undecidable’ Z 2  formula as:

Multi-line equation 3

 

 

The error in Shankar’s argument is now readily apparent, since this ‘sentence’ is defined in terms of ⌜(LIST f-p 0 1)⌝ , which should be a variable value with the domain of terms that correspond to Z 2  formulas. Since the ‘undecidable sentence’ is defined in terms of a value which should be a variable value, that means that this ‘undecidable sentence’, if it were correctly coded, would have no determinate value until a value is assigned for that variable. Hence the definition of the so-called ‘undecidable sentence’ does not in fact define a single Z 2  formula, but a set of Z 2  formulas, where the value of each individual formula is determined by the value assigned to A. This being the case, it is not surprising that that which is given by the definition of U is not provable by the Z 2 system, since it is not a definition of a Z 2  formula.

 

Shankar does not give any details regarding the second argument of EV, but clearly, if the Z 2 formula is precisely definable, and the Lisp expression is precisely definable, there must be a precisely definable function Naturally, this function is definable in a meta language to the Lisp language j, such that (LIST f-p 0 1) = j(A), which gives us the Z 2 formula A as:

Multi-line equation 4

and G as:

Multi-line equation 5

and the ‘undecidable sentence’ as:

Multi-line equation 6

which is not a sentence at all, but a formula with a free variable A.

 

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 Z 2  formula, but a set of Z 2  formulas. That Lisp expression should be a variable term in the context of its usage, but it is not, and that error renders Shankar’s proof invalid.

 

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

Interested in supporting this site?

You can help by sharing the site with others. You can also donate at Go Get Funding: Logic and Language where there are full details.

 

 

As site owner I reserve the right to keep my comments sections as I deem appropriate. I do not use that right to unfairly censor valid criticism. My reasons for deleting or editing comments do not include deleting a comment because it disagrees with what is on my website. Reasons for exclusion include:
Frivolous, irrelevant comments.
Comments devoid of logical basis.
Derogatory comments.
Long-winded comments.
Comments with excessive number of different points.
Questions about matters that do not relate to the page they post on. Such posts are not comments.
Comments with a substantial amount of mathematical terms not properly formatted will not be published unless a file (such as doc, tex, pdf) is simultaneously emailed to me, and where the mathematical terms are correctly formatted.


Reasons for deleting comments of certain users:
Bulk posting of comments in a short space of time, often on several different pages, and which are not simply part of an ongoing discussion. Multiple anonymous user names for one person.
Users, who, when shown their point is wrong, immediately claim that they just wrote it incorrectly and rewrite it again - still erroneously, or else attack something else on my site - erroneously. After the first few instances, further posts are deleted.
Users who make persistent erroneous attacks in a scatter-gun attempt to try to find some error in what I write on this site. After the first few instances, further posts are deleted.


Difficulties in understanding the site content are usually best addressed by contacting me by e-mail.

 

Based on HashOver Comment System by Jacob Barkdull

Copyright   James R Meyer   2012 - 2026
https://jamesrmeyer.com