The Levin reduction from SAT to 3SAT #
Cslib.Complexity.ThreeSAT.npRelation is the NP relation of ThreeSAT, and
Cslib.Complexity.toThreeSATLevinReduction is a Levin reduction of the NP relation of SAT to
it, with instance map Cslib.Complexity.toThreeSAT. Both witness maps are explicit and certified
polynomial-time:
- forward (
Cslib.Complexity.toThreeSATWitness): the assignmentσdescribed by a certificate forφis extended to the auxiliary variables ofφ.to3CNFbyCslib.Logic.PL.CNF.to3CNFAssignment, the auxiliary variable(i, k)taking the value of the disjunction of the literals of clauseiafter positionk + 1Arora and Barak, Section 2.3.1, and listed along the occurrences ofφ.to3CNF; - backward (
Cslib.Complexity.ofThreeSATWitness): the assignment described by a certificate fortoThreeSAT φis restricted to the original variables, whichtoThreeSATnumbers2 * v.
Main definitions #
Cslib.Complexity.ThreeSAT.npRelation: the NP relation ofThreeSAT.Cslib.Complexity.toThreeSATWitness,Cslib.Complexity.ofThreeSATWitness: the witness maps.Cslib.Complexity.toThreeSATLevinReduction: the Levin reduction.
Main results #
Cslib.Complexity.ThreeSAT.language_npRelation: the language of the relation isThreeSAT.Cslib.Complexity.isWitness_toThreeSATWitness,Cslib.Complexity.isWitness_ofThreeSATWitness: the witness maps send witnesses to witnesses.Cslib.Complexity.computableInPolyTime_to3CNFAssignment,Cslib.Complexity.computableInPolyTime_toThreeSATWitness,Cslib.Complexity.computableInPolyTime_ofThreeSATWitness: they are polynomial-time.
References #
- S. Arora, B. Barak, Computational Complexity: A Modern Approach
- O. Goldreich, Computational Complexity: A Conceptual Perspective, Exercise 2.28 (numbering of the author's online draft of 30 December 2006).
The NP relation of ThreeSAT: certificates as long as the encoded formula, checked by
Cslib.Complexity.ThreeSAT.verifier.
A witness of ThreeSAT is a witness of SAT for a formula of width at most three.
The language of the NP relation of ThreeSAT is ThreeSAT.
The witness maps #
The forward witness map: the assignment described by a certificate x.2 for x.1, extended
to the auxiliary variables of x.1.to3CNF and listed along its occurrences.
The backward witness map: the assignment described by a certificate x.2 for
toThreeSAT x.1, restricted to the original variables and listed along the occurrences of
x.1.
The forward witness map sends witnesses of SAT to witnesses of ThreeSAT.
The backward witness map sends witnesses of ThreeSAT to witnesses of SAT.
Polynomial time #
Evaluating the extended assignment of the certificate assignment is polynomial-time, with auxiliary variables numbered in unary.
The forward witness map is polynomial-time.
The backward witness map is polynomial-time.
The Levin reduction #
SAT Levin-reduces to 3SAT. The instance map splits the clauses (toThreeSAT); the forward
witness map extends a satisfying assignment explicitly to the auxiliary variables, and the backward
map restricts it to the original ones.