Proof - Strategies - Post - Lecture Oct2
Proof - Strategies - Post - Lecture Oct2
1
based on How To Prove It, by D. Velleman, and Discrete Mathematics, by
K. H. Rosen
Proof Strategies
• Mathematicians use theorems to state answers to
mathematical questions.
• A theorem often states that if certain assumptions, called
hypotheses, are true, then some conclusion must also be true.
• Often hypotheses or conclusion contain free variables: we
mean the variable can stand for any element of the universe of
discourse.
• An assignment of values to these variables produces an
instance of the theorem.
• To prove a theorem, we must prove it for every instance.
• If there is even one instance for which the hypothesis is true,
but the conclusion is false, then the statement is incorrect.
• This instance is a counterexample.
Proof Strategies: Counterexample
Example. Suppose a real number x > 3. Then x 2 > 10.
• universe of discourse: R
• hypothesis: x > 3
• conclusion: x 2 > 10
• logical form: ∀x, (x > 3) → (x 2 > 10)
• example instance: x = 4, hypothesis is true, conclusion is true
• example instance: x = 3.1, hypothesis is true, conclusion is
false (3.12 = 9.61 < 10)
• correct or incorrect? true or false? Incorrect. False.
• how do we prove it is false? We just did, by finding a
counterexample.
Proof Strategies: Counterexample
Example. Suppose a real number x > 3. Then x 2 > 10.
• how do we prove it is false? We just did, by finding a
counterexample. Formally:
4
Proof Strategies: Counterexample
In general, to prove that ∀x, P(x) → Q(x) is false, we can
provide a counterexample P(c) ∧ ¬Q(c) for c in the universe of
discourse.
Take c = . . . in the universe of discourse.
[Proof of P(c) ∧ ¬Q(c) goes here.]
Therefore ¬(∀x, P(x) → Q(x)).
Why does this work?
(1) Take c = . . .
(2) P(c) ∧ ¬Q(c)
(3) ¬(P(c) → Q(c)) 2 conditional, deMorgan
(4) ∃x, ¬(P(x) → Q(x)) 3 exist. generalisation
(5) ¬(∀x, P(x) → Q(x)) 4 quantifier negation
5
Proof Strategies: Counterexample
Example. Suppose a real number x > 3. Then x 2 > 10.
• how do we prove it is false? By finding a counterexample. A
shorter version of the same proof:
6
Shorthand notations and conventions
• As our proofs get more complex, we will gradually introduce
shorthand notations.
• It is important to understand that these are not new concepts,
just shorter ways of writing the same thing.
8
Proof Strategies: Direct Proof
Example. Suppose x > 3 and y < 2 (real numbers). Then
x 2 − 2y > 5.
• universe of discourse: R
• hypotheses: x > 3 and y < 2
• conclusion: x 2 − 2y > 5
• logical form: ∀x∀y , ((x > 3) ∧ (y < 2)) → (x 2 − 2y > 5)
• example instance: x = 4 and y = 1, hypotheses are true,
conclusion is true
• example instance: x = 2 and y = 1, one hypothesis is false,
conclusion is false
• correct or incorrect? true or false? Correct. True.
• how do we prove it?
Proof Strategies: Direct Proof
Example. Suppose x > 3 and y < 2 (real numbers). Then
x 2 − 2y > 5.
Ideas / scratch work:
Givens: Goal:
x >3 x 2 − 2y > 5
y <2
11
Proof Strategies: Direct Proof
Example: If a, b, c ∈ R, a > b, and c > 0, then ac > bc.
Logical form: ((a > b) ∧ (c > 0)) → (ac > bc)
12
Proof Strategies: Direct Proof
Example: If a, b, c ∈ R, a > b, and c > 0, then ac > bc.
Equivalent Logical form: (a > b) → ((c > 0) → (ac > bc))
(Prove it!)
13
Proof Strategies: Direct Proof
To prove a goal of the form (P1 ∧ . . . ∧ Pn ) → Q:
Suppose P1 .
...
Suppose Pn .
[Proof of Q goes here.]
Therefore (P1 ∧ . . . ∧ Pn ) → Q.
16
Proof Strategies: Direct Proof
Solutions: ∀n, (∃k, n = 2k + 1) → (∃k, n2 = 2k + 1)
17
Proof Strategies: Direct Proof
Solutions:
∀n, m, (∃k, n = 2k + 1) ∧ (∃k, m = 2k + 1) → (∃k, n + m = 2k)
18
Proof Strategies: Contrapositive
Contrapositive Law:
P → Q is equivalent to ¬Q → ¬P
19
Proof Strategies: Contrapositive
Example. Suppose a, b, and c are real numbers and a > b. Prove
that if ac ≤ bc, then c ≤ 0.
Ideas / scratch work:
Givens: Goal:
a, b, c are real ac ≤ bc → c ≤ 0
a>b
Givens: Goal:
a, b, c are real c > 0 → ac > bc
a>b
20
Proof Strategies: Contrapositive
Solutions: ∀a, b, c, (a > b) → ((ac ≤ bc) → (c ≤ 0))
21
Proof Strategies: Contrapositive
√
Example: If n = ab, where a, b are positive integers, then a ≤ n
√
or b ≤ n.
√ √
Logical form: ∀a, b, n, (n = ab) → ((a ≤ n) ∨ (b ≤ n))
universe of discourse is positive integers
Contrapositive:
√ √
¬((a ≤ n) ∨ (b ≤ n)) → ¬(n = ab)
√ √
eqv (a > n) ∧ (b > n) → (n ̸= ab) de Morgan
22
Proof Strategies: Contrapositive
√ √
Solutions: ∀a, b, n, (n = ab) → ((a ≤ n) ∨ (b ≤ n)) universe of
discourse is positive integers
23
Proof Strategies: Biconditional
Biconditional Law:
P ↔ Q is equivalent to (P → Q) ∧ (Q → P)
24
Proof Strategies: Biconditional
Example: Prove x is even iff x 2 is even, for x ∈ Z.
27
Proof Strategies: Exhaustive Proof / Proof by Cases
Sometimes P1 ∨ . . . ∨ Pn is a tautology: it describes all possible
situations in the universe of discourse.
Prove P1 → Q.
...
Prove Pn → Q.
Therefore Q.
35
Proof Strategies: Contradiction
Example: If a is a natural number, and a2 is even, then a is even.
• universe of discourse: natural numbers
• hypothesis: a2 is even
• conclusion: a is even
• definitions: n is even: ∃k, n = 2k. n is odd: ∃k, n = 2k + 1.
• logical form: ∀a, (a2 is even) → (a is even)
• fact: (a is even) ↔ ¬(a is odd)
Proof plan:
Suppose a2 is even
Suppose a is odd for contr.
...
a contradiction
36
Proof Strategies: Contradiction
Solutions: ∀a, (a2 is even) → (a is even)
(1) Take arbitrary a
(2) Suppose a2 is even
(3) Suppose a is odd for contr.
(4) ∃k, a = 2k + 1 3 def.
(5) a = 2i + 1 4 exist.inst.
(6) a2 = (2i + 1)2 = 2(2i 2 + 2i) + 1 5
2
(7) 2i + 2i is an integer
(8) ∃k, a2 = 2k + 1 6,7 exist.gen.
2
(9) a is odd 8 def.
(10) a contradiction 2,9
(11) a is even 3,10 contradiction
2
(12) (a is even) → (a is even) 2,11 implication
2
(13) ∀a, (a is even) → (a is even) 1,12 univ.gen.
37
Proof Strategies
Anther useful short form:
Rule of Inference Name
∀x, P(x) → Q(x)
P(c) Universal Modus Ponens
∴ Q(c)
38
Proof Strategies: Contradiction
√
Example: 2 is irrational.
• Definition: x is rational iff there are integers a, b such that
x = ba .
• We say ba is “in lowest terms” if a and b have no factors in
common (other than 1).
Proof plan:
√
Suppose 2 is rational for contr.
√ a
∃a, b ∈ N, 2 = in lowest terms
b
...
a contradiction
39
Proof Strategies: Contradiction
Result from our previous proof: ∀a, (a2 is even) → (a is even) (*)
Universe of discourse: natural numbers.
√
(1) Suppose 2 is rational for contr.
√ a
(2) ∃a, b, ( 2 = ) ∧ (a, b have no common factors ̸= 1) 1 def.
b
√ x
(3) ( 2 = ) ∧ (x, y have no common factors ̸= 1) 2 exist.inst.
y
2 2
(4) x = 2y 3 simpl., mult. by pos.
2
(5) y is an integer
2
(6) ∃k, x = 2k 4,5 exist.gen.
2
(7) x is even 6 def.
(8) x is even (*),7 univ. modus ponens
(9) x = 2i 8 def., exist.inst.
2 2 2 2
(10) y = x /2 = (2i) /2 = 2i 4,9
2 2
(11) y is even 10, i ∈ Z, exist.gen., def.
(12) y is even (*),11 univ. modus ponens
(13) y = 2j 12 def., exist.inst.
(14) 2 is a common factor of x, y 9,13
(15) x, y have no common factors ̸= 1 3 simpl.
(16) a contradiction 14,15
√
(17) 2 is irrational 1,16 contradiction
40