Reparameterisation of 3.5n gate-elimination states #
Two reparameterisation operations for 3.5n states:
State.Valid.swap: specialization of the shared affine reparameterisation(AR)(AffineDisperserCore.State.swap) preservingPairTameaffinity;State.quad: the quadratic reparameterisation(QR)([MS26a], §2.4 eq. (3), §3.2, and §4.3), substitutingz = D + (x + α)(y + β) + γ + c, movingDinto the parameters, deletingGandD, and pairingxwithy.
Main definitions #
Cslib.Circuits.Boolean.AffineDisperser.State.quad,Cslib.Circuits.Boolean.AffineDisperser.State.QuadOK: the quadratic reparameterisation and its hypotheses.
Main results #
Cslib.Circuits.Boolean.AffineDisperser.State.Valid.swap:(AR)preserves validity.Cslib.Circuits.Boolean.AffineDisperser.State.Valid.quad:(QR)preserves validity.
References #
Affine reparameterisation (AR) #
theorem Cslib.Circuits.Boolean.AffineDisperser.State.Valid.swap {n : ℕ} {f : BooleanFunction n} {S : State n} (hS : AffineDisperserCore.State.Valid S f) {x Q : ℕ} {c : Bool} {T : Finset ℕ} (h : AffineDisperserCore.State.SwapOK S x Q c T) :
(AffineDisperserCore.State.swap S x Q c T).Valid f
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) :
State n
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.
- unpaired_x : ¬AffineDisperserCore.State.Paired S x
xis not paired. - unpaired_y : ¬AffineDisperserCore.State.Paired S y
yis not paired. - unpaired_z : ¬AffineDisperserCore.State.Paired S z
zis not paired.
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.