Some formulas are true in every row of their truth table, and some are false in every row. These special formulas are the backbone of correct reasoning. In this section we name them and learn a second way to prove equivalences: by a chain of laws instead of a truth table.
Three kinds of compound propositions
Definition 1.20 · Tautology, contradiction, contingency
A compound proposition is a tautology if it is true for every choice of truth values of its simple propositions, a contradiction if it is false for every choice, and a contingency if it is neither (true in some rows and false in others).
Type Last column Example Tautology all T p ∨ ¬ p p \lor \neg p p ∨ ¬ p Contradiction all F p ∧ ¬ p p \land \neg p p ∧ ¬ p Contingency mixed p → q p \to q p → q
Intuition
A tautology is like the sentence “Tomorrow it will rain or it will not rain”: it is true without knowing anything about the weather. A contradiction is like “It is raining and it is not raining”: false whatever the weather. Most everyday sentences are contingencies: their truth depends on the facts.
Example 1.21 Showing a tautology with a truth table
Goal. Show that p ∨ ¬ ( p ∧ q ) p \lor \neg(p \land q) p ∨ ¬ ( p ∧ q ) is a tautology.
Step. Build the table:
p p p q q q p ∧ q p \land q p ∧ q ¬ ( p ∧ q ) \neg(p \land q) ¬ ( p ∧ q ) p ∨ ¬ ( p ∧ q ) p \lor \neg(p \land q) p ∨ ¬ ( p ∧ q ) T T T F T T F F T T F T F T T F F F T T
Step. The last column is T in every row.
Result. p ∨ ¬ ( p ∧ q ) p \lor \neg(p \land q) p ∨ ¬ ( p ∧ q ) is a tautology.
Proving with the laws instead of tables
A truth table with 4 variables has 16 rows; with 5 it has 32. The laws give a shorter method:
Start from one side.
Change it one step at a time, each step using one law.
Write the name of the law at the end of each line.
Stop when you reach the other side (or T \mathbf{T} T for a tautology).
Example 1.22 Proving an equivalence with the laws
Goal. Prove ( p → q ) ∧ ( p → r ) ≡ p → ( q ∧ r ) (p \to q) \land (p \to r) \equiv p \to (q \land r) ( p → q ) ∧ ( p → r ) ≡ p → ( q ∧ r ) without a truth table.
Step. Remove both arrows with the conditional law:
( p → q ) ∧ ( p → r ) ≡ ( ¬ p ∨ q ) ∧ ( ¬ p ∨ r ) (p \to q) \land (p \to r) \equiv (\neg p \lor q) \land (\neg p \lor r) ( p → q ) ∧ ( p → r ) ≡ ( ¬ p ∨ q ) ∧ ( ¬ p ∨ r )
Step. Both brackets share ¬ p \neg p ¬ p , so use the distributive law (backwards):
≡ ¬ p ∨ ( q ∧ r ) \equiv \neg p \lor (q \land r) ≡ ¬ p ∨ ( q ∧ r )
Step. Use the conditional law again, in the other direction:
≡ p → ( q ∧ r ) \equiv p \to (q \land r) ≡ p → ( q ∧ r )
Result. ( p → q ) ∧ ( p → r ) ≡ p → ( q ∧ r ) (p \to q) \land (p \to r) \equiv p \to (q \land r) ( p → q ) ∧ ( p → r ) ≡ p → ( q ∧ r ) . In words: “if p p p then q q q , and if p p p then r r r ” says the same as “if p p p then both q q q and r r r ”.
Example 1.23 Proving a tautology with the laws (modus tollens)
Goal. Show that [ ( p → q ) ∧ ¬ q ] → ¬ p [(p \to q) \land \neg q] \to \neg p [( p → q ) ∧ ¬ q ] → ¬ p is a tautology (this is Example 6 of the study material, with every law named correctly).
Step. Conditional law on p → q p \to q p → q : ≡ [ ( ¬ p ∨ q ) ∧ ¬ q ] → ¬ p \;\equiv [(\neg p \lor q) \land \neg q] \to \neg p ≡ [( ¬ p ∨ q ) ∧ ¬ q ] → ¬ p
Step. Distributive law: ≡ [ ( ¬ p ∧ ¬ q ) ∨ ( q ∧ ¬ q ) ] → ¬ p \;\equiv [(\neg p \land \neg q) \lor (q \land \neg q)] \to \neg p ≡ [( ¬ p ∧ ¬ q ) ∨ ( q ∧ ¬ q )] → ¬ p
Step. Negation law (q ∧ ¬ q ≡ F q \land \neg q \equiv \mathbf{F} q ∧ ¬ q ≡ F ): ≡ [ ( ¬ p ∧ ¬ q ) ∨ F ] → ¬ p \;\equiv [(\neg p \land \neg q) \lor \mathbf{F}] \to \neg p ≡ [( ¬ p ∧ ¬ q ) ∨ F ] → ¬ p
Step. Identity law: ≡ ( ¬ p ∧ ¬ q ) → ¬ p \;\equiv (\neg p \land \neg q) \to \neg p ≡ ( ¬ p ∧ ¬ q ) → ¬ p
Step. Conditional law: ≡ ¬ ( ¬ p ∧ ¬ q ) ∨ ¬ p \;\equiv \neg(\neg p \land \neg q) \lor \neg p ≡ ¬ ( ¬ p ∧ ¬ q ) ∨ ¬ p
Step. De Morgan’s law and double negation: ≡ ( p ∨ q ) ∨ ¬ p \;\equiv (p \lor q) \lor \neg p ≡ ( p ∨ q ) ∨ ¬ p
Step. Commutative and associative laws: ≡ ( p ∨ ¬ p ) ∨ q \;\equiv (p \lor \neg p) \lor q ≡ ( p ∨ ¬ p ) ∨ q
Step. Negation law, then domination law: ≡ T ∨ q ≡ T \;\equiv \mathbf{T} \lor q \equiv \mathbf{T} ≡ T ∨ q ≡ T
Result. The formula is equivalent to T \mathbf{T} T , so it is a tautology. This tautology is the rule of reasoning called modus tollens , which you will use in Unit 2 (proof by contrapositive).
Correction · Wrong first step in Example 7
Study material says: In Example 7 (§1.4), the first step rewrites ( p → ∼ q ) ∧ ( p → ∼ r ) (p \to \sim q) \land (p \to \sim r) ( p →∼ q ) ∧ ( p →∼ r ) as ( ∼ p ∨ q ) ∧ ( ∼ p ∨ ∼ r ) (\sim p \lor q) \land (\sim p \lor \sim r) ( ∼ p ∨ q ) ∧ ( ∼ p ∨ ∼ r ) .
Correct version: By the conditional law, p → ¬ q ≡ ¬ p ∨ ¬ q p \to \neg q \equiv \neg p \lor \neg q p → ¬ q ≡ ¬ p ∨ ¬ q , so the first step must be ( ¬ p ∨ ¬ q ) ∧ ( ¬ p ∨ ¬ r ) (\neg p \lor \neg q) \land (\neg p \lor \neg r) ( ¬ p ∨ ¬ q ) ∧ ( ¬ p ∨ ¬ r ) . Then: ≡ ¬ p ∨ ( ¬ q ∧ ¬ r ) \equiv \neg p \lor (\neg q \land \neg r) ≡ ¬ p ∨ ( ¬ q ∧ ¬ r ) (distributive) ≡ ¬ p ∨ ¬ ( q ∨ r ) \equiv \neg p \lor \neg(q \lor r) ≡ ¬ p ∨ ¬ ( q ∨ r ) (De Morgan) ≡ ¬ [ p ∧ ( q ∨ r ) ] \equiv \neg[p \land (q \lor r)] ≡ ¬ [ p ∧ ( q ∨ r )] (De Morgan).
Why: A truth-table check of all 8 rows shows that ( p → ¬ q ) ∧ ( p → ¬ r ) (p \to \neg q) \land (p \to \neg r) ( p → ¬ q ) ∧ ( p → ¬ r ) and ( ¬ p ∨ q ) ∧ ( ¬ p ∨ ¬ r ) (\neg p \lor q) \land (\neg p \lor \neg r) ( ¬ p ∨ q ) ∧ ( ¬ p ∨ ¬ r ) are not equivalent (they differ, for example, when p p p is T, q q q is T and r r r is F). The final result of Example 7 is correct; only the first line is misprinted.
Correction · Wrong law names in Example 6, E19 and E20
Study material says: In Example 6 (§1.4), the step from ( ∼ p ∨ q ) ∧ ∼ q (\sim p \lor q) \land \sim q ( ∼ p ∨ q ) ∧ ∼ q to ( ∼ p ∧ ∼ q ) ∨ ( q ∧ ∼ q ) (\sim p \land \sim q) \lor (q \land \sim q) ( ∼ p ∧ ∼ q ) ∨ ( q ∧ ∼ q ) is labelled “by De Morgan’s laws”, and p → q ≡ ∼ p ∨ q p \to q \equiv \sim p \lor q p → q ≡∼ p ∨ q is credited to E18. In the answer to E20 (§1.7), expanding p ∧ ( ∼ p ∨ q ) p \land (\sim p \lor q) p ∧ ( ∼ p ∨ q ) and F ∨ ( p ∧ q ) \mathbf{F} \lor (p \land q) F ∨ ( p ∧ q ) is also labelled “by De Morgan’s law”. The answer to E19 writes ( p ∧ q ) (p \land q) ( p ∧ q ) where it means ( p ∨ q ) (p \lor q) ( p ∨ q ) and cites “E 19” for p ∨ F ≡ p p \lor \mathbf{F} \equiv p p ∨ F ≡ p .
Correct version: Those steps use the distributive law. p → q ≡ ¬ p ∨ q p \to q \equiv \neg p \lor q p → q ≡ ¬ p ∨ q is E17, and p ∨ F ≡ p p \lor \mathbf{F} \equiv p p ∨ F ≡ p is E18 (identity law). Correct E19 chain: ¬ ( ¬ p ∧ q ) ∧ ( p ∨ q ) ≡ ( p ∨ ¬ q ) ∧ ( p ∨ q ) \neg(\neg p \land q) \land (p \lor q) \equiv (p \lor \neg q) \land (p \lor q) ¬ ( ¬ p ∧ q ) ∧ ( p ∨ q ) ≡ ( p ∨ ¬ q ) ∧ ( p ∨ q ) (De Morgan, double negation) ≡ p ∨ ( ¬ q ∧ q ) \equiv p \lor (\neg q \land q) ≡ p ∨ ( ¬ q ∧ q ) (distributive) ≡ p ∨ F \equiv p \lor \mathbf{F} ≡ p ∨ F (negation) ≡ p \equiv p ≡ p (identity).
Why: De Morgan’s laws only move a ¬ \neg ¬ across a bracket. Spreading ∧ \land ∧ over ∨ \lor ∨ (or ∨ \lor ∨ over ∧ \land ∧ ) is the distributive law (Rosen, Section 1.3, Table 6).
Common mistake
Skipping or mislabelling steps in a law-based proof. Use one law per line and name it. In the exam, a correct chain with wrong law names loses marks.
Key idea
A tautology is true in every row, a contradiction in none, a contingency in some. To prove an equivalence or a tautology without a table, transform one side step by step, one named law per step, until you reach the other side or T \mathbf{T} T .
TEE Exam note
Expect “Show that … is a tautology” (by table or by laws, as the question says) and “Prove … using the laws of logic”. E20: with p p p : “It is raining”, q q q : “No one can go to see a film”, the sentence is [ p ∧ ( p → q ) ] → q [p \land (p \to q)] \to q [ p ∧ ( p → q )] → q . Proof: ≡ [ p ∧ ( ¬ p ∨ q ) ] → q ≡ [ ( p ∧ ¬ p ) ∨ ( p ∧ q ) ] → q \equiv [p \land (\neg p \lor q)] \to q \equiv [(p \land \neg p) \lor (p \land q)] \to q ≡ [ p ∧ ( ¬ p ∨ q )] → q ≡ [( p ∧ ¬ p ) ∨ ( p ∧ q )] → q (distributive) ≡ ( p ∧ q ) → q \equiv (p \land q) \to q ≡ ( p ∧ q ) → q (negation, identity) ≡ ¬ p ∨ ¬ q ∨ q \equiv \neg p \lor \neg q \lor q ≡ ¬ p ∨ ¬ q ∨ q (conditional, De Morgan) ≡ T \equiv \mathbf{T} ≡ T (negation, domination). E21: any contingency, e.g. p → q p \to q p → q or “If it is Sunday, the library is closed”; justify by showing its table has both T and F.
Key takeaways
Tautology: always T; contradiction: always F; contingency: sometimes T, sometimes F.
A formula is a tautology exactly when it is equivalent to T \mathbf{T} T .
Law-based proofs: one law per step, each law named.
Removing arrows with p → q ≡ ¬ p ∨ q p \to q \equiv \neg p \lor q p → q ≡ ¬ p ∨ q is usually the first step.
Practice questions Answer on paper first, then check. The explanation matters more than the letter you chose.
Question 1 · multiple choice The formula p → ( p ∨ q ) p \to (p \lor q) p → ( p ∨ q ) is:
A a contradiction B a tautology C a contingency D not a proposition
Check answer
Show answer Answer: B. a tautology
The only way to make a conditional false is p p p = T and p ∨ q p \lor q p ∨ q = F, but if p p p is T then p ∨ q p \lor q p ∨ q is T. So it is never false. Option 3 is tempting because it contains q q q , but its value never depends on q q q .
Question 2 · multiple choice The formula ( p ∨ q ) ∧ ( ¬ p ∧ ¬ q ) (p \lor q) \land (\neg p \land \neg q) ( p ∨ q ) ∧ ( ¬ p ∧ ¬ q ) is:
Check answer
Show answer Answer: C. a contradiction
By De Morgan, ¬ p ∧ ¬ q ≡ ¬ ( p ∨ q ) \neg p \land \neg q \equiv \neg(p \lor q) ¬ p ∧ ¬ q ≡ ¬ ( p ∨ q ) , so the formula has the form s ∧ ¬ s s \land \neg s s ∧ ¬ s , which is always F. Option 2 is tempting if you only check one or two rows.
Question 3 · multiple choice Which law justifies the step ( ¬ p ∨ q ) ∧ ¬ q ≡ ( ¬ p ∧ ¬ q ) ∨ ( q ∧ ¬ q ) (\neg p \lor q) \land \neg q \equiv (\neg p \land \neg q) \lor (q \land \neg q) ( ¬ p ∨ q ) ∧ ¬ q ≡ ( ¬ p ∧ ¬ q ) ∨ ( q ∧ ¬ q ) ?
A De Morgan’s law B Absorption law C Double negation law D Distributive law
Check answer
Show answer Answer: D. Distributive law
∧ ¬ q \land \neg q ∧ ¬ q is spread over the two parts of the ∨ \lor ∨ , which is the distributive law. Option 1 is the label used in the study material’s Example 6, but De Morgan’s laws only move a ¬ \neg ¬ across a bracket.
Question 4 · multiple choice In the corrected Example 7, what is the first step for ( p → ¬ q ) ∧ ( p → ¬ r ) (p \to \neg q) \land (p \to \neg r) ( p → ¬ q ) ∧ ( p → ¬ r ) ?
Check answer
Show answer Answer: A. ( ¬ p ∨ ¬ q ) ∧ ( ¬ p ∨ ¬ r ) (\neg p \lor \neg q) \land (\neg p \lor \neg r) ( ¬ p ∨ ¬ q ) ∧ ( ¬ p ∨ ¬ r )
The conditional law gives p → ¬ q ≡ ¬ p ∨ ¬ q p \to \neg q \equiv \neg p \lor \neg q p → ¬ q ≡ ¬ p ∨ ¬ q and p → ¬ r ≡ ¬ p ∨ ¬ r p \to \neg r \equiv \neg p \lor \neg r p → ¬ r ≡ ¬ p ∨ ¬ r . Option 2 is the misprint in the study material; it differs from the original formula, e.g. when p p p = T, q q q = T, r r r = F.
Question 5 · multiple choice Which formula is a contingency (Check Your Progress E21)?
Check answer
Show answer Answer: D. p → q p \to q p → q
p → q p \to q p → q is T in three rows and F in the row p p p = T, q q q = F, so it is neither always true nor always false. Option 3 is tempting, but it is a tautology: if p ∧ q p \land q p ∧ q is true, p p p is true.
Question 6 · short answer
Using the laws of logic (no truth table), show that ¬ ( p ∨ ¬ q ) ∨ q ≡ q \neg(p \lor \neg q) \lor q \equiv q ¬ ( p ∨ ¬ q ) ∨ q ≡ q . Name the law used in each step.
Show worked answer ¬ ( p ∨ ¬ q ) ∨ q ≡ ( ¬ p ∧ ¬ ¬ q ) ∨ q \neg(p \lor \neg q) \lor q \equiv (\neg p \land \neg\neg q) \lor q ¬ ( p ∨ ¬ q ) ∨ q ≡ ( ¬ p ∧ ¬¬ q ) ∨ q (De Morgan’s law) ≡ ( ¬ p ∧ q ) ∨ q \equiv (\neg p \land q) \lor q ≡ ( ¬ p ∧ q ) ∨ q (double negation) ≡ q ∨ ( q ∧ ¬ p ) \equiv q \lor (q \land \neg p) ≡ q ∨ ( q ∧ ¬ p ) (commutative laws) ≡ q \equiv q ≡ q (absorption law). So the formula is logically equivalent to q q q .
Question 7 · short answer
Using the laws of logic, show that ( p ∧ q ) → ( p ∨ q ) (p \land q) \to (p \lor q) ( p ∧ q ) → ( p ∨ q ) is a tautology.
Show worked answer ( p ∧ q ) → ( p ∨ q ) ≡ ¬ ( p ∧ q ) ∨ ( p ∨ q ) (p \land q) \to (p \lor q) \equiv \neg(p \land q) \lor (p \lor q) ( p ∧ q ) → ( p ∨ q ) ≡ ¬ ( p ∧ q ) ∨ ( p ∨ q ) (conditional law) ≡ ( ¬ p ∨ ¬ q ) ∨ ( p ∨ q ) \equiv (\neg p \lor \neg q) \lor (p \lor q) ≡ ( ¬ p ∨ ¬ q ) ∨ ( p ∨ q ) (De Morgan’s law) ≡ ( ¬ p ∨ p ) ∨ ( ¬ q ∨ q ) \equiv (\neg p \lor p) \lor (\neg q \lor q) ≡ ( ¬ p ∨ p ) ∨ ( ¬ q ∨ q ) (commutative and associative laws) ≡ T ∨ T \equiv \mathbf{T} \lor \mathbf{T} ≡ T ∨ T (negation law) ≡ T \equiv \mathbf{T} ≡ T (domination law). Since the formula is equivalent to T \mathbf{T} T , it is a tautology.