Interpreting machine descriptions #
TMDesc.toTM turns a description into an actual single-work-tape machine:
states are Fin (2^w + 1) (the extra state 2^w is the "never halts"
sentinel produced when decoding a malformed halt field — it is unreachable,
since every transition target is reduced mod 2^w), transitions look up the
table, and head directions are sanitized to satisfy the ▷ ⇒ move right
discipline.
descOfTM extracts a well-formed description from any single-work-tape
machine: states are numbered by the canonical Fintype equivalence and the
table lists every (state, symbols) combination densely.
Main results #
TMDesc.toTM— interpreter; the specification of the universal machinedescOfTM/descOfTM_wf— everyTM 1has a well-formed descriptiondescOfTM_step_comm— step-exact correspondence betweenMand(descOfTM M).toTMdescOfTM_decidesInTime— language and running time carry over exactly
Interpret a description as a single-work-tape machine. States are
Fin (2^w + 1); state 2^w is the never-halting sentinel (reachable
only as a malformed qhalt, never as a transition target). Directions
are sanitized to satisfy the ▷ ⇒ right discipline.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The table action of M (with states numbered by stateEquiv) on the
key (q, si, sw, so).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Extract a description from a single-work-tape machine: states are
numbered by the canonical equivalence, the state field width is the
state count itself (k < 2^k), and the table densely lists every
(state, symbols) combination.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Configuration embedding into the interpreted description's state space:
states are renumbered by stateEquiv (values below card Q < 2^card Q),
tapes are unchanged.
Equations
Instances For
Extraction fidelity: the interpreted description of a machine decides the same language in exactly the same time.
Every language decidable by a single-work-tape machine is decidable by an interpreted well-formed description in the same time bound.