Documentation

CslibFrontier.Computability.Circuit.Boolean.AffineDisperser.Reparameterisation

Reparameterisation of 3.5n gate-elimination states #

Two reparameterisation operations for 3.5n states:

Main definitions #

Main results #

References #

Affine reparameterisation (AR) #

The affine reparameterisation preserves validity.

Quadratic reparameterisation (QR) #

def Cslib.Circuits.Boolean.AffineDisperser.State.quad {n : ℕ} (S : State n) (x y z G D : ℕ) (α β γ c : Bool) :

The quadratic reparameterisation: for an AND-type gate G = (x + α)(y + β) + γ whose only child is the XOR-type gate D = G + z + c, where z is an isolated parameter, substitute z = D + G + c in the parameter map, turn D into a parameter (it computes the new parameter w of the source), delete the gates G and D, and pair x with y.

structure Cslib.Circuits.Boolean.AffineDisperser.State.QuadOK {n : ℕ} (S : State n) (x y z G D : ℕ) (α β γ c : Bool) extends S.QuadOK x y z G D α β γ c :

The hypotheses of the quadratic reparameterisation: the configuration of SemiCircuit.QuadOK on unpaired parameters.

@[simp]
theorem Cslib.Circuits.Boolean.AffineDisperser.State.quad_params {n : ℕ} (S : State n) (x y z G D : ℕ) (α β γ c : Bool) :
(S.quad x y z G D α β γ c).params = insert D (S.params.erase z)

The quadratic reparameterisation replaces z with D in S.params.

@[simp]
theorem Cslib.Circuits.Boolean.AffineDisperser.State.quad_pairs {n : ℕ} (S : State n) (x y z G D : ℕ) (α β γ c : Bool) :
(S.quad x y z G D α β γ c).pairs = insert (x, y) S.pairs

The quadratic reparameterisation inserts (x, y) into S.pairs.

theorem Cslib.Circuits.Boolean.AffineDisperser.State.quad_size {n : ℕ} {S : State n} {x y z G D : ℕ} {α β γ c : Bool} (h : S.QuadOK x y z G D α β γ c) :
(S.quad x y z G D α β γ c).size + 2 = S.size

The quadratic reparameterisation decreases the size of the state by 2.

theorem Cslib.Circuits.Boolean.AffineDisperser.State.quad_children_subset {n : ℕ} (S : State n) (x y z G D : ℕ) (α β γ c : Bool) (w : ℕ) :
(S.quad x y z G D α β γ c).children w ⊆ ((S.children w).erase (Sum.inl D)).erase (Sum.inl G)

After the quadratic reparameterisation, the children of w are contained in S.children w with .inl D and .inl G removed.

theorem Cslib.Circuits.Boolean.AffineDisperser.State.Valid.quad {n : ℕ} {f : BooleanFunction n} {S : State n} (hS : AffineDisperserCore.State.Valid S f) {x y z G D : ℕ} {α β γ c : Bool} (h : S.QuadOK x y z G D α β γ c) :
AffineDisperserCore.State.Valid (S.quad x y z G D α β γ c) f

The quadratic reparameterisation preserves validity.