Native finite-state compilation of nondeterministic query machines #
Local linear-space callbacks compile to native binary-choice passes. The abstract state remains on the work tapes; finite native control stores only callback control states and routing states.
The abstract run may start in a state depending on the input, written by a native initializer computable in the target space; the passes and the finalizer do not depend on the input.
Main results #
Turing.NondeterministicQueryMachine.exists_recognizesInSpace: the native compiler preserves existential acceptance and bounds every computation prefix, with no halting hypothesis.Turing.NondeterministicQueryMachine.exists_decidesInSpace: given a common abstract clock, the compiled recognizer also halts on every branch.
The compiled native nondeterministic machine.
Instances For
The boundary invariant includes both possible continuation flags. Only the post-pass flag is used to choose whether to continue. Initialization enters the first pass unconditionally.
Instances For
All native prefixes remain in the shared workspace window.
Decode a boundary state for proof purposes only. It is never stored in finite control.
Instances For
A common abstract clock yields an all-branches native clock, without an encoded clock.
Reverse simulation of every halted native branch, including arbitrary native prefixes within routines. Passes do not emit; the final bit belongs to a reachable halted abstract state.
Every finite abstract branch ending halted is realized by a native branch. The initially halted case uses one harmless self-loop pass, matching the unconditional native first pass.
Native acceptance is exactly existential halted acceptance of the query machine.
The compiled machine recognizes A in O(S) visited-cell space whenever the abstract run on
enc a, started in start a, accepts exactly the members of A. No halting is required.
Native finite-state compilation of recognizers. Linear-space local callbacks, a start
state computable in space O(S), and a uniform bound on all encoded abstract prefixes yield a
native nondeterministic recognizer in O(S) visited-cell space. Abstract branches need not halt.
Neither an abstract state nor a choice history is stored in native finite control.
Native finite-state compilation of deciders. Under the hypotheses of
exists_recognizesInSpace, a common abstract clock on every input makes the compiled recognizer
halt on every branch. The clock is used only in the proof; it is not stored in native finite
control.