lecture1 (1)
lecture1 (1)
We begin by looking at the notion of proof. What is a proof? “Proof” has a formal
definition in mathematical logic, and a formal proof is long and unreadable. In practice, you
need to learn to recognize a proof when you see one.
We will begin by discussing four main methods of proof that you will encounter frequently:
• deduction
• contraposition
• induction
• contradiction
Proof by Deduction:
A proof by deduction is composed of a list of statements, the last of which is the statement
to be proven. Each statement in the list is either
To prove the claim, we must systematically verify that this definition is satisfied.
1
Why??
Suppose |x − 5| < δ. Since δ ≤ 1, 4 < x < 6, so 9 < x + 5 < 11 and |x + 5| < 11. Then
Thus, we have shown that for every ε > 0, there exists δ > 0 such that |x − 5| < δ ⇒
|f(x) − f(5)| < ε, so f(x) = x2 is continuous at x = 5.
Proof by Contraposition:
¬P means “P is false.”
Formally, P ⇒ Q is equivalent to ¬P ∨ Q.
¬Q ⇒ ¬P
Proof: Suppose P ⇒ Q is true. Then either P is false, or Q is true (or possibly both).
Therefore, either ¬P is true, or ¬Q is false (or possibly both), so ¬(¬Q) ∨ (¬P ) is true,
¬Q ⇒ ¬P is true.
2
So to prove a statement P ⇒ Q, it is equivalent to prove the contrapositive ¬Q ⇒ ¬P .
See de la Fuente for an example of the use of proof by contraposition.
Proof by Induction:
Proof:
Base step n = 0: The left hand side (LHS) above = 0k=1 k = the empty sum = 0. The
P
n+1
X
LHS = k
k=1
Xn
= k + (n + 1)
k=1
n(n + 1)
= + (n + 1) by the Induction hypothesis
2
n
= (n + 1) +1
2
(n + 1)(n + 2)
=
2
(n + 1)((n + 1) + 1)
RHS =
2
(n + 1)(n + 2)
=
2
= LHS
Pn n(n+1)
so by mathematical induction, k=1 k= 2
for all n ∈ N0 .
3
Proof by Contradiction:
A proof by contradiction proves a statement by assuming its negation is true and working
until reaching a contradiction. Again we illustrate with an example.
m2
2 = q2 =
n2
Therefore, m2 = 2n2 , so m2 is even.
m2 = (2p + 1)2
= 4p2 + 4p + 1
= 2(2p2 + 2p) + 1
4r2 = (2r)2
= m2
= 2n2
2
n = 2r2
so n2 is even, which implies (by the argument given above) that n is even. Therefore, n = 2s
for some s ∈ Z, so m and n have a common factor, namely 2, contradiction. Therefore, there
is no rational number q such that q 2 = 2.
4
is exactly the graph of the function f. A function can be considered a binary relation R
from X to Y such that for each x ∈ X there exists exactly one y ∈ Y such that (x, y) ∈ R.
[x] = {y ∈ X : xRy}
The set of equivalence classes is the quotient of X with respect to R, denoted X/R.
Example: Let X = {a, b, c, d} and R = {(a, a), (a, b), (b, a), (b, b), (c, c), (c, d), (d, c), (d, d)}.
R is an equivalence relation (why?) and the equivalence classes of R are {a, b} and {c, d}.
X/R = {{a, b}, {c, d}}
The following theorem shows that the equivalence classes of an equivalence relation form
a partition of X: every element of X belongs to exactly one equivalence class.
Suppose x, y ∈ X. If [x] ∩ [y] = ∅, we’re done. So suppose [x] ∩ [y] 6= ∅. We must show
that [x] = [y], i.e. that the elements of [x] are exactly the same as the elements of [y].
5
Choose z ∈ [x] ∩ [y]. Then z ∈ [x], so xRz. By symmetry, zRx. Also z ∈ [y], so yRz.
By symmetry again, zRy. Now choose w ∈ [x]. By definition, xRw. Since zRx and R is
transitive, zRw. By symmetry, wRz. Since zRy, wRy by transitivity again. By symmetry,
yRw, so w ∈ [y], which shows that [x] ⊆ [y].
Similarly, [y] ⊆ [x], so [x] = [y].
Definition 9 Two sets A, B are numerically equivalent (or have the same cardinality) if there
is a bijection f : A → B, that is, a function f : A → B that is 1-1 (a 6= a0 ⇒ f(a) 6= f(a0 )),
and onto (∀b ∈ B ∃a ∈ A s.t. f(a) = b).
Roughly speaking, if two sets have the same cardinality then elements of the sets can be
uniquely matched up and paired off.
For example, the set A = {2, 4, 6, . . . , 50} is numerically equivalent to the set {1, 2, . . . , 25}
under the function f(n) = 2n. In particular, this shows that A is finite. The set B =
{1, 4, 9, 16, 25, 36, 49 . . .} = {n2 : n ∈ N} is numerically equivalent to N and is infinite.
Define f : N → Z by
f(1) = 0
f(2) = 1
f(3) = −1
..
.
n
f(n) = (−1)n
2
where bxc is the greatest integer less than or equal to x. It is straightforward to verify that
f is one-to-one and onto.
6
Theorem 10 The set of rational numbers Q is countable.
“Picture Proof”:
m
Q = : m, n ∈ Z, n 6= 0
n
m
= : m ∈ Z, n ∈ N
n
m
0 1 −1 2 −2
1 0 → 1 −1 → 2 −2
. % . %
1
2 0 2
− 12 1 −1
↓ % . %
1
n 3 0 3
− 13 2
3
− 23
. %
1
4 0 4
− 14 1
2
− 12
↓ %
1
5 0 5
− 15 2
5
− 25
Go back and forth on upward-sloping diagonals, omitting the repeats:
f(1) = 0
f(2) = 1
1
f(3) =
2
f(4) = −1
..
.
Notice that although Q appears to be much larger than N, in fact they are the same
size.