Clause polynomials of parity constraints #
The clause Cslib.Logic.PL.Clause.exclude B y, which excludes the values of y on B, has clause
polynomial ∏_{i ∈ B} [x_i = y_i], where [x_i = 1] is X i and [x_i = 0] is 1 - X i
(Cslib.Logic.PL.Clause.toBoolPoly_exclude). Over a domain its total degree is exactly #B
(Cslib.Logic.PL.Clause.totalDegree_toBoolPoly_exclude).
Over a ring of characteristic 2, the clause polynomials of the parity constraint
Cslib.Logic.PL.CNF.parityOnEq B c add up to [c = 1] + ∑_{i ∈ B} X i
(Cslib.Logic.PL.CNF.sum_toBoolPolys_parityOnEq): both sides are the indicator of
parityOn B x ≠ c on the Boolean cube. This is the identity behind the degree-Δ Nullstellensatz
refutations of Tseitin formulas in characteristic 2.
Main results #
Cslib.Logic.PL.Clause.toBoolPoly_exclude,Cslib.Logic.PL.Clause.totalDegree_toBoolPoly_exclude: the polynomial of the clause excluding the values ofyonB, and its degree.Cslib.Logic.PL.CNF.sum_toBoolPolys_parityOnEq: in characteristic2, the clause polynomials of a parity constraint add up to[c = 1] + ∑_{i ∈ B} X i(Cslib.Logic.PL.CNF.sum_toBoolPoly_exclude_parityOn_ne: the same sum, over the excluded assignments).
In characteristic 2, the polynomials of the clauses excluding the assignments to B of
parity other than c add up to [c = 1] + ∑_{i ∈ B} X i: both sides are the indicator of
parityOn B x ≠ c on the Boolean cube. This is Cslib.Logic.PL.CNF.sum_toBoolPolys_parityOnEq
written as a sum over the excluded assignments.
In characteristic 2, the clause polynomials of the parity constraint
Cslib.Logic.PL.CNF.parityOnEq B c add up to [c = 1] + ∑_{i ∈ B} X i: both sides are the
indicator of parityOn B x ≠ c on the Boolean cube.