Polynomial-time runs of a fixed deterministic machine #
For a fixed deterministic machine tm with finitely many states, the configuration reached after
t steps on an input w is computable in polynomial time in the length of w and the number t,
written in unary (Turing.MultiTapeTM.computableInPolyTime_trackedRun). The configuration is
stored as finite data (Turing.FiniteCfg), whose work tapes are kept relative to their heads,
together with the absolute positions of the work heads;
Turing.MultiTapeTM.trackedAgrees_trackedRun relates it to the native run
tm.runFrom (tm.initCfg w) t.
The machine is a fixed parameter: one step is a finite case analysis on the state and the symbols
read (Turing.MultiTapeTM.ComputableInPolyTime.finite_cases), followed by a fixed action, and the
run iterates it with storage growing by at most one cell per step on each tape.
Main definitions #
Turing.MultiTapeTM.trackedStep: one step on finite storage with absolute head positions.Turing.MultiTapeTM.trackedRun:tsteps from the initial configuration onw.Turing.MultiTapeTM.encTrackedCfg: the encoding of tracked storage.Turing.MultiTapeTM.TrackedAgrees: finite storage with head positions describes a native configuration.
Main results #
Turing.MultiTapeTM.trackedAgrees_trackedRun: the tracked run describes the native run.Turing.MultiTapeTM.computableInPolyTime_trackedStep,Turing.MultiTapeTM.computableInPolyTime_trackedRun: the tracked step and run are polynomial-time.
One step of tm on finite storage, tracking the absolute positions of the work heads. A
halted configuration is left unchanged.
Finite storage c.1 with work-head positions c.2 describes the native configuration cfg
on the input w: the stored input is w, the control, input head and output agree, the positions
are the native ones, and each finite work tape reads the native tape relative to its head.
The stored input is
w.The controls agree.
The input heads agree.
- workTapePos : c.2 = cfg.workTapePos
The tracked positions are the native work-head positions.
Each finite work tape reads the native one at every displacement from its head.
The outputs agree.
The initial finite storage, with every work head at position 0, describes the initial native
configuration.
One step preserves agreement.
The tracked run describes the native run.
Polynomial time #
One tracked step of a fixed machine is polynomial-time: a finite case analysis on the control and the symbols read selects a fixed action.
The tracked run of a fixed machine is polynomial-time in the input and the number of steps, written in unary.