The four-clause reduction from three-variable XOR constraints to exact three-CNF #
An existing CSP Bool V represents a system of parity equations: (b, [x, y, z]) asks that
σ x ^^ σ y ^^ σ z = b. Specializing the existing forbidden-pattern compiler produces exactly
four clauses per equation. Every assignment falsifies exactly one clause for each equation it
violates, so the unsatisfied fraction falls by exactly a factor of four. No auxiliary variables
are introduced. Repeated variables are allowed; distinct scopes give three distinct variables in
each output clause.
This is the elementary reduction in the proof of Håstad, Theorem 6.1, p. 831.
His sign-product equation xyz = 1 corresponds to XOR false here. The local counting argument
is applied to entire systems, with a plain polynomial-time certificate over framed encodings.
This module does not establish hardness of MAX-E3LIN or the perfect-completeness hardness
theorem for MAX-E3SAT; small-soundness Label Cover is in
CslibFrontier.Computability.PCP.Approximation.LabelCover.SmallSoundness.
The parity equations are the relation alphabet Cslib.Logic.PL.CSP.paritySem of
CslibFrontier.Logics.Propositional.CSP.Boolean.
Main results #
Cslib.Logic.PL.CSP.length_toCNFBounded_parity: exactly four clauses per equation.Cslib.Logic.PL.CSP.proportion_countUnsat_toCNFBounded_parity: exact quarter-factor loss.Cslib.Logic.PL.CSP.le_unsatVal_toCNFBounded_parity_iff: transfer of universal gap bounds.Cslib.Complexity.CSP.computableInPolyTime_toCNFBounded_parity: certified polynomial runtime.
References #
- J. Håstad, Some optimal inapproximability results, proof of Theorem 6.1, p. 831.
Every clause produced from a three-variable parity system has exactly three literals.
For each assignment, the fraction of falsified output clauses is exactly one quarter of the fraction of violated input equations. Both fractions are zero for the empty system.
A universal lower bound on the fraction of violated equations transfers with the exact factor four. No nonempty-system assumption is hidden in this equivalence.
Three-variable XOR-to-CNF compilation is polynomial-time under the existing framed CSP and CNF encodings. The total compiler discards scopes longer than three; the semantic guarantees above assume that every scope has exactly three entries.