What a universal decision procedure would promise #

Give a proposed checker a description of a program and its starting input. It must eventually return yes if the program halts and no if it runs forever. The checker itself must always finish. Running the program under observation meets only part of that contract. When the program stops, the observer has its answer. When it is still running on the millionth step, the observer cannot infer from elapsed time alone what will happen on the next step.

Alan Turing’s 1936 paper formalized effective procedures by describing machines whose instructions could themselves be encoded and read by another machine. His original undecidability argument used the distinction between machines that continue producing figures and those that do not. The modern halting question is a closely related formulation. A machine can run forever without printing another figure, so the two wordings should not be treated as identical. Stephen Cole Kleene gave an explicit formulation in terms of stopping in his 1952 textbook.

Section sources [1] [4] [5]

Why examining the checker produces a contradiction #

Suppose there were a perfectly reliable checker for all programs. Define a new program that reads a program description and asks the checker what would happen if that program received its own description. If the checker predicts that the computation stops, the new program deliberately continues forever. If it predicts that the computation continues forever, the new program stops immediately.

Now supply the new program with its own description. Either answer from the checker leads to the opposite behavior. The contradiction comes from demanding a terminating and correct answer on every possible input, including the description of this program. Better processors can help a checker solve more individual cases within a time allowance. They cannot make these two incompatible requirements consistent.

Section sources [4] [5]

Which properties of a program can be checked? #

A question about spelling can have a very different status from one about behavior. A checker can examine a finite program and decide whether its text contains a particular symbol. Asking whether it ever produces an output on any input is a claim about the computation it carries out. Two programs written in entirely different ways might have exactly the same input-output behavior.

Henry Gordon Rice showed a general limitation on deciding nontrivial properties of the sets that programs enumerate. In the usual formulation for partial computable functions, a property is nontrivial if some functions have it and others lack it. When membership depends only on the function computed, no algorithm can decide membership for all programs. The restrictions matter. An algorithm can decide many properties of programs in a restricted language, or answer a bounded question about the first thousand steps of an unrestricted one.

Section sources [1] [2]

How verification can still help AI research #

Imagine a research assistant proposing a new numerical routine. A reviewer can prove that a bounded loop terminates if its body uses only terminating operations, test the routine on a finite list of cases, or ask for a proof under stated input assumptions. Each conclusion names the programs or inputs it covers. None requires a checker that decides every property of every future program the assistant might invent.

Patrick and Radhia Cousot’s work on abstract interpretation explains another productive compromise. An analysis can represent many concrete states by one abstract description, such as a range containing every possible value of a variable. If the entire range meets a requirement, the conclusion can hold for all the represented states. If the range is too coarse, the analysis may be inconclusive. Distinguishing a proved guarantee, an inconclusive check, and a finite test result makes claims about recursive self-improvement easier to evaluate.

Section sources [1] [3]

Sources

  1. Alan M. Turing · On Computable Numbers, with an Application to the Entscheidungsproblem (1936–37) doi.org
  2. H. G. Rice · Classes of Recursively Enumerable Sets and Their Decision Problems (1953) ams.org
  3. Patrick Cousot and Radhia Cousot · Abstract Interpretation (1977) cs.nyu.edu
  4. Stephen Cole Kleene · Introduction to Metamathematics, chapter XIII, §71, p. 382 (1952) openlibrary.org
  5. Joel David Hamkins and Theodor Nenu · Did Turing Prove the Undecidability of the Halting Problem?, §1 arxiv.org