Locality of a step #
A step of a multi-tape machine reads the cells under its heads, writes at most the cells under its work heads, and moves every head by at most one cell. This file records these facts in the form used to cut a computation into local pieces.
The heads are indexed by Option (Fin k): none is the read-only input head and some i the
head of work tape i. Turing.Cfg.headPos places them in coordinates where every head starts at
zero; the input head's stored position inputPos is shifted by one, so its coordinate ranges over
[-1, n] on an input of length n. The write-only output tape is never read and has no head
here.
Two configurations agree on a family W of work-tape cells (Turing.Cfg.AgreeOn) when they have
the same control state and head positions and the same work-tape contents on W. If the work
heads lie in W, a step reads the same symbols in both, takes the same action, and preserves
agreement on W; both append the same symbol, if any, to their outputs
(Turing.MultiTapeTM.agreeOn_step). Contents outside W and earlier outputs may differ.
Main definitions #
Turing.Cfg.headPos: head positions, starting at zero.Turing.Cfg.AgreeOn: same control and heads, and same work-tape contents on given cells.
Main results #
Turing.MultiTapeNTM.Step.abs_headPos_sub_le: a step moves every head by at most one cell.Turing.MultiTapeTM.agreeOn_step: agreement on cells containing the work heads is preserved by a step, which emits the same output in both configurations.
A step moves every head by at most one cell.
Two configurations agree on the work-tape cells W: they have the same control state, the
same input and work head positions, and the same work-tape contents on W. Their outputs and
their contents outside W are unconstrained.
The same control state.
The same input head position.
The same work head positions.
The same work-tape contents on
W.
Agreement on cells containing the work heads gives the same read symbols.
One action applied to agreeing configurations keeps them agreeing on W: it writes the same
symbols under the same heads.
Locality of a step. If two configurations agree on cells W containing their work
heads, one step keeps them agreeing on W, and both append the same word to their outputs.