Facts about runs of multi-tape machines #
Small facts about configurations and runs that are not specific to any construction: the input symbol under the head as a list lookup, the input head move on natural-number positions, the contents of a work tape after an action as a case distinction, the distance a work head can travel, and the initial configuration as a configuration of words.
Main definitions #
Turing.inputAt: the symbol at a position of the input tape.Turing.moveInputPosNat:Turing.moveInputPoson positions as natural numbers.
Main results #
Turing.Cfg.inputSymbol_eq_inputAt,Turing.val_moveInputPos_eq_moveInputPosNat.Turing.Action.apply_workTapes_eq_ite.Turing.MultiTapeTM.abs_workTapePos_runFrom_le: aftertsteps a work head is withintcells of the origin.Turing.MultiTapeTM.initCfg_eq_wordsCfg: the initial configuration has blank work tapes.Turing.MultiTapeTM.runFrom_eq_of_runPath: a path to a halted configuration, read as a run.Turing.MultiTapeTM.runsInSpace_iff: the shared space bound, read on the run of a deterministic machine.Turing.MultiTapeTM.ComputesInTimeAndSpace.runFrom_of_le: a machine that computes within timethas halted with its output after any number of steps fromton.
The input tape #
The input head position after a move d from position j, on an input of length n: the
head is clamped to 0, …, n + 1. This is Turing.moveInputPos on positions as natural numbers.
Instances For
Work tapes #
The contents of a work tape after applying an action: the written symbol under the head, if the action writes one, and the old contents elsewhere.
After t steps from the initial configuration, a work head is within t cells of the
origin.
The initial configuration is the configuration with the input and blank work tapes.
A path of a deterministic machine ends where the run from its head does.
A path of a deterministic machine to a halted configuration gives the run from its head at any later step.
A deterministic machine satisfying the shared space bound s uses at most s cells in every
prefix of its run.
A deterministic machine satisfies the shared space bound s exactly when every prefix of its
run uses at most s cells.
A machine that computes out within time t has halted with output out after any number of
steps from t on.
The path of the first t steps from cfg ends where the run does.