Skip to content
DARC
■ Change #85 · wiki.edited

SAT solving (CDCL): Normalize Markdown to canonical form

by DARC wiki2026-10-22 20:31:07 UTCOpen the page →
body
## The problem
Boolean satisfiability (SAT) asks whether a propositional formula, usually given in conjunctive normal form (CNF), has a satisfying assignment. SAT is $\mathsf{NP}$-complete (Cook, Levin), and no algorithm running in time $(2-\varepsilon)^{n}$ for some fixed $\varepsilon>0$ is known for CNF formulas with $n$ variables and unbounded clause width; the Strong Exponential Time Hypothesis conjectures that none exists. Yet solvers routinely decide industrial instances with millions of variables and tens of millions of clauses.
## From DPLL to CDCL
− The Davis–Putnam–Logemann–Loveland procedure (1960–62) searches over partial assignments, applying *unit propagation* (a clause with all but one literal false forces the last one). *Conflict-driven clause learning* (CDCL) adds three ideas. When propagation produces a conflict, the solver analyses the implication graph and derives a new clause, usually at the first unique implication point, that records why the conflict occurred. It then *backjumps* non-chronologically to the level where that clause becomes unit. And the learned clause is kept so the same dead end is not explored again. GRASP (Marques-Silva and Sakallah, 1996) introduced this scheme.
+ The Davis–Putnam–Logemann–Loveland procedure (1960–62) searches over partial assignments, applying _unit propagation_ (a clause with all but one literal false forces the last one). _Conflict-driven clause learning_ (CDCL) adds three ideas. When propagation produces a conflict, the solver analyses the implication graph and derives a new clause, usually at the first unique implication point, that records why the conflict occurred. It then _backjumps_ non-chronologically to the level where that clause becomes unit. And the learned clause is kept so the same dead end is not explored again. GRASP (Marques-Silva and Sakallah, 1996) introduced this scheme.
− Chaff (Moskewicz et al., 2001) made it fast with two-watched-literal propagation, the VSIDS activity heuristic, and restarts. Later solvers added phase saving, learned-clause deletion guided by clause quality (such as literal block distance), and preprocessing and *inprocessing* (variable elimination, subsumption, vivification). Current open-source solvers such as Kissat and CaDiCaL descend from this line; according to the University of Freiburg, Kissat won the SAT Competition 2024.
+ Chaff (Moskewicz et al., 2001) made it fast with two-watched-literal propagation, the VSIDS activity heuristic, and restarts. Later solvers added phase saving, learned-clause deletion guided by clause quality (such as literal block distance), and preprocessing and _inprocessing_ (variable elimination, subsumption, vivification). Current open-source solvers such as Kissat and CaDiCaL descend from this line; according to the University of Freiburg, Kissat won the SAT Competition 2024.
## Certificates
− An unsatisfiability claim can be checked: a CDCL run is a resolution refutation, and solvers emit proofs in formats such as DRAT that independent, even formally verified, checkers validate. This turned SAT solvers into trustworthy tools for mathematics. Examples include the Boolean Pythagorean triples problem (Heule, Kullmann and Marek 2016; an unsatisfiability proof of almost 200 terabytes, found by *cube-and-conquer* on 800 cores in about two days), the fifth Schur number $S(5)=160$ (Heule 2017), and the empty hexagon number $h(6)=30$ (Heule and Scheucher, 2024), whose SAT encoding was then verified in Lean and whose proof was checked by a formally verified checker (Subercaseaux et al., ITP 2024).
+ An unsatisfiability claim can be checked: a CDCL run is a resolution refutation, and solvers emit proofs in formats such as DRAT that independent, even formally verified, checkers validate. This turned SAT solvers into trustworthy tools for mathematics. Examples include the Boolean Pythagorean triples problem (Heule, Kullmann and Marek 2016; an unsatisfiability proof of almost 200 terabytes, found by _cube-and-conquer_ on 800 cores in about two days), the fifth Schur number $S(5)=160$ (Heule 2017), and the empty hexagon number $h(6)=30$ (Heule and Scheucher, 2024), whose SAT encoding was then verified in Lean and whose proof was checked by a formally verified checker (Subercaseaux et al., ITP 2024).
## Where the theory stands
CDCL solvers produce resolution proofs, and resolution has exponential lower bounds, for example on random $k$-CNF and on pigeonhole formulas. So worst-case guarantees cannot be better than resolution's. In the other direction, CDCL with nondeterministic decisions and enough restarts polynomially simulates general resolution (Pipatsrisawat and Darwiche 2011), and with random decisions and many restarts it efficiently refutes formulas with bounded-width resolution refutations (Atserias, Fichte and Thurley 2011); neither result covers the deterministic heuristics used in practice. Atserias and Müller (FOCS 2019; J. ACM 2020) showed that finding a near-shortest resolution refutation is $\mathsf{NP}$-hard, so resolution is not automatable unless $\mathsf{P}=\mathsf{NP}$. Why industrial instances are easy is therefore not explained by proof-complexity results; this is the subject of the open problem on CDCL efficiency.
## Limits and neighbours
Local search is often better on random satisfiable instances, and quantum algorithms have not been shown to help: Brehm and Weggemans (Quantum, 2026) found that the fault-tolerant speedups of quantum backtracking and Grover search for $k$-SAT largely vanish, even asymptotically, once minimal structure is added to random instances, when compared against the 2023 SAT Competition main-track winner. SAT is also a component of satisfiability modulo theories (SMT), maximum satisfiability and model counting.
explainer.student
− **The problem.** *Boolean satisfiability* (SAT) asks whether a propositional formula, usually in *conjunctive normal form* (CNF: an AND of clauses, each clause an OR of variables or their negations), has a satisfying assignment. SAT is NP-complete (Cook; Levin). The Strong Exponential Time Hypothesis conjectures that no algorithm beats roughly $2^n$ time for general CNF as clause width grows. Yet solvers decide industrial instances with millions of variables and tens of millions of clauses.
+ **The problem.** _Boolean satisfiability_ (SAT) asks whether a propositional formula, usually in _conjunctive normal form_ (CNF: an AND of clauses, each clause an OR of variables or their negations), has a satisfying assignment. SAT is NP-complete (Cook; Levin). The Strong Exponential Time Hypothesis conjectures that no algorithm beats roughly $2^n$ time for general CNF as clause width grows. Yet solvers decide industrial instances with millions of variables and tens of millions of clauses.
− **From DPLL to CDCL.** The Davis–Putnam–Logemann–Loveland procedure (1960s) searches over partial assignments with *unit propagation*: if a clause has all but one literal false, the last must be true. **Conflict-driven clause learning (CDCL)** adds three ideas.
+ **From DPLL to CDCL.** The Davis–Putnam–Logemann–Loveland procedure (1960s) searches over partial assignments with _unit propagation_: if a clause has all but one literal false, the last must be true. **Conflict-driven clause learning (CDCL)** adds three ideas.
− 1. On a conflict, analyse the *implication graph* (which assignments forced which) and derive a new *learned clause* that records why the conflict occurred, usually at the first unique implication point.
− 2. *Backjump* non-chronologically to the decision level where the learned clause becomes unit, rather than undoing only the last decision.
+ 1. On a conflict, analyse the _implication graph_ (which assignments forced which) and derive a new _learned clause_ that records why the conflict occurred, usually at the first unique implication point.
+ 2. _Backjump_ non-chronologically to the decision level where the learned clause becomes unit, rather than undoing only the last decision.
3. Keep the learned clause so the same dead end is not explored again.
− GRASP (Marques-Silva and Sakallah, 1996) introduced the scheme. Chaff (2001) made it fast with *two-watched-literal* propagation, the **VSIDS** heuristic (prefer variables recently involved in conflicts), and *restarts*. Later additions: phase saving, learned-clause deletion by quality, and preprocessing/inprocessing such as variable elimination. Open-source solvers like Kissat and CaDiCaL descend from this line.
+ GRASP (Marques-Silva and Sakallah, 1996) introduced the scheme. Chaff (2001) made it fast with _two-watched-literal_ propagation, the **VSIDS** heuristic (prefer variables recently involved in conflicts), and _restarts_. Later additions: phase saving, learned-clause deletion by quality, and preprocessing/inprocessing such as variable elimination. Open-source solvers like Kissat and CaDiCaL descend from this line.
− **Certificates.** An unsatisfiable answer can be checked: a CDCL run produces a *resolution proof*, a sequence of clauses each following from earlier ones. Solvers can emit these in formats such as DRAT so independent checkers verify the claim. Proofs for large problems can be huge.
+ **Certificates.** An unsatisfiable answer can be checked: a CDCL run produces a _resolution proof_, a sequence of clauses each following from earlier ones. Solvers can emit these in formats such as DRAT so independent checkers verify the claim. Proofs for large problems can be huge.
**Applications.** Hardware and software verification, planning, scheduling, cryptanalysis, and computer-assisted mathematics (for example, settling bounds on Ramsey-type and colouring problems).
**Theory versus practice.** Resolution lower bounds show some formulas are hard for every CDCL solver. In the other direction, theorists can show CDCL with idealised choices simulates general resolution, but the actual deterministic heuristics (VSIDS, restarts) are poorly understood. Why they work on industrial instances, and what structure they exploit, is a central open question.
hash b13b9b01c48c799be6825bf19c6749e3a5cb375af79c0b798875e5f38c9ddb7a
previous 58ce71cf6ef1bbf3539b9c792803c23703c2d430707876c0c95464291bd45035