Simulating a word RAM by a Turing machine with polynomial bit overhead
ProvedLax759944Proofs.GenericTimeSimulation.ramInTime_to_turingInPolynomialOverheadalgorithmscomputational-complexityturing-machines
Fix a word-RAM program and a polynomial bound on the widths needed by its inputs and outputs. There are a single Turing machine and polynomial word-width and time overheads. If the RAM run at the specified enlarged width halts in steps, the Turing machine transforms the binary encoding of the input into that of the same output in time polynomial in the input bit length plus . The time bound applies to arbitrary halting runs, including runs of superpolynomial length.
Preamble
import Definitions.Def_EdgeSublinearMWIS_Main_NativeWordRAM open Lax759944.BinaryWordEncoding Polynomial Turing
Formal statement
namespace Lax759944Proofs.GenericTimeSimulation
theorem ramInTime_to_turingInPolynomialOverhead
(program : Lax808846.Ram.Program) (wordBound : Polynomial ℕ) :
∃ (H : TM2ComputableAux Symbol Symbol)
(widthOverhead timeOverhead : Polynomial ℕ),
(∀ n, wordBound.eval n ≤ widthOverhead.eval n) ∧
∀ (input output : List ℕ) (time : ℕ),
Lax759944.RamPolytime.FitsInWords (wordBound.eval (bitSize input))
((input.length :: input) ++ output) →
Lax808846.Ram.RunsTo (widthOverhead.eval (bitSize input)) program
(input.length :: input) output time →
Nonempty (TM2OutputsInTime H.tm
(List.map H.inputAlphabet.invFun (encode input))
(some (List.map H.outputAlphabet.invFun (encode output)))
(timeOverhead.eval (bitSize input + time))) := by sorry
end Lax759944Proofs.GenericTimeSimulationSource