Equations over 𝔽₂ #
The equations of the affine system of a fair semi-circuit (Cslib.Circuits.Boolean.SemiCircuit):
an equation states that the sum over 𝔽₂ of the values of its terms, a finite set of internal
values, is a constant. Rerouting a term to a literal (Equation.subst) preserves the truth of the
equation on assignments giving the term the value of the literal (Equation.holds_subst) and does
not add terms (Equation.card_subst_le). An affine gate becomes an equation with at most three
terms (affEqn, affEqn_holds).
Main definitions #
Cslib.Circuits.Boolean.SemiCircuit.Equation: equations, withEquation.HoldsandEquation.subst.Cslib.Circuits.Boolean.SemiCircuit.affEqn: the equation of an affine gate.
Main results #
Cslib.Circuits.Boolean.SemiCircuit.Equation.holds_subst: rerouting preserves equations.Cslib.Circuits.Boolean.SemiCircuit.affEqn_holds: the equation of an affine gate holds exactly when the gate takes its value.
References #
Equations #
Moving affine gates into the affine system #
The equation J + b₁ t₁ + b₂ t₂ = c replacing the affine gate
J = b₁ t₁ + b₂ t₂ + c.