Direct-unrolling read-formula generator -- definitions #
This layer implements the horizon-dependent tape-read formula without a
run-time syntax tree or stack. A forward loop emits the three-gate member for
each possible head position. A false identity gate then seeds a stack-free
right fold: reference₀ rolls backward through member outputs while the
current wire frontier supplies the preceding connector.
Only the first loop pair, the position counter, both references, and
temporaries zero through two are owned as scratch. In particular,
temporary₃ remains available to an enclosing transition generator.
Clean entry state for the scratch tapes owned by read-formula emission. Arithmetic and emission counters are included because the underlying framed subroutines require them to be zero.
The member-position counter starts at zero.
The connector-rank counter starts at zero.
The shared dynamic-loop limit starts at zero.
The first prepared-reference tape starts at zero.
The second prepared-reference tape starts at zero.
The raw-gate emission counter is reusable.
The framed-copy counter is reusable.
The framed-multiplication counter is reusable.
The framed-addition counter is reusable.
The first arithmetic temporary starts at zero.
The second arithmetic temporary starts at zero.
The third arithmetic temporary starts at zero.
Instances For
Emit the three-gate read member at the current position.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Replace limit₀ by the current horizon plus one.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Emit every read member while counting position from zero through the
horizon.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Emit the false identity gate used to seed the disjunction fold.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Emit one connector from the member output held in reference₀ and the
immediately preceding identity or connector gate. reference₀ is retained
for the next reverse-rank iteration.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Move the rolling member reference back by one three-gate block and emit the next connector.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Emit one complete numeric read-formula schedule and restore all owned
scratch tapes. The sole lasting effect under ReadFormulaClean is advancing
available.
Equations
- One or more equations did not get rendered due to their size.