MTH 114 · Introduction to Sets, Logic and Algebra
Our notes
2 min readValid arguments
An argument with premises P₁, ..., Pₙ and conclusion C is valid if (P₁ ∧ ... ∧ Pₙ) → C is a tautology: whenever all premises are true, the conclusion is true.
Rules of inference
| Rule | Premises | Conclusion |
|---|---|---|
| Modus ponens | p → q, p | q |
| Modus tollens | p → q, ¬q | ¬p |
| Hypothetical syllogism | p → q, q → r | p → r |
| Disjunctive syllogism | p ∨ q, ¬p | q |
| Simplification | p ∧ q | p |
| Addition | p | p ∨ q |
Fallacies: affirming the consequent (p → q, q, so p) and denying the antecedent (p → q, ¬p, so ¬q) are invalid.
Example. "If it rains, the match is cancelled. The match was not cancelled. So it did not rain." Modus tollens: valid.
Direct proof
Assume the hypothesis, reason forward to the conclusion.
Prove: the sum of two odd integers is even. Let m = 2a + 1 and n = 2b + 1. Then m + n = 2a + 2b + 2 = 2(a + b + 1), which is even. ∎
Proof by contrapositive (indirect)
To prove p → q, prove ¬q → ¬p.
Prove: if n² is even, then n is even. Contrapositive: if n is odd, n² is odd. Let n = 2k + 1; n² = 4k² + 4k + 1 = 2(2k² + 2k) + 1, odd. ∎
Proof by contradiction
Assume the statement is false and reach something impossible.
Prove √2 is irrational. Suppose √2 = a/b in lowest terms. Then a² = 2b², so a² is even, so a is even (previous proof): a = 2c. Then 4c² = 2b², b² = 2c², so b is even too. Both even contradicts "lowest terms". ∎
Proof by mathematical induction
To prove P(n) for all n ≥ 1: (1) base case P(1); (2) inductive step: assume P(k), prove P(k + 1).
Prove 1 + 2 + ... + n = n(n + 1)/2.
- n = 1: left 1, right 1 × 2/2 = 1. ✓
- Assume 1 + ... + k = k(k + 1)/2. Then 1 + ... + k + (k + 1) = k(k + 1)/2 + (k + 1) = (k + 1)(k + 2)/2, which is the formula with n = k + 1. ∎
Check n = 4: 1 + 2 + 3 + 4 = 10 = 4 × 5/2. ✓
Counterexamples
To disprove a "for all" claim, one counterexample is enough: "n² + n + 41 is prime for every n" fails at n = 40 (40² + 40 + 41 = 1681 = 41²).
Exams usually ask: test an argument for validity; name the rule used; prove a statement directly, by contrapositive or by contradiction; an induction proof of a sum formula.
Common mistake: in induction, assuming what you want to prove for k + 1. You may only assume P(k), then show P(k + 1) follows.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick Contemporary Mathematics, 2.7 Logical Arguments
(opens openstax.org in a new tab)
OpenStax, Contemporary Mathematics, 2.7 Logical Arguments, CC BY-NC-SA 4.0 · licence
-
NOUN MTH 101: Elementary Mathematics I
NOUN course book (PDF, about 1.6 MB). Module 1 is sets: notation, set operations, Venn diagrams and sets of numbers; module 2 has mathematical induction. NOUN publishes this one under CC BY-SA 4.0.
(opens nou.edu.ng in a new tab)
National Open University of Nigeria, NOUN MTH 101: Elementary Mathematics I · licence
-
Levin, Discrete Mathematics: An Open Introduction, Section 1.4 Proofs
(opens discrete.openmathbooks.org in a new tab)
Levin, Discrete Mathematics: An Open Introduction, Levin, Discrete Mathematics: An Open Introduction, Section 1.4 Proofs, CC BY-NC-SA 4.0 · licence
-
Levin, Discrete Mathematics: An Open Introduction, Section 4.5 Proof by Induction
(opens discrete.openmathbooks.org in a new tab)
Levin, Discrete Mathematics: An Open Introduction, Levin, Discrete Mathematics: An Open Introduction, Section 4.5 Proof by Induction, 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
Watch
-
Logical Arguments - Modus Ponens & Modus Tollens
9 min · ≈ 41 MB · about ₦23
(opens youtube.com in a new tab)
-
Proof by Contradiction | Method & First Example
9 min · ≈ 41 MB · about ₦23
(opens youtube.com in a new tab)
-
Proof by Contrapositive | Method & First Example
4 min · ≈ 18 MB · about ₦10
(opens youtube.com in a new tab)
-
Mathematical Induction Practice Problems
18 min · ≈ 81 MB · about ₦45
(opens youtube.com in a new tab)
-
Lec 1 | MIT 6.042J Mathematics for Computer Science, Fall 2010
44 min · ≈ 198 MB · about ₦111
(opens youtube.com in a new tab)
-
Lecture 1: Sets, Set Operations and Mathematical Induction
1 h 14 min · ≈ 333 MB · about ₦187
(opens youtube.com in a new tab)
-
Lecture 2: Contradiction and Induction
1 h 20 min · ≈ 360 MB · about ₦202
(opens youtube.com in a new tab)
-
Mathematical Induction: Full and Detailed Tutorials with Several Examples #excellenceacademy
36 min · ≈ 162 MB · about ₦91
(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.