Common windows for all native query-loop prefixes #
The bounds here concern every native path, with no bound on its length. Each deterministic routine starts with its heads at the common origin. Its space bound therefore confines its heads to the same window as every other invocation. The choice and continuation instructions move no heads. Repeating the routines does not multiply the window by the number of iterations.
Main results #
Turing.NondeterministicQueryMachine.Native.choose_inWindow: every prefix from a pass boundary stays in the common routine window, assuming a preserved invariant on tape words.
From a word-holding configuration the continuation instruction reads exactly whether the continuation word is empty.
Any prefix begun at a finalizer stays in its deterministic window, including arbitrary halted self-loop padding after the finalizer ends.
Every native pass-loop prefix stays in one fixed window. Each of the two pass routines
preserves Inv on tape words and uses at most s cells when started at the origin. The finalizer
has the same bound. These routines can run arbitrarily many times: the conclusion is independent
of the number of passes and applies to all native choices and all computation prefixes.
The complete native loop uses one common window on every computation prefix. Tidy initialization establishes the word invariant, the selected passes preserve it, and finalization terminates tidily. The number of iterations and their runtimes do not occur in the space bound. This theorem does not assert that the loop terminates.