Numeric schedules for streaming tableau serialization #
This module exposes exact, machine-oriented schedules for the two variable-length suffixes used by formula compilation. Both schedules are driven by natural counters and a numeric size oracle: no formula tree or raw circuit appears in their run-time state.
For a right-associated conjunction or disjunction, connector rank zero visits the final source member and references the identity gate; later ranks move backward through source members and reference the preceding connector. For a compiled batch, copy indices move forward and reconstruct each delayed formula output from a prefix-size sum.
These are proof-level schedule identities, not yet a Turing-machine serializer. They isolate the exact arithmetic that the later finite controller must realize.
Main results #
rightFoldConnectors_eq_indexedidentifies the existing recursive connector list with the upward-counting numeric schedule.compileRaw_conjs_eq_indexedandcompileRaw_disjs_eq_indexedexpose exact finite-fold compilation in the numeric order.compileRawOutputs_copies_eq_indexedidentifies delayed batch copies.compileRawBatch_eq_indexedexposes formula compilation followed by that numeric copy schedule.
Prefix-size accumulation is an ordinary sum over an increasing counter.
A numeric schedule prefix is the sum over its canonical finite index.
Extending a numeric schedule can only increase its accumulated size.
An in-range reverse rank selects an in-range source member.
A reverse member and its upward rank partition the source count.
The total of the formula-size oracle is the sum of all formula sizes.
Rank lookup in the numeric right-fold connector schedule.
Literal equality between recursive formula connectors and their natural-index schedule. Formula syntax appears only here as the proof adapter supplying sizes.
A finite Boolean fold is forward member compilation, one identity gate, and the natural-index reverse connector schedule.
Exact conjunction compilation using the natural-index connector schedule.
Exact disjunction compilation using the natural-index connector schedule.
Index lookup in the forward delayed-copy schedule.
The batch compiler's recorded output wires become exactly the numeric
forward copy schedule after applying RawGate.copy.
Batch compilation is all formula fragments followed by the numeric delayed copy schedule in source-formula order.