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 represents a malformed
out-of-range halt field), transitions look up the table, and head directions
are sanitized to satisfy the ▷ ⇒ move right discipline. Transition targets
are clamped at 2^w; in particular, a missing table entry takes the default
action to the represented halt state, including the malformed sentinel.
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 represents an out-of-range qhalt. Transition
targets are clamped at that state, so the default action still reaches the
represented halt state. 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.