Word RAMs simulate space-bounded multi-tape Turing machines #
Cslib.WordRAM.OfTuring.executes_simProgram bounds the simulated work-tape addresses by the
running time t, so its words must hold simBound k m |x| t. A run that visits at most s work
cells keeps every work head within [-s, s], so the same simulator works when the words hold only
simBound k m |x| s. With polynomial work space, the word size can then stay logarithmic in the
input length while the running time is arbitrary, for example 2 ^ o(n).
The proof of Cslib.WordRAM.OfTuring.executes_simProgram_of_runsInSpace is that of
Cslib.WordRAM.OfTuring.executes_simProgram, with the time bound on the head positions replaced
by the space bound.
Main results #
Turing.MultiTapeTM.natAbs_workTapePos_runFrom_le_of_runsInSpace: a run in spaceskeeps every work head within distancesof the origin.Cslib.WordRAM.OfTuring.executes_simProgram_of_runsInSpace: the simulator of a halting run in spaces, at every word size whose words holdsimBound k m |x| s.Cslib.WordRAM.uniformDecidableInTimeLogWord_of_decidableInTimeAndSpace: a problem decided by a multi-tape machine in timetand polynomial work space is decided by one fixed program overBasis.additivewithinC * t + Cinstructions, at every word size above a logarithmic threshold.
A run in space s keeps every work head within distance s of the origin, at every step.
The simulator in space-bounded words. As Cslib.WordRAM.OfTuring.executes_simProgram, but
the words need only hold simBound k m |inp| s for a space bound s of the run, instead of
simBound k m |inp| t for its running time t. The instruction count is still
simTime k m t.
Space-bounded Turing deciders on the word RAM. If a multi-tape machine decides A within
time t a and work space s a ≤ D * (|enc a| + 1) ^ e, then one fixed program over
Basis.additive, run on the bits of enc a, decides A within C * t a + C instructions at
every word size w ≥ logWidth k |enc a|, for constants C and k > 0. Unlike
Cslib.WordRAM.DTIME_subset_RAMTIME_additive, the running time need not be polynomially bounded:
the words only hold the addresses of visited cells, which the space bound controls.