Any native binary-input machine has an exact one-pass simulation
ProvedNativeOnePass.copy_replay_exactcomplexity-theoryformal-verification
For any native multitape description, the compiled description adds one work tape. On any binary input x its output and halting flag after t+2|x|+3 transitions are exactly those of the source after t transitions. Its physical input-head position never decreases in a step.
Preamble
import Definitions.Def_NativeOnePassCompiler open Turing.MultiTapeTM.Universal NativeOnePass
Formal statement
theorem NativeOnePass.copy_replay_exact (d : Desc) :
(onePassDesc d).tapes = d.tapes+1 ∧
(∀ (x : List Bool) (t : ℕ), simulate (onePassDesc d) (x.map Bool.toNat) (t+(2*x.length+3)) =
simulate d (x.map Bool.toNat) t) ∧
(∀ (x : List ℕ) (c : SCfg), c.inputPos ≤ (step (onePassDesc d) x c).1.inputPos) := by sorrySource
Copy-and-replay construction in the Complexitylib universal multitape model.