Академический Документы
Профессиональный Документы
Культура Документы
Lecture Notes
Lecture 5
Proof Techniques
Introduction to Proofs
To understand written mathematics, one must
understand what makes up a correct mathematical
argument, that is, a proof.
This requires an understanding of the techniques used to
build proofs.
The methods we will study for building proofs are also
used throughout computer science, such as the rules
computers used to reason, the techniques used to verify
that programs are correct, etc.
Many theorems in mathematics are implications, p q.
The techniques of proving implications give rise to
different methods of proofs
What is a theorem?
Ans : A statement that can be shown true. Sometimes called facts.
What is a Proof?
Ans : Demonstration that a theorem is true.
Some Terminology
propositions - Less important theorems
axioms - statement that is assumed to be true
lemma - A less important theorem that is useful to prove a
theorem
corollary - A theorem that can be proven directly from a theorem
that has been proved
Conjecture - A statement that is being proposed to be a true
statement
trivial proof - A proof that p q is true based on the fact that q is
true
Some Basic Definitions
Rational Numbers
A number is rational if we can write it as a fraction where top number of the
fraction and bottom number are both whole numbers with no common factors
Every whole number, including negative numbers and zero, is a rational number.
This is because every whole number n can be written in the form n/1
Examples of Rational Numbers - 8 (8/1) , 3/4, 1.5 (3/2), 0.333... (1/3)
Recurring decimals such as 0.26262626, all integers and all finite decimals,
such as 0.241, are also rational numbers
Irrational Numbers
An irrational number is any number that is not rational.
It is a number that cannot be written as a fraction of two integers
An irrational number has endless non-repeating digits to the right of the
decimal point
Examples of irrational number - 2 (1.414.) , (3.141592), e (2.718 )
Proof by Contradiction
A proof that p is true based on the truth of the conditional statement
!p q, where q is contradiction
Example - Give a proof by contradiction of theorem If 3n + 2 is odd, then n
is odd.
Let p= 3n + 2 is odd q= n is odd
To construct a proof by contradiction, assume that both p and q are true
That is, assume that 3n + 2 is odd and that n is not odd
Because n is not odd (means even), n = 2k
3n + 2 = 3(2k) + 2 = 6k + 2 = 2(3k + 1) = 2t is even = p
both p and p are true, we have contradiction
This completes proof by contradiction, proving if 3n + 2 is odd, then n is odd
Example - Prove 2 is irrational using contradiction
Suppose 2 was rational
Choose m, n integers without common factors (always true)
2 = m /n 2 n=m 2n2=m2 (a is even if and only if a2 is even)
so m is even
m=2l 2 n=2l 2 n2=4l2 n2=2l2 so n is even
m and n are both even, thus have a common factor 2, a contradiction!
Example - Show that if n is an integer and n+5 is odd , then n is even using
a proof by contradiction
Let p= n+5 is odd and q= n is even
assume that both p and q are true
So n is odd n=2k-1 for some integer k
n+5 = (2k-1)+ 5 = (4k+4k+1) (2k-1) + 5 = 8k- 4k+ 8k-4k + 2k 1 + 5 =
8k+4k- 2k + 4 =2(4k+2k-k+1) =2t is even (where t= 4k+2k- k + 1 ) = q
both p and q are true, we have contradiction
We conclude that for every integer n, if n +5 is odd, then n is even. Hence
Proved
Proof by Cases
- Sometimes easiest way to prove a theorem is to split it into
several cases.
- the original conditional statement p q with a hypothesis p
made up of a disjunction of propositions p1, p2, . . . , pn can be
proved by proving each of the n conditional statements pi q,
i = 1, 2, . . . , n, individually.
Exhaustive Proof
- Some theorems can be proved by examining a relatively small
number of examples. Such proofs are called exhaustive proofs, or
proofs by exhaustion because these proofs proceed by exhausting
all possibilities.
- An exhaustive proof is a special type of proof by cases where each
case involves checking a single example
Example - Prove that (n + 1)3 3n if n is a positive integer with n 4
We use a proof by exhaustion.
n = 1, (n + 1)3 = (1 + 1)3 = (2)3 = 8 and 3n = 31 = 3
n = 2, (n + 1)3 = (2 + 1)3 = (3)3 = 27 and 3n = 32 = 9
n = 3, (n + 1)3 = (3 + 1)3 = (4)3 = 64 and 3n = 33 = 27
n = 4, (n + 1)3 = (4 + 1)3 = (5)3 = 125 and 3n = 34 = 81
In each of these four cases, we see that (n + 1) 3 3n for n 4