Multitape descriptions for polynomial-time stack deciders
ProvedPvsNP.polyDecider_has_multitape_descriptionFor every Boolean predicate decidable in polynomial time by the bundled multistack machine, there are a finite multitape description and an exponent such that, for every binary input and every clock
the bounded simulation of on has halted and its entire output is the single bit . Bits are represented by the natural numbers zero and one. The same description and exponent work for every input.
This is the machine-representation step of the hierarchy argument. A construction may assign one tape to each stack, keep the current statement and internal state in finite control, and emit the final decision bit. Only the input symbols and the images of the finitely many push instructions on finite control states can occur on a reachable stack. The exponent may depend on the compiled machine.
import Definitions.Def_PvsNP import Definitions.Def_Complexitylib_0ebd467_Computability_Machines_Turing_MultiTape_Universal_Basic open Turing.MultiTapeTM.Universal
theorem PvsNP.polyDecider_has_multitape_description (χ : PvsNP.Str → Bool)
(hχ : PvsNP.PolyTimeDecider χ) :
∃ (d : Desc) (k : ℕ), ∀ (w : PvsNP.Str) (t : ℕ), (w.length + 2) ^ k ≤ t →
simulate d (w.map Bool.toNat) t = ([(χ w).toNat], true) := by sorry