Zero-locus reductions and 0/5 potential accounting for 4n - 9d #
Specialization of Cslib.Circuits.Boolean.AffineDisperserCore.State.Reduction to 4n - 9d
states with zero-locus pairs and 0/5 degree weights:
State.Reduction.wt_le: non-partners never gain weight, even when deletions reroute to them;State.Reduction.step_of_delete: deleting any deletable constraint is always a step;State.Valid.reduction_restrict,State.Valid.fixConst,State.Valid.reduction_fixConst: zero-locus restrictions(UF)and(PF).
Main results #
Cslib.Circuits.Boolean.AffineDisperser4n.State.Reduction.wt_le: non-partners never gain weight.Cslib.Circuits.Boolean.AffineDisperser4n.State.Reduction.step_of_delete: single deletion step.Cslib.Circuits.Boolean.AffineDisperser4n.State.Valid.fixConst,Cslib.Circuits.Boolean.AffineDisperser4n.State.Valid.reduction_restrict,Cslib.Circuits.Boolean.AffineDisperser4n.State.Valid.reduction_fixConst: restrictions(UF)and(PF).
0/5 weight and single-deletion step #
theorem Cslib.Circuits.Boolean.AffineDisperser4n.State.Reduction.wt_le {n : ℕ} {f : BooleanFunction n} {S S' : State n} {F : Finset ℕ} {D T : List (ℕ ⊕ ℕ)} (h : AffineDisperserCore.State.Reduction f S S' F D T) (hS : AffineDisperserCore.State.Valid S f) {u : ℕ} (hpart : ∀ x ∈ F, ¬AffineDisperserCore.State.IsPartner S x u) :
Under 0/5 weights, a parameter that is not the partner of a member of F never gains
weight, even if deletions reroute to it.
theorem Cslib.Circuits.Boolean.AffineDisperser4n.State.Reduction.step_of_delete {n : ℕ} {f : BooleanFunction n} {S S' : State n} {N : ℕ ⊕ ℕ} (h : AffineDisperserCore.State.Reduction f S S' ∅ [N] [N]) (hS : AffineDisperserCore.State.Valid S f) :
Deleting a single constraint is always a step of gate elimination under 0/5 weights:
no parameter can gain weight.
Restrictions (UF) and (PF) #
theorem Cslib.Circuits.Boolean.AffineDisperser4n.State.Valid.reduction_restrict {n : ℕ} {f : BooleanFunction n} {S : State n} (hS : AffineDisperserCore.State.Valid S f) {x : ℕ} (hx : x ∈ S.params) {ℓ : SemiCircuit.Lit} (hℓ : ∀ (y : ℕ), ℓ.Reads y → y ∈ S.params ∧ y ≠ x ∧ S.children x ⊆ S.children y) (hdrop :
∀ pr ∈ S.pairs, ZeroPair.Contains pr x → ∀ (val : ℕ → Bool), ZeroPair.Holds pr (Function.update val x (ℓ.eval val))) :
Restricting a parameter x to a constant or to a literal of a remaining parameter y having
at least x's children is a reduction whenever every pair containing x is satisfied on the
substitution.
theorem Cslib.Circuits.Boolean.AffineDisperser4n.State.Valid.fixConst {n : ℕ} {f : BooleanFunction n} {S : State n} (hS : AffineDisperserCore.State.Valid S f) {w : ℕ} (hw : w ∈ S.params) {b : Bool} (hb : ∀ pr ∈ S.pairs, ZeroPair.Contains pr w → b = ZeroPair.bias pr w) :
(AffineDisperserCore.State.fixConst S w b).Valid f
Fixing a parameter to a constant preserves validity when any pair containing it has matching bias.
theorem Cslib.Circuits.Boolean.AffineDisperser4n.State.Valid.reduction_fixConst {n : ℕ} {f : BooleanFunction n} {S : State n} (hS : AffineDisperserCore.State.Valid S f) {w : ℕ} (hw : w ∈ S.params) {b : Bool} (hb : ∀ pr ∈ S.pairs, ZeroPair.Contains pr w → b = ZeroPair.bias pr w) :
Fixing a parameter to a constant (with matching bias if paired) is a reduction.