Negation is a function of one binary variable (that is, we "plug in" one statement). Conjunctions and disjunctions are functions of two binary variables (that is, we "plug in" two statements). We can compose logical connectives just as we can compose functions to create compound statements.
Consider the statement \(\lnot(p\land q)\text{:}\) "It is not the case that (\(p\) and \(q\))."
Table1.2.1.Truth Table for \(\lnot(p\land q)\)
\(p\)
\(q\)
\(p\land q\)
\(\lnot(p \land q)\)
T
T
T
F
T
F
F
T
F
T
F
T
F
F
F
T
For the statement \(\lnot(p\land q)\) to be true, we see that we need one of \(p\) or \(q\) to be false (not necessarily both). That is, the truth value should match the truth value of the compound statement \((\lnot p) \lor (\lnot q)\text{.}\) To verify this, we look at the truth table for the statement \((\lnot p) \lor (\lnot q)\text{:}\) "(Not \(p\)) or (not \(q\))."
Table1.2.2.Truth Table for \((\lnot p) \lor (\lnot q)\)
\(p\)
\(q\)
\(\lnot p\)
\(\lnot q\)
\((\lnot p)\lor (\lnot q)\)
T
T
F
F
F
T
F
F
T
T
F
T
T
F
T
F
F
T
T
T
We can see from the final column of these truth tables that the statements \(\lnot(p \land q)\) and \((\lnot p)\lor (\lnot q)\) correspond to the same function of \(p\) and \(q\text{.}\)
Definition1.2.3.
In general, a compound statement is a complex statement built from simple statements \(p\text{,}\)\(q\text{,}\) and so on. We typically reserve the capital letters \(P\text{,}\)\(Q\text{,}\)\(R\) (and so on) to denote compound statements. Two compound statements \(P\) and \(Q\) (made up of the same constituent statements) are logically equivalent provided their truth tables have the same final column. We denote this equivalence \(P \equiv Q\text{.}\)
Logical equivalence allows us to manipulate compound statements without changing their truth tables. This helps us determine how to negate compound statements.