Existential AC0 layer advancement with live variables #
The probabilistic switching theorem is useful for depth reduction only after one extracts a concrete refinement that both advances the semantic layer invariant and keeps enough variables live. This module performs exactly that averaging step.
For current live count m, requested survivor count k, and charged
switching failure bound delta, the sole numerical premise is
delta * m + k < p * m.
No restriction is computed or searched for: existence follows from the exact first moment of the survivor count and the proved bad-event probability.
Increasing the common tree-depth allowance preserves the semantic layer invariant.
Charged-size failure bound for one semantic switching step.
Equations
- Algebraic.AC0.Program.layerFailureBound program p bound = ↑(Cslib.Circuits.Program.cost Algebraic.AC0.andOrCost program) * (5 * ↑p * ↑bound) ^ (bound + 1)
Instances For
A one-step switching estimate plus sufficient first-moment room produces one refinement that advances the invariant and retains the requested number of live variables. This raw form permits arbitrary internal NOT gates.
Compatibility wrapper for the checked input-negation presentation.