Proofs — Mathematical induction (CSCI 2824, Spring 2015)In this series of notes, we are going to
In this page, we will discuss the principle of mathematical induction and prove properties of numbers using induction. This lecture corresponds to section 2.3 of Ensley and Crawley's book. Mathematical Induction: General PrincipleMathematical induction is a very common technique for proving properties of natural numbers (and other discrete structures such as sets, relations and trees that we will study very soon). Here is a video of falling dominoes: Click here!. Let us imagine an infinitely long sequence of tiles arranged in a straight line (close enough to each other), and let us tip domino number 1. We wish to argue that every domino will fall. Here is how we can argue:
The argument above is the crux of induction. To prove a property over all natural numbers , we may argue as follows:
Weak Induction ProofsWeak induction offers a simple way for proving a property for all natural numbers . I.e, . Proof by weak induction proceeds in easy three steps!
Example 1Induction can be really useful to guess and prove closed forms of sequences. Consider a simple one: We have . Therefore here is our guess: . How do we prove it? Claim: . Proof by induction
Base Case: We verify that . So this works. Induction Hypothesis: For all , If then . Proof of induction hypothesis:
Therefore, we have proved that for all by induction. QED. Example 2Theorem. The sum of first numbers . Proof by induction (just like we did for the dominoes)
Base Case: We will verify the fact for . Note that . Induction Hypothesis: Proof of Induction Hypothesis:
Hence, by induction we get for any integer . QED. Example 3Let us try the sequence . First, we guess what the closed form could be by writing down the first few terms: . Claim: . Proof by induction
Strong Induction Proof: a motivating exampleIn weak induction, we prove that the number satisfies by assuming that (its immediate predecessor) does. That may not always yield the simplest proof. First some definitions: Floor and Ceiling Functions
The function is also called the floor of . It gives the smallest integer that is less than or equal to . The function is also called the ceil of . It gives the smallest integer that is greater than or equal to . As examples, whereas . For negative numbers, it is a little counter intuitive: whereas . Consider the recurrence . Here is the result of performing the recurrence on a few values of . Some of you may recognize the pattern (it is rather important one for CS). Here is the guess: for with . We can now try proving it by induction. We will first use weak induction. Theorem.
For all , If then . The theorem only applies to natural numbers . We handle this by simply allowing the base case of induction to start at . Proof by Weak Induction (a fail…)Base-Case For , we verify that . Inductive Hypothesis: . This is not easy to prove and infact is strictly not true. This is because depends on and not on like our previous sequences. Proof by Strong InductionStrong induction is different from weak in the inductive hypothesis.
Going back to dominoes, we assume in weak induction that the domino falls and prove that so does the . In strong induction, we assume that all dominoes numbered fall and prove that in that case the also falls. Claim: For all , if , then . Proof
Proof is by strong induction over . Base-Case: For , we verify that . (Advanced note: For strong induction, the base case is really not needed but we will go through it for the sake of uniformity, anyway). Strong Inductive Hypothesis: For all , if for all , then . Proof of the strong induction hypothesis: Recall the given recursion formula: We will split this into two cases based on being odd or not.
This proves the induction hypothesis. Almost QED… but there is now an extra proof needed on the side that argues that whenever is even, . For completeness, here is the proof of the side claim. Side-Claim: For all natural numbers , if is even, then . Side Proof
This is an example of a proof by contradiction. Let us assume otherwise. I.e., and . In other words, we have Since is odd, we cannot have . Therefore, . As a result, there is a natural number between and . This is a contradiction. Therefore, it has to be the case that . |