Documentation

CslibFrontier.Computability.Circuit.Boolean.AffineDisperser4n.RefuterAffineRep

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 #

theorem Cslib.Circuits.Boolean.AffineDisperser4n.dot_toDenseRow {N : ℕ} {T : Finset ℕ} (hT : ∀ i ∈ T, i < N) (c : Bool) (w : ℕ → Bool) :

The dot product of the dense row of a set T of names below N with an assignment is the sum of the assignment over T.

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) :
evaluateAux S a val = c + ∑ j ∈ T, val j

On an auxiliary variable a = c + ∑ j ∈ T, u j, evaluateAux S a val evaluates the affine expression at val.

findAffineRep S Q is the affine representation of the auxiliary variable Q in the parameters.