Streaming native configurations as query states #
The existing universal simulator already represents native work tapes by finite zippers and keeps the shifted input-head address in binary. This adapter reuses that representation and its native step certificate. Output history is never part of the saved query state. Position zero is the left boundary blank; a read at that position is ignored, and rightward movement from it is allowed. At the right boundary, the optional read stops further rightward movement.
Main definitions #
machine: a streaming query adapter for a native machine description.budget: saved configuration storage extracted from native workspace.
Main results #
configuration_native: full native configuration correspondence, with output held externally.components_inSpace: all five native component certificates.length_native_run_le_of_space: saved-state bound from the original workspace certificate.computableInSpace_of_computes: substitution from ordinary computation/workspace certificates.of_logSpace: substitution from the unchanged ordinary logspace predicate.
This is an original infrastructure construction towards the recomputation argument on printed page 6 of expanded ECCC TR13-047 [GNR+13], not Lemma 3.3.
A numbered binary output symbol, with a total default on nonbinary descriptions.
Suppress the fetched bit at the native left boundary.
Arbitrary machine descriptions, with streaming output and no output history in SCfg.
The optional query read is exactly the native shifted-head read, including both blanks.
One query step is the existing streaming native step, even on halted configurations.
The saved query state is precisely the universal simulator's native work configuration.
Emission is the native step's output symbol, without retaining earlier output.
Streaming output agrees with the existing simulator's accumulated output at every clock.
All five components of an arbitrary fixed description have native certificates. The transition table is a fixed machine constant; it is not an oracle or a substitution premise.
Input-head storage is charged by the actual bounded native input convention, independently of runtime. This estimate does not assume a free bounded head or alter logspace predicates.
On a description of an existing native machine, the workspace term is its own visited-cell space, rather than a stronger resource premise built into a class definition.
On an existing binary native machine, output is preserved at every clock.
The complete native configuration is recovered from the saved state and the external output stream: finite control, input position, work tapes and work-head positions all agree.
The extracted halted flag agrees with native control, at every clock.
An ordinary native workspace certificate bounds the saved encoding by its budget, with the input head charged separately. No bound on the size of the output is needed.
Native virtual-input substitution from an existing machine's own first-halt, output and workspace certificates. The five component certificates and saved-state encoding bound are derived here, not assumed. Constants are uniform across supplied runtime headers and inputs.
Plain native computation and workspace certificates suffice: the first-halt clock is selected internally. No time bound, output-length bound or substitution certificate is assumed.
For each fixed native machine, its budget is linear in workspace plus logarithmic input length. The bounded input-head convention makes a polynomial-time premise unnecessary.
Every ordinary native logspace word function admits virtual-input substitution. This
extracts its actual machine without strengthening ComputableInLogSpace. The saved-state
budget is linear in its original logarithmic workspace plus the binary input-head cost,
by budget_le. Runtime header preparation is still a separate obligation.