1.1 Proofs from Definitions
Logic and Proof taught the rules of proof and how to write them as prose. From here on the statements are about mathematical objects, and every word in them that matters has a definition. A proof begins by writing the hypotheses out by their definitions, writes out what the conclusion demands, and closes the gap between them. This section practices that on the integers, where the definitions are one line long and every claim can be tested by hand. It teaches five moves: direct proof, proof by cases, without loss of generality, disproof by counterexample, and proof of existence by an example.
1.1.1. A puzzle about lattice points
A lattice point is a point
- (Q1) Among any five lattice points, must there be two whose midpoint is a lattice point?
- (Q2) Among any four lattice points, must there be two whose midpoint is a lattice point?
Before reading on, place a few sets of points on squared paper and compute their midpoints.
Both answers come from two words this section defines, even and odd. Question (Q2) is settled in this section. Question (Q1) needs, besides parity, a principle about finite collections that sounds too obvious to need proof; we will state it but not yet prove it.
1.1.2. Definitions first
The first two words are the ones the puzzle needs.
An integer
Logic and Proof used these words informally,
and wrote “
Evenness is divisibility by
Let
Quick check. Decide, from the
definitions alone: (a) Is
Solution.
(a) Yes:
, with .(b) No. If
with , then gives and gives , so in either case. And no: for every .(c) Yes:
, with .(d) No. If
with , then gives and gives .
So
The last definition singles out the integers with as few divisors as possible.
An integer
So
1.1.3. Direct proof
The first claim to prove from these definitions is that divisibility passes along a chain.
For all integers
Idea (Scratch work). Unwind every
defined word. The hypotheses
| Givens | Goal |
|---|---|
The last row closes the gap. The proof writes this
forwards: the witness
Proof. Let
The proof used only the definition of divisibility and integer arithmetic, and it read the definition in both directions: once to unwind the hypotheses, once to rewind the conclusion.
Template. To prove “if
When to use it. The hypotheses and the conclusion are defined notions, and the gap between them is computation.
The usual failure. Stopping at the
computation, as in “
Let
Solution. By the method of Example (Method: direct proof from a definition):
unwind both hypotheses with two names, then look for a
multiplier of
Let
Three special cases are used constantly. With
Quick check. The proof of Proposition 1.1.1
named two witnesses,
Solution. Take
1.1.4. Proof by cases
Some claims depend on what kind of integer we have. The first such fact is the one behind every parity argument.
Every integer is even or odd, and no integer is both.
Idea (Scratch work). Start on
| Givens | Goal |
|---|---|
| Case 1: |
|
| Case 2: |
The negative integers come next, by cases again: for
Proof. Every natural number is
even or odd. We argue by induction on
Every integer is even or odd. Let
No integer is both. Suppose
A fact Logic and Proof took from school is now proved from the definitions. The proof has four case splits, each into cases that together cover everything.
Template. Find a disjunction you
already have, such as “
When to use it. The definitions or the algebra behave differently on different kinds of input, so the givens give no grip until you know which kind you have.
The usual failure. Cases that do not cover every possibility (N8), or a case forgotten (N7). Before splitting, say why the cases are exhaustive.
Show that
Idea. A general
Solution. Let
Case 1:
Case 2:
In each case the bracket is an integer, so
Quick check. Why does the proof of Example (A proof by cases) need no third case?
Solution. By Theorem 1.1.2
every integer is even or odd, so the two cases already
cover every
1.1.5. Without loss of generality
When two cases are mirror images, a proof writes one
and says that the other is “the same with the roles
exchanged”. Logic and Proof, Section 8.2 read
the phrase “without loss of generality” as a
Let
(a) If
and have the same parity (both even or both odd), then is even.(b) If they have opposite parity (one even and the other odd), then
is odd.
Solution.
(a) Case 1: both even. Then
by Example (Divisors of a combination) with , . Case 2: both odd, say and with . Then , with . In both cases is even.(b) The statement is symmetric in
and : , and “opposite parity” does not change when the two are exchanged. So, without loss of generality, is even and is odd, say and with . Then is odd. The case odd and even is the same with and exchanged.
Warning. Check the symmetry
first. “Without loss of generality
1.1.6. Counterexamples and examples
A universal claim, “for every
Is
Solution. For
Warning. A counterexample
must satisfy the hypothesis. The choice
Prove or disprove: for all integers
Idea (Scratch work). Try small
| Givens | Goal |
|---|---|
| (none: we are looking for an example) | integers |
Solution. False. Take
The search failed while
Template. To refute “for every
When to use it. The claim survives a
few tries, yet you doubt it; or the statement is
existential. Search small and extreme cases first:
The usual failure. A “counterexample” that does not satisfy the hypothesis; refuting a different claim from the one stated; and the mirror error, concluding “for every” from examples (N1). One example refutes a universal claim, and no number of examples proves one.
An existence claim, proved by one example: there is
an integer
Quick check. Is
Solution. No and no. For
1.1.7. Back to the lattice points
(Q2) is false. Take the four corners
of a unit square,
The parity pattern of a lattice
point
Show that if two lattice points have the same parity pattern, then their midpoint is a lattice point.
Solution. Let
Quick check. Which pattern does
Solution. Odd–even:
(Q1), almost. Among five lattice points, each point has one of only four patterns, so two of the points must share a pattern, and then Example (Same pattern, lattice midpoint) finishes. The step “five objects in four boxes put two in one box” is the pigeonhole principle. It is stated here, not proved, and so the answer to (Q1) is “yes, once the principle is proved”. The four corners show that five cannot be lowered to four.
Remark (Looking ahead). Section 2.5 proves the pigeonhole principle, from a precise definition of “finite”, and comes back to these five points.
1.1.8. Exercises
A. Check your understanding
- (a) Write out “
” and “ is odd” by their definitions, each as a “there exists”. - (b) True or false,
with reasons:
is odd; ; ; is prime. - (c) What must a
counterexample to “every multiple of
is a multiple of ” satisfy? Give one. - (d) In the proof of Theorem 1.1.2, name the four case splits and say why each is exhaustive.
Solution.
(a)
: there exists with (Definition 1.1.2). is odd: there exists with (Definition 1.1.1).(b) True:
. True: . False: for every . False: , so fails the clause of Definition 1.1.3.(c) It must be a multiple of
that is not a multiple of . For example ; and has no integer solution, since gives and gives .(d) First, even or odd in the induction step: this is the induction hypothesis itself, a disjunction already derived. Second,
or : every integer is one or the other, by the order of . Third, even or odd, for : the first half of the proof, applied to . Fourth, or : no integer lies strictly between and .
B. Practice
Prove, for all integers
- (a) if
, then ; - (b) if
and , then .
Solution.
(a) Let
. By Definition 1.1.2, with . Then , and , so .(b) Let
and . By Definition 1.1.2, and with , two different names since nothing says the multipliers agree. Then , and , so .
Prove that for every integer
Solution. Let
Here is the frame of a proof that if
The statement is unchanged when
and are exchanged, so we may assume …
… Hence
is odd.
Name the move, then complete it.
Solution. The move is without
loss of generality: the statement and the
hypothesis are symmetric in
Prove each true statement and refute each false one with a counterexample.
- (a) For all integers
: if and , then . - (b) For all integers
: if , then or . - (c) For every
integer
, is odd. - (d) The sum of any three odd integers is even.
- (e) There is an
integer
with . - (f) For all integers
: if is even, then and are both even.
Solution.
(a) True. Let
and : and with . Then , with , so .(b) False. Take
, . Then , so . But : is odd, hence not even (Theorem 1.1.2), and the same holds for .(c) True. By Theorem 1.1.2,
is even or odd. Case 1: . Then . Case 2: . Then with , so and . In both cases the bracket ( , respectively ) is an integer, so is odd by Definition 1.1.1.(d) False. Take
, , : their sum is odd, hence not even (Theorem 1.1.2).(e) True. Take
: , so .(f) False. Take
, . Then is even, but is odd, hence not even (Theorem 1.1.2).
C. Going deeper
- (a) By the method of
Theorem 1.1.2,
show that every integer has the form
, or for some , and that no integer has two of these forms. - (b) Deduce that for
every integer
, has the form (exactly when ) or the form . - (c) Prove that for
all integers
: if , then and .
Solution (Hint 1). For (c), use (b)
on
Solution (Hint 2). First line:
“Suppose
Solution.
(a) Every natural number has one of the forms, by induction on
. For , . In the step, gives ; gives ; gives . So every has one of the forms (Logic and Proof, Axiom 4.2.1). Every integer. For , write in one of the forms; then , and . No two forms. Suppose with and . Then . With , gives and gives , so , a contradiction ( ).(b) By (a),
has one of the three forms. If , then . If , then . If , then . So has the form in the first case and in the other two. Since no integer has two forms, has the form exactly in the first case, that is, exactly when .(c) Suppose
, and suppose . By (b), with . Case 1: . Then by (b), and . Case 2: . Then by (b), and . In both cases has a form other than ; but says it has the form , against the “no two forms” half of (a). This contradiction refutes , so (by , or by excluded middle on , with the case closed by ). The statement and the hypothesis are unchanged when and are exchanged, so the same argument gives .
Marking scheme. (10 points) - 2: (a)
existence on
Claim: if
“Proof”: Let
- (a) Is the conclusion true?
- (b) Does the argument prove it? Name the failing line.
- (c) Give a counterexample to the illegal step itself.
- (d) Write a correct proof.
Solution. The conclusion is true: it is one half of Logic and Proof, Theorem 2.4.4.
The argument does not prove it. Its first line
assumes the conclusion, “
A correct proof, by cases on
Marking scheme. (6 points) - 1: (a)
the conclusion is true, with the citation. - 2: (b) the
error named as proving the converse (N5), pointing at
the first line. - 1: (c) a false instance of the pattern
“
A lattice point of space is a point
- (a) Give eight lattice points of space no two of which have a lattice point as midpoint.
- (b) Show that two lattice points of space with the same three parities have a lattice point as midpoint.
- (c) Which principle, stated in this section and not yet proved, would show that among any nine lattice points of space two have a lattice point as midpoint?
Solution.
(a) The eight points whose coordinates all lie in
. Two different such points differ in some coordinate, where one has and the other ; the sum there is , and , so the midpoint is not a lattice point.(b) As in Example (Same pattern, lattice midpoint), coordinate by coordinate: in each coordinate the two entries have the same parity, so their sum is even by Example (The parity of a sum) (a), and half of it is an integer.
(c) The pigeonhole principle. Each coordinate is even or odd, so there are
parity patterns; nine points in eight patterns put two points in one pattern, and (b) finishes.