Past exam of the mathematics course of the University of Cambridge 2009 iii Paper 1 3 Solution Created 2026-10-03 Updated 2026-10-14
Use a deterministic single-tape Turing machine with finite tape alphabet containing a blank symbol , and finite control states. Its instruction of a Turing machine has the formIt reads , writes , changes state, and moves the head left, right, or stays. An instantaneous description of a Turing machine records the state, scanned position, and tape contents; cells outside the finite recorded window are blank. The initial description places the head at the first input symbol, or at a blank for an empty input. A tape infinite in both directions is used here; extending the recorded window does not change its infinite blank surroundings.
Introduce a dedicated halting state and replace every undefined transition by a stay instruction to , retaining the scanned symbol. Give no instructions. This effective normalization changes only the final bookkeeping step, not whether the original machine halts. Keep its initial state and tape alphabet unchanged. State letters, tape letters, and the new symbols are mutually disjoint.
Represent a finite description by the wordThe head scans the first letter of if there is one; if is empty it scans an implicit blank just beyond the recorded right end. The letters of are in left-to-right order, and the remaining right-hand letters follow the scanned cell. The markers bound a window, not walls of the physical tape. Thus the input is represented exactly by , including empty.
Define the semigroup simulation of a Turing machine by taking generators , all state letters, , and , with the following finite list of defining equalities. For each ordinary instruction, use its row below; in a left-move row add the first relation for every :These are the cases where a scanned cell is explicitly present. For the instructions reading , add boundary cases when the right-hand word is empty:A left move at the recorded left end supplies a new scanned blank ; a right move at the right end can keep the next blank implicit. Each equality can be checked by reading the new scanned cell and written symbol. For instance leaves the head scanning , with the just-written to its right. Every transition is one of these local substitutions, including either finite-window boundary case.
Finally add only the terminal cleanup equalitiesThere are finitely many generators and relations, and every side is a nonempty word. Thus these equations define a finite semigroup presentation , not merely a rewriting program. In particular, its equalities may be used in either direction.
If halts on , the simulated forward computation takes to some . The cleanup relations remove and , then . This proves the forward implication.
For the converse, equality in a semigroup presentation is witnessed by a finite sequence of replacements in contexts, in either direction. Before the first cleanup relation is used, every word reached from is still a valid description: it has exactly two outer markers, exactly one state letter, tape symbols between them, and nothing outside. The transition equalities and their inverses preserve this form. A forward transition sends its interpreted configuration to its unique successor . Since the machine is deterministic, eventually halts if and only if eventually halts. Consequently eventual halting is invariant even when such an equality is traversed backward; no reversibility hypothesis on the machine is needed.
Any first cleanup replacement must already encounter . The inverse erasure rules also require , and the inverse acceptance rule requires , which cannot appear before an acceptance replacement. Therefore a derivation reaching the one-letter word first reaches a description in state using only simulation equalities. Halting invariance along this initial part of the derivation implies that the original input configuration halts. ThusThe converse proof is what prevents arbitrary inverse uses of the defining relations from becoming spurious halting certificates.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 104 4 a Solution Created 2026-10-03 Updated 2026-10-06
We give a finite semigroup presentation using the convention that is blank, the tape is unbounded in both directions, and a transition writes and moves in direction . The Turing machine is deterministic, and the halting state has no outgoing transition. A finite configuration is encoded bywith the head scanning the first symbol of ; if is empty, it scans an implicit blank. Unrepresented cells beyond the boundary markers are blank. An additional generator records completed halting and erasure.
The generators of the semigroup are . Its relations have the following finite families. For every right-moving transition, includeFor every left-moving transition and every tape symbol , includeIf stationary moves are part of the chosen machine model, include for each such move. Include the boundary-padding relations, for every state ,They supply a blank immediately to the left of the head when needed, or at the right boundary when the current scanned cell was implicit. Finally includeWriting for this displayed list, the answer is the explicit finite semigroup presentationAll relations are between nonempty words; no group inverses or empty-word generator are used. The transition families are finite because the transition table and alphabet are finite, and the padding and erasure families are visibly finite. The declared head convention determines which side of a tape symbol carries a state letter.
Semigroup simulation of a Turing machine 2026-10-14
A finite deterministic Turing machine can be represented by a finite semigroup presentation whose generators are tape symbols, state symbols, a boundary marker , and an accept symbol . Defining equalities replace the local scanned symbol and state according to machine instructions, with separate boundary cases for implicit blanks. Only terminal-state equalities erase tape letters and then replace by . A derivation from an initial description to must encounter a terminal state before its first erasure. Simulation equalities preserve halting membership in either direction: for a deterministic transition , halts if and only if halts. Thus reverse use of defining equalities cannot create a false halting certificate. Boundary and erasure rules require explicit checking for every chosen encoding.