Proofs by Counterexample & Contradiction: There Are Several Ways To Prove A Theorem
Proofs by Counterexample & Contradiction: There Are Several Ways To Prove A Theorem
Contradiction
There are several ways to prove a theorem:
Counterexample:
By providing an example of in which the theorem
does not hold, you prove the theory to be false.
For example: All multiples of 5 are even.
However 3x5 is 15, which is odd. The theorem is
false.
Contradiction:
Assume the theorem to be true. If the
assumption implies that some known property is
false, then the theorem CANNOT be true.
1
Proof by Induction
Proof by induction has three standard parts:
The first step is proving a base case, that is,
establishing that a theorem is true for some small
value(s), this step is almost always trivial.
Next, an inductive hypothesis is assumed.
Generally this means that the theorem is assumed
to be true for all cases up to some limit n.
3
Induction Example: Gaussian Closed
Form
Prove 1 + 2 + 3 + … + n = n(n+1) / 2
Basis:
If n = 0, then 0 = 0(0+1) / 2
Inductive hypothesis:
Assume 1 + 2 + 3 + … + n = n(n+1) / 2
Step (show true for n+1):
1 + 2 + … + n + n+1 = (1 + 2 + …+ n) + (n+1)
= n(n+1)/2 + n+1 = [n(n+1) + 2(n+1)]/2
= (n+1)(n+2)/2 = (n+1)(n+1 + 1) / 2
4
Induction Example: Geometric
Closed Form
Prove
a0 + a1 + … + an = (an+1 - 1)/(a - 1) for all a 1
Basis: show that a0 = (a0+1 - 1)/(a - 1)
a0 = 1 = (a1 - 1)/(a - 1) = 1
Inductive hypothesis:
Assume a0 + a1 + … + an = (an+1 - 1)/(a - 1)
Step (show true for n+1):
a0 + a1 + … + an+1 = a0 + a1 + … + an + an+1
= (an+1 - 1)/(a - 1) + an+1 = (an+1+1 - 1)/(a - 1)
5
Limits
lim [f(n) / g(n)] = 0 f(n) (g(n))
n
6
Useful Facts
For a 0, b > 0, lim n ( lga n / nb ) = 0,
so lga n = o(nb), and nb = (lga n )
lg(n!) = (n lg n)
7
Examples
A B
log3(n2) log2(n3)
nlg4 3lg n
lg2n n1/2
9
Examples
A B
log3(n2) log2(n3) A (B)
logba = logca / logcb; A = 2lgn / lg3, B = 3lgn, A/B =2/(3lg3)
nlg4 3lg n
lg2n n1/2
10
Examples
A B
log3(n2) log2(n3) A (B)
logba = logca / logcb; A = 2lgn / lg3, B = 3lgn, A/B =2/(3lg3)
lg2n n1/2
11
Examples
A B
log3(n2) log2(n3) A (B)
logba = logca / logcb; A = 2lgn / lg3, B = 3lgn, A/B =2/(3lg3)
12
End of Chapter 3
14