The resolution proof system
Suppose that you run a SAT solver on your problem instance and the solver answers “the formula is satisfiable” and provides you a satisfying truth assingment. It is now quite easy to check that the verdict is correct: just evaluate the formula under the assignment and check that all the clauses are satisfied.
However, if the solver simply returns “the formula is unsatisfiable”, can you trust the solver? Although the current SAT solvers are very robust, a bug in the complex implementation of a solver is still a possibility. In many applications this possibility can arguably be ignored but in some others, such as using SAT solvers to prove open mathematical problems, one really wants to verify that there are no solutions. Some solvers can in fact also produce proofs of unsatisfiability. Such proofs can be independently and automatically checked by some (relatively simple and possibly formally verified) proof checking tool. In the following, we introduce the classic proof system called resolution. The best tools at the moment use something more complicated but these are not covered in this course.
The resolution proof system is a proof system for CNF formulas that is based on taking “resolvents” of two clauses.
Definition: Resolvent of two clauses
Let \(C_1 = (x \lor l_1 \lor l_2 \lor ... \lor l_k)\) and \(C_2 = (\neg x \lor l'_1 \lor l'_2 \lor ... \lor l'_p)\) be two clauses and \(x\) any variable. The resolvent of \(C_1\) and \(C_2\) with respect to \(x\) is the clause \(\Res{C_1}{C_2}{x} = (l_1 \lor l_2 \lor ... \lor l_k \lor l'_1 \lor l'_2 \lor ... \lor l'_p)\).
Example
The resolvent of \((x \lor y \lor \neg z)\) and \((\neg y \lor \neg z \lor w)\) is with respect to \(y\) the clause \((x \lor \neg z \lor w)\).
The resolvent of \((x)\) and \((\neg x)\) is the empty clause \(()\).
The resolvent of \((x \lor y \lor z)\) and \((\neg y \lor \neg z \lor w)\) with recpect to \(y\) is \((x \lor z \lor \neg z \lor w)\), a tautology.
The key fact is that the resolvent \(\Res{C_1}{C_2}{x}\) is a logical consequence of \(C_1 \land C_2\), where \(C_1 = (x \lor l_1 \lor l_2 \lor ... \lor l_k)\) and \(C_2 = (\neg x \lor l'_1 \lor l'_2 \lor ... \lor l'_p)\). One can reason this as follows. First, \(x\) must be either false or true in any truth assignment that satisfies \(C_1 \land C_2\). If \(x\) is false, one of \(l_1,l_2,...,l_k\) must be true in a truth assignment satisfying \(C_1\). Similarly, if \(x\) is true, then one of \(l'_1,l'_2,...,l'_p\) must be true. Therefore, in any case one of \(l_1,l_2,...,l_k,l'_1,l'_2,...,l'_p\) must be true in a truth assignment satisfying \(C_1 \land C_2\) and thus \(\Res{C_1}{C_2}{x}\) is a logical consequence of \(C_1 \land C_2\).
Definition: Resolution proofs of unsatisfiability
A resolution proof of unsatisfiability of a CNF formula \(\phi\) is a finite sequence \(C_1,C_2,...,C_m\) of clauses such that each clause \(C_i\) in it is a non-tautology and either
a clause in the formula \(\phi\), or
the resolvent of two earlier clauses \(C_j\) and \(C_k\), \(j,k < i\), in the sequence.
Furthermore, the last clause \(C_m\) must be the empty clause \(()\) that is not satisfied in any truth assignment.
The resolution proof system is both (i) sound, meaning that if a formula has a resolution proof of unsatisfiability, then it actually is unsatisfiable, and (ii) complete, meaning that for each unsatisfiable CNF formula there is a resolution proof of unsatisfiability. Therefore, a formula \(\phi\) is unsatisfiable if and only if there is a resolution proof of unsatisfiability for it.
Example
Consider again the unsatisfiable CNF formula
A resolution proof of its unsatisfiability is the sequence \(C_1,...,C_9\) where
\(C_1 = (\neg c \lor e)\), a clause in the formula \(\phi\)
\(C_2 = (\neg c \lor \neg e)\), a clause in the formula \(\phi\)
\(C_3 = (\neg c)\), the resolvent \(\Res{C_1}{C_2}{e}\)
\(C_4 = (a \lor c \lor \neg d)\), a clause in the formula \(\phi\)
\(C_5 = (\neg a \lor c \lor \neg d)\), a clause in the formula \(\phi\)
\(C_6 = (c \lor \neg d)\), the resolvent \(\Res{C_4}{C_5}{c}\)
\(C_7 = (c \lor d)\), a clause in the formula \(\phi\)
\(C_8 = (c)\), the resolvent \(\Res{C_6}{C_7}{d}\)
\(C_9 =()\), the resolvent \(\Res{C_3}{C_8}{c}\)
Finding resolution proofs of unsatisfiability directly can be difficult for humans especially. However, the search tree of DPLL without unit propagation (recall the section The DPLL backtracking search procedure) can be converted to a resolution proof quite easily:
attach each dead-end node with one clause that is falsified in it
attach each other node with
the clause of one of its children if that clause does not involve the branching variable of the node, or
the resolvent of the clauses in its two children otherwise
the root will be attached with the empty clause
list the clauses attached in the tree in post-order
The correctness can be shown by structural induction on the tree, showing that the clause attached to each node contains only literals that are negations of the ones in its partial truth assignment. The proofs obtained in this way are actually tree-like resolution proofs, where a clause obtained by using the resolution proof is used only once. For some formula families, such proofs can be superpolynomially larger than the ones that can be obtained with unrestricted resolution.
Example
Consider again the CNF formula \((a \lor \neg b) \land (\neg a \lor c \lor \neg d) \land (a \lor c \lor \neg d) \land (\neg c \lor \neg e) \land (\neg c \lor e) \land (c \lor d)\). Annotating the search tree nodes with clauses as described above, we get
This corresponds to the resolution proof of unsatisfiability \((a \lor \neg b)\), \((c \lor d)\), \((a \lor c \lor \neg d)\), \((a \lor c)\), \((\neg c \lor e)\), \((\neg c \lor \neg e)\), \((\neg c)\), \((a)\), \((a)\), \((c \lor d)\), \((\neg a \lor c \lor \neg d)\), \((\neg a \lor c)\), \((\neg c \lor e)\), \((\neg c \lor \neg e)\), \((\neg c)\), \((\neg a)\), \(()\).
Most modern SAT solvers can, in theory at least, polynomially simulate resolution [PipatsrisawatDarwiche2011]. However, it has been proven that some formulas do not have polynomial-size resolution proofs [Haken1985]. For instance, the “pigeon hole formulas”
where \(\PH{i}{j}\) is true if the pigeon \(i\) sits in the hole \(j\), model all the configurations in which \(p\) pigeons sit in \(h\) holes and each hole has at most pigeon in it. When \(p > h\), the formulas are unsatisfiable. The formulas \(\PHP{p}{p-1}\) do not have polynomial-size resolution proofs.
There are stronger proof systems for which we do not know any formula families that require super-polynomial sized proofs. If no such formula families exists, then \(\NP = \coNP\). Some SAT solvers go beyond resolution and can solve, for instance, pigeon hole problems efficiently.