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

Literals and Clauses in Conjunctive Normal Form

College Depth 77 in the knowledge graph ☐ I know this ☆ Set as goal
459topics build on this
351prerequisites beneath it
See this on the map →
Atomic and Complex FormulasConjunctive and Disjunctive Normal Forms→→Conversion to Clausal FormFirst-Order Resolution+2 more
cnf literals clauses normal-forms resolution

Core Idea

A literal is an atomic formula or its negation (e.g., P or ¬P). A clause is a disjunction of literals (e.g., P ∨ ¬Q ∨ R). Conjunctive normal form (CNF) is a formula that is a conjunction of clauses. CNF is important for automated reasoning: the resolution rule operates on clauses, and converting any formula to CNF enables the application of resolution. Every propositional formula can be converted to an equivalent CNF (possibly with an exponential blowup), and CNF is the standard input for SAT solvers.

How It's Best Learned

Start with propositional formulas and convert them to CNF step-by-step using distributive laws. Understand clauses as OR-of-ANDs. Practice recognizing when a formula is already in CNF. Extend to first-order logic by treating ground atoms as propositional variables.

Common Misconceptions

Explainer

You already know from atomic versus complex formulas that propositional formulas are built from atomic propositions using connectives, and from normal forms that every formula can be rewritten in a canonical shape. CNF sharpens this: it imposes the tightest regular structure used in automated reasoning. A literal is the simplest unit: either an atomic proposition P (a positive literal) or its negation ¬P (a negative literal). A literal asserts something definite about one variable. A clause is a disjunction of literals: P ∨ ¬Q ∨ R says "at least one of these three things holds." A formula is in conjunctive normal form if it is a conjunction (AND) of clauses — a formula that looks like (clause₁) ∧ (clause₂) ∧ ... ∧ (clauseₙ).

The mnemonic to nail the distinction from DNF: CNF is AND of ORs; DNF is OR of ANDs. In CNF, each clause is an OR that must be satisfied, and *all* clauses must be satisfied simultaneously. Think of it as a list of constraints: every clause is one requirement the assignment must meet. A satisfying assignment must make at least one literal true in *every* clause. An empty clause (disjunction of zero literals) is unsatisfiable by convention — it represents a contradiction. A formula with no clauses is trivially satisfiable.

Converting any propositional formula to CNF uses the distributive laws you know from Boolean algebra. The procedure is: (1) eliminate biconditionals and implications by rewriting them in terms of ∧, ∨, ¬; (2) push negations inward using De Morgan's laws until they appear only on atoms; (3) distribute ∨ over ∧ using the law A ∨ (B ∧ C) ≡ (A ∨ B) ∧ (A ∨ C). Step 3 is where blowup happens: distributing ∨ over ∧ can double the number of clauses at each step, giving exponential blowup in the worst case. Modern SAT solvers avoid this by using Tseitin's transformation: introduce a fresh auxiliary variable for each subformula, add clauses relating it to its immediate components, and produce a CNF that is *equisatisfiable* (same satisfiability status) rather than logically equivalent. Tseitin's approach is linear in the size of the original formula.

CNF is the universal input language for SAT solvers and the foundation of the resolution proof system you will study next. The resolution rule takes two clauses that share a complementary literal pair — say (A ∨ P) and (B ∨ ¬P) — and derives the resolvent (A ∨ B). This rule operates only on clauses, which is why CNF is required. Resolution is both a refutation procedure (derive the empty clause to show unsatisfiability) and the engine behind DPLL and CDCL algorithms that power modern SAT solving. Mastering literals and clauses is therefore not merely a syntactic exercise but the prerequisite to understanding how automated reasoning actually works at scale.

Practice Questions 5 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 → Introduction to Propositional Logic → Propositional Connectives → Propositional Semantics and Valuations → Truth Functions and Interpretation → Formula Evaluation and Truth Tables → Logical Equivalence of Formulas → Logical Equivalence in Propositional Logic → Conjunctive and Disjunctive Normal Forms → Literals and Clauses in Conjunctive Normal Form

Longest path: 78 steps · 351 total prerequisite topics

Prerequisites (2)

Leads To (4)