Dynamic recent-wire offsets #
Proof-carrying helpers for subtracting a run-time wire offset and emitting a raw gate with one dynamic and one fixed recent-wire reference.
Dynamic reference subtraction is sound on its explicit domain.
Dynamic subtraction has a pointwise width certificate when its controller segment, starting reference, and preserved offset all fit the shared width.
The subtraction domain explicitly requires distinct registers, a zero controller, and an offset no larger than the starting reference.
Exact dynamic subtraction with the count-up controller restored to zero.
Dynamic subtraction emits no circuit-code bits.
Dynamic recent-reference preparation is sound on its explicit domain.
Dynamic recent-reference preparation has a pointwise width certificate when the available wire, old destination, zero controller, and offset fit the shared width.
The preparation domain records every register separation, both zero controllers, and the valid dynamic offset.
Exact dynamic recent-wire reference with its controller restored to zero.
Dynamic recent-reference preparation emits no circuit-code bits.
One-dynamic-offset raw-gate emission is sound.
One-dynamic-offset gate emission has a pointwise width certificate when its wire frontier, references, zero controller, and both offsets fit the shared width.
Exact domain for one-dynamic-offset raw-gate emission.
Dynamic recent-gate emission advances available, restores the loop
controller, and clears both reference tapes.
Exact raw gate emitted from the dynamic and fixed recent-wire offsets.