Definitions
Conjunctive Normal Form (CNF)
A formula is in CNF if it is of the form: where each is of the form: where each is , , a propositional variable or the negation of a propositional variable, and , .
More simply, a formula is in CNF if it is a conjunction of disjunctions of atoms.
Disjunctive Normal Form (DNF)
This is similar to CNF, but reversed. That is, a formula in DNF is a disjunction of conjunctions of atoms.
Normalising Formulae
All propositional formulae can be represented in CNF or DNF. To find a semantically equivalent formula in CNF, the following steps can be followed:
- Replace any and connectives with their equivalents according to the laws:
- Use De Morgan’s laws to push negations as far inwards as possible.
- Eliminate all double negations.
- Eliminate all conjunctions inside disjunctions, by pushing conjunctions inwards over disjunctions:
- This is an application of the distributivity law
Following steps 1-3, then swapping and in step 4 will result in a formula in DNF instead of CNF.