Structure of bounded-trace acceptance circuits #
This internal module proves that appending the final halt-and-output test adds exactly one gate, preserves topological well-formedness, and retains a cubic machine-dependent size bound.
A final acceptance gate is well formed whenever its packed configuration block lies in the existing wire prefix.
The canonical final acceptance gate points only into the final packed configuration block at the end of the trace fragment.
Appending the final test adds exactly one gate to the complete trace.
The complete trace plus its final acceptance gate is topologically ordered after the primary-wire prefix.
The appended acceptance gate makes the raw circuit nonempty, so topology upgrades directly to full raw-circuit well-formedness.
The final acceptance gate is absorbed into a machine-dependent cubic gate-count bound.