Reading a fixed prefix and a stored suffix #
The original word is read-only input. Only a binary prefix length, a stored suffix and a binary
address enter the accessor state. machine emits one bit and halts: it reads the original input
at prefix addresses and indexes the stored suffix otherwise. All five query-machine components
have native charged space certificates linear in this small state, independently of the length
of the original word. word is a semantic specification and is never computed into workspace.
The false default agrees with Turing.ReadMachine.
This is the virtual-input access operation needed in the proof of Lemma 3.3 of [GNR+13], expanded ECCC TR13-047, printed page 6. The paper's fixed prefix ends before its ceiling-logarithmic suffix. Initialization, query and answer regeneration, suffix iteration and adaptive-to-tt conversion are separate obligations.
State of the single-bit accessor: stored request data and a halting flag.
Select the original input bit or a bit of the stored suffix, defaulting to false.
One native input read suffices. The read is ignored at suffix addresses.
The selector is natively computable in charged space linear in the stored data and bit.
All components of the accessor have native certificates in the small stored state.
Explicit storage bound: two binary counters, the suffix, and a halting bit.
For each fixed stored data d, the answer bit answer d (x.getD d.address false) is computable
from x within work space c * ((encState ⟨d, false⟩).length + Nat.log2 x.length + 1), where the
machine, the time bound and the constant c may all depend on d. The original input is not
part of the charged workspace. This theorem supplies actual multi-tape machines, using the
query-machine compiler, rather than assuming an access certificate. One machine and one constant
for all data, read from the input tape, are given by
Turing.VirtualWord.Runtime.access_inSpace.
A ceiling-logarithmic suffix and addresses at most the input length give an explicit logarithmic state bound, including lengths zero and one.
A concrete logspace certificate on any input domain satisfying the stored-data bounds. The domain hypotheses restrict data sizes, not correctness or an assumed resource certificate.