The Cook–Levin reduction is a Levin reduction #
The Cook–Levin reduction Cslib.Complexity.CookLevin.reduce of an NP relation to SAT carries
explicit witness maps, both computable in polynomial time:
- forward (
Cslib.Complexity.CookLevin.forwardWitness): a witnesswforabecomes the satisfying assignment read off the run of the verifier on(a, w). It is given by the variables listed along the run (Cslib.Complexity.CookLevin.trueVars), evaluated along the occurrences of the tableau and padded; - backward (
Cslib.Complexity.CookLevin.backwardWitness): a certificate for the formula becomes the certificate bits of the assignment it describes.
Cslib.Complexity.CookLevin.SAT_levinHard says that every NP relation, over any encoded type of
instances, Levin-reduces to the NP relation of SAT. Composing with the SAT → 3SAT Levin reduction
gives Cslib.Complexity.CookLevin.ThreeSAT_levinHard. These are the witness-preserving forms of
Cslib.Complexity.CookLevin.SAT_npHard and Cslib.Complexity.ThreeSAT_npHard; the forward maps
are what a prover for SAT or ThreeSAT needs to run on the witnesses of the original relation.
Main definitions #
Cslib.Complexity.CookLevin.forwardWitness,Cslib.Complexity.CookLevin.backwardWitness: the witness maps.Cslib.Complexity.CookLevin.levinReduction: the Cook–Levin reduction as a Levin reduction, for a machine computing the verifier in polynomial time.
Main results #
Cslib.Complexity.CookLevin.isWitness_forwardWitness,Cslib.Complexity.CookLevin.isWitness_backwardWitness: the witness maps send witnesses to witnesses.Cslib.Complexity.CookLevin.SAT_levinHard,Cslib.Complexity.CookLevin.ThreeSAT_levinHard: every NP relation Levin-reduces toSATand toThreeSAT.
References #
- S. Arora, B. Barak, Computational Complexity: A Modern Approach, Section 2.3.
- O. Goldreich, Computational Complexity: A Conceptual Perspective, Theorem 2.22
(the relation of SAT is
PC-complete), with the augmented reductions of Exercise 2.28, from which the witness-preserving form for 3SAT also comes (numbering of the author's online draft of 30 December 2006); the proof here is the tableau reduction of Arora and Barak, not Goldreich's route through CSAT. - L. A. Levin, Universal sequential search problems
The values, along the occurrences of the tableau of tm on inputs u ++ w' with |w'| = L
unrolled for T steps, of the variables listed along the run on u ++ w.
The forward witness map of the Cook–Levin reduction: the variables listed along the run of
tm on frame (enc a) ++ w, evaluated along the occurrences of the tableau and padded.
The backward witness map of the Cook–Levin reduction: the certificate bits of the assignment
that a certificate x.2 for reduce tm p c d enc x.1 describes.
The runs of tm on instance–certificate pairs of the prescribed length halt within
c * (n + 1) ^ d steps with the verifier's answer: the hypothesis of
Cslib.Complexity.CookLevin.reduce_mem_SAT_iff, for every instance.
Forward witnesses. A witness for a is sent to a witness of SAT for the reduced
formula.
Backward witnesses. A witness of SAT for the reduced formula is sent to a witness for
a: the certificate bits of the assignment it describes.
Polynomial time #
The tableau witness is polynomial-time in the input prefix, the certificate and the unary bounds, for a fixed machine.
The forward witness map is polynomial-time, for a fixed machine and fixed bounds.
The backward witness map is polynomial-time, for a fixed machine and fixed bounds.
The Levin reduction #
The Cook–Levin reduction is a Levin reduction of an NP relation to the NP relation of
SAT, for a machine tm computing its verifier within c * (n + 1) ^ d steps.
Cook–Levin, witness-preserving form. Every NP relation, over any encoded type of
instances, Levin-reduces to the NP relation of SAT.
Every NP relation Levin-reduces to 3SAT: the Cook–Levin Levin reduction followed by the SAT → 3SAT Levin reduction.