Unit clauses fixing variables #
Search procedures for SAT fix variables one at a time by adding unit clauses: the unit clauses
of a list of literals a (Cslib.Complexity.SAT.units) hold exactly when the literals do, so
units a ++ φ is the formula φ with the values in a fixed. This file collects their
semantics and the bounds on their encoded length that the self-reduction of SAT
(CslibFrontier/Computability/Complexity/Classes/NP/SelfReduction.lean) and the pruned searches
of Fortune and Mahaney (CslibFrontier/Computability/Complexity/Classes/Sparse/) use.
Main definitions #
Cslib.Complexity.SAT.units: the unit clauses of a list of literals.
Main results #
Cslib.Complexity.SAT.eval_units,Cslib.Complexity.SAT.vars_units: unit clauses hold when their literals do, and have the variables of their literals.Cslib.Complexity.SAT.eval_units_append,Cslib.Complexity.SAT.eval_append_units: a formula with unit clauses before or after it holds exactly when the formula and the literals do.Cslib.Complexity.SAT.length_encCNF_append: encoded length is additive under concatenation.Cslib.Complexity.SAT.length_encCNF_unit: the exact bit length of a single unit clause.Cslib.Complexity.SAT.length_encList_le_of_mem_vars,Cslib.Complexity.SAT.length_encCNF_units_le: the literals and the unit clauses fixing variables ofφare short.
The unit clauses of a list of literals.
Semantics #
Unit clauses hold exactly when their literals do.
The variables of unit clauses are those of their literals.
The variables of a formula after unit clauses are those of the literals, then those of the formula.
A formula after unit clauses holds exactly when the literals and the formula do.
A formula with unit clauses holds exactly when the formula holds and the literals do.
Encoded length #
A variable of a formula takes fewer bits than the formula.
Literals fixing variables of φ have short encodings: each takes at most 4 L + 5 bits,
where L is the length of φ.
The unit clause of a literal on v takes 8 b + 11 bits, where b is the length of the
binary digits of v.
Unit clauses fixing variables of φ take at most 8 L + 11 bits each, where L is the
length of φ.