Documentation

CslibFrontier.Computability.Circuit.Boolean.AffineDisperser4n.Step

Case 5b and Lemma 4.2 (State.Valid.exists_step) for 4n - 9d gate elimination #

In a normal state S with d < S.a, S.gates is nonempty (State.Valid.exists_gate_of_normal), and its minimal gate G reads no other gates (State.exists_minGate) and is non-affine.

Combining with Cases 1–5a gives Lemma 4.2 (State.Valid.exists_step).

Main definitions #

Main results #

References #

Minimal gate and auxiliary inputs #

Indicator (0 or 1) of whether a gate argument is an auxiliary variable of S.

The number of arguments of gate G that belong to S.aux (0, 1, or 2).

In a normal state with d < S.a, S.gates is nonempty.

theorem Cslib.Circuits.Boolean.AffineDisperser4n.State.Valid.minGate_reads {n : ℕ} {S : State n} {f : BooleanFunction n} (hS : AffineDisperserCore.State.Valid S f) (hne : S.gates.Nonempty) :
have G := S.gates.min' hne; G ∈ S.gates ∧ ∀ (i : ℕ), (S.gate G).Reads i → i ∉ S.gates

The minimum gate identifier in S.gates reads no gates.

theorem Cslib.Circuits.Boolean.AffineDisperser4n.State.Valid.step_deleteGate_affineIn {n : ℕ} {S : State n} {f : BooleanFunction n} (hS : AffineDisperserCore.State.Valid S f) {G a b : ℕ} {c : Bool} {T : Finset ℕ} (hG : G ∈ S.gates) (hab : a ≠ b) (hGa : (S.gate G).Reads a) (hGb : (S.gate G).Reads b) (haff : SemiCircuit.AffineIn a c T) (hT : T ⊆ {b}) :

When gate G reads distinct inputs a ≠ b and the affine representation c + ∑ T of a uses no parameter other than b, deleting G in favour of the literal obtained by substituting that representation for a is a valid step.

theorem Cslib.Circuits.Boolean.AffineDisperser4n.State.Valid.preparation_swap_auxIn_of {n : ℕ} {S : State n} {f : BooleanFunction n} (hS : AffineDisperserCore.State.Valid S f) (hne : S.gates.Nonempty) {a b y : ℕ} {c : Bool} {T : Finset ℕ} (hab : a ≠ b) (hGa : (S.gate (S.gates.min' hne)).Reads a) (hGb : (S.gate (S.gates.min' hne)).Reads b) (ha_aux : a ∈ S.aux) (haff : SemiCircuit.AffineIn a c T) (hyT : y ∈ T) (hyb : y ≠ b) (hyunp : y ∈ AffineDisperserCore.State.unpaired S) :

Swapping an auxiliary input a of the minimal gate with a parameter y of a's affine representation, unpaired and distinct from the gate's other input b, is a preparatory operation keeping gates unchanged and strictly lowering auxIn of the minimal gate.

Swapping an auxiliary input of the minimal gate with a suitable parameter preserves validity, keeps gates and potential non-increasing, and strictly lowers auxIn G.

Case 5b: Pair creation (PC) on the minimal gate #

theorem Cslib.Circuits.Boolean.AffineDisperser4n.State.Valid.step_pairCreation_of {n : ℕ} {S : State n} {f : BooleanFunction n} (hS : AffineDisperserCore.State.Valid S f) {G t₁ t₂ : ℕ} (hG : G ∈ S.gates) (htne : t₁ ≠ t₂) (hGt₁ : (S.gate G).Reads t₁) (hGt₂ : (S.gate G).Reads t₂) (ht₁unp : t₁ ∈ AffineDisperserCore.State.unpaired S) (ht₂unp : t₂ ∈ AffineDisperserCore.State.unpaired S) {α β γ : Bool} (hG_eval : ∀ (val : ℕ → Bool), (S.gate G).eval val = ((val t₁ ^^ α) && (val t₂ ^^ β) ^^ γ)) {K : ℕ} (hK : K ∈ S.gates) (hKr : (S.gate K).Reads G) :
AffineDisperserCore.State.Step f S (((AffineDisperserCore.State.addPair S { fst := t₁, fstBias := α, snd := t₂, sndBias := β }).deleteGate G (SemiCircuit.Lit.const γ)).deleteConstraint (Sum.inl K))

Pair creation (PC) on two distinct unpaired inputs t₁, t₂ of a gate G computing ((t₁ ⊕ α) ∧ (t₂ ⊕ β)) ⊕ γ, followed by deleting G (now constant γ) and a gate K reading G, is a valid step with Δm = 0, Δs = -2, Δa = -1, and ΔW ≤ -9.

theorem Cslib.Circuits.Boolean.AffineDisperser4n.State.Valid.step_of_pairCreation {n : ℕ} {S : State n} {f : BooleanFunction n} {d : ℕ} (hS : AffineDisperserCore.State.Valid S f) (hf : BitString.IsAffineDisperser f d) (ha : d < AffineDisperserCore.State.a S) (hN : S.Normal) {G t₁ t₂ : ℕ} (hG : G ∈ S.gates) (hnotaff : ¬SemiCircuit.IsAffineOp (S.gate G).op) (htne : t₁ ≠ t₂) (hGt₁ : (S.gate G).Reads t₁) (hGt₂ : (S.gate G).Reads t₂) (ht₁par : t₁ ∈ S.params) (ht₂par : t₂ ∈ S.params) :

When the minimal gate G is non-affine and reads two distinct parameters t₁, t₂, pair creation (PC) plus deleting G and a gate reading G gives a valid step with Δm = 0, Δs = -2, Δa = -1, and ΔW ≤ -9.

Lemma 4.2: Every valid state with d < S.a admits a step #

Lemma 4.2 (framework per issue #4322, unverified against [MS27]; tightened here from ΔW ≤ 10 Δa to ΔW ≤ 9 Δa): if S is a valid state for a d-affine disperser f and d < S.a, then there is a valid step from S strictly reducing m + s with Δa ∈ {0, -1, -2} and ΔW ≤ 9 Δa.