How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Turing Machines, Configurations, and Computation
1 · Prerequisites
- Construction of the Natural Numbers
- Countability and Uncountability
- Finite Counting, Factorials and Binomial Coefficients
- Formal Languages, Encodings, and Decision Problems
- Graphs, Walks and Connectivity
- Linear Recurrences and Rational Generating Functions
- Relations, Functions, and Quotients
- The ZFC Axioms and the Basic Set Constructions
2 · Summary
This page fixes the core Turing-machine semantics for the computability theory track: the deterministic one-tape model, right-infinite finite-support tapes, configurations, the one-step relation, halting versus divergence, recognized and decided languages, machine-computed partial functions, and the named multitape and nondeterministic variants.
It also records two structural viewpoints that become load-bearing later. First, valid accepting computation histories for one fixed machine and one fixed input can be checked effectively. Second, acceptance can be read as reachability of an accepting configuration in the configuration graph, with no acyclicity assumption built into that graph.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Deterministic one-tape Turing machines with designated accept and reject states
Definition
A deterministic one-tape Turing machine with designated accept and reject states is a tuple such that:
- is a finite set of states.
- is a finite input alphabet.
- is a finite tape alphabet with .
- is the blank symbol.
- are pairwise distinct.
- is a function
Thus whenever the machine is in a nonhalting state and scans a symbol , the value specifies exactly one next state , exactly one symbol to write in the currently scanned cell, and exactly one head move .
The intended tape is right-infinite and indexed by the natural numbers (Computation alphabets, words, the empty word, and , A function is a relation with and implying ; , the value , domain and codomain); the tape contents, configurations, and one-step dynamics are fixed in the next items.
Remarks
-
The transition function is total on the nonhalting state-symbol pairs. The machine halts by entering one of the distinguished states or , not by leaving undefined.
-
This item fixes only the base deterministic one-tape model. Multitape and nondeterministic variants are introduced later on the same page.
Right-infinite tapes as finite-support functions
Definition
Fix a deterministic one-tape Turing machine . A tape content for is a function (A function is a relation with and implying ; , the value , domain and codomain, The natural numbers (von Neumann)) such that the support is finite.
Thus the tape is indexed by the natural numbers, extends infinitely to the right, and is blank except at finitely many cells. If the head is instructed to move left from cell , it remains at cell .
For an input word , the initial tape is defined by Its support is contained in and is therefore finite.
Remarks
-
This finite-support convention is a clean way to formalize the usual picture "the tape is blank except on a finite used segment."
-
The head position is not part of the tape content; it is a separate natural number in the configuration definition.
Configurations of a deterministic one-tape Turing machine
Definition
Fix a deterministic one-tape Turing machine . A configuration of is a triple where is the current state, is the current head position, and is a tape content in the sense of Right-infinite tapes as finite-support functions.
The symbol currently scanned in is . The configuration is nonhalting when .
For later encoding arguments it is convenient to write a configuration as a finite word over the alphabet : if , and for , then the associated configuration word is The state symbol is inserted immediately before the scanned tape symbol, and the word is long enough to include the head position even when the scanned cell is blank.
Remarks
-
This is the modern full-configuration convention: state, head position, and whole finite tape data are all part of the object.
-
Turing's original narrower word "configuration" for the pair "state plus scanned symbol" is not the convention used on this page.
The one-step configuration relation
Definition
Fix a deterministic one-tape Turing machine . Let and be configurations of .
We say that follows in one step, and write when and, writing one has:
- ,
- ,
- for every ,
- if , then ,
- if and , then ,
- if and , then .
So one step changes only the scanned tape cell, updates the state, and moves the head one cell right or one cell left, except that the left boundary clamps the head at cell .
Remarks
-
Because differs from at at most one position, it is again a finite-support tape content.
-
There is no one-step successor from an accepting or rejecting configuration.
Every nonhalting deterministic configuration has a unique successor
Statement
Let be a deterministic one-tape Turing machine. Every nonhalting configuration of has exactly one one-step successor.
Facts & Assumptions
Given: A deterministic one-tape Turing machine and a nonhalting configuration of .
The transition function of a deterministic one-tape Turing machine is a function by Deterministic one-tape Turing machines with designated accept and reject states.
The relation is obtained by applying the unique transition value , rewriting only the scanned tape cell, and updating the head position by the stated left/right rule, by The one-step configuration relation.
Proof
Since is nonhalting, . Therefore lies in the domain of the function , so there is a unique triple .
Define by and for , and define from and by the rule in [L2]. Then satisfies .
If also , then [L2] forces to use the same unique transition value from step 1.1, the same rewritten tape cell, and the same updated head position. Hence .
So has exactly one one-step successor.
Initial, accepting, and rejecting configurations
Definition
Fix a deterministic one-tape Turing machine and an input word .
The initial configuration of on input is where is the initial tape from Right-infinite tapes as finite-support functions.
A configuration of is:
- accepting if ,
- rejecting if ,
- halting if it is accepting or rejecting.
Thus the machine starts in state , scans the leftmost input cell, and halts exactly when it enters one of the two designated halting states.
Remarks
-
If , then the initial tape is blank everywhere and the head is still at cell .
-
Accepting and rejecting are properties of configurations, not of words. The same input may lead different machines to different outcomes.
Finite computation histories, halting computations, and divergence
Definition
Fix a deterministic one-tape Turing machine and an input word .
Configurations are triples as in Configurations of a deterministic one-tape Turing machine. Write , where is the input word followed by blanks, the initial tape of Right-infinite tapes as finite-support functions. For the empty word it is blank everywhere. A configuration is accepting when its state is , rejecting when its state is , and halting when either condition holds. The two halting states are distinct. The relation is the one-step relation of The one-step configuration relation.
A finite computation history of on input is a finite list of configurations, meaning a function on with values in the configuration set (A function is a relation with and implying ; , the value , domain and codomain), written such that and
Such a history is:
- accepting if is an accepting configuration,
- rejecting if is a rejecting configuration,
- halting if it is accepting or rejecting.
We say that halts on if there exists a halting computation history of on .
We say that diverges on if there is no halting computation history of on .
For a halting configuration and a word over , we say that outputs when So the tape contains exactly followed by blanks.
Remarks
-
On a deterministic machine there is at most one possible next configuration from a nonhalting configuration, but the definition of divergence here is simply "no halting computation history exists."
-
The output convention is intentionally strict: the final nonblank tape segment must be exactly the displayed word, with no later nonblank cells.
Languages recognized and decided by a Turing machine
Definition
Let be a deterministic one-tape Turing machine with input alphabet , and let be a language (Languages over an alphabet).
We say that recognizes if for every input word ,
We say that decides if recognizes and halts on every input .
Equivalently, decides exactly when every input has either an accepting or rejecting computation history and
Remarks
-
A recognizer may diverge on words not in the language. Total halting is the extra condition that upgrades recognition to decision.
-
The ambient alphabet matters: recognition and decidability are always statements about a subset of one fixed .
Partial functions computed by a machine under fixed encodings
Definition
Let and be sets, let be effective binary encodings in the sense of Effective binary encodings and total decoders, let be a deterministic one-tape Turing machine, and let be a function with domain .
The machine computes the partial function under the fixed encodings if:
- for every , the computation of on input halts and its final configuration outputs the binary word , and
- for every , the computation of on input diverges.
Thus the machine's input and output are ordinary finite binary words, while the mathematical function lives on the underlying sets and through the chosen encodings.
Remarks
-
This definition intentionally separates the machine from the represented function. Changing the encoding can change which partial function a fixed machine computes.
-
Nothing in the definition requires any particular behaviour on malformed binary strings outside the image of .
Multitape and nondeterministic Turing machine variants
Definition
Fix finite alphabets with , and a finite state set with distinct states .
For an integer , a deterministic -tape Turing machine has the same finite control data as the one-tape model, but carries right-infinite tapes and head positions. Its transition function has the form So one step reads one symbol from each tape, writes one symbol on each tape, and moves each head left or right.
A nondeterministic one-tape Turing machine has the same data as the deterministic model, but replaces the transition function by a finite-valued transition map where each is a finite set of allowed next instructions.
Remarks
-
This page only fixes the variant models themselves. The equivalence and simulation theorems relating them to the basic one-tape model come later.
-
In the nondeterministic case, more than one next instruction may be available from the same state-symbol pair; acceptance is therefore defined by existence of an accepting branch.
Accepting computations of a nondeterministic machine
Definition
Fix a nondeterministic one-tape Turing machine and an input word .
A configuration of is a triple with , head position , and finite-support tape content , just as in Configurations of a deterministic one-tape Turing machine. It is accepting when and rejecting when . The initial configuration is , where is the input word followed by blanks as in Right-infinite tapes as finite-support functions, including the all-blank tape for empty input. These definitions use only the shared state/alphabet data of the deterministic and nondeterministic models.
For configurations and of , write when and there exists an allowed instruction such that is obtained from by the same local rewrite and head-move recipe used in The one-step configuration relation, with .
An accepting computation of on input is a finite list of configurations, that is, a function on with configuration values (A function is a relation with and implying ; , the value , domain and codomain), written such that , where is the input tape defined in the same way as for deterministic machines, each for , and is accepting.
We say that accepts if such an accepting computation exists.
Remarks
-
Nondeterministic acceptance is existential: one accepting branch is enough.
-
Other branches may reject, may halt differently, or may continue forever; no global halting requirement is part of acceptance itself.
For a fixed machine and input, valid accepting computation histories form a decidable language
Statement
Fix a deterministic one-tape Turing machine and an input word for . Then one can choose a binary encoding of configurations of and a binary encoding of finite tuples of such codes so that the set of encoded accepting computation histories of on input is a decidable language over .
Facts & Assumptions
Given: A fixed deterministic one-tape Turing machine and a fixed input word .
A language is decidable when some deterministic Turing machine halts on every input and accepts exactly the words in that language, by Languages recognized and decided by a Turing machine.
A finite computation history on input is a finite list with and for every , and it is accepting when is accepting, by Finite computation histories, halting computations, and divergence.
The proof of Finite tuples admit effective prefix-free binary encodings explicitly encodes a word by and a binary pair by . Its total decoder either rejects or returns two component words, each strictly shorter than the pair code.
By Configurations of a deterministic one-tape Turing machine, a configuration word has exactly one state symbol inserted immediately before the scanned tape symbol, and if more than one tape symbol follows that state symbol then the last of them is nonblank.
Proof
Because is fixed, the disjoint tagged alphabet is finite. Choose pairwise distinct binary blocks of one common length for these tagged symbols. Encode each configuration word by replacing its unique state symbol with the block for and each tape symbol with the block for . The common block length makes this code uniquely decodable back to the tagged configuration word.
Use the explicit pair encoding from [L3], and encode finite lists of configuration codes recursively by A decoder returns the empty list only when its entire current candidate is exactly 0; a candidate beginning with 0 and containing any further bit is malformed. When the candidate begins with 1, the decoder applies the total decoder for to the remaining suffix. If that suffix is malformed it rejects; otherwise it recovers the first configuration code and a tail-code and continues on the tail. By [L3], every successfully decoded tail-code is strictly shorter than the current candidate, so this recursion halts on every binary input and returns either one finite list or the malformed-code output.
Given a decoded tagged word, check mechanically that it contains exactly one state-tagged block, all other blocks are tape-tagged, at least one tape-tagged block follows the state-tagged block, and whenever more than one tape-tagged block follows the state-tagged block the last of them is not the blank-tagged block . By [L4], these are exactly the configuration words of : the number of tape-tagged blocks before the unique state-tagged block is the head position, the tagged tape blocks recover the finite word , and the last-block test enforces the canonical choice . Thus valid configuration codes can be parsed effectively back into configurations of .
On input a candidate binary word , first decode it by the recursive history decoder from step 1.2. If the decoder reports malformed input or the empty list, reject immediately. Otherwise step 2.1 parses each configuration code in the decoded list into a configuration, yielding . Check whether , whether each adjacent pair satisfies , and whether is accepting. Each check is finite and local: the first compares one explicit configuration with the fixed start configuration, the middle checks one transition of the fixed machine , and the last reads the final state. Accept exactly when all checks pass.
By [L2], a decoded list passes the step-3.1 test exactly when it is an accepting computation history of on input . The machine just described halts on every candidate history code, because the recursive decoder from step 1.2 terminates and the subsequent checks are finite.
Therefore there is a deterministic Turing machine that decides . By [L1], is a decidable language.
The configuration graph of a machine on an input
Definition
Let be either a deterministic one-tape Turing machine or a nondeterministic one-tape Turing machine, and fix an input word .
Write when follows by one legal step of : in the deterministic case this means in the sense of The one-step configuration relation, and in the nondeterministic case it means that one allowed instruction of changes to by the same local rewrite and head-move rule.
The configuration graph of on is the directed graph whose vertex set is the set of all configurations reachable from the initial configuration by finitely many legal steps, where is the input tape for , and whose arc set consists of the ordered pairs such that
This uses the same ordered-pair arc convention as a digraph in Multigraphs, loops and directed graphs as variants distinct from the default finite simple graph, but no finiteness claim is made here: the configuration graph may be infinite.
An accepting vertex is an accepting configuration of .
Remarks
-
For a deterministic machine every nonhalting vertex has out-degree , while for a nondeterministic machine it may have several outgoing arcs.
-
The graph need not be acyclic. Looping computations and revisited configurations are part of the present scope.
Acceptance is reachability of an accepting configuration
Statement
Let be either a deterministic one-tape Turing machine or a nondeterministic one-tape Turing machine, and fix an input word . Then accepts if and only if, in the configuration graph , some accepting configuration is reachable from the initial configuration.
Facts & Assumptions
Given: A machine of one of the two stated kinds, an input word , and its configuration graph .
In the deterministic case, an accepting computation history on is a finite list of configurations beginning at the initial configuration, ending at an accepting configuration, and following the one-step relation at each stage, by Finite computation histories, halting computations, and divergence.
In the nondeterministic case, an accepting computation on is likewise a finite list of configurations beginning at the initial configuration, ending at an accepting configuration, and following the nondeterministic one-step relation at each stage, by Accepting computations of a nondeterministic machine.
The configuration graph has exactly those legal one-step moves as its arcs, by The configuration graph of a machine on an input.
Proof
Suppose first that accepts . By [L1] in the deterministic case and by [L2] in the nondeterministic case, there is a finite accepting computation from the initial configuration to an accepting configuration. By [L3], each consecutive pair is an arc of , so this finite vertex list witnesses that an accepting configuration is reachable from the initial configuration.
Conversely, suppose there is a finite vertex list in whose first term is the initial configuration, whose last term is accepting, and whose consecutive pairs are arcs. By [L3], each consecutive pair satisfies the legal one-step relation. Therefore [L1] or [L2], according to the kind of machine , makes an accepting computation of on .
Steps 1.1 and 1.2 prove that accepts if and only if some accepting configuration is reachable from the initial configuration in .
FALSE: rejection is divergence
Statement
False claim: whenever a deterministic Turing machine rejects an input, it diverges on that input.
Facts & Assumptions
Given: The machine with states , input alphabet , tape alphabet , and transition rule Take input word .
The statement refuted is: rejection on an input means divergence on that input.
A halting computation history may end in a rejecting configuration, and divergence means that no halting computation history exists, by Finite computation histories, halting computations, and divergence.
A configuration is rejecting exactly when its state is the designated reject state , by Initial, accepting, and rejecting configurations.
Refutation
On input , the initial configuration scans the symbol 1 in state . The displayed transition sends that configuration in one step to a configuration whose state is .
By [L2], the configuration reached in step 1.1 is rejecting. So the two-term history consisting of the initial configuration and that next configuration is a halting computation history.
By [L1], an input with a halting computation history does not diverge. Thus this machine rejects without diverging, contradicting [A1].
FALSE: nondeterministic acceptance requires every branch to halt
Statement
False claim: a nondeterministic Turing machine accepts an input only when every computation branch on that input halts.
Facts & Assumptions
Given: A nondeterministic machine with states , input alphabet , tape alphabet , and allowed transitions Take input word .
The statement refuted is: nondeterministic acceptance requires every branch on the input to halt.
A nondeterministic machine accepts an input when there exists an accepting computation on that input, by Accepting computations of a nondeterministic machine.
Refutation
One allowed first move from the initial configuration is . So there is a one-step computation branch that ends immediately in the accept state.
Another allowed first move is . From then on the only allowed move is again , and the left-boundary rule keeps the head at cell , so this branch never leaves the nonhalting state and therefore does not halt.
By [L1] and step 1.1, the machine accepts because an accepting computation exists. But step 1.2 gives a branch that does not halt. Therefore [A1] is false.
5 · Examples, counterexamples and false statements
None yet.
Sources
- John E. Savage, Models of Computation: Exploring the Power of Computing, Chapter 5
- Richard Zach, Sets, Logic, Computation: An Open Introduction to Metalogic
- A. M. Turing, On Computable Numbers, with an Application to the Entscheidungsproblem
- Michael Sipser, MIT 18.404J Theory of Computation, Lecture 10: The Computation History Method