71. Tautologies

71.1 Discussion

Each DeMorgan Law is the assertion that a certain propositional form is true no matter what propositions are plugged in for the variables. For example, the first DeMorgan Law is

$$\neg (P \wedge Q) \Leftrightarrow \neg P \vee \neg Q$$

No matter which predicates we let $P$ and $Q$ be in this statement, the result is a true statement.

71.1.1 Example let $P$ be the statement $x < 5$ and $Q$ be $x = 42$. Then the first DeMorgan Law implies that

$$\neg \bigl( (x < 5)\wedge (x = 42) \bigr) \Leftrightarrow \bigl( (x \geq 5)\vee (x \neq 42) \bigr)$$

is a true statement.

71.2 Definition: tautology

A propositional form which is true for all possible substitutions of propositional variables is called a tautology.

71.2.1 Fact The truth table for a tautology $S$ has all T’s in the column under $S$.

71.2.2 Example Both DeMorgan laws are tautologies, and so is the formula (70.1), which is called The law of the excluded middle. Both lines of its truth table have T.

$$\begin{array}{ccc} P & \neg P & P \vee \neg P \\ \hline \mathrm{T} & \mathrm{F} & \mathrm{T} \\ \mathrm{F} & \mathrm{T} & \mathrm{T} \end{array}$$

71.2.3 Warning Don’t confuse tautologies with predicates all of whose instances are true. A tautology is an expression containing propositional variables which is true no matter which propositions are substituted for the variables. Expression (70.2) is not a tautology, but some instances of it, for example “not $x > 5$ or $x > 3$” are predicates which are true for all values (of the correct type) of the variables.

71.2.4 Example Formula (70.2) (page 104) is not a tautology. For example, let $P$ be “$4 > 3$” and $Q$ be “$4 > 5$”, where $x$ ranges over real numbers; then Formula (70.2) becomes the proposition“(not $4 > 3$) or $4 > 5$”, i.e., “$4\leq 3$ or $4 > 5$”, which is false.

71.2.5 Exercise Show that $P \vee Q \Leftrightarrow \neg (\neg P \wedge \neg Q)$ is a tautology. (Answer on page 247.)

71.2.6 Exercise Show that the following are tautologies.

a) $P \wedge Q \Leftrightarrow \neg (\neg P \vee \neg Q)$

b) $(P \wedge \neg P) \Rightarrow Q$

c) $P \Rightarrow (Q\vee \neg Q)$

d) $P \vee (P \Rightarrow Q)$

e) $\bigl( (P \wedge Q) \Rightarrow R \bigr) \Leftrightarrow \bigl( P \Rightarrow (Q \Rightarrow R) \bigr)$

f) $P \wedge (Q\vee R) \Rightarrow P \vee (Q\wedge R)$

71.2.7 Remark Many laws of logic are equivalences like the DeMorgan laws. By Theorem 29.2, an equivalence between two expressions is a tautology if the truth tables for the two expressions are identical. Thus the truth tables for $\neg (P \wedge Q)$ and $\neg P \vee \neg Q$ are identical:

$$\begin{array}{ccccccc} P & Q & P \wedge Q & \neg (P \wedge Q) & \neg P & \neg Q & \neg P \vee \neg Q \\ \hline \mathrm{T} & \mathrm{T} & \mathrm{T} & \mathrm{F} & \mathrm{F} & \mathrm{F} & \mathrm{F} \\ \mathrm{T} & \mathrm{F} & \mathrm{F} & \mathrm{T} & \mathrm{F} & \mathrm{T} & \mathrm{T} \\ \mathrm{F} & \mathrm{T} & \mathrm{F} & \mathrm{T} & \mathrm{T} & \mathrm{F} & \mathrm{T} \\ \mathrm{F} & \mathrm{F} & \mathrm{F} & \mathrm{T} & \mathrm{T} & \mathrm{T} & \mathrm{T} \end{array}$$

71.2.8 Example You can check using this method that $\neg P \vee Q$ (i.e., Formula (70.2)) is equivalent to $P \Rightarrow Q$.

71.2.9 Exercise Prove by using Theorem 29.2 that the propositional forms $P \Rightarrow Q$, $\neg P \vee Q$ and $\neg (P \wedge \neg Q)$ are all equivalent. (Answer on page 247.)

71.2.10 Exercise Prove that $(P \Rightarrow Q) \Rightarrow Q$ is equivalent to $P \vee Q$.

Pages 105–106 of the book (PDF).