The left set of SAT #
The left set of a problem A ∈ NP, for a witness relation of A, consists of the pairs
(x, w) of an instance x ∈ A and a candidate witness w that is lexicographically at most the
largest witness of x Arvind, Köbler and Mundhenk, Definition 2.3.
It is the device of Ogiwara and Watanabe's proof that sparse sets are not NP-hard under bounded
truth-table reductions unless P = NP [OW91]: the left-set members among the
candidate prefixes of a level of the search tree are exactly those at most the prefix of the
largest witness, so the boundary of the left set locates that prefix.
For SAT, a witness of a formula φ lists the values of a satisfying assignment at the literal
occurrences of φ, in order (φ.vars), as in the self-reduction of
CslibFrontier/Computability/Complexity/Classes/NP/SelfReduction.lean. So ⟨φ, w⟩ ∈ LeftSAT
when w has one bit per occurrence and some satisfying assignment, read along the occurrences,
gives a word lexicographically at least w (Cslib.Complexity.LeftSAT). Words are compared in
Mathlib's lexicographic order on List Bool, with false < true.
The clauses SAT.atLeast a say that the values of the occurrences fixed by a list of literals a
are lexicographically at least the values a gives them (Cslib.Complexity.SAT.eval_atLeast):
for every position j where a has true, the assignment has true there or at an earlier
position where a has false. Adding them to φ reduces the left set to SAT
(Cslib.Complexity.LeftSAT_polyTimeReducible_SAT), so the left set is in NP
(Cslib.Complexity.LeftSAT_mem_NP). Conversely SAT reduces to its left set, by pairing a
formula with the all-false word (Cslib.Complexity.SAT_polyTimeReducible_LeftSAT).
The search procedures query the left set at prefixes: a node of the self-reduction tree fixes the
first occurrences of φ, and SAT.atLeast a ++ φ is satisfiable exactly when the values of the
node a, padded with false, form a member of the left set
(Cslib.Complexity.SAT.atLeast_append_mem_SAT_iff_mem_LeftSAT). For a fixed formula the members
form an initial segment of the words of the right length (Cslib.Complexity.LeftSAT.mem_of_le):
the words at most the largest witness. Its largest member is a witness
(Cslib.Complexity.LeftSAT.exists_eq_map_of_maximal), so membership queries find a satisfying
assignment, which is the search-to-decision property behind the left-set technique.
Main definitions #
Cslib.Complexity.SAT.atLeast: clauses saying that an assignment is lexicographically at least the values of a list of literals.Cslib.Complexity.LeftSATInstance,Cslib.Complexity.encLeftSAT: formula-word instances and their encoding.Cslib.Complexity.LeftSAT: the left set ofSAT.
Main results #
Cslib.Complexity.SAT.eval_atLeast,Cslib.Complexity.SAT.atLeast_append_mem_SAT_iff: the meaning ofSAT.atLeast.Cslib.Complexity.mem_LeftSAT_iff_atLeast,Cslib.Complexity.SAT.atLeast_append_mem_SAT_iff_mem_LeftSAT: membership in the left set, of words and of prefixes, as satisfiability.Cslib.Complexity.LeftSAT.mem_of_le,Cslib.Complexity.LeftSAT.exists_eq_map_of_maximal: the left set of a formula is an initial segment, and its largest member is a witness.Cslib.Complexity.LeftSAT_polyTimeReducible_SAT,Cslib.Complexity.LeftSAT_mem_NP,Cslib.Complexity.SAT_polyTimeReducible_LeftSAT: the left set andSATreduce to each other, and the left set is inNP.Cslib.Complexity.SAT.witnessTree,Cslib.Complexity.SAT.witnessTree_leftSet_polyTimeReducible_SAT,Cslib.Complexity.SAT.witnessTree_prefixSet_polyTimeReducible_SAT: the binary witness tree ofSAT, whose left set and prefix set both reduce toSAT.
References #
Lexicographic lower bounds as clauses #
The clauses saying that an assignment is lexicographically at least the values of a,
read along the variables of a: for each position j where a has the value true, the clause
that one of the variables of a at a position before j with the value false, or the variable
at j, is true.
SAT.atLeast a holds exactly when the assignment is lexicographically at least a, read
along the variables of a.
Satisfiability with a lexicographic lower bound: SAT.atLeast a ++ φ is satisfiable
exactly when some satisfying assignment of φ is lexicographically at least a.
The left set #
An instance of the left set of SAT: a formula in conjunctive normal form paired with a
candidate witness prefix word.
- formula : Logic.PL.CNF ℕ
The formula in conjunctive normal form.
The bit string compared lexicographically against satisfying witnesses.
Instances For
Pairs of a formula and a bit string, encoded by encCNF and encBits.
The tuple of the fields of encLeftSAT.
The left set of SAT [Arvind, Köbler and Mundhenk, Definition 2.3]
[AKM92]: the instances x : LeftSATInstance of a formula x.formula and a
word x.word with one bit for each literal occurrence of x.formula, such that the values of
some satisfying assignment of x.formula at its occurrences, read in order, form a word
lexicographically at least x.word. The witnesses of x.formula are these words of values,
and x.word is in the left set exactly when it is at most the largest of them.
The largest member of the left set of a formula is a witness, so searching for it with membership queries, for example bit by bit, finds a satisfying assignment.
Membership in the left set as satisfiability: pair the occurrences of φ with the bits of
w, and require the assignment to be lexicographically at least them.
The search queries the left set at prefixes. For a node a fixing the first occurrences of
φ, SAT.atLeast a ++ φ is satisfiable exactly when the values of a, padded with false to one
bit per occurrence, form a member of the left set.
Reductions #
The left set reduces to SAT: an instance x with one bit per occurrence goes to
x.formula with the clauses saying that the assignment is at least x.word, and any other
instance to the unsatisfiable formula with an empty clause.
SAT reduces to its left set: pair a formula with the all-false word, which is at most
every witness.
The witness tree of SAT #
Strict verifier for SAT matching LeftSAT: accepts (φ, w) iff w gives the values of a
satisfying assignment along φ.vars consistently across repeated occurrences.
The binary witness tree of SAT, with witnesses φ.vars.map σ of length φ.vars.length
matching LeftSAT.
The left set of SAT.witnessTree is LeftSAT.
The left set of SAT.witnessTree reduces to SAT.
The prefix set of SAT.witnessTree reduces to SAT: fix the first u.length occurrences
of φ to the bits of u via unit clauses.