Documentation

CslibFrontier.Computability.Complexity.Problems.ThreeSAT.Levin

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:

Main definitions #

Main results #

References #

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 #

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.