UNIHIVE

Study Hub UNIPORT MTH 114

MTH 114 · Introduction to Sets, Logic and Algebra

Rules of inference and methods of proof

Valid arguments, modus ponens and tollens, syllogisms, direct proof, proof by contrapositive, proof by contradiction, and proof by induction.

Our notes

2 min read

Valid 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

RulePremisesConclusion
Modus ponensp → q, pq
Modus tollensp → q, ¬q¬p
Hypothetical syllogismp → q, q → rp → r
Disjunctive syllogismp ∨ q, ¬pq
Simplificationp ∧ qp
Additionpp ∨ 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.

  1. n = 1: left 1, right 1 × 2/2 = 1. ✓
  2. 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

Watch

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.

All MTH 114 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.