Mathematical Induction
(Content adapted from Critchlow & Eck)
When we want to prove quantified statements such as , we can only get so far with the natural deduction rules seen in the previous section. For most results we will need to know more about the structure of the domain of discourse.
The structure of the natural numbers—0, 1, 2, 3, and on to infinity—makes possible a powerful proof technique known as induction or mathematical induction. The idea behind induction is simple. Let be a one-place predicate whose domain of discourse includes the natural numbers. Suppose that we can prove that is true. Suppose that we can also prove the statements , , , and so on. The principal of mathematical induction is the observation that we can then conclude that is true for all natural numbers . This should be clear. Since and are true, we can apply the rule of modus ponens to conclude that is true. Then, since and are true, we can conclude by modus ponens that is true. From and , we conclude that is true. For any given in the set , we can continue this chain of deduction for steps to prove that is true.
When applying induction, we don't actually prove each of the implications , , and so on, individually. That would require an infinite amount of work. The whole point of induction is to avoid any infinitely long process. Instead, we prove (where the domain of discourse for the predicate is ). The statement summarizes all the infinitely many implications in a single statement. Stated formally, the principle of mathematical induction says that if we can prove the statement , then we can deduce that (again, with as the domain of discourse).
It should be intuitively clear that the principle of induction is valid. It follows from the fact that the list 0, 1, 2, 3, …, if extended long enough, will eventually include any given natural number. If we start from and take enough steps of the form , we can get for any given natural number . However, whenever we deal with infinity, we are courting the possibility of paradox. We can prove the principle of induction rigorously, but for now we just state it as a theorem:
Theorem: Mathematical Induction
Let be a one-place predicate whose domain of discourse includes the natural numbers. Suppose that . Then is true for all natural numbers . (That is, the statement is true, where the domain of discourse for is the set of natural numbers.)
Mathematical induction can be applied in many situations: you can prove things about strings of characters by doing induction on the length of the string, things about graphs by doing induction on the number of nodes in the graph, things about grammars by doing induction on the number of productions in the grammar, and so on. An extension known as structural induction will allow us to prove things about data structures such as lists and trees. We'll be looking at applications of induction for the rest of this chapter, and throughout the remainder of the text. Although proofs by induction can be very different from one another, they all follow just a few basic structures. A proof based on the preceding theorem always has two parts. First, is proved. This is called the base case of the induction. Then the statement is proved. This statement can be proved by letting be an arbitrary element of and proving . This in turn can be proved by assuming that is true and proving that the truth of follows from that assumption. This case is called the inductive case, and is called the inductive hypothesis or the induction hypothesis. Note that the base case is just as important as the inductive case. By itself, the truth of the statement says nothing at all about the truth of any of the individual statements . The chain of implications , , …, says nothing about unless the chain is anchored at the other end by the truth of . Let's look at a few examples.
Theorem: The number is divisible by 3 for all natural numbers .
Proof: Here, is the statement that is divisible by 3.
Base case: When , and is divisible by 3 (since .) Therefore the statement holds when .
Inductive case: We want to show that if the statement is true for (where is an arbitrary natural number), then it is true for also. That is, we must prove the implication . So we assume , that is, we assume that is divisible by 3. This means that for some integer . We want to prove , that is, that is also divisible by 3:
and from the last line we see that is in fact divisible by 3. (The third step—subtracting and adding 4—was done to enable us to use our inductive hypothesis.)
Altogether, we have proved that holds and that, for all , is true. Therefore, by the principle of induction, is true for all in , i.e. is divisible by 3 for all in .
The principal of mathematical induction gives a method for proving for all in the set . It should be clear that if is any natural number, a similar method can be used to show that is true for all natural numbers that satisfy . Just start the induction with a base case of instead of with a base case of . I leave the proof of this extension of the principle of induction as an exercise. We can use the extended principle of induction to prove a result that was first mentioned in the section on truth tables.
Theorem: Suppose that a compound proposition contains exactly propositional variables, where . Then there are exactly different ways of assigning truth values to the variables.
Proof: Let be the statement "There are exactly different ways of assigning truth values to propositional variables." We will use induction to prove the is true for all .
Base case: First, we prove the statement . If there is exactly one variable, then there are exactly two ways of assigning a truth value to that variable. Namely, the variable can be either true or _false. Since , is true.
Inductive case: Suppose that is already known to be true. We want to prove that, under this assumption, is also true. Suppose that , , …, are propositional variables. Since we are assuming that is true, we know that there are ways of assigning truth values to , , …, . But each assignment of truth values to , , …, can be extended to the complete list , , …, , in two ways. Namely, can be assigned the value true or the value false. It follows that there are ways of assigning truth values to , , …, . Since , this finishes the proof.
The sum of an arbitrary number of terms is written using the symbol . (This symbol is the Greek letter sigma, which is equivalent to the Latin letter S and stands for "sum.") Thus, we have
This notation for a sum, using the operator, is called summation notation. A similar notation for products uses the symbol . (This is the Greek letter pi, which is equivalent to the Latin letter P and stands for "product.") For example,
Induction can be used to prove many formulas that use these notations. Here are two examples:
Theorem: for any integer greater than zero.
Proof: Let be the statement . We use induction to show that is true for all .
Base case: Consider the case . is the statement that . Since and , is true.
Inductive case: Let be arbitrary, and assume that is true. We want to show that is true. is the statement . But
which is what we wanted to show. This computation completes the induction.
Theorem: for any natural number .
Proof: Let be the statement . We use induction to show that is true for all
Base case: Consider the case . is the statement that . Since each side of this equation is equal to one, this is true.
Inductive case: Let be arbitrary, and assume that is true. We want to show that is true. is the statement . But, we can compute that
which is what we wanted to show. This completes the induction.
For example, these theorems show that and that , as well as infinitely many other such sums.
Strong Mathematical Induction
There is a second form of the principle of mathematical induction which is useful in some cases. To apply the first form of induction, we assume for an arbitrary natural number and show that follows from that assumption. In the second form of induction, the assumption is that holds for all between 0 and inclusive, and we show that follows from this. This gives us a lot more to work with when deducing . We will need this second form of induction in the next two sections.
Theorem: Strong Mathematical Induction
Let be a one-place predicate whose domain of discourse includes the natural numbers. Suppose that is true and that
is true for each natural number . Then is true for every natural number .
For example, we can use this theorem to prove that every integer greater than one can be written as a product of prime numbers (where a number that is itself prime is considered to be a product of one prime number). The proof illustrates an important point about applications of this theorem: When proving , you don't necessarily have to use the assumptions that , , …, and are true. If is proved by any means—possibly including the assumptions—then the statement has been shown to be true. It follows from this observation that several numbers, not just zero, can be "base cases" in the sense that can be proved independently of through . In this sense, 0, 1, and every prime number are base cases in the following theorem.
Theorem: Every natural number greater than one can be written as a product of prime numbers.
Proof: Let be the statement "if , then can be written as a product of prime numbers." We will prove that is true for all by applying the strong principle of induction.
Note that and are both automatically true, since and do not satisfy the condition that , and is true since 2 is the product of the single prime number 2. Suppose that is an arbitrary natural number with , and suppose that , , …, are already known to be true; we want to show that is true. In the case where is a prime number, then is a product of one prime number, so is true.
Consider the case where is not prime. Then, according to the definition of prime number, it is possible to write where and are numbers in the range from 2 to inclusive. Since through are known to be true, and can each be written as a product of prime numbers. Since , can also be written as a product of prime numbers. We have shown that follows from , and this completes the induction.
Exercises
Use induction to prove that is divisible by 3 for all natural numbers .
Answer
The base case, when , is the claim that is divisible by 3. Evaluating the expression gives 0, which is , so the claim is true.
For the inductive case, suppose that is divisible by 3 for some ; that is, there is some such that . Using that induction hypothesis, we need to show that is also divisible by 3. Expanding this expression gives . With the induction hypothesis, this can be rewritten as , or . This may be factored as , showing that it too is divisible by 3.
Thus we have shown that it is true for , and if it holds for any then it also holds for ; by mathematical induction, therefore, it holds for all natural numbers.
Use induction to prove that
for any natural number and for any real number such that .
Use induction to prove that for any natural number ,
In addition to proving this by induction, show that it follows as a corollary of Exercise 2.
Use induction to prove that for any natural number ,
In addition to proving this by induction, show that it follows as a corollary of Exercise 2.
Answer
Base case (): .
Inductive case: suppose true for some . Then , by the induction hypothesis. Now, , so our summation equals , showing that the formula also holds for . Therefore it holds for all natural numbers .
We may also use Exercise 2, taking . The formula for the sum is then
Use induction to prove that for any positive integer ,
Use induction to prove that for any positive integer ,
Evaluate the following sums, using results proved in this section and in the previous exercises:
Write each of the sums in the preceding problem using summation notation.
Use induction to prove the following generalized distributive laws for propositional logic: For any natural number and any propositions , , , …, ,