Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Plumbing.PrepareInput.Space

Workspace of the buffered-input handoff #

Main results #

theorem Turing.MultiTapeTM.workTapePos_runFrom_prepareInput_mem_window {k : ℕ} {Symbol State : Type} {input : List Symbol} (mark : Symbol) (cfg : Cfg (k + 2) Symbol State input) (word : List Symbol) (bound : ℕ) (hword : cfg.workTapes (Fin.natAdd k 0) = tapeOfList word) (hhead : cfg.workTapePos (Fin.natAdd k 0) = ↑word.length) (hflag : cfg.workTapePos (Fin.natAdd k 1) = 0) (hbound : word.length ≤ bound) (hone : 1 ≤ bound) (hheads : ∀ (i : Fin (k + 2)), cfg.workTapePos i ∈ window bound) (steps : ℕ) (i : Fin (k + 2)) :
(runFrom (cfg.withState (some (prepareInput k mark).q₀)) steps).workTapePos i ∈ window bound

Preparing an actual buffered word preserves a head window on every execution prefix. The bound charges the buffer length independently of the number of execution steps.