Correctness of the native local gate subroutine #
The subroutine queries the original input and emits the existing Boolean label of the native leaving view precisely when all movement labels hold. The fixed template supplies no free input-dependent initial data: initialization and run time are explicit in the statements.
A local call stops at its requested runtime width, even if native control halted earlier.
Before the requested duration, the local call remains live. Together with the stopping lemma this supplies the exact first-halt contract for state-returning query calls.
Finishing a loaded replay emits exactly the encoded leaving view on successful all-head motion validation, and the exact FAIL code otherwise. Retained context and windows are explicit.
Every physical subroutine clock charges retained context plus the actual replay state.