Proof Methods and Strategy: Niloufar Shafiei
Proof Methods and Strategy: Niloufar Shafiei
Proof Methods and Strategy: Niloufar Shafiei
Niloufar Shafiei
Proof methods (review)
pq
Direct technique
Premise: p
Conclusion: q
Proof by contraposition
Premise: ¬q
Conclusion: ¬p
Proof by contradiction
Premise: p ¬q
Conclusion: a contradiction
1
Prove a theorem (review)
How to prove a theorem?
1. Choose a proof method
2. Construct argument steps
Argument:
premises
conclusion
2
Proof by cases
Prove a theorem by considering different cases
seperately
4
Exhaustive proof (example)
Show that n2 2n if n is positive integer with n
<3.
Proof (exhaustive proof):
Check possible cases
n=1 12
n=2 44
5
Exhaustive proof (example)
Prove that the only consecutive positive integers not
exceeding 50 that are perfect powers are 8 and 9.
Proof (exhaustive proof):
Check possible cases Definition:
a=2 1,4,9,16,25,36,49 An integer is a
perfect power if it
a=3 1,8,27
equals na, where
a=4 1,16 a in an integer
a=5 1,32 greater than 1.
a=6 1
The only consecutive numbers that are perfect powers
are 8 and 9.
6
Proof by cases
7
Proof by cases (example)
Prove that if n is an integer, then n2 n.
8
Proof by cases (example)
Prove that if n is an integer, then n2 n.
10
Proof by cases (example)
Prove that |xy|=|x||y|, where x and y are real numbers.
Definition:
Proof (proof by cases): The absolute value of a, |a|,
equals a when a0 and
Check possible cases
equals -a when a<0.
1. x and y both nonnegative
|xy| = xy |x|=x |y|=y |x||y| = xy
|xy| = |x||y|
2. x nonnegative and y is negative
|xy| = -xy |x|=x |y| = -y |x||y| = -xy
|xy| = |x||y|
11
Proof by cases (example)
Prove that |xy|=|x||y|, where x and y are real numbers.
Definition:
Proof (proof by cases): The absolute value of a, |a|,
Check possible cases equals a when a0 and
equals -a when a<0.
3. x negative and y nonnegative
|xy| = -xy |x|=-x |y| = y |x||y| = -xy
|xy| = |x||y|
4. x and y both negative
|xy| = xy |x|=-x |y| = -y |x||y| = xy
|xy| = |x||y|
It is true for all four cases, so |xy|=|x||y|, where x and y are
real numbers.
12
Proof by cases (example)
Prove that x2 + 3y2 = 8 is false where x and y are integers.
14
Without loss of generality (example)
Prove that |xy|=|x||y|, where x and y are real numbers.
15
Without loss of generality (example)
Prove that |xy|=|x||y|, where x and y are real numbers.
16
Without loss of generality (example)
Show that (x+y)r < xr + yr where x and y are positive
real numbers and r is a real number with 0 < r < 1.
Proof:
Without loss of generality assume x+y = 1.
x+y=t
(x/t) + (y/t) = 1
((x/t)+(y/t))r < (x/t)r + (y/t)r
tr ((x/t)+(y/t))r < tr (x/t)r + tr (y/t)r
(x+y)r < xr + yr
So, the inequality (x+y)r < xr + yr is the same when
(x+y=1) and (x+y=t).
17
Without loss of generality (example)
Show that (x+y)r < xr + yr where x and y are positive real
numbers and r is a real number with 0 < r < 1.
Proof:
We assume x+y = 1.
Since x and y are positive, 0< x < 1 and 0< y < 1.
0<r<1 0 < 1-r < 1
x1-r < 1 y1-r < 1
x / xr < 1 y / yr < 1
xr > x yr > y
xr + yr > x+y=1
xr + yr > (x+y)r = 1
18
Errors in proofs (example)
If x is a real number, then x2 is a positive real number.
Proof:
Case 1: x is positive
x2 is the product of two positive numbers, so x2 is positive.
Case2: x is negative
x2 is the product of two negative numbers, so x2 is
positive.
Case x=0 is missed.
Case 3: x=0
x2 = 0, so x2 is not positive
Thus the theorem is false.
19
Errors in proofs (example)
Show that 1 = 2.
Proof:
Assume a and b are two equal positive integers.
1. a=b
2. a2 = ab
3. a2 - b2 = ab - b2
4. (a - b)(a + b) = b(a - b)
5. a + b = b
6. 2b = b
7. 1 = 2
Step 5: a - b = 0, so dividing both sides of the equation
by a-b is wrong. 20
Existence proofs
A proof of a proposition of the form x P(x) is called
an existence proof.
Existence proof
Constructive proof
Finding an element a that P(a) is true.
Nonconstructive proof
Prove x P(x) is true in some other way.
Prove by contradiction
¬ x P(x) ( x ¬P(x) ) implies a
contradiction.
21
Constructive proof (example)
There is a positive integer that can be written
as the sum of squares of two positive
integers.
Proof:
Find an example
5 = 22 + 1 2
22
Nonconstructive proof (example)
There exist irrational numbers x and y such that xy is rational
Proof: Definition:
By previous example The real number r
2 is irrational. is rational if r=p/q,
(2 ) 2 integers p and q
Case 1: If (2 ) 2 is rational that q.
Thus, theorem is proved
Case 2: If (2 ) 2 is irrational
((2 ) 2 ) 2 = (2 ) 2 . 2 = (2 ) 2 = 2
2 (=2/1) is rational.
Thus, theorem is proved.
23
Uniqueness proofs
Theorem assert the existence of a unique element.
Unique element:
There is exactly one element with a particular
property.
What we need to show?
There is an element x with this property.
(Existence)
No other element y has this property.
If y has this property too, then x = y.
(Uniqueness)
24
Uniqueness proofs
25
Uniqueness proofs (example)
Show that if a and b are real numbers and
a 0 , then there is a unique real number r
such that ar + b = 0.
27
Proof strategies
Finding proofs can be challenging.
Replace terms by their definitions
Carefully analyze hypotheses and conclusion
Choose a proof technique
Attempt to prove the theorem
If it fails try different proof methods
28
Forward and backward reasoning
pq
Forward reasoning
Assume premises are true.
Using premises, axioms, other theorems,
construct a sequence of steps that leads to the
conclusion.
Backward reasoning
Work on the conclusion
Find a statement r that you can prove rq.
29
Backward reasoning (example)
Prove that arithmetic mean of two positive real numbers is
more than their geometric mean.
31
Backward reasoning (example)
Game:
There are 15 stones on a pile
Two players takes turn to remove stones from the
pile.
A player can remove one, two or three stones at a
time from the pile.
The player who removes the last stone wins the
game.
34
Backward reasoning (example)
Proof: (backward reasoning)
Strategy for player 1
Turn 1: leave 12 stones on the pile for player 2
Turn 2: player 2
Turn 3: leave 8 stones on the pile for player 2
Turn 4: player 2
Turn 5: leave 4 stones on the pile for player 2
Turn 6: player 2
Turn 7: removes all stones
Player 1 wins.
35
Adapting existing proofs
Often an existing proof can be adapted to
prove a new result.
36
Adapting existing proofs (example)
If 3 is a factor of n2, then 3 is a factor of n.
Proof (proof by contradiction):
Assume 3 is a factor of n2 and 3 is not a factor of n.
a n2 = 3a
b n = 3b+1 or n=3b+2
Case 1: n=3b+1
n2 = (3b+1)2 = 9b2 + 6b + 1 = 3 (3b2 + 2b) + 1
Let k = 3b2 + 2b.
n2 = 3k + 1 So, 3 is not a factor of n2.
(Contradiction)
37
Adapting existing proofs (example)
If 3 is a factor of n2, then 3 is a factor of n.
Proof (proof by contradiction):
Assume 3 is a factor of n2 and 3 is not a factor of n.
a n2 = 3a
b n = 3b+1 or n=3b+2
Case 2: n=3b+2
n2 = (3b+2)2 = 9b2 + 12b + 4 = 3 (3b2 + 4b + 1) + 1
Let k = 3b2 + 4b + 1.
n2 = 3k + 1 So, 3 is not a factor of n2.
(Contradiction)
39
Adapting existing proofs (example)
Prove that 3 is irrational. Definition:
The real number r
Proof (proof by contradiction): is rational if r=p/q,
integers p and q
3b2 = a2
that q.
k a = 3k.
3b2 = 9k2
b2 = 3k2
So, 3 is factor of b2 and by previous theorem, 3 is factor of b.
m b = 3m.
So, a and b have common factor 3 which contradicts the
Assumption.
40
Looking for counterexample
Theorem proof
You might first try to prove theorem.
If your attempts are unsuccessful, try to find
counterexample.
41
Looking for counterexample
(example)
Every positive integer is the sum of the squares of three
integers.
Proof:
Try to find a counterexample
1 = 02 + 02 + 12
2 = 02 + 12 + 12
3 = 12 + 12 + 12
4 = 02 + 02 + 22
5 = 02 + 12 + 22
6 = 12 + 12 + 22
7=?
42
Looking for counterexample
(example)
Every positive integer is the sum of the squares of three
integers.
Proof:
Try to find a counterexample
7 is a counterexample.
Since squares less than 7 are 0, 1 and 4, 7 cannot be
written as a sum of three of these numbers.
43
Recommended exercises
3,5,7,9,13,15,20,21,28,32
Recommended book:
“How to read and do proofs”
by Daniel Solow
44