73. Lists of tautologies

Tables 72.1 and 72.2 give lists of tautologies. Table 72.1 is a list of tautologies involving “and”, “or” and “not”. Because union, intersection and complementation for sets are defined in terms of “and”, “or” and “not”, the tautologies correspond to universally true statements about sets, which are given alongside the tautologies.

Table 72.2 is a list of tautologies involving implication. Because of the modus ponens rule, the major role implication plays in logic is to provide successive steps in proofs. These laws can be proved using truth tables or be deriving them from the laws in Table 72.1 and the first law in Table 72.2, which allows you to define ‘$\Rightarrow$’ in terms of ‘$\neg$’ and ‘$\vee$’. It is an excellent exercise to try to understand why the tautologies in both lists are true, either directly or by using truth tables.

73.1 The propositional calculus

The laws in Tables 72.1 and 72.2 allow a sort of computation with propositions in the way that the rules of ordinary algebra allow computation with numbers, such as the distributive law for multiplication over addition which says that $3(x + 5) = 3x+ 15$. This system of computation is called the propositional calculus, a phrase which uses the word “calculus” in its older meaning “computational system”. (What is called “calculus” in school used to be taught in two parts called the “differential calculus” and the “integral calculus”.)

Recall that every predicate becomes a proposition (called an “instance” of the predicate) when constants are substituted for all its variables. Thus when predicates are substituted for the propositional variables in these laws, they become predicates which are true in every instance.

$$\begin{array}{lll} \text{(consistency)} & \neg T \Leftrightarrow F & \mathcal{U}^{c} = \emptyset \\ & \neg F \Leftrightarrow T & \emptyset^{c} = \mathcal{U} \\[4pt] \text{(unity)} & P \wedge T \Leftrightarrow P & A \cap \mathcal{U} = A \\ & P \vee F \Leftrightarrow P & A \cup \emptyset = A \\[4pt] \text{(nullity)} & P \wedge F \Leftrightarrow F & A \cap \emptyset = \emptyset \\ & P \vee T \Leftrightarrow T & A \cup \mathcal{U} = \mathcal{U} \\[4pt] \text{(idempotence)} & P \wedge P \Leftrightarrow P & A \cap A = A \\ & P \vee P \Leftrightarrow P & A \cup A = A \\[4pt] \text{(commutativity)} & P \wedge Q \Leftrightarrow Q \wedge P & A \cap B = B \cap A \\ & P \vee Q \Leftrightarrow Q \vee P & A \cup B = B \cup A \\[4pt] \text{(associativity)} & P \wedge (Q \wedge R) & A \cap (B \cap C) \\ & \quad \Leftrightarrow (P \wedge Q) \wedge R & \quad = (A \cap B) \cap C \\ & P \vee (Q \vee R) & A \cup (B \cup C) \\ & \quad \Leftrightarrow (P \vee Q) \vee R & \quad = (A \cup B) \cup C \\[4pt] \text{(distributivity)} & P \wedge (Q \vee R) & A \cap (B \cup C) \\ & \quad \Leftrightarrow (P \wedge Q) \vee (P \wedge R) & \quad = (A \cap B) \cup (A \cap C) \\ & P \vee (Q \wedge R) & A \cup (B \cap C) \\ & \quad \Leftrightarrow (P \vee Q) \wedge (P \vee R) & \quad = (A \cup B) \cap (A \cup C) \\[4pt] \text{(complement)} & P \vee \neg P \Leftrightarrow T & A \cup A^{c} = \mathcal{U} \\ & P \wedge \neg P \Leftrightarrow F & A \cap A^{c} = \emptyset \\[4pt] \text{(double negation)} & \neg\neg P \Leftrightarrow P & (A^{c})^{c} = A \\[4pt] \text{(absorption)} & P \wedge (P \vee Q) \Leftrightarrow P & A \cap (A \cup B) = A \\ & P \vee (P \wedge Q) \Leftrightarrow P & A \cup (A \cap B) = A \\[4pt] \text{(DeMorgan)} & \neg(P \vee Q) \Leftrightarrow \neg P \wedge \neg Q & (A \cup B)^{c} = (A^{c}) \cap (B^{c}) \\ & \neg(P \wedge Q) \Leftrightarrow \neg P \vee \neg Q & (A \cap B)^{c} = (A^{c} \cup B^{c}) \end{array}$$

Table 72.1: Boolean Laws

$$\begin{array}{ll} (\text{‘}\Rightarrow\text{’-elimination}) & (P \Rightarrow Q) \Leftrightarrow (\neg P \vee Q) \\ \text{(transitivity)} & ((P \Rightarrow Q) \wedge (Q \Rightarrow R)) \Rightarrow (P \Rightarrow R) \\ \text{(modus ponens)} & (P \wedge (P \Rightarrow Q)) \Rightarrow Q \\ \text{(modus tollens)} & (\neg Q \wedge (P \Rightarrow Q)) \Rightarrow \neg P \\ \text{(inclusion)} & P \Rightarrow (P \vee Q) \\ \text{(simplification)} & (P \wedge Q) \Rightarrow P \\ \text{(cases)} & (\neg P \wedge (P \vee Q)) \Rightarrow Q \\ \text{(everything implies true)} & Q \Rightarrow (P \Rightarrow Q) \\ \text{(false implies everything)} & \neg P \Rightarrow (P \Rightarrow Q) \end{array}$$

Table 72.2: Laws of Implication

73.1.1 Example When you substitute $x >7$ for $P$ and $x= 5$ for $Q$ in the second absorption law $P \vee (P \wedge Q )\Leftrightarrow P$ you get, in words, “Either $x >7$ or both $x >7$ and $x= 5$” is the same thing as saying “$x >7$”. This statement is certainly true: it is true by its form, not because of anything to do with the individual statements “$x >7$” and “$x= 5$”.

73.1.2 Exercise Define the logical connective NAND by requiring that $P$ NAND $Q$ be true provided at least one of $P$ and $Q$ is false.

a) Give the truth table for NAND.

b) Write a statement equivalent to “$P$ NAND $Q$” using only ‘$\wedge$’, ‘$\vee$’, ‘$\neg$’, ‘$P$’, ‘$Q$’ and parentheses.

c) Give statements equivalent to “$\neg P$”, “$P \wedge Q$” and “$P \vee Q$” using only ‘$P$’, ‘$Q$’, ‘NAND’, parentheses and spaces.

73.1.3 Exercise Do the same as Problem 73.1.2 for the connective NOR, where $P$ NOR $Q$ is true only if both $P$ and $Q$ are false.

73.1.4 Exercise Show how to define implication in terms of each of the connectives NAND and NOR of exercises 73.1.2 and 73.1.3.

73.1.5 Exercise Let ‘$*$’ denote the operation XOR discussed in Chapter 11. Prove the following laws:

a) $P *Q\Leftrightarrow Q*P$.

b) $P * (Q*R )\Leftrightarrow (P *Q )*R$.

c) $P \wedge (Q*R )\Leftrightarrow (P \wedge Q )* (P \wedge R)$.

73.1.6 Exercise (Mathematica)

a) Show that there are 16 possible truth tables for a Boolean expression with two variables.

b) Produce Boolean expressions with “$\neg$” and “$\Rightarrow$” as the only logical connectives that give each of the possible truth tables. Both variables must appear in each expression. Include a printout of Mathematica commands that verify that each expression gives the table claimed. (Enter $p \Rightarrow q$ as p ~Implies~ q.)

73.1.7 Exercise (hard) A distributive law involving binary operations ‘$\Delta$’ and ‘$\nabla$’ is a tautology of the form

$$P\nabla (Q \Delta R )\Leftrightarrow (P\nabla Q )\Delta (P\nabla R)$$

Let ‘$*$’ be defined as in Problem 73.1.5. Give examples showing that of the four possible distributive laws combining ‘$*$’ with ‘$\wedge$’ or ‘$\vee$’, the only correct one is that in Problem 73.1.5(c).

Pages 107–110 of the book (PDF).