A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

SAT Solving and Conflict-Driven Clause Learning

Research Depth 100 in the knowledge graph ☐ I know this ☆ Set as goal
6topics build on this
503prerequisites beneath it
See this on the map →
Boolean Satisfiability, Cook-Levin, and ReductionsIntroduction to Propositional Logic→→Probabilistic Model CheckingSMT Solving and Theory Combination
sat cdcl dpll unit-propagation backjumping watched-literals clause-learning

Core Idea

Modern SAT solvers determine whether a propositional formula in conjunctive normal form (CNF) has a satisfying assignment. The DPLL algorithm (Davis-Putnam-Logemann-Loveland) searches by choosing variable assignments, propagating forced implications (unit propagation), and backtracking on contradictions. Conflict-Driven Clause Learning (CDCL) dramatically improves on DPLL by analyzing each conflict to learn a new clause that prevents the same mistake, then backjumping non-chronologically past irrelevant decisions. With additional techniques like watched literals for efficient propagation, restart strategies, and variable-state-independent decaying sum (VSIDS) heuristics, CDCL solvers routinely handle industrial instances with millions of variables -- despite SAT being NP-complete.

Explainer

The Boolean satisfiability problem (SAT) asks whether there exists an assignment of truth values to variables that makes a propositional formula true. The formula is typically given in conjunctive normal form (CNF): a conjunction of clauses, where each clause is a disjunction of literals (variables or their negations). Despite being the canonical NP-complete problem, SAT has become practically solvable for enormous structured instances thanks to the CDCL algorithm, which powers every competitive modern SAT solver (MiniSat, CaDiCaL, Kissat, Glucose).

The foundation is the DPLL algorithm (1962), which searches for a satisfying assignment through three operations: decide (choose an unassigned variable and tentatively assign it true or false), propagate (apply unit propagation -- if a clause has exactly one unassigned literal and all others are false, that literal must be true), and backtrack (when a conflict is reached -- some clause has all literals false -- undo the most recent decision and try the opposite). DPLL organizes the search as a binary decision tree, with unit propagation pruning branches where implications are forced. On its own, DPLL with chronological backtracking is complete but can explore exponentially large subtrees that could have been avoided.

Conflict-Driven Clause Learning (CDCL), developed through the GRASP (1996), Chaff (2001), and subsequent solvers, transforms DPLL with three key innovations. First, conflict analysis: when propagation leads to a conflict, the solver traces backward through the implication graph (a DAG recording which decisions and propagations led to each assignment) to identify the true cause of the conflict. It derives a learned clause -- a new clause that is logically implied by the original formula but which the solver did not originally have. This clause prevents the same combination of decisions from recurring. Second, non-chronological backjumping: instead of undoing just the most recent decision, the solver jumps back to the decision level identified by conflict analysis as the source of the problem, potentially skipping many irrelevant decision levels at once. Third, efficient data structures: the watched-literals scheme ensures that unit propagation examines only the clauses directly affected by each assignment, achieving near-constant amortized cost per propagation step.

Modern CDCL solvers add several additional techniques that contribute to their remarkable empirical performance. The VSIDS (Variable State Independent Decaying Sum) decision heuristic prioritizes variables that appeared in recent conflicts, focusing the search on the "active" part of the formula. Restarts periodically abandon the current search tree and begin again from scratch, but crucially, all learned clauses are retained -- the solver restarts with strictly more knowledge than it began with. Clause database management periodically deletes low-activity learned clauses to control memory usage while retaining the most useful conflict information. Phase saving remembers the last assigned polarity of each variable and reuses it after restarts, preserving locality in the search. Together, these techniques enable CDCL solvers to exploit the structure present in real-world industrial formulas, which is why they succeed on instances with millions of variables even though random SAT instances of a few hundred variables can be impractical.

SAT solving is the engine underneath much of formal methods. Bounded model checking encodes verification problems as SAT formulas. Symbolic execution uses SAT/SMT to determine path feasibility. Invariant generation techniques use SAT oracles for counterexample-guided refinement. Understanding how the solver works -- not just that it returns SAT or UNSAT -- is essential for formulating verification problems in solver-friendly ways and for diagnosing why a verification tool succeeds or fails on a given instance.

Practice Questions 4 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Boolean Algebra and Fundamental Laws → Logic Gates Fundamentals → Implementing Boolean Functions with Gates → Karnaugh Map Simplification → Combinational Circuit Design → Flip-Flops and Latches → Finite State Machines (FSMs) → Deterministic Finite Automata (DFA) → Nondeterministic Finite Automata (NFA) → Two-Way Finite Automata → NFA to DFA Conversion (Subset Construction) → DFA Properties and Minimization Algorithms → Regular Languages: Definition and Characterization → Context-Free Grammars (CFGs) → Pushdown Automata (PDA) → Equivalence of CFGs and Pushdown Automata → Closure Properties of Context-Free Languages → Limitations of Context-Free Languages → Pumping Lemma for Context-Free Languages → Turing Machines → Variants of Turing Machines and Equivalence → Nondeterministic Time Complexity and NP → The P vs. NP Problem → Complexity Class P: Polynomial Time → Complexity Class NP: Nondeterministic Polynomial Time → NP-Completeness and Cook-Levin Theorem → The Cook-Levin Theorem → Boolean Satisfiability, Cook-Levin, and Reductions → SAT Solving and Conflict-Driven Clause Learning

Longest path: 101 steps · 503 total prerequisite topics

Prerequisites (2)

Leads To (2)