Direct-unrolling finalization generator #
This module exposes the verified acceptance, dead-padding, and terminal-copy
phase of the executable direct-unrolling serializer. Padding is driven by the
binary available counter and the precomputed closed frontier, so the routine
uses logarithmic-width work values and performs no preliminary counting pass.
Preparing the two numeric acceptance references is sound.
The arithmetic preparation domain follows from its two reusable zero counters.
Exact pure endpoint of acceptance-reference preparation.
Reference preparation emits no code bits.
Saving and emitting the original acceptance gate is sound.
The acceptance phase's reusable-counter domain.
Exact pure endpoint after the original acceptance gate.
The acceptance phase emits exactly the numeric acceptance gate.
The dead-gate loop is sound.
The dead-gate loop's controller and emission precondition.
Padding retains a fixed-width pointwise space certificate whenever its closed frontier and preserved zero reference fit that width. The number of emitted dead gates does not contribute additively to auxiliary space.
From a zero reference, padding emits exactly the closed-frontier shortfall as constant-false raw gates.
The terminal acceptance-wire copy is sound.
Exact terminal copy emitted from the saved output reference.
The complete finalization phase is sound.
Finalization is available whenever all reusable counters are zero and the acceptance gate still fits below the closed padding frontier.
If every incoming work value is bounded by one fixed polynomial, then the full acceptance, padding, terminal-copy, and cleanup phase has a pointwise polynomial-width auxiliary-space certificate.
Polynomially bounded incoming work values make the complete finalization phase logarithmic-space, provided the incoming auxiliary-space budget is already logarithmic.
Exact acceptance, padding, and terminal-copy word from an arbitrary pure entry vector.
Under the numeric tableau endpoint equations, finalization emits exactly the serializer's acceptance gate and padded suffix.