ConceptComplete

Turing Machines and Computability

Computability theory studies which functions and sets can be effectively computed by idealized machines. The Turing machine provides the standard model of computation, and the Church-Turing thesis asserts that it captures the informal notion of "algorithm."


Turing Machines

Definition5.1Turing Machine

A Turing machine is a tuple M=(Q,Σ,Γ,δ,q0,qaccept,qreject)M = (Q, \Sigma, \Gamma, \delta, q_0, q_{\text{accept}}, q_{\text{reject}}) where QQ is a finite set of states, Σ\Sigma is the input alphabet, ΓΣ{}\Gamma \supseteq \Sigma \cup \{\sqcup\} is the tape alphabet, δ:Q×ΓQ×Γ×{L,R}\delta: Q \times \Gamma \to Q \times \Gamma \times \{L, R\} is the transition function, q0q_0 is the start state, and qaccept,qrejectq_{\text{accept}}, q_{\text{reject}} are halting states.

Definition5.2Computable Function

A partial function f:NkNf: \mathbb{N}^k \rightharpoonup \mathbb{N} is computable (or recursive) if there exists a Turing machine that, on input (n1,,nk)(n_1, \ldots, n_k), halts with f(n1,,nk)f(n_1, \ldots, n_k) on its tape when ff is defined, and does not halt otherwise. A total computable function is one that halts on all inputs.


Decidability and Enumerability

Definition5.3Decidable and Computably Enumerable Sets

A set ANA \subseteq \mathbb{N} is decidable (recursive) if its characteristic function χA\chi_A is computable. AA is computably enumerable (c.e., or recursively enumerable) if A=dom(f)A = \operatorname{dom}(f) for some computable partial function ff, or equivalently, AA is the range of a total computable function (when AA is non-empty).

ExampleThe Halting Problem

The set K={e:Turing machine e halts on input e}K = \{e : \text{Turing machine } e \text{ halts on input } e\} is computably enumerable but not decidable. This is the canonical undecidable c.e. set, and its undecidability is proved by diagonalization: assuming KK is decidable leads to a contradiction when we consider the machine that does the opposite of what the decision procedure predicts.

RemarkChurch-Turing Thesis

The Church-Turing thesis asserts that every effectively calculable function is Turing-computable. This is not a mathematical theorem but a philosophical claim, supported by the equivalence of Turing machines with lambda calculus, recursive functions, register machines, and all other reasonable models of computation.