Workspace of the buffered-input handoff #
Main results #
Turing.MultiTapeTM.workTapePos_runFrom_prepareInput_mem_window: the existing marker and rewind routines preserve a window containing the buffer, its left boundary and all prior heads.
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)) :
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.