415 lecture note #2
2) Various proof techniques
Example:
To prove a theorem "If P(x1,..,xn), then Q (x1,..,xn)", where x1 Î D1,.., xn Î Dn.
Proposition: If n is any even integer, then (-1)n = 1.
Proof: Suppose n is any even integer. Then n = 2k for some integer k. Hence, by laws of exponents of algebra,
(-1)n = (-1)2k = ((-1)2)k = 1k = 1. Therefore, the proposition is true.
Proposition: For all integers n, if n2 is even, then n is even.
Proof: Suppose not. That is, [Negation of the theorem] suppose there exists an integer n such that n2 is even and n is odd. Since n is odd, n = 2k + 1 for some integer k. Then,
n2 = (2k + 1)2 = (2k + 1)(2k + 1) = 4k2 + 4k + 1 = 2(2k2 + 2k) + 1
by the laws of algebra. Let m = 2k2 + 2k. Then, m is an integer because 2 and k are integers, and sums and products of integers are integers. It follows by substitution that n2 = 2m + 1 for an integer m, and thus n2 is odd. Thus, contradiction. {Hence, the supposition is false and the theorem is true.]
P(1) P(2) P(3)
Principle of (ordinary) Mathematical Induction:
Let P(n) be a predicate that is defined for integer n, and let a be a fixed integer. Suppose the following two statements are true:
Then, the statement "For all integers n >= a, P(n)" is true. |
Theorem:
for n = 1, 2, ..
Proof: We show by induction on n.
Basic Step: When n = 1,
.... (A)
Inductive Step:
[Inductive Hypothesis] Assume
is true for all integer n >= 1.
[Inductive statement] We show that the equation is true for n+1, that is, .
Using the inductive hypothesis, we derive it as follows.
.... (B)
By (A) and (B), the theorem is true (for all integers n >= 1).