Input-bit symmetry makes multitape runs equal on equal-length words
ProvedPvsNP.multitape_input_bit_symmetryConsider the deterministic multitape simulator with binary input. Assume that for every control state and every vector of work-tape reads, the first matching table actions for reading and are equal, with a missing entry considered as no action. Then the simulator gives the same output and halt flag after any fixed number of steps on any two binary words of equal length.
Preamble
import Definitions.Def_Complexitylib_0ebd467_Computability_Machines_Turing_MultiTape_Universal_Basic import Mathlib open Turing.MultiTapeTM.Universal
Formal statement
theorem PvsNP.multitape_input_bit_symmetry (d : Desc)
(symmetric : ∀ (q : ℕ) (reads : List (Option ℕ)),
(d.table.find? (fun row => decide (row.1 = ⟨q,some 0,reads⟩))).map Prod.snd =
(d.table.find? (fun row => decide (row.1 = ⟨q,some 1,reads⟩))).map Prod.snd)
(w v : List Bool) (len : w.length = v.length) (t : ℕ) :
simulate d (w.map Bool.toNat) t = simulate d (v.map Bool.toNat) t := by sorrySource
Derived from `inputSymbol`, `moveInput`, `stepWith`, and `simulate` in the Prove2Me universal multitape semantics, https://prove2.me/api/v1/definitions/0f28a4fa-b44a-4f88-8354-43271be0fd47.