Satisfiability [00UX]
- November 30, 2026
Suppose we are given a set X = \{x_1, \dots , x_n\} of Boolean variables.
Definition Term [00V8]
- November 30, 2026
A term is either a variable x_i, or the logical negation of a variable, which we write \overline {x_i} (the negation of x_i is also often written \neg x_i).
Example Terms [00V9]
- November 30, 2026
For example, x_1 is a term, as is \overline {x_3}.
Definition Clause [00VA]
- November 30, 2026
A clause is a disjunction of one or more terms, t_1 \lor \dots \lor t_l.
Example Clauses [00VB]
- November 30, 2026
For example, x_1 \lor \overline {x_3} \lor x_4 is a clause. (Note there’s nothing in the definition precluding repeated variables like x_1 \lor x_1 \lor x_1 \lor x_3, but such repetition does not add anything from a logical point of view, so we usually think of the variables as being distinct.)
Definition Truth assignment [00VC]
- November 30, 2026
A truth assignment is a function X \to \{\mathsf {T},\mathsf {F}\} assigning a value of true or false to each variable x_i.
Definition Clause satisfaction [00VD]
- November 30, 2026
A truth assignment satisfies a clause C if it causes C to evaluate to true (under the usual rules of Boolean logic).
Example Clause satisfaction [00VE]
- November 30, 2026
For example, \{x_1 \mapsto \mathsf {T}, x_2 \mapsto \mathsf {F}, x_3 \mapsto \mathsf {F}, x_4 \mapsto \mathsf {F} \} satisfies x_1 \lor \overline {x_3} \lor x_4, but \{x_1 \mapsto \mathsf {F}, x_2 \mapsto \mathsf {F}, x_3 \mapsto \mathsf {T}, x_4 \mapsto \mathsf {F} \} does not. Note that it is always possible to come up with a satisfying truth assignment for any clause: just pick one of the terms and make it true.
Definition Satisfiability [00VF]
- November 30, 2026
A truth assignment v : X \to \{\mathsf {T},\mathsf {F}\} satisfies a collection of clauses C_1, \dots , C_k if it satisfies all of them (that is, it satisfies C_1 \land C_2 \land \dots \land C_k). We say that v is a satisfying assignment for \{C_1, \dots , C_k\}. When a collection of clauses has some satisfying assignment, we say it is satisfiable.
Example Satisfiable and unsatisfiable clause sets [00VG]
- November 30, 2026
For example, (x_1 \lor \overline {x_2}), (\overline {x_1} \lor \overline {x_3}), (x_2 \lor \overline {x_3}) is satisfiable: just set all x_i to \mathsf {F}. (This is not the only possible satisfying assignment.)
On the other hand, as you can verify, x_1, (x_3 \lor \overline {x_1}), (\overline {x_3} \lor \overline {x_1}) is not satisfiable: there is no way to assign truth values to the x_i which will simultaneously satisfy all the clauses.
Given these definitions, we can state the following problems:
Problem SAT [00VH]
- November 30, 2026
Satisfiability (SAT): Given clauses C_1, \dots , C_k over the variables X = \{x_1, \dots , x_n\}, is the collection of clauses satisfiable?
Here is another variant of SAT which seems like it might be easier (though as we will see, it is not):
Problem 3-SAT [00VI]
- November 30, 2026
3-SAT: Given a collection of clauses C_1, \dots , C_k each containing exactly three variables, is it satisfiable?
Solving SAT by brute force [00VJ]
- November 30, 2026
A brute-force algorithm for SAT (or 3-SAT) is to just try every possible truth assignment and check if any are satisfying. But if there are n variables, then there are 2^n possible truth assignments, so this brute force algorithm takes \Omega (2^n). Once again, it turns out that we do not know any fundamentally faster algorithms, although in practice there are "SAT solvers" which are vastly more efficient on real, practical problems than one might expect, even though there still exist worst-case inputs which would make them take exponential time.