Turing Machines
Maheshwari & Smid · Ch. 6 · Introduction to Theory of Computation
A Turing machine has an infinite tape, a read/write head, and a finite set of states. It can move left or right, write symbols, and loop forever. This is the standard model of general computation. The Church-Turing thesis says that anything we'd call "computable" can be computed by a Turing machine.
Definition
A Turing machine is a 7-tuple (Q, Σ, Γ, δ, q0, qaccept, qreject):
- Γ — tape alphabet (includes blank symbol □)
- δ — Q × Γ → Q × Γ × {L, R}
- The machine halts when it enters qaccept or qreject
- Or it may loop forever (never halt)
Simulating a Turing machine
This TM recognizes anbncn: cross off one a, one b, one c per pass. If all are crossed off evenly, accept.
The Church-Turing thesis
Every model of computation that has been proposed (lambda calculus, recursive functions, register machines, your laptop) computes exactly the same class of functions as a Turing machine. This is not a theorem but a thesis: it cannot be proved because "computable" has no prior formal definition. It has never been refuted.
Neighbors
- πͺ SICP Ch.4 β the metacircular evaluator is a universal Turing machine in disguise
- πͺ Programming Ch.18 β register machines are an implementation of Turing machines
- π Logic Ch.10 β Turing's halting problem and GΓΆdel's incompleteness are equivalent
- βοΈ Hoare/Core.lean β Hoare logic reasons about programs that Turing machines compute