QUADEQ is NP-complete #
QUADEQ is the language of satisfiable systems of quadratic equations
$\sum_{i,j} a_{ij} u_i u_j = b$ over 𝔽₂ in 0/1 variables
Arora and Barak, draft, Exercise 2§18. An instance is a list of
Cslib.Logic.PL.QuadEquations whose variables are natural-number labels written in binary
(encNat), as in SAT and XORSAT; an equation lists the monomials (i, j) with
$a_{ij} = 1$, repeated monomials cancelling in pairs. No bound on the labels is imposed, so the
number of variables n of the source is the number of distinct labels that occur.
Membership in NP checks the equations under the assignment that reads each variable at its first
occurrence, as SAT.assignment does, so certificates are no longer than the encoded instance.
Hardness follows the hint of the exercise and reduces SAT: toQUADEQ writes, for each clause,
the chain of products $z_{t+1} = z_t \cdot \lnot\ell_t$ of Cslib.Logic.PL.CNF.toQuadSystem and
numbers its variables with splitVarToNat. Chapter 18's Walsh–Hadamard PCP starts from this
language.
Main definitions #
Cslib.Complexity.encQuadEquation: the encoding of an equation.Cslib.Complexity.QUADEQ.encoding,Cslib.Complexity.QUADEQ: instances and the language.Cslib.Complexity.QUADEQ.verifier: theNPverifier.Cslib.Complexity.toQUADEQ: the reduction fromSAT.
Main results #
Cslib.Complexity.QUADEQ.mem_NP:QUADEQ ∈ NP.Cslib.Complexity.mem_QUADEQ_toQUADEQ_iff,Cslib.Complexity.computableInPolyTime_toQUADEQ: correctness and polynomial-time computability of the reduction.Cslib.Complexity.polyTimeReducible_SAT_QUADEQ,Cslib.Complexity.QUADEQ_npHard,Cslib.Complexity.QUADEQ_npComplete:QUADEQisNP-complete.
References #
Encoding of a quadratic equation: its framed list of monomials, each a pair of variables, then its right-hand side bit.
Systems of quadratic equations over binary natural-number labels, as framed lists of equations.
QUADEQ: the satisfiable systems of quadratic equations over 𝔽₂ in 0/1 variables
Arora and Barak, draft, Exercise 2§18.
A system is in QUADEQ exactly when it is satisfiable.
The verifier #
The assignment described by a certificate w for F: each variable takes the bit of w at
the position of its first occurrence in F.
Evaluate an equation under an assignment: the exclusive or of the monomials, compared with the right-hand side.
The verifier for QUADEQ: every equation holds under the assignment the certificate
describes.
evalEquation decides QuadEquation.Holds.
The verifier accepts exactly when the certificate's assignment satisfies the system.
The values of a listed along the occurrences of F, followed by any bits, describe a on
the variables of F.
A system has no more variable occurrences than its encoding has bits: each monomial names two variables, and its framed encoding takes at least two bits.
QUADEQ.verifier verifies QUADEQ with certificates as long as the encoded system: a
satisfying assignment, listed along the occurrences, is a prefix the verifier accepts whatever
padding follows it.
The QUADEQ verifier is polynomial-time, including on certificates of arbitrary length.
The reduction from SAT #
The reduction from SAT to QUADEQ: the chained clause equations of
Cslib.Logic.PL.CNF.toQuadSystem, with variables numbered by splitVarToNat.
Building the equation $z_{i,t} = c$ is polynomial-time.
Building the equation $z_{i,t+1} = z_{i,t}\cdot\lnot\ell$ is polynomial-time.
Building the equations of a clause is polynomial-time.
The quadratic system of a formula is computable in polynomial time.
Relabelling a system by a polynomial-time map is polynomial-time.
The reduction toQUADEQ is computable in polynomial time.
QUADEQ is NP-complete Arora and Barak, draft, Exercise 2§18.