Conjunctive Normal Form
Conjunctive Normal Form
Conjunctive Normal Form (CNF) is when a formula: ?
- contains no connectives other than conjunction, disjunction and negation.
- only applies negation to propositional symbols (within literals)
- no conjunction appears in a sub-formula of a formula whose main connective is disjunction
Alternatively, you can see it as a conjunction of one or more formulae, each of which is a disjunction of one or more literals.
Link to original
Rewrite Rules
CNF Rewrite Rules
To obtain CNF, we can perform a series of transformations:
Link to original
Truth Table to CNF
We cannot go directly from a truth table to CNF, as we will end up with DNF. We can use rules such as De Morgan’s Law to fix our formula.
Suppose we are given :
| interpretation | |||
|---|---|---|---|
| 0 | 0 | 1 | |
| 0 | 1 | 0 | |
| 1 | 0 | 0 | |
| 1 | 1 | 1 |
The highlighted values make the formula false.
So when the formula is true, the formula is false, so we can find when is true when the formula we just found is false.
We can manipulate the formula to find it in CNF.