Sub topic 7
The Church-Turing thesis
This chapter assumes you can trace a deterministic Turing machine (TM) through its configurations. It also assumes you know that multi-tape and nondeterministic machines recognize the same languages as the single-tape deterministic machine. The thesis explains why those equivalences matter. It also explains why "no Turing machine exists" is read as "no algorithm exists at all."
The statement
The Church-Turing thesis says that every function computable by an effective procedure is computable by a Turing machine. An effective procedure is a finite list of unambiguous, mechanical steps that a person could follow with unlimited paper and time, and that needs no insight or luck.
Equivalent phrasings you will meet:
- "Intuitively computable" equals "Turing computable."
- "Algorithm" equals "a Turing machine that halts on every input."
- "Decidable by some algorithm" equals "decidable by a TM."
The thesis links an informal idea (algorithm) to a formal one (Turing machine). Alonzo Church reached the same claim with the lambda calculus, and Alan Turing with his machines, both in 1936.
Why it is a thesis and not a theorem
A theorem is proved. The Church-Turing thesis cannot be, because one side of it, "effective procedure," has no mathematical definition. You can prove that two formal models are equivalent. You cannot prove that a formal model captures an informal notion.
The thesis could in principle be refuted. Someone would have to exhibit a procedure that everyone accepts as mechanical and that no TM can compute. Nobody has done so in about ninety years.
The evidence
The case for the thesis is accumulated agreement. Every serious attempt to formalize "computable" has produced a model with exactly the power of a Turing machine.
Three kinds of evidence carry the weight:
- Robustness under variation. Adding tapes, a two-way infinite tape, several heads, or nondeterminism does not change which languages are recognized. Each variant is simulated by the basic machine.
- Independent origins. Church's lambda calculus, Gödel and Kleene's recursive functions, Post's production systems, and Turing's machines were designed separately. They were later proved equivalent.
- No counterexample. Every algorithm ever written for a real computer can be compiled to a TM. Hardware is only a finite approximation of a TM with unbounded memory.
What the thesis lets you do
Describe machines at a high level
In proofs and in textbook arguments, you can describe an algorithm in prose or pseudocode and conclude that a TM exists. You do not write out a transition table. There are three accepted levels of description:
| Level | You specify | Typical use |
|---|---|---|
| Formal | The full 7-tuple and every transition | Small examples such as a^n b^n |
| Implementation | Head movements and tape marking in words | Designing a TM for a^n b^n c^n |
| High level | An algorithm in prose, with no tape details | Proofs about decidability, closure, reductions |
High-level descriptions are valid because of the thesis. Suppose you write "scan the input, count the symbols, compare the counts" and each step is clearly mechanical. Then a TM exists that does it.
The following Python function is an algorithm for a^n b^n c^n. By the thesis, a TM decides the same language, and you can claim that without building the machine.
def decide_anbncn(w: str) -> bool:
n = len(w) // 3
return len(w) % 3 == 0 and w == "a" * n + "b" * n + "c" * n
for s in ["", "abc", "aabbcc", "aabbc", "acb", "abcabc"]:
print(repr(s), decide_anbncn(s))
# '' True, 'abc' True, 'aabbcc' True, 'aabbc' False, 'acb' False, 'abcabc' FalseThe function halts on every string, so it is a decider and the language is recursive. A function that might loop forever on some inputs would correspond to a recognizer, so the language would be recursively enumerable.
Treat undecidability as absolute
The thesis is why "no Turing machine decides the halting problem" is a statement about all possible algorithms. Without the thesis, the result would only rule out one formal model. With it, you conclude that no program in any language, on any computer, present or future, decides halting.
This is also why a different programming language does not rescue you. A halting checker written in Haskell would be a halting decider, and the diagonal argument in a later chapter would apply to it just as it does to a TM.
What the thesis does not say
Several misreadings show up in exam options and in everyday discussion.
- It is not a claim about speed. The thesis concerns what is computable, not how fast. The strong (or extended) Church-Turing thesis claims that any reasonable model can be simulated by a TM with only polynomial overhead. That claim is about complexity, it is separate, and it is questioned because of quantum computing. Quantum computers do not compute anything beyond the Turing-computable functions. They might compute some of them faster.
- It is not a claim about all of mathematics. Some functions are not computable, as the halting problem shows. The thesis says that computable things are TM-computable. It does not say that everything is computable.
- It does not say a physical machine can be built to beat TMs. Hypothetical "hypercomputers" that solve the halting problem would violate the thesis if they were realizable. No one has shown one, and they require assumptions such as infinite-precision physical quantities.
- It does not say TMs are the best model. Different models suit different purposes. Finite automata, pushdown automata, and RAMs are all useful, and the thesis only fixes the ceiling for what an algorithm can do.
Where it fits in the proofs ahead
Later chapters use the thesis in three recurring ways.
- Building deciders in reductions. A reduction from A to B is described as an algorithm that transforms inputs. The thesis justifies saying "a TM computes this transformation."
- Closure proofs. To show that the recursive languages are closed under union, you describe a machine that runs two deciders one after the other. The thesis lets you leave out the tape details.
- Universal machine. The universal TM reads a description of another machine and simulates it. Because any algorithm can be a TM, one fixed machine can run any program given as data, which is the idea behind a stored-program computer.
Quick checklist for exam statements
| Statement | Verdict | Reason |
|---|---|---|
| The Church-Turing thesis is provable | False | One side of it is informal |
| Multi-tape TMs compute more than single-tape TMs | False | Simulation by a single tape preserves the language |
| Every algorithm can be implemented as a TM | True under the thesis | That is what the thesis states |
| A quantum computer can decide the halting problem | False | Quantum models compute the same functions, possibly faster |
| The thesis implies P = NP | False | It says nothing about running time |
Exercise
A student says: "Since the Church-Turing thesis is only a thesis, the undecidability of the halting problem might fail for some clever new programming language." Identify the two separate claims being mixed up, and say what is wrong with the student's reasoning.
Show answer
The undecidability of the halting problem for Turing machines is a proved theorem (diagonalization), so it is not at risk. The Church-Turing thesis is the separate claim that any algorithm in any language can be turned into a TM. A new language whose programs could not be turned into a TM would have to come with a convincing argument that its programs are mechanical, and none exists. The student's reasoning also overlooks that the diagonal argument can be repeated directly in any language that can run its own programs: a halting decider for that language gives the same contradiction. The thesis does not need to be proved for this to hold.
Exercise
True or false, with a reason: "Because nondeterministic TMs can be simulated by deterministic TMs, the Church-Turing thesis shows that nondeterminism gives no speed advantage."
Show answer
False. The simulation shows only that both models recognize the same languages, which is evidence for the thesis about computability. The deterministic simulation of a nondeterministic machine may take exponentially longer. Whether that slowdown is necessary is the P versus NP question, which the thesis does not address.