Section 1.1 proved statements straight from their
definitions, and Section 1.2 met the first contradiction
about sets. Logic and Proof, Section 8.1 sorted
the arguments called “by contradiction” into three
faces: refuting a statement (),
proving the contrapositive, and genuine reductio (), with the
rule “use the weakest form that works, and say which one
you use”. This section is about choosing. Which form a
proof takes is decided by the shape of the claim and by
what each assumption hands over to compute with. The
section proves that there are infinitely many primes and
that is
irrational, makes the smallest counterexample of Section
2.2 a method of its own, and ends with a word on
existence proofs that name no witness.
To prove “if ,
then ” there are
three ways to start. Assume and work towards : a direct proof (Example (Method: direct proof from a definition)).
Assume and
work towards : the contrapositive, which proves the
original by Logic and Proof, Proposition 2.5.2.
Or assume and
together and
work towards a contradiction. A claim that is itself a
negation, such as “irrational”, “no solution” or “no
bijection”, has one natural start, face (i): assume the
positive statement, reach , and conclude the
negation by . The choice is not a matter of taste. Unwind
each candidate assumption by its definitions, and ask
which one hands over something to compute with.
Example
(A negative hypothesis)
Let .
Show that if is not divisible by , then leaves remainder or on division by .
Idea (Scratch work).
Direct. The hypothesis says
that no integer
has . That is a “there is no”, and it gives
nothing to compute with: no equation, no object.
Contrapositive. The negation of “remainder
or remainder
” is “remainder
not and not ” (Logic and Proof, Proposition 2.5.5).
The remainder lies in and is unique (Theorem 2.2.3),
so this says: remainder . So the new assumption
is , an
equation, and the new goal asks for a witness, which the
equation may produce.
|
the remainder of is or |
| (contrapositive) , |
|
|
: , the gap is closed |
The direct start stalled at the first line; the
contrapositive closed the gap in two.
Solution. We prove the
contrapositive: if does not leave
remainder or
on division by
, then .
Divide by (Theorem 2.2.3):
with
and (by
discreteness, Proposition 2.1.2
(c)), and is
unique. By assumption and , so . Then and , so .
The contrapositive turned a “not divisible” in the
hypothesis into a witness to produce, and an “or” in the
conclusion into a single case to compute with. The
statement is not vacuous: and give and ,
neither divisible by .
Solution. Contrapositive: “if leaves remainder on division by , then ”; it
is equivalent to the statement. Negation: “there is an
integer with
that leaves remainder ”; it is not equivalent,
and it is false by the example.
The example shows the questions to ask before any
proof, and they are worth fixing as a method.
Quick check. Which form, and what
first sentence, for the following?
- (a) For , if , then .
- (b) There is no
integer with
.
- (c) For and
,
if is
injective, then
is injective.
Solution. (a)
Contrapositive: “Suppose ; then .” (b) Face (i), since the claim is a
negation: “Suppose and .” (Then gives , and gives .) (c) Direct, by the method of Example (Method: proving injectivity):
“Let
with .” Then ,
and injectivity of gives .
Infinitely
many primes
Logic and Proof, Section 8.1 met Euclid’s
argument for a finite list of primes (Logic and Proof, Exercise (C1: Euclid without the contradiction));
here is a version that puts, for each , a prime above , and Exercise C2 turns
the list argument into a bound of its own. Theorem 2.2.5
gives every integer a prime factor. To show that the primes never
run out, it is enough to build, for each , a number all of whose
prime factors exceed . Multiplying together
and adding does
it.
Theorem
2.4.1 (There Are Infinitely Many Primes)
For every there is a prime with .
Idea. The number leaves remainder
on division by
every with , so none of
them divides it. Its prime factor (Theorem 2.2.5)
must therefore exceed . The last step is a
face (i) argument inside the proof: suppose .
Proof. Step 1. For every
, is a positive integer
and for
every . We use induction on , following the clauses
of (Definition 2.3.1).
For , , and there is no
. Suppose the
claim holds for .
Then is a positive integer. For , the hypothesis
gives with
, so ; and divides . Every
has or
(Lemma 2.1.1
(e)).
Step 2. Let , and let . By Step 1 and Proposition 2.1.2
(b), , so
, and has a prime factor
(Theorem 2.2.5).
Suppose .
Since ,
, so by Step 1. From and , (Example (Divisors of a combination)).
So with
; then
, so , and , against
. Hence
, by
trichotomy. This proves the theorem.
Warning. The proof does not
say that is
prime. For , . The proof uses only that has some prime
factor, and shows that every one of them exceeds .
Quick check. Run the proof at : compute and a prime dividing it. Is
prime?
Solution. , and . is
not prime.
An
irrational number by lowest terms
Logic and Proof proved irrational (Logic and Proof, Theorem 2.2.1)
with the fact (L), which Lemma 2.2.4
now proves. The same lemma settles a cube root. Here
is the
real number with
; its
existence and uniqueness are school facts, as in Section
1.6.
Proposition
2.4.2 (The Cube Root of 2 Is Irrational)
is
irrational.
Idea. The claim is a negation, so
face (i): suppose in the
form of Lemma 2.2.4,
and show that and
are both even.
One step, “ even
even”, is itself a
contrapositive.
Proof. A contrapositive
first. For , if is even, then is even. Suppose is not even. Then is odd (Theorem 1.1.2),
with
, and
is odd, hence not even (Theorem 1.1.2).
The claim. Suppose is rational.
By Lemma 2.2.4,
with ,
,
and and not both even. Cubing,
, so
is even, and
is even: with . Then , so is
even, and is
even. So and
are both even, a
contradiction. Hence is irrational
().
The outer frame is face (i), with no : the proof
refutes “ is rational”.
The step inside it is face (ii), a contrapositive whose
conclusion “ even”
is not a negation, so it rests on Logic and Proof, Proposition 2.5.2.
(It could also avoid : by Theorem 1.1.2,
is even or odd,
and the odd case closes by .) The
lemma’s “not both even” is the given that the
contradiction breaks; without the lemma there would be
nothing to contradict.
Quick check. Why does the same
proof not show that is
irrational?
Solution. gives no
parity contradiction: with odd, is odd and is odd, and “not both
even” survives. The proof needs “no common divisor ”, which Exercise C2 of
Section 2.2 provides.
The
smallest counterexample
Well-ordering gives the same power as strong
induction, in a form that often reads more naturally. To
prove a claim about every integer from on, suppose it fails
somewhere. The failures form a non-empty set of integers
with the integer lower bound , so Corollary 2.1.5
gives a least one. Below it the claim holds. If that is
enough to produce a failure that is smaller still, or to
show the claim at the least failure after all, we have a
contradiction.
Algorithm. To prove “ for every integer
” by a
smallest counterexample:
- Suppose it fails: some integer has false.
- Take the least failure: the set of integers with false is non-empty
and has the integer lower bound , so it has a least
element (Corollary 2.1.5;
Theorem 2.1.3
when ,
since then ).
- Use the claim below : holds for every
integer with
,
since such a is
not in .
- Produce a contradiction: a failure , or itself.
Then is empty,
and holds for
every integer .
The method is strong induction with an box drawn
around it. The work done inside the box, “if for every with , then
”, is exactly
the hypothesis of Theorem 2.2.2
at ; so any
smallest-counterexample proof can be rewritten as a
strong induction, and the reverse rewriting works too.
Which one to write is a matter of which reads better. A
smallest counterexample suits claims whose failure has a
natural “smaller failure”, like a fraction that can be
reduced, or a number with a factor.
Section 2.2 used it in Lemma 2.2.4
and in the proof sketched before Theorem 2.2.5,
and its Exercise B2 asks for one.
Example
(Method: the smallest counterexample)
Template. The four steps of the list
above, opening with “Suppose not, and let be the least integer
for which
fails”. The
least failure is Example (Method: the least element)
applied to the set of failures. Worked examples: Lemma 2.2.4
(Section 2.2) and Example (Taking out the threes)
below.
When to use it. A failure would give
a smaller failure: a number with a factor, a fraction
that can be reduced, a representation that can be
shortened.
The usual failure. Not checking that
the smaller object is still (or positive), so
that it lies in the set of failures. Forgetting the case
in which no smaller object exists, which must be ruled
out directly (in the example below, not divisible by ).
Example
(Taking out the threes)
Show that every positive integer is with , and .
Idea (Scratch work). This is the
argument of Exercise C1 of Section 2.3, with in place of ; here each step of the
method is named. Suppose some positive integer has no
such form, and let be the least one.
Unwind what can
be. If ,
say ,
then is a
smaller positive integer, so it has the form, and one
more factor gives
the form too. If
, there is
no smaller object to pass to; but then already
has the form, so
was not a failure at all.
| the least
positive integer with no form , ; every with has
one |
a contradiction |
| case |
: has
the form after all |
| case : , so with |
:
has the form; the
gap is closed |
Solution. Suppose not, and let
be the set of
positive integers with no such form. is a non-empty subset
of , so it has a
least element (Theorem 2.1.3).
If , then
with , so
, a
contradiction. So with ; since , so (Proposition 2.1.2
(b)), and . As is least in , : with , and . Then (Definition 2.3.2),
so , a
contradiction. Hence .
Solution. and
.
And is a
positive integer smaller than the least element of , so it cannot lie in
.
Existence
without a witness
A proof of “there exists” by contradiction, an on a
statement , may finish without naming any
object. Theorem 2.1.3
was proved so, and the remark after its proof said what
that means: the proof shows that a least element exists,
not how to find one. Logic and Proof, Section
8.7 gave the classical example, an irrational power of
an irrational number that is rational, shown to exist
between two candidates without saying which one works
(Logic and Proof, Theorem 8.7.1).
It also gave the book’s position: classical rules are
allowed, and a proof that names no witness is still a
proof.
The proof of Theorem 2.4.1
and the contrapositive of Example (A negative hypothesis)
went the other way. The proof of Theorem 2.4.1
names its witness: a prime factor of , and trying in turn
finds the least one. The contrapositive in Example (A negative hypothesis)
turned an existence goal into an explicit witness, . (The
smallest-counterexample proof of Example (Taking out the threes)
is formally an , but its
two cases describe how to find and .) A named witness says
more than bare existence, and it can be checked by
computation. So the advice is: when a witness is cheap,
name it.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Write the
converse, the contrapositive and the negation of “if
is prime and
, then is odd”. Which are
true?
- (b) Name the form
you would choose and write the first sentence (no
proofs): (i) is
irrational; (ii) for , if is odd, then is even or is even; (iii) for sets
, if , then
.
- (c) Run the proof of
Theorem 2.4.1
at : find
, its least prime
factor, and check that it exceeds .
- (d) “Suppose is the largest prime.
Then has a
prime factor , a contradiction.” Which face of “by
contradiction” is this, and does the proof name a prime
larger than ?
Solution. (a) Converse: if
is odd, then
is prime and
. False:
.
Contrapositive: if is even, then is not prime or . It is
equivalent to the statement, and true: an even has the divisor
.
Negation: some prime is even. False. (“Not odd” is “even” by Theorem 1.1.2.)
(b) (i) Face (i): “Suppose with
, and no
common divisor ” (Exercise C2 of Section 2.2; “not both even”
is not enough, as the last Quick check of the subsection
on
shows). (ii) Contrapositive: “Suppose and are both odd”, the
negation of “ even
or even” by Logic and Proof, Proposition 2.5.5
and Theorem 1.1.2;
then and are odd (Logic and Proof, Theorem 2.4.4),
and is
even (Example (The parity of a sum)).
(iii) Direct, by Example (Method: two inclusions):
“Let .”
(c) . It is not divisible by , or : . And . The
least prime factor is , and
is not prime.
(d) Face (i): it refutes “there is a largest
prime”. Its body names , so it can be rewritten
without contradiction: for every prime , a prime factor of
is a larger
prime (Theorem 2.4.1
with ). This
is the rewrite of Logic and Proof, Exercise (C1: Euclid without the contradiction),
applied to
in place of Euclid’s product.
B. Practice
Exercise
(B1: Contrapositive)
Prove:
- (a) for all , if , then or ;
- (b) for every , if , then
or .
Exercise
(B2: Contradiction)
Prove:
- (a) there is no
rational number
with ;
- (b) there are no
integers with
.
Solution. (a) Suppose
, with
as in Lemma 2.2.4.
Multiplying by ,
. Two
facts about products: odd times odd is odd, since , and an even number times any integer is
even. Since and
are not both
even, three cases remain. If , are odd: is odd, and is odd plus odd,
even (Example (The parity of a sum)).
If is even and
odd: is even, and is even plus
odd, odd. If is
odd and even:
is odd, and
is even.
Each case equates an odd and an even integer, against Theorem 1.1.2.
(b) Suppose . Then is odd, so is odd (Logic and Proof, Theorem 2.4.4),
and
with by
Exercise (B3, used later)
(b). So , and : would
be even, against Theorem 1.1.2.
Exercise
(B3: Name the move, then complete it)
Claim: for every integer . Here is a proof
with its last step blank.
Suppose not. Then the set of integers with is non-empty
and has the integer lower bound , so it has a least
element (Corollary 2.1.5).
Since , , so , and is an integer with .
Exercise
(B4: Prove or disprove)
Prove each true statement; refute each false one with
a concrete counterexample.
- (a) For every : if is not divisible
by , then is divisible by .
- (b) For every : if , then is odd.
- (c) For every : if is irrational, then
is
irrational.
- (d) For every : if is irrational, then
is
irrational.
- (e) For all positive
integers :
.
- (f) For every there is a
prime with .
Solution.
(a)
False. Take : is not
divisible by , and
neither is .
(b)
True. We prove the contrapositive. If
is not odd, it is
even (Theorem 1.1.2),
, and , so . (Its
look-alike “if , then ” is false at .)
(c)
False. Take , irrational
by Logic and Proof, Theorem 2.2.1:
is
rational.
(d)
True. We prove the contrapositive: if
is
rational, so is .
(e)
True, by contradiction (face (i)).
Suppose . Since and
is even (Theorem 1.1.2),
the two factors have the same parity (Example (The parity of a sum)).
If both are odd, the product is odd, since as in B2 (a), but is even. If both are
even, divides the
product, but is not a multiple of (uniqueness in Theorem 2.2.3).
(f)
False. Take . The numbers are not
prime: , , are even, , , . ( is the smallest
counterexample.)
Verdicts: three true, (b), (d), (e); three false.
C. Going deeper
Exercise
(C1: Two proofs by contradiction)
For each proof below: is the conclusion true? Is the
argument valid? Name each flaw, and write a proof in the
form that Example (Method: choosing direct, contrapositive or contradiction)
recommends.
Proof A. Claim: if is odd, then
is even.
“Suppose is odd
and is odd.
Write .
Then is even, which
contradicts
odd.”
Proof B. Claim: for every , if , then or .
- (1) Suppose .
- (2) Suppose, for a
contradiction, that or .
- (3) Say , so .
- (4) If also , then ; so
.
- (5) So , which proves
the claim.
Solution. Proof A. The
conclusion is true and the argument is valid, but the
assumption “
odd” is used only to clash with the result: a direct
proof in costume (Logic and Proof, Example (A direct proof in costume)).
Written directly: “Let with ; then is even.” The hypothesis is
not even needed: , and one of , is even.
Proof B. The conclusion is true; the
argument is not a proof. Line (2) negates “ or ” wrongly, entry
(N11) of Logic and Proof, Example (What is not allowed):
the negation is “ and ” (Logic and Proof, Proposition 2.5.5).
Line (3) takes one disjunct of its own “or” and drops
the other, a missing case (N7). Line (5) reaches no
contradiction at all. A proof by the contrapositive: if
and , then (Proposition 2.1.2
(c)), so and . Or by cases: if , done; if , then by the
computation of line (4).
Marking scheme. (10 points) - 2:
judges A’s conclusion true and its argument valid, and
names the assumption it never uses. - 1: rewrites A as a
direct proof. - 3: names the wrong negation in line (2)
and gives the correct one (citing (N11) is optional). -
1: names the missing case (N7). - 1: notes that B
reaches no contradiction. - 2: gives a correct proof of
B’s claim.
Exercise
(C2: A bound from Euclid’s list)
Logic and Proof, Section 8.1 proved that for
primes , with , the number has a prime factor different
from each (Logic and Proof, Exercise (C1: Euclid without the contradiction)).
Here that argument becomes a bound. Let , and let
be the
least prime greater than ; it exists by Theorem 2.4.1
and Theorem 2.1.3,
and Corollary 2.3.2
makes a sequence. So , .
- (a) Prove that for
every ,
every prime is one of .
- (b) Prove that for every .
- (c) Deduce that
for every .
- (d) Compute
and its prime factors for the lists and . Is prime?
Solution. (a) By Theorem 2.2.1
with base . For
: a prime
has , so . Suppose the
claim for , and
let
be prime. If , then is one of by the
hypothesis. Otherwise , by trichotomy; then is a prime greater than
, so , as is the least one,
and .
(b) Let and . Each , so , and has a prime factor
(Theorem 2.2.5).
Suppose for
some . Then
divides , which is
times the
product of the other entries (school arithmetic of
finite products, Definition 2.3.1),
so (Example (Divisors of a combination)),
and as in
the proof of Theorem 2.4.1,
against . So
is none of , and by
(a) :
. Hence
, by
the choice of . Finally with , and since , so and .
(c) By Theorem 2.2.2
with base . For
, . Let
, and
suppose for every with . By (b),
multiplying these
inequalities between positive numbers, Proposition 2.3.4
(a) and Proposition 2.3.6
with , where the last inequality uses .
(d) , with prime factor . , with prime factors and . Neither is prime; each has a
prime factor off its list, and neither list is an
initial segment , so (b) says nothing about them.
Marking scheme. (10 points) - 3:
(a), with the base case and the use of leastness of
. - 3: (b):
a prime factor of
off the list,
by (a),
and . - 3: (c): strong induction, the geometric
sum in the exponent, and . - 1: both computations in (d).
Solution. ,
since . By
Exercise (B2: Products of primes, used later),
with primes .
Each : if
, then
(Step 1
of the proof of Theorem 2.4.1),
and
(school arithmetic of finite products, as in Exercise
C2), so (Example (Divisors of a combination)),
which is impossible. No is , since leaves remainder on division by . Dividing by (Theorem 2.2.3)
and using discreteness, each is , or . So each is or : if , then , and since is prime. If every
were of the
form , then
would be too,
since and an induction on carries this along the
product; but , against the uniqueness in Theorem 2.2.3.
So some is
, and .
Marking scheme. (10 points) - 2:
shows and a
factorization into primes. - 2: shows each via . - 1: shows
. - 2:
shows each is
or . - 2: shows a
product of factors is , by induction. - 1: the contradiction with
remainder .