Correctness of the refuter's affine-representation oracle #
evaluateAux S a val asks the dense XOR-SAT decider whether the affine system of S, the
parameter values val and a = 0 are simultaneously satisfiable. On a well-formed state this
returns the value of the auxiliary variable a in the unique solution extending val, so
findAffineRep S a recovers the affine representation of a in the parameters.
Main results #
Cslib.Circuits.Boolean.AffineDisperser4n.dot_toDenseRow: the dot product of a dense row is the sum over its terms.Cslib.Circuits.Boolean.AffineDisperser4n.evaluateAux_eq:evaluateAuxevaluates an auxiliary variable.Cslib.Circuits.Boolean.AffineDisperser4n.findAffineRep_spec:findAffineRepis the affine representation of an auxiliary variable.
theorem Cslib.Circuits.Boolean.AffineDisperser4n.evaluateAux_eq {n : ℕ} {S : State n} (hwf : S.WellFormed) {a : ℕ} (ha : a ∈ S.aux) {val w : ℕ → Bool} (hw : ∀ j ∈ S.params, w j = val j) (hweq : S.EqnsHold w) :
evaluateAux S a val = w a
evaluateAux S a val is the value of the auxiliary variable a in the solution of the affine
system extending the parameter assignment val.
theorem Cslib.Circuits.Boolean.AffineDisperser4n.evaluateAux_eq_of_affineIn {n : ℕ} {S : State n} (hwf : S.WellFormed) {a : ℕ} (ha : a ∈ S.aux) {c : Bool} {T : Finset ℕ} (h : SemiCircuit.AffineIn a c T) (val : ℕ → Bool) :
On an auxiliary variable a = c + ∑ j ∈ T, u j, evaluateAux S a val evaluates the affine
expression at val.
theorem Cslib.Circuits.Boolean.AffineDisperser4n.findAffineRep_spec {n : ℕ} {S : State n} (hwf : S.WellFormed) {Q : ℕ} (hQ : Q ∈ S.aux) :
findAffineRep S Q is the affine representation of the auxiliary variable Q in the
parameters.