Math 2.0

Mathematical logic and foundations Definition

Turing machine

Builds on SetFunction

Definition

A Turing machine is a tuple M=(Q,Γ,⊔,Σ,δ,q0,F)M = (Q, \Gamma, \sqcup, \Sigma, \delta, q_0, F) with the following parts.

  1. QQ is a finite nonempty set of states.
  2. Γ\Gamma is a finite set of tape symbols, and ⊔∈Γ\sqcup \in \Gamma is the blank symbol.
  3. Σ⊆Γ∖{⊔}\Sigma \subseteq \Gamma \setminus \set{\sqcup} is the set of input symbols.
  4. q0∈Qq_0 \in Q is the initial state, and F⊆QF \subseteq Q is the set of halting states.
  5. δ\delta is a partial function from (Q∖F)×Γ(Q \setminus F) \times \Gamma to Q×Γ×{L,R}Q \times \Gamma \times \set{L, R}, the transition function.

A configuration consists of a state qq, a tape t ⁣:ℤ→Γt \colon \Z \to \Gamma with only finitely many non-blank cells, and a head position p∈ℤp \in \Z. If δ(q,t(p))=(q′,s,D)\delta(q, t(p)) = (q', s, D), the next configuration has state q′q', the symbol ss written at cell pp, and head position p−1p - 1 if D=LD = L and p+1p + 1 if D=RD = R. The machine halts when no transition applies, in particular when it reaches a state in FF. On an input word w∈Σ∗w \in \Sigma^*, the computation starts in state q0q_0 with the head at cell 00. At the start, ww is written from cell 00 onward and all other cells are blank.

Remarks

Example: let Q={q0,h}Q = \set{q_0, h}, Γ={0,1,⊔}\Gamma = \set{0, 1, \sqcup}, Σ={0,1}\Sigma = \set{0, 1} and F={h}F = \set{h}. Let δ(q0,0)=(q0,1,R)\delta(q_0, 0) = (q_0, 1, R), δ(q0,1)=(q0,0,R)\delta(q_0, 1) = (q_0, 0, R) and δ(q0,⊔)=(h,⊔,R)\delta(q_0, \sqcup) = (h, \sqcup, R). Each clause holds, and on input 01100110 the machine moves right, writes 10011001, and halts at the first blank.

Non-example: a "machine" with one state for each natural number is not a Turing machine, because clause 1 requires finitely many states.

Many variants are in use: a tape infinite in one direction only, several tapes, or a single halting state. They all compute the same partial functions, though their running times differ.

Reading path

To understand this page from the ground up, read these 3 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Function concept
  2. Set concept
  3. Turing machine definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Turing_machine
About this page
TagW6ESDYBF8Z
URIm2://W6ESDYBF8Z
Kinddefinition
WritingW0 stub
MSC03D10, 68Q04
DefinesTuring machine
UsesSet, Function
Changed2 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.