What makes a procedure effective, and how can a problem be proved undecidable?
Distinguish decision, semidecision, reductions, and oracle computation, then follow undecidability into polynomial equations.
Church uses lambda-definability and recursive functions to establish an unsolvable problem and a negative decision result.
Source: An Unsolvable Problem of Elementary Number Theory (1936)The incompleteness theorems depend on the effectiveness of axioms and proof procedures. To investigate that condition, one must clarify what it means for a method to be mechanical.
The Entscheidungsproblem asked for a procedure deciding whether an arbitrary first-order formula is logically valid. Hilbert and Ackermann gave the question a prominent formulation in their 1928 textbook. A negative answer required more than the failure of known methods: it required a mathematical account broad enough to represent every proposed effective procedure.
During the 1930s, several approaches converged. Church studied lambda-definability; Herbrand and Gödel developed general recursion, which Kleene investigated systematically; Turing analyzed the steps available to a human calculator following fixed rules; and Post proposed a closely related operational account.
Sources and credit for Alan Turing
Elliott and Fry, 1951, public domain in its source country, via Wikimedia Commons Image source · Public domain · Biographical dates
Computation by recursion
Primitive recursion defines a function by an initial value and a rule for passing from one case to the next:
Addition and multiplication can be defined in this manner. The recursion follows a supplied natural-number argument, so the definition carries an explicit finite progression toward the initial case.
Primitive recursive functions form a substantial class, but not every total computable function belongs to it. Work by Ackermann and Rózsa Péter helped clarify the reach of different recursion schemes. Péter's systematic investigation of recursive functions made the structure of recursion itself a subject of mathematical study.
Sources and credit for Rózsa Péter
Photographer not identified; the source record credits the MacTutor History of Mathematics archive. Via Wikimedia Commons. Image source · Public domain · Biographical dates
General computation allows searches with no predetermined bound. Given a suitable predicate , search for the least such that holds. If no such exists, the computation does not return a result.
Partial functions are therefore essential. An effective procedure need not terminate on every input. Its domain is the set of inputs on which it does terminate.
Turing's analysis of a calculator
Turing's 1936 paper analyzes computation through finitely specified states, a tape divided into cells, and elementary operations of reading, writing, and moving.
The tape is unbounded, but at any finite stage only finitely many steps have occurred. The machine's transition table is finite. Its next transition is determined by its current state and the symbol being read.
This model was motivated by an analysis of what a person following a fixed routine could do, rather than by a design for a particular electronic computer. A complicated operation must be decomposed into locally specified steps.
A universal machine can interpret an encoded machine description and simulate that machine on a supplied input. The description itself becomes data. This is the computational counterpart of the earlier encoding of formulas and proofs by numbers.
Universality does not mean that all computations finish or run efficiently. It says that one effective interpreter can reproduce the behavior of any machine in the specified model.
A small machine makes the distinction between a finite description and an unbounded computation concrete. Begin with unary increment, then compare a halting run, an exact cycle, and an unfinished run.
Interactive lab · Computability
Run a Turing machine
Follow one transition at a time. Edit the input or rules to change the computation.
The block of 1s represents a natural number. Append one 1, then halt.
The head starts at cell 0. Blank cells extend indefinitely in both directions.
Ready at cell 0.
The next rule reads 1, preserves it, and moves right.
Run stops after at most 200 transitions. Step and Back let you inspect each change.
Transition table
| State | Read | Write | Move | Next | Remove |
|---|
Changing the input or a rule restarts the run. Highlighting marks the next transition. L = left, R = right, S = stay.
Hint and interpretation
Scan right over the 1s. On the first blank, write 1 and enter H.
Full tape and executed transitions
Scope and notation
A deterministic, single-tape machine with cells indexed by all integers, symbols 0, 1, _, and a designated halt state H. _ denotes blank; S leaves the head in place. A missing transition also halts under this lab's convention. The tape is stored sparsely; cycle checks compare the entire configuration, including absolute head position. Each run is limited to 200 transitions. This modern notation illustrates Turing's model; it is not his original table format.
Equivalent models and the Church–Turing thesis
Church used lambda-definability to formulate an account of effective calculability and establish an undecidability result. The lambda calculus represents function abstraction and application; computation proceeds by substitution and reduction. Its internal workings are developed in the Curry–Howard note.
Sources and credit for Alonzo Church
Photographer not identified. Nassau Herald, 1924, p. 101; Princeton University Library. Portrait extracted from the page; no retouching. Image source · Public domain (published before 1931) · Biographical dates
Equivalence results connect lambda-definable functions, general recursive functions, and Turing-computable functions. These are mathematical theorems relating precise formal definitions.
The Church–Turing thesis makes a further identification: the effectively calculable numerical functions are those captured by these models. Since “effectively calculable” begins as an informal notion, the thesis is not another equivalence theorem between two previously formalized classes.
Its support includes the analysis of mechanical procedures, the convergence of differently motivated models, and the ability to translate new effective programming formalisms into the established ones.
The historical paths were not wholly isolated. Researchers corresponded, read related work, and revised their assessments. Post's independent 1936 formulation is important without requiring the inaccurate conclusion that every contributor developed every relevant idea without knowledge of the others.
Why the halting problem is undecidable
Suppose an algorithm always terminates and correctly decides whether program terminates on input .
Construct a program with the following behavior on input :
- Compute .
- If the answer says that terminates on itself, continue forever.
- Otherwise, terminate.
Let be the code of . If predicts termination, continues forever. If it predicts nontermination, terminates. Either outcome contradicts the assumed correctness of .
This is a modern diagonal presentation of the undecidability argument. Turing's original paper used its own terminology and problems about computable sequences; the modern halting formulation should not be passed off as a verbatim reproduction.
The argument rules out a total decision procedure for all program/input pairs. It does not prevent us from proving termination or nontermination for many particular programs.
Semidecision and reduction
Termination can be recognized when it happens: simulate a program, and accept if it stops. If it never stops, the simulation does not return a negative answer.
A set is computably enumerable, or semidecidable, when there is a procedure that eventually accepts each member, with no requirement to terminate on nonmembers. Decidability requires correct termination in both cases.
There is a useful exact criterion: a set is decidable if and only if both and its complement are computably enumerable. The forward direction uses the decision procedure to recognize either answer. For the converse, run the two recognizers in parallel, alternating one step of each. Every input belongs to exactly one of the sets, so exactly one recognizer eventually accepts. Its identity determines the answer.
This alternating simulation is called dovetailing. Waiting for the first recognizer to finish before starting the second would fail, because the first may run forever. The same scheduling idea enumerates the outputs of infinitely many programs: at stage , give a finite amount of work to the first computations. No computation that needs only finitely many steps is permanently neglected.
For the halting set, acceptance is enumerable but nonhalting is not. If both were enumerable, the criterion would provide the impossible total halting decider. The asymmetry is stronger than saying that we have not yet found a convenient test.
First-order validity is semidecidable because complete proof systems permit proof enumeration. Church's negative solution shows that validity is not decidable in general. Completeness therefore gives a systematic search with a one-sided guarantee, not a universal yes-or-no algorithm.
A reduction transfers an impossibility result to another problem. For example, given a program and input , construct a new program that, on any input, first simulates and returns if that simulation terminates. The new program computes the total zero function exactly when halts.
A decision procedure recognizing this property from arbitrary program descriptions would decide halting. Hence no such procedure exists.
Rice's theorem generalizes this pattern: every nontrivial property of the partial function computed by a program has an undecidable index set. The qualification “of the computed function” matters. A syntactic property such as the length of the program text is a different kind of question and can be decidable.
Kleene's normal form and fixed points
Kleene organized computability through normal forms and general theorems about effective operations. One formulation of his normal form theorem is
Sources and credit for Stephen Cole Kleene
Harold N. Hone. Via Wikimedia Commons. Image source · Public domain · Biographical dates
Here is a primitive recursive predicate checking whether encodes a suitable terminating computation, extracts its output, and performs unbounded minimization. The symbol allows both sides to be undefined.
Checking one proposed computation is finite and effective. Finding a terminating computation has no uniform bound, and one may not exist. Replacing unbounded minimization with bounded search would remove precisely the partiality the theorem must capture.
Kleene's recursion theorem is another structural result. In a standard numbering, every total computable transformation of program indices has an index satisfying
The equality concerns computed partial functions, not necessarily equality of program texts. The theorem supplies effective fixed points and supports computational self-reference. It does not require that every program literally inspect a file containing its own source code.
These results turned a collection of computing formalisms into a theory with reusable methods.
The parameter theorem, usually called the -- theorem, explains why these constructions can be effective uniformly in their inputs. Given a code for a program of two arguments and a value , one can compute a code for the one-argument program obtained by fixing the first argument to . In a standard numbering,
The function is total computable even when the represented programs diverge. It constructs program descriptions; it does not run each description to discover its behavior. The theorem makes “construct a program that simulates this other program on this input” a precise operation, and it is one ingredient in proofs of the recursion theorem. Andrew Marks's computability notes, sections 2–6, develop these mechanisms together.
Relative computability and Post's problem
Turing later considered machines equipped with an oracle for a specified set. An oracle answers membership questions that need not be decidable by an ordinary machine. The resulting notion measures which problems become computable when another problem is treated as an available resource.
Write when membership in can be decided using an oracle for . Sets equivalent under this relation occupy the same Turing degree.
Post asked whether there are computably enumerable degrees strictly between the computable sets and the halting problem. Friedberg and Muchnik independently answered this through the priority method in the 1950s.
Sources and credit for Emil Leon Post
Creator not identified in the source record. Via Wikimedia Commons. Image source · Public domain · Biographical dates
Sources and credit for Albert Muchnik
Alexander.shen. Via Wikimedia Commons. Image source · CC BY-SA 4.0 · Biographical dates
The broad construction organizes potentially conflicting requirements by priority. When satisfying one requirement disrupts another, the argument controls how often such disruption can occur. The method made it possible to construct sets with finely specified computational relationships.
Undecidability was thus only the beginning. Computability theory investigates different degrees of unsolvability and the resources needed to pass between them.
The jump and the arithmetical hierarchy
An oracle does not remove every limitation. Define its jump by
The diagonal argument can be repeated with oracle held fixed. It proves that is not computable from . In particular, an oracle solving ordinary halting still cannot solve every halting problem for machines that use that oracle. Iterating gives strictly increasing degrees
The notation describes degrees of problems, not successively faster ordinary computers.
This hierarchy has a syntactic counterpart. A condition has an existential number quantifier over a decidable relation; it asks whether a finite witness exists. A condition is its universal counterpart. Alternating existential and universal blocks yields the higher arithmetical levels. A standard form of Post's theorem identifies sets with sets enumerable relative to the th jump, and sets with sets computable from that jump. Thus quantifier complexity and oracle computation describe the same stratification from different directions.
For example, totality of a program has the form
Each bounded check is decidable, but the unbounded alternation matters. The totality index set is -complete; it cannot be reduced to merely observing one terminating run. The priority method answers a different question: it constructs intermediate enumerable degrees below the first jump rather than adding another quantifier level above it. The oracle and hierarchy chapters of Marks's notes give precise statements.
Hilbert's tenth problem
Hilbert's tenth problem asked for an algorithm deciding whether a polynomial equation with integer coefficients has an integer solution.
Davis, Putnam, Julia Robinson, and Matiyasevich developed the negative answer through a long sequence of results. Their work culminated in 1970 in the characterization of computably enumerable sets as Diophantine sets: membership can be represented by the existence of solutions to an appropriate polynomial equation.
Sources and credit for Martin Davis
George Bergman. Via Wikimedia Commons. Image source · GFDL 1.2 · Biographical dates
Sources and credit for Hilary Putnam
Unknown photographer or artist. Via Wikimedia Commons. Image source · CC BY-SA 2.5 · Biographical dates
Sources and credit for Julia Robinson
George Bergman. Via Wikimedia Commons. Image source · GFDL 1.2 · Biographical dates
Sources and credit for Yuri Matiyasevich
Yuri Matiyasevich. Via Wikimedia Commons. Image source · CC BY 3.0 · Biographical dates
The mechanism can be glimpsed in an elementary example. A natural number is composite exactly when
The general theorem represents vastly more complicated computably enumerable conditions in this existential polynomial form. In particular, a halting condition can be translated into the solvability of a polynomial equation.
The earlier Davis–Putnam–Robinson work reduced the remaining difficulty to the Diophantine representation of suitable exponential growth. Matiyasevich supplied the missing ingredient using number-theoretic properties associated with Fibonacci numbers. This was a cumulative achievement, not a problem solved by one isolated application of Gödel's theorem.
The result carries undecidability into a classical mathematical subject. A finite polynomial equation can encode a question for which no universal solution procedure exists.
The domain of the unknowns needs attention. The representation theorem is commonly stated over the nonnegative integers. An integer unknown can be represented by the difference of two nonnegative unknowns. Conversely, by the four-square theorem, a nonnegative unknown can be replaced by a sum of four squares of integer unknowns. These effective transformations connect the natural-number representation theorem with Hilbert's original integer-solvability problem. They do not establish the corresponding undecidability claim for rational solutions: that is a separate problem.
The theorem also distinguishes an equation's finite description from the size of a possible solution. Enumerating tuples will eventually find a solution if one exists. There is no computable uniform bound that would tell us how far to search for every input polynomial, since such a bound would turn the semidecision procedure into a decision procedure. Matiyasevich's account of Hilbert's tenth problem places the representation theorem and this decision problem in their historical sequence.
Beyond the existence of algorithms
An undecidability theorem rules out an algorithm that always answers a specified general question. It does not make every restricted instance intractable. Decidable fragments, heuristics, and proof-guided methods remain useful.
Moreover, the existence of an algorithm does not tell us whether it is efficient. Complexity theory asks about time, space, and proof size, and will enter the series through SAT and SMT.
Another question concerns the internal structure of proofs. Gentzen showed that derivations could be transformed and analyzed in ways that reveal their mathematical strength. The next note follows that development.
Check your understanding: can two incomplete searches make a decision procedure?
Suppose one program eventually accepts exactly the members of a set , and another eventually accepts exactly its nonmembers. Neither is guaranteed to halt otherwise. Can you always decide membership in ?
Reasoning. Yes: alternate their execution steps on the same input. One must eventually accept, and its answer determines membership. Running the first program to completion before starting the second does not work. Applied to halting, this proves that nonhalting cannot also be semidecidable, because the resulting parallel procedure would contradict the diagonal argument.
Sources and further reading
- Alonzo Church, “An Unsolvable Problem of Elementary Number Theory” and “A Note on the Entscheidungsproblem” (1936).
- Alan Turing, “On Computable Numbers, with an Application to the Entscheidungsproblem” (1936–1937), and “Systems of Logic Based on Ordinals” (1939).
- Stephen C. Kleene, Introduction to Metamathematics (1952); Rózsa Péter, Rekursive Funktionen (1951).
- Emil Post, “Finite Combinatory Processes—Formulation 1” (1936) and “Recursively Enumerable Sets of Positive Integers and Their Decision Problems” (1944).
- Yuri Matiyasevich, Hilbert's Tenth Problem and accompanying materials, for the successive contributions to the negative solution.