MTH 114 · Introduction to Sets, Logic and Algebra
Our notes
2 min readRelated conditionals
For p → q ("if p then q"):
| Name | Form | Equivalent to p → q? |
|---|---|---|
| Converse | q → p | No |
| Inverse | ¬p → ¬q | No |
| Contrapositive | ¬q → ¬p | Yes |
The converse and inverse are equivalent to each other.
Example. "If a number is divisible by 4, it is even." Converse: "If a number is even, it is divisible by 4": false (6). Contrapositive: "If a number is not even, it is not divisible by 4": true.
Logical equivalence
Two statements are logically equivalent (≡) if they have the same truth value in every row of the truth table.
Useful equivalences:
- p → q ≡ ¬p ∨ q
- ¬(p → q) ≡ p ∧ ¬q
- p ↔ q ≡ (p → q) ∧ (q → p)
- De Morgan: ¬(p ∧ q) ≡ ¬p ∨ ¬q; ¬(p ∨ q) ≡ ¬p ∧ ¬q
- Distributive: p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
- Double negation: ¬¬p ≡ p
These mirror the set laws: ∧ behaves like ∩, ∨ like ∪, ¬ like complement.
Substitution and replacement
- Substitution: in a tautology, replacing a simple statement everywhere by any statement keeps a tautology.
- Replacement: replacing part of a statement by an equivalent part gives an equivalent statement.
Worked example. Simplify ¬(p → q) ∨ q.
- ¬(p → q) ≡ p ∧ ¬q, so the statement is (p ∧ ¬q) ∨ q.
- Distribute: (p ∨ q) ∧ (¬q ∨ q).
- ¬q ∨ q is a tautology T, and anything ∧ T is itself: p ∨ q.
Check with p = F, q = F: original ¬(T) ∨ F = F; p ∨ q = F. ✓ With p = T, q = F: original ¬(F) ∨ F = T; p ∨ q = T. ✓
Negating in words
"It is not true that I passed MTH and PHY" means "I failed MTH or I failed PHY" (De Morgan), not "I failed both".
Exams usually ask: write the converse, inverse and contrapositive of a sentence; prove an equivalence by truth table or by laws; negate a compound English sentence.
Common mistake: negating "if p then q" as "if p then not q". The negation is "p and not q".
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick Contemporary Mathematics, 2.4 Truth Tables for the Conditional and Biconditional
(opens openstax.org in a new tab)
OpenStax, Contemporary Mathematics, 2.4 Truth Tables for the Conditional and Biconditional, CC BY-NC-SA 4.0 · licence
-
De Morgan's laws
(opens en.wikipedia.org in a new tab)
Wikipedia, De Morgan's laws, CC BY-SA 4.0 · licence
-
Contemporary Mathematics, 2.5 Equivalent Statements
(opens openstax.org in a new tab)
OpenStax, Contemporary Mathematics, 2.5 Equivalent Statements, CC BY-NC-SA 4.0 · licence
-
Contemporary Mathematics, 2.6 De Morgan’s Laws
(opens openstax.org in a new tab)
OpenStax, Contemporary Mathematics, 2.6 De Morgan’s Laws, CC BY-NC-SA 4.0 · licence
-
Levin, Discrete Mathematics: An Open Introduction, Section 1.2 Implications
(opens discrete.openmathbooks.org in a new tab)
Levin, Discrete Mathematics: An Open Introduction, Levin, Discrete Mathematics: An Open Introduction, Section 1.2 Implications, CC BY-NC-SA 4.0 · licence
-
Hammack, Book of Proof, 3rd edition (whole free textbook)
A free proof textbook used in many universities (PDF, about 1.8 MB): sets, logic, direct and contrapositive proof, contradiction, induction, relations, functions, cardinality.
(opens richardhammack.github.io in a new tab)
Hammack, Book of Proof, CC BY-NC-ND 4.0 · licence
-
Levin, Discrete Mathematics: An Open Introduction, 4th edition (whole free textbook)
The whole book online with interactive exercises; a free PDF is linked from the front page.
(opens discrete.openmathbooks.org in a new tab)
Levin, Discrete Mathematics: An Open Introduction, Levin, Discrete Mathematics: An Open Introduction, 4th edition (whole free textbook), CC BY-NC-SA 4.0 · licence
-
OpenStax, Contemporary Mathematics (whole free textbook)
The whole book, free to read online or download as a PDF (the PDF is large: Wi-Fi).
(opens openstax.org in a new tab)
OpenStax, OpenStax, Contemporary Mathematics (whole free textbook), CC BY-NC-SA 4.0 · licence
Watch
-
Converse, Inverse, & Contrapositive - Conditional & Biconditional Statements, Logic, Geometry
12 min · ≈ 54 MB · about ₦30
(opens youtube.com in a new tab)
-
Propositional Logic − Logical Equivalences
17 min · ≈ 77 MB · about ₦43
(opens youtube.com in a new tab)
-
3 Ways to Show a Logical Equivalence | Ex: DeMorgan's Laws
5 min · ≈ 23 MB · about ₦13
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.