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 FormsConversion 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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsThe Distributive PropertyVariables and Expressions ReviewIntroduction to PolynomialsAdding and Subtracting PolynomialsMultiplying PolynomialsFactorialPermutationsCombinationsCounting Principles: Addition and Multiplication RulesIntroduction to Graph TheoryPropositional Logic FoundationsLogical EquivalencesBoolean AlgebraIntroduction to Propositional LogicPropositional ConnectivesPropositional Semantics and ValuationsTruth Functions and InterpretationFormula Evaluation and Truth TablesLogical Equivalence of FormulasLogical Equivalence in Propositional LogicConjunctive and Disjunctive Normal FormsLiterals and Clauses in Conjunctive Normal Form

Longest path: 78 steps · 351 total prerequisite topics

Prerequisites (2)

Leads To (4)