One-step probabilistic AC0 layer advancement #
This module packages the standard circuit-level application of the switching
lemma. If every wire through logical layer i has decision-tree depth at most
t after a base restriction rho, then a fresh independent p-restriction
advances the same invariant through layer i + 1, except with probability at
most
andOrCost(program) * (5 * p * t)^(t + 1).
The proof composes exact bounded DNFs through OR gates and exact bounded CNFs through AND gates, applies the single-formula switching lemma at each charged gate, and takes an ordinary finite union bound over exactly the AND/OR gates. Input negations contribute neither probability loss nor source size. All events are semantic decision-tree predicates. Their decidability is classical and noncomputable solely so the exact finite probability can be formed; no tree optimizer, circuit search, or finite lower-bound experiment is defined.
The only AC0 operation that is not a connective is NOT.
Proof-level decidability of the semantic layer invariant. This instance is used only to form exact finite restriction events; it does not search for decision trees.
Equations
- Algebraic.AC0.Program.shallowUpToDecidable program rho level bound = Classical.propDecidable (Algebraic.AC0.Program.ShallowUpTo program rho level bound)
Under checked input-negation normal form, a NOT gate has logical depth zero.
Under checked input-negation normal form, every non-connective gate has logical depth zero.
If every charged gate in the next layer is shallow after an extension, then the semantic shallow-layer invariant advances by one. Arbitrary internal NOT chains are handled directly by topological induction and negating the tree for their source wire.
Compatibility wrapper for the checked input-negation presentation.
Restricting a represented DNF composes exactly with the base restriction.
Restricting a represented CNF composes exactly with the base restriction.
One charged gate in the next logical layer fails the common shallow-tree bound with probability at most the switching-lemma estimate.
The next-layer failure event for one charged gate obeys the same bound; gates outside the layer contribute the empty event.
Union bound over exactly the charged gates in the next logical layer.
One random switching step advances the semantic shallow-tree invariant by one logical layer, except on an event of charged-size times the standard switching-lemma failure probability. This raw form permits arbitrary internal NOT gates.
Compatibility wrapper for the checked input-negation presentation.