Professional Documents
Culture Documents
Topics
1. Structure of a proof
2. Proofs by Case Analysis
3. Proofs by Contradiction
4. Existential and Universal Proofs
5. Proofs by Induction
1 Mathematical Reasoning
1.1 What is a Proof ????
Such
:9 X ,Y ,Z ( X n + Y n = Z n ) where n > 2.
Pierre de Fermat (1601 - 1665) : A French Mathematician, A lawyer by
profession, One of the Greatest Mathematician of all times, One of the
inventors of Analytic Geometry, One of the founder of the foundations of
Calculus and Probability.
The Fermat's Last theorem has been proved in 1994 by an American Mathematician. The length of the proof is over 200 pages. The proof is based on
some results which was proved earlier by Japanese Mathematicians.
for any x in .
Proof
QED.
for any x in Z+
for any x in Z .
Corrolary 1.1 x + 1 6= x
[ f0g.
for any x in .
A lemma is a result that we prove not for its own interest but because it
helps us to prove some theorems.
In terms of programming,
a theorem is like a main procedure/program which uses many smaller
procedures,
:q ! :p,
for any x in
Z where 0 x 3.
...
case 3) where x = 2.
...
case 4) where x = 3.
...
QED.
Note that this proof method uses the property that a statement that we
want to prove is either true or false. There is no other truth value than the
two.
6
_ q) is true.
Proof
_ :q) is false.
Thus, it follows that :(q _ :q ) is true. (since R is false , :R is true)
Therefore, :q ^ q is true (by distributing : over ^).
The contradiction arises. Thus, it must be that q _ :q is true.
QED.
Assume that (q
Existential Proofs
constructive.
9M 2 Z (N < M ).
N + 5.
Obviously, N < (N + 5) for any arbitrary N .
Thus, it follows that 9M ( N < M ) for any arbitrary N . Note that in
FOL, the theorem p(a) ! 9X p(X) holds. where a is a ground term.
1.7.2
Universal Proofs
Several theorems are assertions that a property holds for every object of
a particular type.
Theorem 1.4
8N 2 N (N 6= N + 2)
Proof
Suppose that i is an arbitrary natural number. Obviously, i =
6 i + 2 is true.
QED.
In other words, we can show that a universal theorem fails by nding its
counterexample.
8
Theorem 1.5
Proof
We shall show that
8N
(prime(N)
2 N :(prime(N) ! odd(N)).
, :8N 2 N (prime(N) ! odd(N)).
QED.
0 + 1 + 2 + 3 + ... + n =
Is this correct ?
n(n+1)
2
A proof technique called Induction can be used to show a property involving innitely many cases.
The validity of mathematical induction follows from the following fundamental axiom about the set of integers.
The Well-Ordering Property : Every non-empty set of non-negative integers has a least element.
9
! P(m+1) where m 2 N.
2 N due to the
n(n+1)
0=
0(0+1)
2
Inductive Case:
Assume that P(i), where i is an arbitrary natural number, is true, that is
i(i+1) (The Inductive Hypothesis)
P(i) :
1 + 2 + ... + i = 2
To show that P(i+1) is true, start on the left hand side of the equation for
P(i+1):
1 + 2 + ... + i + (i+1) = (1 + 2 + ... + i) + (i + 1)
=
=
=
=
i(i+1)
(associativity: A + (B + C) = (A + B) + C )
+ (i+1)
2
i(i+1)+2(i+1)
2
(2+i)(i+1)
2
(i+1)((i+1)+1)
2
11
P(i+1).
QED.
1) Show that the sum of the rst n odd positive integers is n2 . Let P(n)
denote this statement.
Base Case: P(1)
The following is true,
integer is just 1.
Inductive Case:
Assume the following P(i) for an arbitrary positive integer.
1 + 3 + 5 + ... + (2i - 1) = i2
Note that (2i - 1) stands for the ith odd positive integers. Thus, we must
show that P(i+1) is true. The following holds.
1 + 3 + 5 + ... + (2i - 1) + (2i + 1) = i2 + (2i + 1)
(by the inductive hypothesis)
= (i + 1)2
QED.
12
< m.
We shall
show that P(m) also holds under this assumption. There are two cases to
consider.
a) m is prime.
Immediately, P(m) is true since m is the product of itself.
b) m is not prime.
Thus, m = a
By the inductive hypothesis which states that P(a) and P(b) are true, both
QED.
13
It is worth observing that the ordinary mathematic induction is not suitable for proving this theorem. Why ?????
For example, the fact that the interger 1,311,819 is a product of primes,
is of no help in showing that 1,311,820 is also a product of primes.
1.9.1
Well-Founded Induction
If ( 8x
which is equivalent to
If P(u) then 8z
2 A P(z)
factorial(n) := 1
factorial(n) := n * factorial(n - 1)
< i.
n<
16