Induction is closely related to recursion. If a base case satisfies a property and a step carries the property from one element to the next, then the property holds for every element reachable from the base case by repeatedly applying the step.
Below is the principle of induction as presented by various authors.
We start with Charles Pinter 1.
Consider the following conditions:
- is true.
- For any , if is true, then also is true.
If conditions 1 and 2 are satisfied, then is true for every positive integer n.
Then, the definition by Halmos 2:
- if , then , where
- if , if , and if , whenever , then
Finally, Hamkins 3:
Least number principle: if there is a natural number with a property, then there is a smallest number with that property.
Common induction principle: Suppose that is a set of natural numbers with . Whenever , then also . Therefore, every natural number is in .
The base case (e.g., is true, or ), is referred to as the anchor, whereas the implication (e.g., is true or ), is called the induction step.
Examples
The following is an inductive proof, written in Lean, of the fact that:
This is also the method used to calculate the nth triangular number 3:
The following figure makes it easier to visualize the recursion used in the proof:
4th and 5th triangular numbers plotted using figural
Finally, here is an example of an equality that I encountered in seventh grade while reading The Man Who Counted.
According to the legend narrated in this book, after King Iadava insisted, Sessa asked for one grain of wheat for the first cell, two for the second, four for the third, and so on as a reward for inventing the game of chess:
The following Lean code proves that:
Open in Lean-WebFollow the InfoView on the right. Hover over (or click) reserved words to see their descriptions