Knowing exactly what a statement claims does not tell you how to establish it, and most statements worth proving are conditionals about every number of some kind.
The previous lesson gave the language: "for all", "there exists", and the rules for negating them. It closed on a claim it could state but not prove, that the square of every odd integer is one more than a multiple of . This lesson supplies the method, the direct proof, and proves that claim along the way. It works with two definitions, divisibility and parity, then splits proofs into cases, and proves that things exist, both by producing them and without saying what they are.
Assume the hypothesis, reach the conclusion
A conditional is false in exactly one situation: true and false. So to prove it, there is only one situation to rule out. Assume , and derive from it, using definitions, axioms and results already proved. If happens to be false, the conditional is true anyway, which is why a proof never has to say anything about that case. This is a direct proof: it starts at the hypothesis and walks forward to the conclusion.
Most theorems are also universal. "If an integer is divisible by , it is even" means , and no list of cases can cover every . The move that does is to let be arbitrary: name an integer , assume nothing about it except the hypothesis, and reason about it. Whatever follows then follows for every integer, because nothing in the argument depended on which one was named. The proofs in the previous lesson that ended "as was arbitrary, the statement holds" used exactly this.
Together these fix the opening and closing lines of almost every proof in this course. The first sentence names the arbitrary object and states the hypothesis: "Let be an integer divisible by ." The last sentence states the conclusion and says which definition it satisfies: "so is even." Everything in between is the work, and each line of it must be justified by what came before.
Once is named, the proof may not quietly assume it is positive, or prime, or small, unless the hypothesis says so. Checking , and is not a proof about an arbitrary ; it is three examples.
Finding a proof usually runs the other way. On scrap paper, write the conclusion out by its definition, so that " is even" becomes " (some integer)", and ask what would produce that expression. Then write the argument forwards, from hypothesis to conclusion, for the reader. The scrap paper is how you found the route; the proof is the route.
Divisibility
For integers and , divides , written , if there is an integer with . So because , and because . Every integer divides , since , and divides every integer. On the other hand only when , since is always .
Two points about the notation catch almost everyone once. First, is a statement, true or false, while is a number: "" is true, and writing "" mixes a sentence with a calculation. Second, the order matters: is true and is false, because no integer gives .
The definition has the same shape as the definitions of even and odd from the first lesson of this course, a "there is an integer ", and it is used in the same two ways. To use , name the and write . To prove , produce an integer with . Parity is a special case: an integer is even exactly when .
Example. Prove that for all integers , and , if and , then .
Let , and be integers with and . By the definition of divisibility, there is an integer with , and there is an integer with . Substituting the first equation into the second gives . Since and are integers, is an integer. So is times an integer, and by the definition of divisibility, .
The two quotients get different letters, and , because nothing says they are equal. The scrap-paper route was short: the goal asked for in terms of , and the hypotheses chain to and to . This property, transitivity, lets divisibility pass along a chain: from and , without any division, .
Now you. Prove that for all integers , and , if and , then for all integers and .
Answer
Let , and be integers with and , and let and be any integers. By the definition of divisibility, there are integers and with and . Then . Since , , and are integers, is an integer, so by the definition of divisibility, . Taking gives , and taking , gives .
Proof by cases
Sometimes no single argument covers every value, but a few arguments do, each covering part. A proof by cases splits the hypothesis into possibilities that together exhaust it, and gives a direct proof in each. Its logic is the rule for "or": if holds, and and both hold, then holds.
The commonest split is by parity, which rests on a fact taken as known here: every integer is even or odd, and none is both. (That fact comes from division with remainder, not from the definitions alone.) Take the claim that is even for every integer .
Let be an integer. If is even, then for some integer , and , which is even. If is odd, then for some integer , and , which is even. Since is even or odd, is even in every case.
A result once proved becomes a tool. Here is the previous lesson's open claim. Let be an odd integer, so for some integer . Then . By the result just proved, applied to the integer , there is an integer with . So , and . For that is , and for it is . No case split was needed in this proof; the one inside the lemma did the work.
The triangle inequality
The absolute value of a real number is itself defined by cases: if , and if . So any claim about absolute values invites a proof by cases on signs, because in each case the bars can be replaced by something plain.
Example. Prove that for all real numbers and .
Let and be real numbers. There are three cases, according to their signs.
If and , then , so .
If and , then , so .
If one is non-negative and the other negative, the claim is symmetric in and , so we may suppose . Then and . Now is either or . In the first event, , since . In the second, , since .
The three cases exhaust all pairs of real numbers, and the inequality holds in each, so it holds for all and .
Two things make a case split sound. The cases must between them cover everything, which is why "one non-negative and one negative" had to be there; checking only the first two cases would prove nothing about , . And "we may suppose" is honest only when the omitted case is the same argument with the letters swapped. The cases may overlap harmlessly, but none may be missing.
Now you. Prove that for all real numbers and .
Answer
Let and be real numbers. If and , then , so . If and , then , so . Otherwise one is non-negative and one negative; the claim is symmetric, so suppose . Then , so (when both readings of give ). The cases cover every pair, so the equation always holds.
Proving that something exists
A claim is proved most plainly by producing an and checking . Such a proof is constructive. When the claim is , the may depend on , so the proof must give a recipe.
Take the claim that for every natural number there are consecutive natural numbers, none of them prime. Let be a natural number and write , the product . Consider the numbers . Each has the form with . Then , since is one of the factors of , and , so by the Now you on divisibility. As , the number has a divisor other than and itself, so it is not prime.
For the recipe gives and the run to . It is far from the first such run, which is to . A constructive proof must produce a witness, not the best one.
Existence without a witness
Some existence proofs never say which object works. Here is the classic, which assumes that is irrational (the next lesson proves it).
Example. Prove that there are irrational numbers and with rational.
Consider the real number . It is either rational or irrational. If it is rational, take : both are irrational and is rational. If it is irrational, take and , both irrational, and then , which is rational. In either case a suitable pair exists.
This is a proof by cases in which the cases are never resolved. It establishes that one of two pairs works without saying which, so it is non-constructive. The answer is known from outside the proof: Aleksandr Gelfond and Theodor Schneider showed, independently in the 1930s, that is irrational, so the second pair is the one. Some mathematicians, the constructivists, reject such proofs, because they rest on the claim that every statement is true or false even when nobody can say which.
Now you. Given that and are irrational, give a constructive proof of the same claim.
Answer
Take and , both irrational. Since , we get , using . So is rational, and this time the pair is named.
Where the direct route stalls
Every proof above ran forwards: unpack the hypothesis by its definition, then rearrange until the conclusion's definition appears. Try the same on "for every integer , if is even then is even". Let be an integer with even, so for some integer . The goal is (an integer), and all the hypothesis offers is , which is not visibly twice anything.
The hypothesis is about and the conclusion is about , and information does not flow backwards through squaring. Cases on the parity of only help by ruling the odd case out, which is a different method in disguise. The statement is true, and the next lesson proves it by turning the conditional round, the same move that proves irrational.