← Logic for the TMUA

Miscellaneous: Truth Tables and Loose Ends

What you'll get from this section. A handful of ideas that tie the course together: truth tables — a mechanical way to settle any claim we've made — the precise sense in which PQP \Rightarrow Q means "you can't have PP without QQ", the surprising-but-important idea of vacuous truth, and a couple of other faces of the conditional.

Truth tables

A truth table lists every possible combination of truth values for the basic statements and works out the result in each case. With two statements there are four rows; with three there are eight; in general 2n2^n rows for nn statements.

Here are the basic connectives — "not" (¬\neg), "and" (\wedge), "or" (\vee):

PPQQ¬P\neg PPQP \wedge QPQP \vee Q
TTFTT
TFFFT
FTTFT
FFTFF

"And" is true only when both parts are; "or" is true when at least one part is.

The truth table for P ⇒ Q

PPQQPQP \Rightarrow Q
TTT
TFF
FTT
FFT

The headline fact: PQP \Rightarrow Q is false in exactly one case — when PP is true and QQ is false. In all three other cases it's true.

Put another way, if you are told PQP \Rightarrow Q holds, the combinations still on the table are

  • PP and QQ (both true),
  • not PP but QQ,
  • not PP and not QQ,

and the only combination ruled out is PP true with QQ false.

"P and not Q cannot both be true"

That single forbidden row is worth stating on its own. Saying PQP \Rightarrow Q is exactly the same as saying the situation "PP true and QQ false" never arises:

PQ¬(P¬Q).P \Rightarrow Q \quad\Leftrightarrow\quad \neg\big(P \wedge \neg Q\big).

The table confirms it — the column for ¬(P¬Q)\neg(P \wedge \neg Q) matches the column for PQP \Rightarrow Q row for row:

PPQQPQP \Rightarrow Q¬(P¬Q)\neg(P \wedge \neg Q)¬PQ\neg P \vee Q
TTTTT
TFFFF
FTTTT
FFTTT

This is a genuinely useful reformulation: anywhere you'd use "PQP \Rightarrow Q", you may instead use "we can't have PP without QQ." It's also the fact we quietly relied on in Section 5 — that the only way an implication fails is PP holding while QQ fails. Here is its justification.

Another face: ¬P ∨ Q

The last column of that table is a third equivalent form:

PQ¬PQ,P \Rightarrow Q \quad\Leftrightarrow\quad \neg P \vee Q,

"either PP fails, or QQ holds." And this isn't a new fact — it's just ¬(P¬Q)\neg(P \wedge \neg Q) rewritten with De Morgan's law from Section 3: ¬(P¬Q)\neg(P \wedge \neg Q) becomes ¬P¬(¬Q)\neg P \vee \neg(\neg Q), which is ¬PQ\neg P \vee Q.

Vacuous truth

Look again at the two rows where PP is false: PQP \Rightarrow Q is true in both. So whenever the condition PP fails, the implication is automatically true — regardless of QQ. An implication with a false hypothesis is said to be vacuously true.

This feels odd at first, but it's exactly right. "If 2+2=52 + 2 = 5, then I am the King of France" is a true statement, because its condition never holds, so it never gets the chance to be violated. More usefully in mathematics:

"For every real number xx, if x2<0x^2 < 0 then x=7x = 7" is true — because x2<0x^2 < 0 never happens, the implication is vacuously true for every xx.

TMUA is fond of this. A "for all" claim whose condition is never met is true by default.

Truth tables as a checker

Every equivalence in this course can be settled mechanically: build the table for each side and check the columns agree. The contrapositive from Section 4, for instance:

PPQQPQP \Rightarrow Q¬Q¬P\neg Q \Rightarrow \neg P
TTTT
TFFF
FTTT
FFTT

Identical columns, so PQP \Rightarrow Q and ¬Q¬P\neg Q \Rightarrow \neg P are equivalent — exactly what we argued by hand earlier. The biconditional from Section 6 yields a tidy table too, true precisely when PP and QQ share a truth value:

PPQQPQP \Leftrightarrow Q
TTT
TFF
FTF
FFT

When an argument in words gets slippery, a truth table is the safety net.

Common mistakes

1. Thinking a false hypothesis makes an implication false. The opposite is true: if PP is false, PQP \Rightarrow Q is true (vacuously).

2. Reading PQP \Rightarrow Q as "both PP and QQ hold". It only forbids the one combination PP true, QQ false. The other three are all allowed — in particular, PP being false tells you nothing about QQ.

3. Misremembering the false row. PQP \Rightarrow Q fails only at PP true, QQ false — no other row.

Summary

  • A truth table evaluates a statement across every combination of its parts (2n2^n rows for nn statements).
  • PQP \Rightarrow Q is false in exactly one case: PP true, QQ false.
  • Equivalently, PQP \Rightarrow Q is ¬(P¬Q)\neg(P \wedge \neg Q), and also ¬PQ\neg P \vee Q.
  • A false hypothesis makes an implication vacuously true.
  • Truth tables give a mechanical check for any equivalence claim.

Next: Section 8 — TMUA worked examples.