Dense public-input lookup #
This module exposes the fixed leaves used to look through a sparse tagged overlay into the immutable public-input bank.
The direct-branch identity leaf preserves a fully parked frame exactly.
Copy the preceding Boolean input symbol into one canonical work tape and restore the read-only input head in exactly two transitions.
The canonical captured-bit tape represents exactly zero or one.
Every captured-bit tape is parked at its first data cell.
One scan body step decrements a positive countdown, captures the preceding input bit exactly when the countdown reaches zero, and preserves every frame.
A positive RAM address can be looked up by one exact scan of the immutable
input bank. The scanner leaves the input contents unchanged, parks at the first
blank, decrements its counter once per bit, and returns RAM.initRegs.
Dense-bank lookup is linear in the public-input length and logarithmic in the queried positive address.
Full dense-bank fallback preserves the query and scratch tapes, restores the input head and countdown tape, and returns the standard RAM input value.