Successful gate-stream execution #
This file lifts the pure one-gate bridge to every successful counted gate stream. The loop invariant tracks the code suffix, exact memo frontier, consumed unary counter, last-value/output correspondence, and a fixed maximum memo length. The resulting budget is quadratic once the maximum memo length is bounded by input length plus gate count.
Uniform budget for a successful suffix of the gate loop.
Equations
Instances For
Budget from a positive-family tag through unary-count setup and a successful gate loop.
Equations
- Complexity.CircuitCode.Machine.Internal.positiveGateRunBudget gateCount inputLength = 2 * gateCount + 4 + Complexity.CircuitCode.Machine.Internal.gateLoopBudget gateCount (inputLength + gateCount)
Instances For
Budget from the staging append frontiers through a successful positive family evaluation.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The successful positive-core budget is quadratically bounded by the serialized code and input lengths once the unary gate count fits in the code.
Every successful pure counted gate stream has a matching machine run to the halted controller. The final code is exhausted, the counter is fully consumed, the wire memo remains at its append frontier, and output cell one contains the pure answer.
A positive-family tag whose counted pure stream succeeds runs through counter construction, every gate, and the exhausted-counter check within the named quadratic budget.
From the staging append frontiers, a successful positive-family stream reaches its exact verdict within the full quadratic core budget.