29. Equivalence
29.1 Definition: equivalence
Two predicates $P$ and $Q$ are equivalent, written $P \Leftrightarrow Q$, if for any instance, both $P$ and $Q$ are true or else both $P$ and $Q$ are false. The statement $P \Leftrightarrow Q$ is called an equivalence or a biconditional.
29.1.1 Fact The truth table for equivalence is
$$\begin{array}{cc|c} P & Q & P\Leftrightarrow Q \\ \hline \text{T} & \text{T} & \text{T} \\ \text{T} & \text{F} & \text{F} \\ \text{F} & \text{T} & \text{F} \\ \text{F} & \text{F} & \text{T} \end{array}$$
This is the same as $(P \Rightarrow Q )\wedge (Q \Rightarrow P)$.
29.1.2 Usage The usual way of saying that $P \Leftrightarrow Q$ is, “$P$ if and only if $Q$”, or “$P$ is equivalent to $Q$.” The notation “iff” is sometimes used as an abbreviation for “if and only if”.
29.1.3 Example $x >3$ if and only if both $x \geq 3$ and $x \neq 3$.
29.1.4 Warning The statement “$P \Leftrightarrow Q$” does not say that $P$ is true.
29.2 Theorem
Two expressions involving predicates and logical connectives are equivalent if they have the same truth table.
29.2.1 Example $P \Rightarrow Q$ is equivalent to $\neg P \vee Q$, as you can see by constructing the truth tables. This can be understood as saying that $P \Rightarrow Q$ is true if and only if either $P$ is false or $Q$ is true.
29.2.2 Worked Exercise Construct a truth table that shows that $(P \vee Q )\wedge R$ is equivalent to $(P \wedge R )\vee (Q\wedge R)$.
Answer
$$\begin{array}{ccc|ccccc} P & Q & R & P\vee Q & (P\vee Q)\wedge R & P\wedge R & Q\wedge R & (P\wedge R)\vee(Q\wedge R) \\ \hline \text{T} & \text{T} & \text{T} & \text{T} & \text{T} & \text{T} & \text{T} & \text{T} \\ \text{T} & \text{T} & \text{F} & \text{T} & \text{F} & \text{F} & \text{F} & \text{F} \\ \text{T} & \text{F} & \text{T} & \text{T} & \text{T} & \text{T} & \text{F} & \text{T} \\ \text{T} & \text{F} & \text{F} & \text{T} & \text{F} & \text{F} & \text{F} & \text{F} \\ \text{F} & \text{T} & \text{T} & \text{T} & \text{T} & \text{F} & \text{T} & \text{T} \\ \text{F} & \text{T} & \text{F} & \text{T} & \text{F} & \text{F} & \text{F} & \text{F} \\ \text{F} & \text{F} & \text{T} & \text{F} & \text{F} & \text{F} & \text{F} & \text{F} \\ \text{F} & \text{F} & \text{F} & \text{F} & \text{F} & \text{F} & \text{F} & \text{F} \end{array}$$
29.2.3 Exercise Construct truth tables showing that the following three statements are equivalent:
a) $P \Rightarrow Q$
b) $\neg P \vee Q$
c) $\neg (P \wedge \neg Q)$
29.2.4 Exercise Write English sentences in the form of the three sentences in Exercise 29.2.3 that are equivalent to
$$(x > 2)\Rightarrow (x \geq 2)$$
Pages 40–41 of the book (PDF).