A claim about every natural number is infinitely many claims, and checking them one at a time never finishes.
The previous lesson, on proof by contrapositive and contradiction, ended on a claim that neither method finishes: every integer is a product of primes. For an arbitrary , either is prime or with and smaller than , and to finish, the argument needs the claim for and first. This lesson gives the method for such chains and proves it valid. It then puts the method to work on sums, inequalities and divisibility, on sequences defined by recursion, on claims that only yield once they are strengthened, and finally on objects that are not numbers at all. Throughout, starts at , and the definitions are the usual ones: is even when for some integer , odd when , and when for some integer .
The principle of induction
For each natural number let be a statement, such as "". In the language of the lesson on quantifiers, is an open sentence with domain , and the goal is .
The principle of induction. Let be a statement for each natural number . If is true, and is true for every natural number , then is true for every natural number .
The two hypotheses have names. Proving is the base case. Proving is the inductive step, and inside it the assumption is the inductive hypothesis. The step is an ordinary universal conditional, and it is proved the way the lesson on direct proof proved every such statement: let be an arbitrary natural number, assume , and derive .
Why should the two together reach every ? The base case gives . The step with gives , so . The step with gives , and so on. For any one number, say , a chain of applications of the step reaches it, and the chain is finite. What no finite chain can do is reach every at once, and that is what the principle adds. The usual picture is a line of dominoes: the base case knocks over the first, the step guarantees that each falling domino knocks over the next, and so every domino falls, however long the line.
A first reaction to the step is that it assumes what it is meant to prove. It does not. The goal is the universal statement " for every ". The step assumes for one arbitrary , as the hypothesis of a conditional, and shows only that would follow. It never claims that is true. Someone with no idea whether holds can still prove "if then ". Assuming for a single arbitrary is legitimate; assuming for every would be circular, and the difference between those two is the difference between an induction and a fraud.
A written proof by induction has a standard shape, and it pays to keep to it until the method is second nature. State in full. Prove the base case , usually by computing both sides. For the step, write "let be a natural number and suppose ", then write out explicitly as the target, and derive it, marking the line where the inductive hypothesis is used. Finish with "by induction, holds for every natural number ".
Both halves are needed, and a claim can pass one and fail the other. Let be " is odd". The step holds: if is odd, then is an odd number plus an even one, hence odd. But says that is odd, which is false, and in fact is even for every . The step was a true conditional whose hypothesis never holds. In the other direction, a base case with no step is a single example, and the first lesson showed where examples lead: is prime for and not for .
Sums
Sums are where induction is first met, and the notation for them is worth fixing. For numbers ,
read "the sum of for from to ". The letter is a dummy: and are the same number. The one property of the notation an induction uses is
which says that the sum up to is the sum up to with one more term added. A later section makes this the definition.
A story told of Carl Friedrich Gauss as a schoolboy has him adding in pairs from the outside in: , , and so on, fifty pairs of , so . The same pairing suggests a formula for every , and induction proves it.
Example. Prove that for every natural number .
Let be the statement .
For the base case, the left side of is and the right side is , so holds.
For the step, let be a natural number and suppose . The target is , which reads . Adding to both sides of the inductive hypothesis,
which is the target, so holds. By induction, the formula holds for every natural number .
Writing the target before the algebra is what made the last step obvious: once was on the page, the factor was the thing to pull out. Without a target, a step of this kind tends to expand everything and then struggle to recognise the result.
Now you. Prove that for every natural number .
Answer
Let be the formula. For the base case, both sides equal , since .
For the step, let be a natural number and suppose . The target is , since . Adding to both sides of the inductive hypothesis, the right side becomes
which is the target. So holds, and by induction the formula holds for every . As a check, gives and .
Induction checks a formula; it does not find one. The usual route is a guess from small cases. The sums , , and suggest that the first odd numbers add up to , and then the step is one line, . The guess has to be exact before induction can touch it. "The sum of the first odd numbers is a perfect square" is true, but as an inductive hypothesis it is useless, since knowing that some sum is some square says nothing about which square, and so nothing about the next sum. The sharper claim, that the square is , is the one that carries itself from to . That observation returns, in a stronger form, later in the lesson.
How is a formula like the sum of squares found in the first place?
One way is to make the sum collapse. For any numbers ,
because each in the middle is added once and subtracted once. (A careful proof of this "telescoping" is itself a one-line induction.) So a sum can be evaluated whenever its terms can be written as differences. Take . Then , and summing from to gives
using the formula for already proved. Solve for the unknown sum:
and dividing by gives the formula of the Now you. This is a derivation, not a guess, so strictly it needs no separate induction; but the telescoping identity it rests on is an induction, so induction is there either way.
A second way uses the shape of the answer. Summing a polynomial of degree gives a polynomial of degree (the same telescoping argument, with , shows this by induction on ). So is for some constants, and the four values , , , at determine them. Solving gives , , , , which is the formula again.
Repeating the first method with , and so on gives , , one after another. Jakob Bernoulli found the general pattern, published in his Ars Conjectandi in 1713, and the coefficients that appear in it are still called the Bernoulli numbers.
Why induction works
The lesson on direct proof took one property of as basic and used it to prove the division algorithm.
The well-ordering principle. Every non-empty set of natural numbers has a least element.
It fails for the integers, which have no least element, and for the positive rationals, since half of any positive rational is a smaller one. It is a fact about how is built, and induction follows from it.
Theorem. The well-ordering principle implies the principle of induction.
Proof. Suppose is true and for every natural number , and suppose, for contradiction, that is false for some natural number . Then the set of natural numbers for which is false is non-empty, so by well-ordering it has a least element . Since is true, , so and is a natural number. Since and is the least element of , the number is not in , so is true. The inductive step with then gives , contradicting . So is empty, and holds for every .
The shape of this proof is worth keeping. A first failure would need a predecessor that succeeds, and the step forbids exactly that. The same shape gives another way to write any induction, the smallest counterexample argument: suppose the claim fails somewhere, take the least where it fails, and derive a contradiction, usually by finding a smaller failure. Here it is on a fact the previous lesson proved in just this way, for Euclid's proof that the primes never run out.
Proposition. Every integer has a prime divisor.
Proof. Suppose not, and let be the least integer with no prime divisor; it exists by well-ordering. Then is not prime, since a prime divides itself. So for integers and with . As and is the least counterexample, has a prime divisor . Then and , so by transitivity of divisibility, and has a prime divisor after all. This contradiction proves the proposition.
Well-ordering was stated for sets of natural numbers, and the proof applied it to a set of integers that are at least . That is harmless: such a set is a set of natural numbers. More generally, a non-empty set of integers that are all at least some fixed integer has a least element, by shifting every member by , taking the least element of the resulting set of natural numbers, and shifting back.
Is induction a theorem or an axiom?
The theorem above derived induction from well-ordering, and a later section derives well-ordering from induction. Neither derivation starts from nothing: each assumes the other, or something equivalent. So one of them has to be taken as a basic truth about , and which one is a matter of taste. This course took well-ordering; most axiomatic treatments take induction.
The standard axioms are due to Richard Dedekind, in his 1888 essay Was sind und was sollen die Zahlen? ("What are numbers and what should they be?"), and Giuseppe Peano, whose 1889 Arithmetices principia set them out in the form now called the Peano axioms. In modern dress they say: is a natural number; every natural number has a successor , which is a natural number; is not the successor of anything; different numbers have different successors; and any set that contains and contains the successor of each of its members contains every natural number. The last axiom is the principle of induction, stated for sets instead of statements (take the set of for which holds).
The first four axioms do not imply the fifth. They are all true of a structure made of together with a second, separate chain in which the successor of is : every element has exactly one successor, different elements have different successors, and is still no one's successor. But the set itself contains and is closed under successors, and it leaves out every . The induction axiom is precisely what rules such extra chains out. It says that the natural numbers are the things reachable from by adding finitely many times, and nothing else.
That is also why induction is not a law of logic. Logic alone, from and , derives , and each particular in finitely many steps, but never , because the structure with the extra chain satisfies the premises and not the conclusion. The Logic course makes this point formally in its lesson on proof technique. The name "mathematical induction", for the method as a whole, was given by Augustus De Morgan in 1838.
Other starting points, and inequalities
Nothing forces the base case to be .
Induction from . Let be an integer and let be a statement for each integer . If is true, and for every integer , then is true for every integer .
Proof. Apply the ordinary principle to for . Then is , and is the step for . So holds for every natural number , which says holds for every integer .
A start at is common, for sums that begin at and for statements about sets with elements, where the empty set is the natural first case. A later start is what many inequalities need. Compare with : for the values are , , and . From , where , the power of two pulls ahead and stays there.
Claim. for every integer .
Proof. For the base case, . For the step, let and suppose . The target is . By the hypothesis, , so it is enough to show , that is, . Since , . So , and by induction the claim holds for every .
The step used only to get , which holds for every . So the step is valid from on, and yet the claim is false at and . There is no contradiction: a true conditional says nothing when its hypothesis is false, and is false, so is true and useless. The chain starts only where a base case has been checked.
Inequality steps have a common pattern, visible above. The hypothesis gives a bound for the new quantity (here ), and what remains is to compare that bound with the target (here ). That leftover comparison usually involves no induction at all, and it is where the condition on gets used. Finding it is most of the work.
Example. Prove Bernoulli's inequality: for every real number and every natural number , .
There are two variables, and the induction is on alone. Fix a real number , and let be the statement .
For the base case, , so holds with equality.
For the step, let be a natural number and suppose . The target is . Since , the number is non-negative, and multiplying both sides of an inequality by a non-negative number keeps its direction. So
where the last step uses . So holds. By induction, holds for every , and since was arbitrary, the inequality holds for all such .
The hypothesis was used exactly once, to multiply through by , and it cannot be dropped: at and , the left side is and the right side is . The inequality is crude but strong enough for a striking conclusion. With it gives , so , and in general a growth factor above , however slightly above, eventually exceeds any bound. That fact returns in the lesson on limits.
Now you. Prove that for every integer , where . Check that the claim is false for , and say for which the step is valid.
Answer
Let be . For the base case, .
For the step, let and suppose . The target is . Now , using the hypothesis and . Since , . So , and by induction the claim holds for every .
For small : , and , so the claim is false at , and . The step used only , so it is valid for every . As with , the base case, not the step, decides where the claim starts.
Divisibility
For a claim of the form , the step has a characteristic move: write as a multiple of plus something visibly divisible by . Then the hypothesis takes care of the first part and algebra takes care of the second.
Claim. for every natural number .
Proof. For the base case, . For the step, suppose for some integer . Expanding,
which is a multiple of . By induction, the claim holds for every .
Writing , a product of three consecutive integers, one of which is a multiple of by the division algorithm, gives a shorter proof, and one that covers negative as well. The merit of induction is that it needs no such insight, only the algebra of one step. When the expression has a power with in the exponent, the useful split is usually different: factor out the base of the power.
Example. Prove that for every natural number .
Let be the statement . For the base case, , which is divisible by .
For the step, let be a natural number and suppose for some integer . The target is . The term is , so aim to produce copies of the old expression:
The right side is , and is an integer, so holds. By induction, for every natural number .
The bookkeeping line is the only idea: after writing , add and subtract whatever makes times the old expression appear, and check that what is left over is divisible by . For and the numbers are and .
Now you. Prove that for every natural number .
Answer
Let be the statement. For the base case, .
For the step, let be a natural number and suppose for some integer . Then
and is an integer, so holds. By induction, for every natural number . For the number is , and for it is .
Induction also gives a second proof of a fact that the lesson on direct proof derived from the division algorithm: every integer is even or odd. Let be " is even or is odd". The base case holds since is odd. For the step, if then is odd, and if then is even, so holds in either case. That covers . For the other integers, is even, and for a natural number , if then , while if then . This proof needs only the definitions and induction, where the division algorithm needed well-ordering, and a later section shows that those two are one principle in different forms.
All horses are one colour
Here is a proof by induction of something false. It is worth taking apart slowly, because the error in it is the most common error in real inductions.
Claim. In any group of horses, all the horses are the same colour.
Proof. Let be the claim for groups of horses. For the base case, a group of one horse is one colour. For the step, suppose and take a group of horses, lined up. Remove the last horse: the first form a group of , so by the inductive hypothesis they share a colour. Remove the first horse instead: the last share a colour too. The horses in the middle belong to both groups, so the two colours are the same, and all horses are one colour. By induction, every group of horses is one colour.
The base case is fine, so the step must fail for some . The step claims to prove for every , so try the smallest, , going from one horse to two, and . Removing the last horse leaves and removing the first leaves , and each is trivially one colour. The horses "in the middle", in both groups, number , which here is none. Nothing links 's colour to 's, and the step from to is invalid.
For every the two groups overlap in horses, and the step is correct: is a true conditional, and so are all the later links. The chain fails at exactly one link, the first, and that is enough, because is false and every later domino waits on it. The argument hid an assumption about , that there is at least one horse in the middle, and the remedy is mechanical: run the step by hand at the smallest value it must cover. A step that is valid only for needs base cases up to , and here cannot be proved, because it is false.
Two other failures are worth knowing by sight. The first is a step of the wrong size. From and follow , , and so on, and nothing at all about even . A step that jumps by more than needs as many base cases as the size of the jump, one to start each chain; the section on strong induction does exactly this.
The second is building up instead of cutting down. A step should start from an arbitrary object of size and reduce it to objects of size , as the horse argument (correctly, in this respect) did. The tempting alternative starts from an object of size , for which holds, and enlarges it by one; but that proves the claim only for those objects of size that arise by enlarging, and there may be others. In graph theory, where objects are grown one vertex or edge at a time, this "build-up error" produces convincing false proofs, and the cure is always the same: begin the step with an arbitrary object of the larger size.
Strong induction
Some steps need more than the case just before. To show that is a product of primes, knowing that is one is no help at all; what helps is that and that and are products of primes. Strong induction lets the step assume every earlier case, not only the last.
The principle of strong induction. Let be a statement for each natural number . If is true, and for every natural number the truth of all of implies , then is true for every natural number .
Despite the name, it is no stronger than ordinary induction.
Theorem. The principle of induction implies the principle of strong induction.
Proof. Suppose holds and the strong step holds. Let be the statement " are all true", and apply ordinary induction to . The base case is , which is true. For the step, suppose . Then to are all true, so the strong step gives , and together these say . By induction, holds for every , and in particular holds for every .
As with ordinary induction, the start can be any integer : the step for may then assume for every with .
Example. Prove that every integer is a product of primes, where a single prime counts as a product of one prime.
We use strong induction starting at . Let be " is a product of primes".
For the base case, is prime, so it is a product of one prime.
For the step, let and suppose that every integer with is a product of primes. Consider . If is prime, it is a product of one prime. Otherwise, since and is not prime, for integers and with and . So and , and by the inductive hypothesis each of and is a product of primes. Writing the two products side by side expresses as a product of primes. So holds, and by strong induction every integer is a product of primes.
This is the existence half of the fundamental theorem of arithmetic. The other half, that the factorisation is unique apart from the order of the factors, is a separate and harder theorem: it needs Euclid's lemma from the previous lesson, that a prime dividing a product divides one of the factors, and it is proved in the Discrete Mathematics lesson on primes. That lesson also shows a number system, the even numbers, in which the existence proof above goes through word for word and uniqueness fails, which is the best evidence that uniqueness is not a formality.
Now you. Prove that every integer can be written as with and non-negative integers. (Think of paying pence exactly with 3p and 5p stamps.) Show that cannot be written this way.
Answer
Let be " for some non-negative integers and ". We use strong induction starting at , with three base cases, because the step reaches back three places.
Base cases: , and , so , and hold.
Step: let and suppose for every with . Then , so satisfies , and by the hypothesis with . So , with and non-negative, and holds. By strong induction, holds for every .
The step starts at , not , because for or the number would be or , and is below the start. That is why and had to be base cases.
For : if with , then . If then , and if then , and neither has an integer solution. So cannot be written, and the start at cannot be lowered.
The number of base cases is set by the step, not by taste. Count how far back the step reaches (here places), and check by hand every case the step cannot produce from an earlier one. In the Now you, those were , and . The answer's is not an accident: for stamps of and pence with no common factor greater than , the largest amount that cannot be paid exactly is , here , a result usually credited to James Joseph Sylvester.
Ordinary induction could have done the stamps, with a less natural step: go from to by trading a 5p stamp for two 3p stamps when there is one, and three 3p stamps for two 5p stamps otherwise (possible since forces at least three 3p stamps when there is no 5p stamp). Strong induction is not more powerful, as the theorem showed, but it lets the step reach for whichever earlier case is useful, and that is often the difference between an easy proof and a clever one.
Recursive definitions and the Fibonacci numbers
Induction proves statements about every natural number. Its partner, recursion, defines objects for every natural number, in the same two parts: a starting value, and a rule that gives each next value from the earlier ones. Many familiar objects are defined this way, even when school presented them otherwise.
For a real number , the powers are defined by and for every integer . Factorials are defined by and , which gives , , , . Sums are defined by and , which is why "add the next term to both sides" was the natural move in every sum above. The dots in are an informal abbreviation of this definition.
A property of a recursively defined object is proved by induction, and the proof's step follows the definition's step. Here is a law of exponents, the kind of rule school takes for granted.
Proposition. For every real number and all integers , .
Proof. Fix and , and induct on from . For , . For the step, suppose . Then, using the definition twice and the hypothesis once,
So the law holds for , and by induction for every .
Why does a recursive definition define anything?
The definition of says what is and how to get from . It is tempting to say "so is defined for every , by induction", but induction proves statements about objects that already exist, and here the object is what is in question. The precise result is the recursion theorem, proved by Dedekind in his 1888 essay: given a set , an element of , and a rule that gives an element of for each natural number and each in , there is exactly one sequence of elements of with and for every .
Uniqueness is an ordinary induction. If and are two such sequences, then , and if then . So for every . Existence takes more care: one proves by induction that for each there is exactly one finite list obeying the rules up to , checks that these lists agree wherever they overlap, and glues them into one infinite sequence. Doing that rigorously needs a sequence to be an object, a function from to in the sense of the lesson on functions.
The theorem needs the rule to run from earlier values to later ones, and a "definition" that does not can fail in both possible ways. The condition for every is satisfied by every constant sequence, so it defines nothing in particular. The condition for every , with values in , is satisfied by nothing: it would make , and the set of these values would have no least element, against well-ordering.
And sometimes nobody knows. Let , and for let when is even and when is odd. Then counts the steps the process "halve if even, otherwise triple and add one" takes to reach . From the process runs , so , and from it takes steps, climbing as high as on the way. Whether is defined for every , that is, whether every starting number eventually reaches , is the Collatz conjecture, posed by Lothar Collatz in 1937 and still open. The rule for odd calls on the larger number , so the recursion theorem does not apply, and no substitute for it has been found.
The most famous recursive sequence has a two-step rule. The Fibonacci numbers are defined by
so the sequence runs , each term the sum of the two before. They are named after Leonardo of Pisa, called Fibonacci, whose Liber Abaci of 1202 counted pairs of breeding rabbits with them. Because the rule reaches back two places, proofs about them are typically strong inductions with two base cases.
For instance, for every . The base cases are and . For the step, let and suppose for every . Then . The step starts at because at it would call on , which the definition does not provide, so has to be checked by hand.
The bound is generous: against . The true growth rate comes from the number , which satisfies . The same two-base induction shows for every : the bases are and , and for the step, , and in the same way . So the Fibonacci numbers grow like powers of , and the Discrete Mathematics lesson on linear recurrences derives the exact formula, with .
Identities between Fibonacci numbers are a good training ground, because the recursion is the only tool and the step has to be found in it.
Example. Prove that for every natural number .
Let be the statement . For the base case, the left side is and the right side is .
For the step, let be a natural number and suppose . The target is . By the definition of the sum, the hypothesis, and then the Fibonacci rule,
So holds, and by induction the identity holds for every . As a check, .
Only one earlier case was needed, so this was an ordinary induction; the two-place reach of the Fibonacci rule was absorbed by the two Fibonacci numbers already present in the hypothesis.
Now you. Prove that for every natural number .
Answer
Let be the statement . For the base case, .
For the step, let be a natural number and suppose . The target is . Now
using the hypothesis, then factoring out , then the Fibonacci rule. So holds, and by induction the identity holds for every .
The identity has a picture. Squares of sides , each placed against the long side of the rectangle formed by the ones before, fill an by rectangle exactly; for , the areas .
Loading the induction
Sometimes a true statement cannot be proved by induction as it stands, and a stronger statement can. This sounds backwards, since a stronger statement says more and should be harder to prove. But in an induction the statement plays two parts: it is the conclusion of the step, and it is also the hypothesis. Strengthening it makes the target harder, and it also makes the hypothesis more useful, and the second effect often wins. George Pólya, in How to Solve It (1945), called this the inventor's paradox: the more ambitious plan may have the better chance of success. Strengthening the statement to be proved is also called loading the induction.
Example. Prove that for every natural number .
First try the claim as it stands. The base case is . For the step, suppose ; then
and that is not less than . The step fails, and it has to: the hypothesis "less than " allows the sum to be , and then adding a term of would break the bound. The hypothesis does not say how much room is left below , and the step needs exactly that information.
So put the room into the statement. Let be the statement
This implies the original claim, since . For the base case, both sides are . For the step, let be a natural number and suppose . The target is . By the hypothesis,
so it is enough to show , that is, . The right side is , and , so . Hence holds, and by induction holds for every . In particular every sum is less than .
Where did come from? From asking what the step needs. A bound of the form carries itself forward when : the room lost in one step must cover the new term. The choice loses per step, which is just enough, and makes the base case work. That calculation, done on scrap paper, is how loaded statements are found. The sums themselves approach , a value found by Leonhard Euler in the 1730s, but no bound of that precision is needed to prove that they stay below .
Now you. Prove that for every natural number , by proving the stronger statement .
Answer
Let be . Since , implies the claim.
For the base case, the left side is and the right side is .
For the step, let be a natural number and suppose . By the hypothesis,
and the target is . So it is enough to show
Multiplying both sides by the positive number , a reversible step, this is , that is, , which is true because . So holds, and by induction holds for every .
The unloaded claim fails in the step for the same reason as in the Example: "less than " says nothing about how much room is left. The sums approach about .
Loading is not only for inequalities. The sum of the first odd numbers, earlier in the lesson, was a loaded statement: "is a perfect square" could not carry itself forward, and "is " could. The Fibonacci bounds were another: to show only that is positive would be easy, but to learn how fast it grows, the statement had to carry a precise bound. A useful rule of thumb follows. When an inductive step fails because the hypothesis is too vague, do not give up on induction; ask what extra information the step would need, and put it into the statement.
Three forms of one principle
The lesson has now met three principles about : well-ordering, ordinary induction and strong induction. They are not three facts but one fact in three forms.
Theorem. The well-ordering principle, the principle of induction and the principle of strong induction are equivalent: each implies the other two.
Proof. It is enough to prove three implications in a cycle, as the lesson on direct proof explained for lists of equivalent statements. Well-ordering implies induction by the theorem in the section on why induction works, and induction implies strong induction by the theorem in the section on strong induction. It remains to show that strong induction implies well-ordering.
Assume the principle of strong induction, and let be a set of natural numbers with no least element. We show that is empty; this is the contrapositive of well-ordering. Let be the statement "".
Base case: if were in , it would be the least element of , since for every natural number . As has no least element, , so holds.
Step: let be a natural number and suppose , that is, none of is in . If were in , then every element of would satisfy , since a natural number less than is one of . So would be the least element of , which does not exist. Hence , and holds.
By strong induction, for every natural number , so is empty. Thus every non-empty set of natural numbers has a least element.
The proofs in the cycle used a few basic facts about besides the three principles: is the least natural number, every natural number other than is for some natural number , and no natural number lies strictly between and . With those facts taken as known, each principle can stand in for the others, and which to use is a question of convenience.
Use ordinary induction when case follows from case , as for sums, most inequalities and most divisibility claims. Use strong induction when case depends on some earlier case whose position is not fixed, as for factorisations, or on a fixed number of earlier cases, as for the Fibonacci numbers and the stamps. Use the smallest counterexample when the natural argument is "a failure would force a smaller failure". A classic of the last kind is Pierre de Fermat's method of infinite descent, which shows that something cannot exist by showing that any example would produce a smaller one.
Here is descent applied to , a proof quite different from the previous lesson's. Suppose is rational. Then the set of natural numbers such that is an integer is non-empty, so it has a least element ; let , a natural number. Since , we have , so is a natural number less than . Now
since and . So is an integer. Then is a smaller natural number with the same property, contradicting the choice of . So is irrational. The proof never mentions parity; it uses only the ordering of .
How can three true statements be "equivalent"?
In ordinary logic, any two true statements are equivalent, since is true whenever both are true, so "well-ordering is equivalent to induction" cannot mean only that. What it means is: from the basic facts listed after the proof, well-ordering can be derived from induction and induction from well-ordering. So in any structure where the basic facts hold, the three principles stand or fall together.
A structure where they fall together makes this concrete. Take followed by a copy of the integers: the numbers , and after all of them, further elements , with every counted larger than every natural number, when , and "" meaning the next element, so . Every basic fact still holds. The first element is ; every other element has a predecessor, since ; and nothing lies strictly between and . But all three principles fail. The set is non-empty and has no least element, so well-ordering fails. The statement " is one of " holds at and passes from to , but fails at , so induction fails. And strong induction fails for the same statement.
Structures like this are not idle inventions. Thoralf Skolem showed in 1934 that the first-order axioms of arithmetic, which can state induction only one formula at a time, cannot rule out such extra elements: there are "non-standard models" of arithmetic whose order begins with a copy of and continues with blocks like the one above. Inside ordinary mathematics, the second-order induction axiom, about all sets of natural numbers, is what excludes them, and it is the version this course uses.
Structural induction, a first look
Induction is not really about numbers. It is about things built up in stages from starting pieces by fixed rules, and the natural numbers are the simplest such things: one starting piece, , and one rule, "add ". Other objects are built the same way, and they have their own induction.
The formulas of propositional logic, from the lesson on statements and connectives, are the standard example. They are defined recursively, by rules for building them. Each variable , , , and so on, is a formula. If is a formula, so is . If and are formulas, so are and . And nothing is a formula unless it is produced by these rules.
So is a formula: , and are formulas, hence and are, hence the whole. The string is not, since no rule produces it.
The principle of structural induction. To prove that every formula has a property, prove that every variable has it (the base case), and prove that the rules preserve it: if and have the property, then so do , and (the inductive steps, one per rule).
Proposition. Every formula contains as many left brackets as right brackets.
Proof. By structural induction. For a formula write and for its numbers of left and right brackets. A variable has no brackets, so . If , then has the same brackets as , so . If and , then
and the same holds for . So every rule preserves the property, and every formula has it.
The same method shows that in every formula the number of occurrences of variables is one more than the number of occurrences of and together. A variable has and . The rule for changes neither count. And if and have and variable occurrences against and binary connectives, then has variable occurrences against connectives. So , with three variables, has two binary connectives, as it does.
These look like small facts, and they are the first steps of real theorems. The bracket count, sharpened a little, proves that every formula can be read in only one way, which is what allows the truth value of a formula to be defined recursively from the truth values of its parts. Structural induction is also the everyday tool of computer science, where lists, trees, expressions and programs are all built by rules like these, and where a function defined by recursion on such an object is proved correct by induction on the same structure.
Is structural induction a new principle, or ordinary induction in disguise?
For formulas it is strong induction on length. Let be a property that holds for every variable and is preserved by the three rules, and let be the statement "every formula with exactly symbols has ", counting variables, connectives and brackets as symbols. By the last clause of the definition, every formula is a variable or is produced by a rule from shorter formulas. A formula with symbols is therefore a variable (and then ), or with of symbols, or or with and together of symbols. In every case the parts have fewer than symbols. So if holds for every , the parts have , the rule preserves it, and the formula has . That is a strong inductive step, and the case is the base case, so holds for every and every formula has .
The last clause, "nothing else is a formula", is what makes this work. Without it, some object could count as a formula without being built from shorter ones, and the induction would never reach it. It plays the same part as the Peano axiom that nothing is a natural number except what can be reached from .
The general form of the idea is well-founded induction. Suppose objects are compared by a relation "is simpler than" under which there is no infinite chain, each object simpler than the one before. Then any property that holds for an object whenever it holds for all simpler objects holds for every object. Ordinary induction is the case of with its usual order, structural induction is the case of formulas ordered by "is a part of", and the smallest counterexample argument is the same idea viewed from the other side: a counterexample would have to have a simplest counterexample, and the argument shows it cannot. The lesson on order relations returns to orders with no infinite descending chains.
Every proof in this lesson used collections without saying what they are. The proof that induction works took "the set of natural numbers where fails" and asked for its least element. The horses came in groups, and were removed from them. The formulas were a collection defined by rules. The next lesson makes those words exact: sets, how to build them, and how to prove that two of them are equal.
Problems
Work each problem on paper before opening anything; for Core and Challenge problems, try the hint before the solution.
Warm-up
1. Prove that for every natural number .
Solution
Let be the formula. For the base case, the left side is and the right side is .
For the step, let be a natural number and suppose . The target is . By the hypothesis,
taking out the common factor . So holds, and by induction holds for every natural number .
2. Prove that for every natural number .
Solution
Let be the formula. For the base case, both sides equal .
For the step, let be a natural number and suppose . By the hypothesis,
which is . By induction, holds for every natural number . (Since , the sum also telescopes to .)
3. Prove that for every natural number .
Solution
Let be the statement. For the base case, .
For the step, let be a natural number and suppose for some integer . Then
and is an integer, so holds. By induction, holds for every natural number .
4. A sequence is defined by and for . Compute to , guess a formula for , and prove it.
Solution
The first terms are , , , , , each one less than a power of . The guess is .
Let be . For the base case, . For the step, let be a natural number and suppose . By the recursive definition and the hypothesis, , which is . By induction, for every natural number .
This is the number of moves needed for the Tower of Hanoi with discs, which satisfies the same recursion.
Core
5. Prove that for every natural number , and deduce that .
Hint
In the step, both the old right side and the new term contain the factor . Take it out before expanding anything.
Solution
Let be the statement . For the base case, both sides equal , since .
For the step, let be a natural number and suppose . The target is . By the hypothesis,
which is the target. By induction, holds for every natural number .
For the deduction, the Example in the section on sums gives , whose square is . So the sum of the first cubes is the square of the sum of the first numbers; for , .
6. Find the flaw in this proof.
Claim. For every non-zero real number and every integer , .
Proof. By strong induction on , starting at . For the base case, by definition. For the step, let and suppose for every integer with . Then
so the claim holds for . By strong induction, for every .
Hint
Run the step by hand at the smallest value of it has to cover, and ask which cases it calls on.
Solution
The claim is false: . The base case is correct, so the step must fail somewhere.
The step for uses the inductive hypothesis at and at . For both lie in the range , and the step is valid there: from and it correctly deduces . But the step must also cover , the passage from to , and there it uses . The case is not in the range , so the hypothesis says nothing about it, and indeed is not unless . The algebraic identity is true for ; the failure is in replacing by .
So the chain breaks at its first link, exactly as in the horses: is not established, and every later link waits on . A step that reaches back two places needs two base cases, here and , and , which says , cannot be proved.
7. Prove or disprove each claim. (a) for every integer . (b) for every integer .
Hint
Check the base cases first. For the step in (a), reduce the target to an inequality between polynomials in and use to compare their leading terms.
Solution
(b) is false: and , so is a counterexample.
(a) is true. Let be . For the base case, .
For the step, let and suppose . Then , so it is enough to show , that is, . Since ,
using and . So , and by induction holds for every .
The two parts together show that the base case, not the step, fixes where the claim starts: is the least from which the inequality holds for good. (It also holds at , where , and fails for to .)
8. Prove that every natural number can be written as a sum of distinct powers of (the powers , , , and so on, each used at most once), and that this can be done in only one way, apart from the order of the terms.
Hint
For existence, use strong induction: subtract the largest power of that does not exceed . For uniqueness, first show that distinct powers of that are all less than add up to less than .
Solution
Existence. Let be " is a sum of distinct powers of ". We use strong induction. For the base case, .
For the step, let be a natural number, suppose for every , and consider . The powers of that do not exceed include , and there are finitely many of them, since once (an easy induction shows for all ). Let be the largest, so . If , we are done. Otherwise let . Then , and , and since . By the hypothesis, is a sum of distinct powers of , each at most and therefore less than . Adding to that sum gives as a sum of distinct powers of , since is not among the others. By strong induction, holds for every .
A lemma. For every integer , (for the sum is empty and both sides are ). This is an induction on : if the sum up to is , adding gives . So any collection of distinct powers of all less than has sum at most , which is less than .
Uniqueness. Suppose some natural number is the sum of the powers in a set and also of the powers in a different set . Remove from both the powers they have in common. The two sums stay equal, the remaining sets and have no power in common, and they are not both empty, since . Let be the largest power in , and without loss of generality say it lies in (the situation is symmetric in and ). Every power in is then different from and at most , so less than , and by the lemma the sum of is less than , which is at most the sum of . That contradicts the equality of the sums. So the representation is unique.
This is the binary representation of : for example , written in base .
9. Let . Prove that for every natural number .
Hint
First try the claim as it stands, and see that the step fails. Then prove the stronger statement . Squaring is reversible for positive quantities.
Solution
A direct induction fails. From the step would need , which after squaring and clearing denominators is , that is, , which is false for every . So load the induction.
Let be . For the base case, .
For the step, let be a natural number and suppose . Since and the factor is positive,
and it is enough to show that the right side is at most . Both are positive, so this is equivalent to the inequality between their squares, and clearing the positive denominators, to
The left side expands to and the right side to , so the inequality says , which is true. Hence holds, and by induction holds for every natural number .
Finally, gives , so for every .
The margin in the step, out of about , is tiny, which is why the unloaded version failed. The true size of is close to , and since , that is consistent with the bound.
10. Prove Cassini's identity: for every integer , where are the Fibonacci numbers.
Hint
In the step, use the Fibonacci rule to replace by , and later to replace by .
Solution
Let be . For the base case , .
For the step, let and suppose . The target is . Using , and then (the Fibonacci rule again, valid since ),
By the hypothesis this is . So holds, and by induction holds for every .
At the identity reads , and it is behind a well-known puzzle: an by square, cut into four pieces along lines through Fibonacci lengths, seems to reassemble into a by rectangle of area . The missing unit of area hides in a thin gap along the diagonal.
11. Call a formula positive if it is built from variables using only and , with the formation rules from the section on structural induction but without the rule for . Prove that every positive formula is true when all of its variables are true. Deduce that is not logically equivalent to any positive formula, so and alone are not enough to express every truth table (this makes precise the argument by which the lesson on statements and connectives proved the same result).
Hint
Use structural induction over the rules for positive formulas. For the deduction, compare a positive formula with under the assignment that makes every variable true.
Solution
Fix the truth assignment that makes every variable true. We prove by structural induction that every positive formula is true under . The positive formulas are the variables, together with and for positive and , and nothing else.
Base case: a variable is true under by the choice of .
Steps: suppose and are positive formulas that are both true under . Then is true under , since both its parts are, and is true under , since at least one of its parts is.
So every positive formula is true under .
Now suppose some positive formula were logically equivalent to , that is, had the same truth value as under every assignment of truth values to the variables occurring in either. Take the assignment making every variable true, included. Then is false, while is true by what was just proved, so they differ there, and they are not equivalent. Hence no positive formula is equivalent to , and some truth table, the one for "not", cannot be built from and alone. With added, every truth table can be built.
Challenge
12. An L-tromino is the shape formed by three unit squares of a by square, the fourth removed. Prove that for every natural number , a by board of unit squares with any one square removed can be covered exactly by L-trominoes, without overlaps.
Hint
Split the board of side into four quarters of side . One quarter contains the removed square. Place a single tromino at the centre of the board so that each of the other three quarters also has exactly one square that is unavailable.
Solution
Let be the statement that every by board with one square removed can be tiled by L-trominoes.
For the base case, a by board with one square removed is itself an L-tromino.
For the step, let be a natural number and suppose . Take a by board with one square removed. The two lines through the centre of the board, parallel to its sides, divide it into four quarters, each a by board, and the removed square lies in exactly one of them. Each quarter has one corner square at the centre of the big board, and the three such squares belonging to the other three quarters form an L-tromino; place a tromino on them.
Now each quarter is a by board with exactly one square unavailable: the removed square in its quarter, and the square covered by the central tromino in each of the other three. By the inductive hypothesis each quarter, with its one unavailable square, can be tiled by L-trominoes. These four tilings together with the central tromino cover the whole board except the removed square, with no overlaps, since the quarters are disjoint and the central tromino lies on squares excluded from the quarters' tilings. So holds, and by induction holds for every .
A count is consistent with this: the board has squares left, and because . The result appears in Solomon Golomb's 1954 paper on polyominoes.
13. The inequality between the arithmetic and geometric means says that for every natural number and all non-negative real numbers ,
Call this statement . The lesson on direct proof proved (in the form ). Prove for every by the following route. (a) Prove for every natural number , by induction on . (b) Prove that implies for every . (c) Conclude that holds for every .
Hint
For (a), split numbers into two halves of , apply to each half and then to the two averages. For (b), given numbers with average , add itself as an th number.
Solution
Two facts about non-negative reals are used throughout: if and then (since ), and consequently, if then for every natural number (by induction on ). Also says , which is true.
(a) Induction on . The base case says for non-negative and ; it holds because .
For the step, suppose where , and let be non-negative reals. Let be the average of and the average of ; both are non-negative, and the average of all numbers is . By applied to each half, and , so multiplying, . By , , so . Hence , which is . By induction, holds for every .
(b) Let and suppose . Let be non-negative reals with average , and put . The average of is , so gives . If , dividing by gives , which is for these numbers. If , then all the are , since they are non-negative with sum , and reads . So holds.
(c) Let be a natural number. Since , there is a power of at least ; let . For let be the statement . Then is , true by (a). If holds and , then , so (b) turns into , which is . By induction on (a finite run of steps), holds, and that is .
This "forward and backward" induction is due to Augustin-Louis Cauchy, in his Cours d'analyse of 1821. The ordinary step from to is awkward, and the detour through powers of avoids it: jumping up far and then stepping down one at a time still reaches every .
14. Prove Zeckendorf's theorem (existence part): every natural number is a sum of distinct Fibonacci numbers, taken from , no two of which are consecutive in the sequence. For example, .
Hint
Use strong induction. Subtract the largest Fibonacci number and show that what is left is less than , so the representation of the remainder cannot use .
Solution
Call a representation of as admissible when and for each . Since and for , the numbers are strictly increasing, so for (induction on ).
Let be " has an admissible representation". We use strong induction. For the base case, .
For the step, let be a natural number, suppose for every , and consider . The indices with include and are all less than , since . Let be the largest. Then , and because .
If , that is an admissible representation. Otherwise let . Then , and
By the hypothesis, has an admissible representation . Its largest term satisfies , and since the with are increasing and , this forces , that is, . So with , which is admissible. By strong induction, every natural number has an admissible representation.
For , the largest Fibonacci number not exceeding it is , leaving ; the largest not exceeding is , leaving . The representation is also unique, a fact proved by a similar induction and named after Édouard Zeckendorf.