Logic II: Truth-Functions, Truth Tables, the Shorter Truth-Table Method and Proofs of Validity
2. Truth tables as a decision procedure
A truth table for a form with n distinct variables has 2ⁿ rows, since each variable can be true or false independently: 2 variables give 4 rows, 3 give 8, 4 give 16, 5 give 32. By convention the first variable alternates in blocks of half the rows, the next in blocks of a quarter, and so on, down to the last, which alternates every row. Because a finite table settles every case, truth tables are a decision procedure for propositional logic: they decide, mechanically and in a finite number of steps, whether any form is tautologous or any argument form valid.
| p | q | p ⊃ q | ~p ∨ q | ~q ⊃ ~p | q ⊃ p |
|---|---|---|---|---|---|
| T | T | T | T | T | T |
| T | F | F | F | F | T |
| F | T | T | T | T | F |
| F | F | T | T | T | T |
The columns for p ⊃ q, ~p ∨ q and ~q ⊃ ~p agree in all four rows, so they are logically equivalent (the replacement rules material implication and transposition). The converse q ⊃ p differs in rows 2 and 3, so a conditional is not equivalent to its converse, which is the source of the fallacy of affirming the consequent.
| p | q | p ⊃ q (premise) | Modus ponens: premise p, conclusion q | Affirming the consequent: premise q, conclusion p |
|---|---|---|---|---|
| T | T | T | premises T, T; conclusion T | premises T, T; conclusion T |
| T | F | F | a premise is F | a premise is F |
| F | T | T | a premise is F | premises T, T; conclusion F: counterexample |
| F | F | T | a premise is F | a premise is F |
3. The shorter truth-table method
A full table for five variables has 32 rows. The shorter (indirect) method instead tries to construct a counterexample directly: assign the conclusion the value false and every premise the value true, then work out what the variables must be. If a consistent assignment results, it is a counterexample and the argument is invalid. If every attempt forces some variable to be both true and false, no counterexample exists and the argument is valid. When the conclusion can be false in more than one way, each way must be tried.
| Argument form | Working | Verdict |
|---|---|---|
| p ⊃ q, q ⊃ r ∴ p ⊃ r (hypothetical syllogism) | Conclusion false forces p = T, r = F. Premise p ⊃ q true with p = T forces q = T. Premise q ⊃ r true with r = F forces q = F. q cannot be both T and F | Valid |
| p ∨ q, p ∴ ~q | Conclusion false forces q = T. Premise p true forces p = T. Then p ∨ q = T ∨ T = T, so every premise is true and the conclusion false with p = T, q = T | Invalid (counterexample p = T, q = T) |
| (p ⊃ q) · (r ⊃ s), p ∨ r ∴ q ∨ s (constructive dilemma) | Conclusion false forces q = F, s = F. The first premise true makes p ⊃ q and r ⊃ s true, forcing p = F and r = F. Then p ∨ r = F, so the second premise is false | Valid |
4. Proving validity: rules of inference and replacement
Truth tables become unwieldy for many variables, so validity is also shown by a formal proof: a sequence of statements, each either a premise or derived from earlier lines by a rule, ending in the conclusion. An argument is a set of statements; an argument form is its skeleton with statement variables, and a given argument is a substitution instance of every form it fits. Copi's system has nine rules of inference, which apply only to whole lines, and ten rules of replacement, which license replacing a part of a line by a logically equivalent expression.
| Rule | Form |
|---|---|
| Modus ponens (MP) | p ⊃ q, p ∴ q |
| Modus tollens (MT) | p ⊃ q, ~q ∴ ~p |
| Hypothetical syllogism (HS) | p ⊃ q, q ⊃ r ∴ p ⊃ r |
| Disjunctive syllogism (DS) | p ∨ q, ~p ∴ q |
| Constructive dilemma (CD) | (p ⊃ q) · (r ⊃ s), p ∨ r ∴ q ∨ s |
| Absorption (Abs) | p ⊃ q ∴ p ⊃ (p · q) |
| Simplification (Simp) | p · q ∴ p |
| Conjunction (Conj) | p, q ∴ p · q |
| Addition (Add) | p ∴ p ∨ q |
| Rule | Equivalence |
|---|---|
| De Morgan's theorems (De M) | ~(p · q) ≡ (~p ∨ ~q); ~(p ∨ q) ≡ (~p · ~q) |
| Commutation (Com) | (p ∨ q) ≡ (q ∨ p); (p · q) ≡ (q · p) |
| Association (Assoc) | [p ∨ (q ∨ r)] ≡ [(p ∨ q) ∨ r], and the same for · |
| Distribution (Dist) | [p · (q ∨ r)] ≡ [(p · q) ∨ (p · r)]; [p ∨ (q · r)] ≡ [(p ∨ q) · (p ∨ r)] |
| Double negation (DN) | p ≡ ~~p |
| Transposition (Trans) | (p ⊃ q) ≡ (~q ⊃ ~p) |
| Material implication (Impl) | (p ⊃ q) ≡ (~p ∨ q) |
| Material equivalence (Equiv) | (p ≡ q) ≡ [(p ⊃ q) · (q ⊃ p)]; (p ≡ q) ≡ [(p · q) ∨ (~p · ~q)] |
| Exportation (Exp) | [(p · q) ⊃ r] ≡ [p ⊃ (q ⊃ r)] |
| Tautology (Taut) | p ≡ (p ∨ p); p ≡ (p · p) |
| Line | Statement | Justification |
|---|---|---|
| 1 | (P ∨ Q) ⊃ R | Premise |
| 2 | S ⊃ ~R | Premise |
| 3 | S | Premise |
| 4 | ~R | 2, 3 MP |
| 5 | ~(P ∨ Q) | 1, 4 MT |
| 6 | ~P · ~Q | 5 De M |
| 7 | ~P | 6 Simp |
Key takeaways
- Five connectives: ~, ·, ∨ (inclusive), ⊃ (false only when T ⊃ F), ≡; "p only if q" is p ⊃ q, "p unless q" is p ∨ q, "neither p nor q" is ~p · ~q.
- A truth table for n variables has 2ⁿ rows (16 for four, 32 for five); tautology, contradiction and contingency; equivalence as agreement in every row; p ⊃ q equals ~p ∨ q and ~q ⊃ ~p, but not q ⊃ p.
- An argument form is valid iff no row makes all premises true and the conclusion false; affirming the consequent fails in the row p = F, q = T.
- Shorter truth-table method: make the conclusion false and premises true; a consistent assignment is a counterexample (invalid), a forced contradiction shows validity (HS and CD valid; p ∨ q, p ∴ ~q invalid).
- Nine rules of inference (MP, MT, HS, DS, CD, Abs, Simp, Conj, Add) apply to whole lines; ten rules of replacement (De M, Com, Assoc, Dist, DN, Trans, Impl, Equiv, Exp, Taut) apply to parts; conditional and indirect proof extend the system.
Practice questions (10)
Attempt each one before opening the answer. Every explanation names the tempting wrong option as well as the right one, because that is where marks are lost.
How many rows does a complete truth table need for a statement form containing four distinct variables? Type the number.
Numerical answer — type the value.
Show answer
Answer: 16
Each variable can be true or false independently, so n variables give 2ⁿ rows: 2⁴ = 16. Three variables would need 8 and five would need 32.A material conditional p ⊃ q is false when:
Show answer
Answer: C — p is true and q is false
The conditional is false in exactly one row, true antecedent with false consequent. With a false antecedent it is true whatever q is, and with both true it is true.From "p ⊃ q" and "~q", the inference to "~p" is justified by:
Show answer
Answer: B — Modus tollens
Modus tollens denies the consequent to deny the antecedent. Modus ponens affirms the antecedent; denying the antecedent (from p ⊃ q and ~p to ~q) is the invalid look-alike.By De Morgan's theorem, ~(p · q) is logically equivalent to:
Show answer
Answer: A — ~p ∨ ~q
"Not both p and q" is true unless both are true, which is exactly when at least one is false: ~p ∨ ~q. The form ~p · ~q ("neither") is equivalent to ~(p ∨ q), the other De Morgan theorem.Using the shorter truth-table method, which of the following argument forms is INVALID?
Show answer
Answer: C — p ⊃ q, ~p ∴ ~q
For p ⊃ q, ~p ∴ ~q, make the conclusion false (q = T) and the premise ~p true (p = F); then p ⊃ q is F ⊃ T = T. All premises are true and the conclusion false, so it is invalid (denying the antecedent). The other three are MT, DS and HS; in each, trying to build a counterexample forces a contradiction.Assertion (A): The argument form "p ⊃ q, q ∴ p" is invalid. Reason (R): Every argument with a true conclusion is valid. Choose the correct option.
Show answer
Answer: C — A is true, but R is false
A is true: the row p = F, q = T makes both premises true and the conclusion false (affirming the consequent). R is false: validity is a matter of form, and an invalid form can have instances with true conclusions; what cannot happen in a valid argument is true premises with a false conclusion.Assertion (A): (p · q) ⊃ p is a tautology. Reason (R): A truth table for n variables has 2ⁿ rows. Choose the correct option.
Show answer
Answer: B — Both A and R are true, but R is not the correct explanation of A
Both are true, but R does not explain A. (p · q) ⊃ p is tautologous because the antecedent is true only when p is true, so the conditional can never be T ⊃ F; this holds in all four rows. The row count is a general fact about truth tables and gives no reason why this particular form is true in every row.Which of the following statement forms are tautologies? Select all that apply.
Show answer
Answer: A — (p · ~p) ⊃ q; B — p ⊃ (q ⊃ p)
p ⊃ (q ⊃ p) is false only if p is true and q ⊃ p false, but q ⊃ p is false only if p is false: impossible, so it is a tautology. (p · ~p) ⊃ q has an antecedent that is false in every row, so it is always true. (p ⊃ q) ⊃ p is false when p = F (then p ⊃ q is T and the whole is T ⊃ F). p ⊃ (p · q) is false when p = T, q = F.Which of the following are rules of replacement (not rules of inference) in Copi's system? Select all that apply.
Show answer
Answer: A — Transposition; D — Exportation
Transposition, (p ⊃ q) ≡ (~q ⊃ ~p), and exportation, [(p · q) ⊃ r] ≡ [p ⊃ (q ⊃ r)], are equivalences and may be applied to parts of lines. Absorption and disjunctive syllogism are among the nine rules of inference and apply only to whole lines.In how many rows of the complete truth table for "(p ∨ q) ⊃ r" is the statement false? Type the number.
Numerical answer — type the value.
Show answer
Answer: 3
The table has 2³ = 8 rows. A conditional is false only when its antecedent is true and its consequent false, so r must be F (4 rows) and p ∨ q must be T. Among those 4 rows, p ∨ q is false only when p = F and q = F, so it is true in 3 of them. The statement is false in exactly 3 rows.