Conjunctive Normal Form — Definition, Formula & Examples
Conjunctive Normal Form (CNF) is a way of writing a logical formula as an AND of clauses, where each clause is an OR of literals (variables or their negations). Any propositional logic formula can be rewritten in CNF.
A propositional formula is in conjunctive normal form if it is a conjunction (AND) of one or more clauses, where each clause is a disjunction (OR) of one or more literals. A literal is either a propositional variable or its negation . Formally, a CNF formula has the structure , where each is a literal.
How It Works
To convert a formula to CNF, first eliminate conditionals and biconditionals using equivalences like . Next, push negations inward using De Morgan's laws so that applies only to individual variables. Finally, distribute over to achieve the required structure. The result is a conjunction of disjunctive clauses, each containing only literals.
Worked Example
Problem: Convert the formula into conjunctive normal form.
Step 1: Apply De Morgan's law to the negated conjunction.
Step 2: Since disjunction is associative, flatten the expression into a single clause.
Answer: The CNF is , which is a single clause (a conjunction of one clause).
Why It Matters
CNF is the required input format for SAT solvers, which are algorithms that determine whether a logical formula can be satisfied. It also appears in resolution-based proof systems in discrete math and artificial intelligence courses. Understanding CNF is essential for automated theorem proving and constraint satisfaction problems.
Common Mistakes
Mistake: Confusing CNF with Disjunctive Normal Form (DNF). Students sometimes distribute AND over OR instead of OR over AND.
Correction: In CNF, the outer connective is AND and each clause uses OR. In DNF, it is the reverse: OR of AND-clauses. When converting, distribute over , not the other way around.
