Chapter 45 Normal forms

45.1 Disjunctive normal form

Sometimes it is useful to consider sentences of a particularly simple form. For instance, we might consider sentences in which ¬ only attaches to atomic sentences, or those which are combinations of atomic sentences and negated atomic sentences using only . A relatively general but still simple form is that where a sentence is a disjunction of conjunctions of atomic or negated atomic sentences. When such a sentence is constructed, we start with atomic sentences, then (perhaps) attach negations, then (perhaps) combine using , and finally (perhaps) combine using .

Let’s say that a sentence is in disjunctive normal form if⁠f it meets all of the following conditions:

  1. (dnf1)

    No connectives occur in the sentence other than negations, conjunctions and disjunctions;

  2. (dnf2)

    Every occurrence of negation has minimal scope (i.e., any ‘¬’ is immediately followed by an atomic sentence);

  3. (dnf3)

    No disjunction occurs within the scope of any conjunction.

So, here are are some sentences in disjunctive normal form:

A
(A¬BC)
(AB)(A¬B)
(AB)(ABC¬D¬E)
A(C¬P234P233Q)¬B

Note that we have here broken one of the maxims of this book and temporarily allowed ourselves to employ the relaxed bracketing-conventions that allow conjunctions and disjunctions to be of arbitrary length. These conventions make it easier to see when a sentence is in disjunctive normal form. We will continue to help ourselves to these relaxed conventions, without further comment.

To further illustrate the idea of disjunctive normal form, we will introduce some more notation. We write ‘±𝒜’ to indicate that 𝒜 is an atomic sentence which may or may not be prefaced with an occurrence of negation. Then a sentence in disjunctive normal form has the following shape:

(±𝒜1±𝒜i)(±𝒜i+1±𝒜j)(±𝒜m+1±𝒜n)

We now know what it is for a sentence to be in disjunctive normal form. The result that we are aiming at is:

Disjunctive Normal Form Theorem. For any sentence, there is an equivalent sentence in disjunctive normal form.

Henceforth, we will abbreviate ‘Disjunctive Normal Form’ by ‘DNF’.

45.2 Proof of DNF Theorem via truth tables

Our first proof of the DNF Theorem employs truth tables. We will first illustrate the technique for finding an equivalent sentence in DNF, and then turn this illustration into a rigorous proof.

Let’s suppose we have some sentence, 𝒮, which contains three atomic sentences, ‘A’, ‘B’ and ‘C’. The very first thing to do is fill out a complete truth table for 𝒮. Maybe we end up with this:

A B C 𝒮
T T T T
T T F F
T F T T
T F F F
F T T F
F T F F
F F T T
F F F T

As it happens, 𝒮 is true on four lines of its truth table, namely lines 1, 3, 7 and 8. Corresponding to each of those lines, we will write down four sentences, whose only connectives are negations and conjunctions, where every negation has minimal scope:

  1. 1.

    ABC’ which is true on line 1 (and only then)

  2. 2.

    A¬BC’ which is true on line 3 (and only then)

  3. 3.

    ¬A¬BC’ which is true on line 7 (and only then)

  4. 4.

    ¬A¬B¬C’ which is true on line 8 (and only then)

We now combine all of these conjunctions using , like so:

(ABC)(A¬BC)(¬A¬BC)(¬A¬B¬C)

This gives us a sentence in DNF which is true on exactly those lines where one of the disjuncts is true, i.e., it is true on (and only on) lines 1, 3, 7, and 8. So this sentence has exactly the same truth table as 𝒮. So we have a sentence in DNF that is logically equivalent to 𝒮, which is exactly what we wanted!

Now, the strategy that we just adopted did not depend on the specifics of 𝒮; it is perfectly general. Consequently, we can use it to obtain a simple proof of the DNF Theorem.

Pick any arbitrary sentence, 𝒮, and let 𝒜1,,𝒜n be the atomic sentences that occur in 𝒮. To obtain a sentence in DNF that is logically equivalent 𝒮, we consider 𝒮’s truth table. There are two cases to consider:

  1. 1.

    𝒮 is false on every line of its truth table. Then, 𝒮 is a contradiction. In that case, the contradiction (𝒜1¬𝒜1) is in DNF and logically equivalent to 𝒮.

  2. 2.

    𝒮 is true on at least one line of its truth table. For each line i of the truth table, let i be a conjunction of the form

    (±𝒜1±𝒜n)

    where the following rules determine whether or not to include a negation in front of each atomic sentence:

    • 𝒜m is a conjunct of i if⁠f 𝒜m is true on line i.

    • ¬𝒜m is a conjunct of i if⁠f 𝒜m is false on line i.

    Given these rules, 𝒾 is true on (and only on) line i of the truth table which considers all possible valuations of 𝒜1, …, 𝒜n (i.e., 𝒮’s truth table).

    Next, let i1, i2, …, im be the numbers of the lines of the truth table where 𝒮 is true. Now let 𝒟 be the sentence:

    i1i2im

    Since 𝒮 is true on at least one line of its truth table, 𝒟 is indeed well-defined; and in the limiting case where 𝒮 is true on exactly one line of its truth table, 𝒟 is just i1, for some i1.

    By construction, 𝒟 is in DNF. Moreover, by construction, for each line i of the truth table: 𝒮 is true on line i of the truth table if⁠f one of 𝒟’s disjuncts (namely, 𝒾) is true on, and only on, line i. Hence 𝒮 and 𝒟 have the same truth table, and so are logically equivalent.

These two cases are exhaustive and, either way, we have a sentence in DNF that is logically equivalent to 𝒮.

So we have proved the DNF Theorem. Before we say any more, though, we should immediately flag that we are hereby returning to the austere definition of a (TFL) sentence, according to which we can assume that any conjunction has exactly two conjuncts, and any disjunction has exactly two disjuncts.

45.3 Conjunctive normal form

So far in this chapter, we have discussed disjunctive normal form. It may not come as a surprise to hear that there is also such a thing as conjunctive normal form (CNF).

The definition of CNF is exactly analogous to the definition of DNF. So, a sentence is in CNF if⁠f it meets all of the following conditions:

  1. (cnf1)

    No connectives occur in the sentence other than negations, conjunctions and disjunctions;

  2. (cnf2)

    Every occurrence of negation has minimal scope;

  3. (cnf3)

    No conjunction occurs within the scope of any disjunction.

Generally, then, a sentence in CNF looks like this

(±𝒜1±𝒜i)(±𝒜i+1±𝒜j)(±𝒜m+1±𝒜n)

where each 𝒜k is an atomic sentence.

We can now prove another normal form theorem:

Conjunctive Normal Form Theorem. For any sentence, there is an equivalent sentence in conjunctive normal form.

Given a TFL sentence, 𝒮, we begin by writing down the complete truth table for 𝒮.

If 𝒮 is true on every line of the truth table, then 𝒮 and (𝒜1¬𝒜1) are logically equivalent.

If 𝒮 is false on at least one line of the truth table then, for every line on the truth table where 𝒮 is false, write down a disjunction (±𝒜1±𝒜n) which is false on (and only on) that line. Let 𝒞 be the conjunction of all of these disjuncts; by construction, 𝒞 is in CNF and 𝒮 and 𝒞 are logically equivalent.

Practice exercises

A. Consider the following sentences:

  1. 1.

    (A¬B)

  2. 2.

    ¬(AB)

  3. 3.

    (¬A¬(AB))

  4. 4.

    (¬(AB)(AC))

  5. 5.

    (¬(AB)((¬C¬A)¬B))

  6. 6.

    ((¬(A¬B)C)¬(AD))

For each sentence, find an equivalent sentence in DNF and one in CNF.