Sparse RAM public-input initialization -- proof internals #
A zero input bit preserves the streaming frame and advances only the current register address.
A one input bit appends the current (address, 1) entry and advances the
entry count and current address, restoring every reusable source cursor.
The custom scanner consumes exactly the advertised Boolean suffix, streaming its nonzero entries into the sparse-store buffer.
The setup phase turns the standard all-heads-on-marker configuration into the exact address-one/count-zero streaming boundary.
Emit the length register into the sparse buffer and increment the runtime entry count, restoring both encoder sources exactly.
Optional length emission skips zero and appends exactly one nonzero
R₀ entry otherwise.
Restore the post-loop address and install the optional length entry.
Install the completed sparse buffer into the exact clean program-loop snapshot image.
Complete public-input initialization reaches the exact sparse snapshot image consumed by the reusable program loop.