Documentation

CslibFrontier.Computability.Circuit.Boolean.AffineDisperser4n.State

States of 4n - 9d gate elimination with zero-locus pair semantics #

Specialization of the pair-type-generic gate-elimination state (Cslib.Circuits.Boolean.AffineDisperserCore.State) for the 4n zero-locus gate-elimination framework of Mishra and Santhanam (issue #4322), refined here from (α, β, ca) = (6, 4, 10) (4n - 10d) to (5, 3, 9) (4n - 9d):

Main definitions #

Main results #

References #

Weights #

The 0/5 weight of an unpaired parameter of degree k: 0 if unused (k = 0) and 5 if used (k ≥ 1).

@[simp]

An unused parameter (k = 0) has weight 0.

A used parameter (1 ≤ k) has weight 5.

The degree weight function weight is monotone.

Every degree weight weight k is at most 5.

Zero-locus pairs #

A pair of parameters together with biases: on the zero locus Z(P), at least one member equals its bias (val fst = fstBias ∨ val snd = sndBias), i.e., (val fst ^^ fstBias) && (val snd ^^ sndBias) = false.

  • fst : ℕ

    The first parameter of the pair.

  • fstBias : Bool

    The bias of the first parameter.

  • snd : ℕ

    The second parameter of the pair.

  • sndBias : Bool

    The bias of the second parameter.

The zero-locus constraint of a pair: at least one member takes its bias.

Instances For
    @[instance_reducible]

    Decidability of ZeroPair.Holds.

    Equivalence between pr.Holds val and vanishing of the biased product.

    theorem Cslib.Circuits.Boolean.AffineDisperser4n.ZeroPair.holds_congr {pr : ZeroPair} {val val' : ℕ → Bool} (h₁ : val pr.fst = val' pr.fst) (h₂ : val pr.snd = val' pr.snd) :
    pr.Holds val ↔ pr.Holds val'

    pr.Holds depends only on the values assigned to pr.fst and pr.snd.

    Whether x is one of the two parameters in pr.

    Instances For

      The bias of x in pr (assuming pr.Contains x).

      The partner of x in pr (assuming pr.Contains x).

      The bias of the partner of x in pr (assuming pr.Contains x).

      The partner of a member of pr is also contained in pr.

      In a pair with distinct endpoints, the partner of x differs from x.

      Taking the partner twice returns x.

      The bias of pr.partner x in pr is pr.partnerBias x.

      theorem Cslib.Circuits.Boolean.AffineDisperser4n.ZeroPair.holds_iff_contains {pr : ZeroPair} {x : ℕ} (hx : pr.Contains x) (val : ℕ → Bool) :
      pr.Holds val ↔ val x = pr.bias x ∨ val (pr.partner x) = pr.partnerBias x

      Rewriting pr.Holds val in terms of x and pr.partner x.

      theorem Cslib.Circuits.Boolean.AffineDisperser4n.ZeroPair.holds_of_eq_bias {pr : ZeroPair} {x : ℕ} (hx : pr.Contains x) {val : ℕ → Bool} (h : val x = pr.bias x) :
      pr.Holds val

      Fixing x to its bias satisfies pr.Holds.

      theorem Cslib.Circuits.Boolean.AffineDisperser4n.ZeroPair.holds_of_eq_partnerBias {pr : ZeroPair} {x : ℕ} (hx : pr.Contains x) {val : ℕ → Bool} (h : val (pr.partner x) = pr.partnerBias x) :
      pr.Holds val

      Fixing pr.partner x to pr.partnerBias x satisfies pr.Holds.

      theorem Cslib.Circuits.Boolean.AffineDisperser4n.ZeroPair.holds_of_eq_xor {pr : ZeroPair} {x : ℕ} (hx : pr.Contains x) {val : ℕ → Bool} (h : val x = (val (pr.partner x) ^^ !(pr.bias x ^^ pr.partnerBias x))) :
      pr.Holds val

      Choosing x = partner ^^ !(bias x ^^ partnerBias x) forces at least one endpoint to take its bias, satisfying pr.Holds.

      4n configuration and state #

      @[reducible]

      Configuration for 4n - 9d gate elimination: zero-locus pairs, 0/5 weights, potential s + 3 q + ∑ wt, potential slope 9, and global affinity of Φ.

      The size coefficient in the 4n potential W is 1.

      The pair coefficient in the 4n potential W is 3.

      The potential slope in the 4n gate elimination step is 9.

      @[reducible, inline]

      A state of 4n - 9d gate elimination for a Boolean function on n bits.

      Lemma 2.2 and hyperplane lemmas #

      Lemma 2.2 (label per issue #4322, unverified against [MS27]): the image Φ(Z(P)) of the zero locus under the parameter map of a valid state contains the image of an injective affine map from BitString a.

      The output of a valid state for an affine disperser for dimension d ≤ a is not constant on Z(P).

      theorem Cslib.Circuits.Boolean.AffineDisperser4n.State.Valid.exists_affine_subspace_const_of_fix {n : ℕ} {S : State n} {f : BooleanFunction n} {d : ℕ} (hS : AffineDisperserCore.State.Valid S f) (ha : d < AffineDisperserCore.State.a S) {x : ℕ} (hx : x ∈ S.params) (c : Bool) (R : Finset ℕ) (hR : R ⊆ S.params) (hxR : x ∉ R) (b : Bool) (hout : ∀ (val : ℕ → Bool), S.Consistent val → AffineDisperserCore.State.Locus S val → val x = c + ∑ j ∈ R, val j → S.out.eval val = b) :
      ∃ (g : BitString d → BitString n), BitString.IsAffine g ∧ Function.Injective g ∧ ∀ (u : BitString d), ∃ (val : ℕ → Bool), S.Consistent val ∧ AffineDisperserCore.State.Locus S val ∧ S.out.eval val = b ∧ g u = S.phi val

      If d < a and the output of a valid state is constant b on consistent assignments in Z(P) satisfying one affine equation x = c + ∑ j ∈ R, val j, then there is an injective affine map BitString d → BitString n into Φ(Z(P)) whose consistent lifts all evaluate to b.

      theorem Cslib.Circuits.Boolean.AffineDisperser4n.State.Valid.false_of_fix {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) {x : ℕ} (hx : x ∈ S.params) (c : Bool) (R : Finset ℕ) (hR : R ⊆ S.params) (hxR : x ∉ R) (b : Bool) (hout : ∀ (val : ℕ → Bool), S.Consistent val → AffineDisperserCore.State.Locus S val → val x = c + ∑ j ∈ R, val j → S.out.eval val = b) :

      If d < a, the output of a valid state for an affine disperser for dimension d is not constant on the consistent assignments in Z(P) satisfying one more affine equation x = c + ∑ j ∈ R, u j.

      theorem Cslib.Circuits.Boolean.AffineDisperser4n.State.Valid.out_not_affine {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) (c : Bool) {T : Finset ℕ} (hT : T ⊆ S.params) :
      ¬∀ (val : ℕ → Bool), S.Consistent val → AffineDisperserCore.State.Locus S val → S.out.eval val = c + ∑ j ∈ T, val j

      If d < a, the output of a valid state for an affine disperser for dimension d is not an affine function of the parameters on Z(P).