Sparse RAM program controller #
The fixed-program halt test copies the canonical sparse-snapshot PC, walks a
finite decrementing selector, restores its scratch, and writes 1 exactly when
the selected instruction is halt.
The canonical work-tape image of a sparse snapshot satisfies the complete reusable instruction ABI.
Final sparse lookup recovers R₀ and emits zero exactly for value zero,
or one for any nonzero value.
Final sparse lookup overwrites the loop's halt-test bit with the RAM verdict, allowing direct controller/extractor composition.
The fixed-program test preserves the complete clean instruction ABI and emits the exact sparse snapshot's halt status.
A halted sparse snapshot is stationary under both one pure step and every fuel-bounded run.
Running a halted sparse snapshot for arbitrary additional fuel is a no-op.
If the pure fuel-bounded sparse run is halted, the fixed controller loop reaches that exact reusable snapshot and exposes its halt verdict.