— Ch. 1 · Foundations Of Computability —
Undecidable problem.
~2 min read · Ch. 1 of 5
A decision problem asks a yes-or-no question for every input in an infinite set. These inputs can be numbers or strings of a formal language. The formal representation of such a problem is a subset of the natural numbers. For example, the question "is the input even?" becomes the set of all even numbers. A problem is decidable if its corresponding set is recursive. This means an algorithm exists that always halts with the correct answer. If no such algorithm exists, the problem is undecidable. Some problems are partially decidable. An algorithm may halt when the answer is yes but run forever if the answer is no.
The Halting Problem Proof
Alan Turing proved in 1936 that no general algorithm solves the halting problem. He showed this using a theoretical device called a Turing machine. The problem asks whether an arbitrary program finishes running or runs forever on a given input. Turing demonstrated that any attempt to create a universal solver leads to a logical contradiction. His proof established that some questions about computer programs cannot be answered by any mechanical process. This result applies to all possible program-input pairs. It remains a cornerstone of computability theory today.Gödel And Logical Limits
The concepts raised by Gödel's incompleteness theorems mirror those found in the halting problem. A weaker form of the First Incompleteness Theorem follows directly from the undecidability of the halting problem. This version asserts that no sound and complete effective axiomatization of natural numbers exists. Soundness requires that axioms prove only true statements. Since soundness implies consistency, this result acts as a corollary to the strong form of Gödel's theorem. The standard statement focuses on finding proofs rather than truth values themselves. An algorithm enumerating all true first-order logic statements would solve the halting problem. Such an algorithm cannot exist, proving the assumption false.