Numeric moved-head schedules #
This module exposes a natural-index stream for movedHeadFormula. The three
direction members are compiled forward; each contains an effect phase, a
predecessor-head phase, and one conjunction gate. A false identity and three
reverse disjunction connectors complete the stream.
Main results #
length_movedHeadFormulaSchedulegives the exact total gate count.- The member and child-phase lookup theorems expose the streaming boundaries.
compileRaw_movedHeadFormula_eq_scheduleproves literal raw-list equality.
One in-range direction block has its advertised numeric size.
The complete forward member phase is the prefix sum of its three sizes.
A natural direction counter and in-block offset recover the corresponding member gate.
Offsets before the effect-size boundary select the effect child stream.
The next fixed-width offsets select the predecessor-head child stream.
The final offset of each direction block is its conjunction gate.
The complete stream is members, one false identity, and three connectors.
The gate after the forward member phase is the false identity.
Connector rank is a natural upward counter visiting direction members in reverse order.
Exact raw compilation order of a non-halted moved-head formula.