January 29

advertisement
Section 1.6 Excursion—validity of arguments
A theorem is
A proof is
validity of an argument
Rules of inference
Example: If x ends in 0 then it is divisible by 10.
(p  (p  q))  q
modus ponens
p
T
T
F
F
|
|
|
|
|
q
T
F
T
F
| pq
| T
| F
| T
| T
Other Valid Arguments
Example:
If 6 divides x then 2 divides x
2 does not divide 5
Therefore, 6 does not divide 5
pq

q___
 p
modus tollens ((pq  q)  p)
p
T
T
F
F
|
|
|
|
|
q
T
F
T
F
| pq
| T
| F
| T
| T
Resolution: (p V q)  (p V r)  (q V r)
Example: (from Rosen #61 p. 76)
It is not raining or Sue has her umbrella
Sue does not have her umbrella or she does not get wet
It is raining or Sue does not get wet
p:
q:
r:
1st Statement
2nd Statement
3rd Statement
Table 1 Rules of Inference (p. 58 in Rosen)
Rule
Tautology
Name
__________________________________________________
p
p V q
p  (p V q)
Addition
__________________________________________________
pq
p
(p  q)  p
Simplification
__________________________________________________
p
q____
Conjunction
pq
__________________________________________________
p
pq
[p  (p  q)]  q
Modus ponens
q
__________________________________________________
q
pq
[q  (p  q)] p
Modus tollens
p
__________________________________________________
pq
qr
[(p  q)  (q  r)]  (p  r)
Hypothetical
p  r
Syllogism
__________________________________________________
pVq

p
[(p V q) p]  q
Disjunctive
q
Syllogism
_________________________________________________
pVq

pVr
Resolution
q V r
__________________________________________________
Fallacies
p
T
T
F
F
More Fallacies
Circular reasoning
|
|
|
|
|
q
T
F
T
F
| pq
| T
| F
| T
| T
Proving Validity of the Inference Rules
What we need to prove:
Proving the validity of disjunctive syllogism:
p
T
q
T
T
F
F
T
F
F
pVq

p
(p V q)  p [(p V q) p]  q
Validity of an argument
Example 1: (p. 76 # 2b) If this number is a perfect square then
the equation has a rational solution. The equation has a rational
solution. Therefore this number is a perfect square.
Example 2: If you fail the final you will fail the course. You failed
the final. Therefore, you will fail the course
Example 3: If it’s above 80 at noon then it will not rain. It rained.
Therefore it was not above
80 at noon.
Mathematical Notation and Terminology Used in EECS 210
Z
Z+
Q
R
N
Mathematical Functions
Floor function y
Ceiling function y
Mod function
Divides
Notation:
GCD
LCM
Prime number
Composite number
Relatively Prime
Chapter 2 A Primer of Mathematical Writing (Proofs)
Types of proofs
Give reasons for all steps in a proof
Proposition 1: (p. 87) Other than 3, 4 there is no pair of consecutive
integers where the first is a prime number and the second is a
perfect square.
Theorem 2: For all integers n > 4, if n is a perfect square, then n – 1
is not a prime number. (Basically a restatement of proposition 1.)
Tracing proofs
Typical Proofs about Numbers
An integer n is even if
An integer m is odd if
Closure Property of the Integers: Whenever the operation of
addition, subtraction or multiplication is applied to integers, the
result is an integer.
Proposition 3: The result of summing an odd integer and an even
integer is an odd integer.
Proof 1:
Proof 2:
Are both correct? Why or why not?
Proposition 5: If n is even then n2 is divisible by 4.
Proposition 6: For all integers n, if n2 is even then n is even.
Example: Prove that if n + 1 separate passwords are issued to n
students, then some student gets ≥ 2 passwords.
Section 2.2 Proofs About Numbers
An integer n is divisible by
Prove or disprove: If n is an odd integer, then n2 - 1 is divisible by 8.
If integers m and n are both divisible by 3 then
1. n + m is also divisible by 3.
2. m•n is divisible by 9.
3. n2 + 3n is divisible by 9.
Prop. 4: For any nonzero integer d, if integers m and n are both
divisible by d, then m + n is also divisible by d.
Definition: A real number r is rational if there exist integers a and
b (b 0) with r = a/b. Rational numbers (also called fractions) can
be expressed in many equivalent ways. (1/2 = 2/4 = 3/6 = …)It is
always possible to choose the integers a and b with no common
divisors greater than 1. Such numbers are called relatively prime.
2. A real number is irrational if it is not rational.
More Examples
Example 1: Prove that the sum of two rational numbers is rational
Example 2: Prove or disprove the product of two irrational
numbers is irrational.
Example 3: Prove that for every integer n, 3(n2 + 2n + 3) – 2n2 is a
perfect square.
Proposition 6: For any integer n, n2 + n is even.
Example 4: Prove n3 – n is divisible by 3 for all n ≥ 0
Example 5: The difference of two consecutive cubes is odd.
Proving by cases
Prove that for any two numbers x and y, |xy| = |x| • |y|
Case 1: x ≥ 0 and y ≥ 0
Case 2: x ≥ 0, y < 0
Case 3: y ≥ 0, x < 0
Case 4: x < 0, y < 0
Example 6: Prove or disprove there exist three consecutive odd
primes.
Example 7: Prove or disprove that given a positive integer n there
exist n consecutive odd positive integers that are prime.
The Division Theorem
Theorem 8: For all integers a and b with b > 0, there is an integer
q (the quotient) and an integer r (the remainder) such that
1. a = b•q + r and
2. 0  r < b
Proposition 9: If n is any integer not divisible by 5 then n has a
square that is either of the form 5k + 1 or 5k + 4.
Definition: We write a mod b = r to mean that r is the remainder
when a is divided by b. (i.e. a = b•q + r and 0  r < b)
Difference between the divides relation and division
Proving the equivalence of three or more statements
Prove that if n is an integer, then the following four statements
are equivalent:
(1) n is even
(2) n + 1 is odd
(3) 3n + 1 is odd
(4) 3n is even
Proof Technique
Exhaustive
Proof
Direct Proof
How to prove P  Q
Show P  Q for all
possible cases
Assume P, deduce Q
Comments
Only works for a finite
number of cases.
The standard
approach to try.
Contrapositive
Assume Q, deduce P Use if Q as a
(Indirect) Proof
hypothesis seems to
give more information
to work with.
Contradiction
Assume P Λ Q, deduce Try this approach
when Q says
a contradiction
something is not true.
Proof by Cases
Break the domain into
Try this for proving
two or more subsets
properties of numbers
and prove PQ for the where odd and even
elements in each such or positive and
negative numbers
subset.
require different
proofs.
Counterexample Prove statement false
Used to show that
by finding one value for PQ is false.
P such that Q is false.
Existence
Find one explicit
This is the only time
solution
you may "prove by
(e.g. there exists an
example"
even prime number)
Modification of Table 2.2 p. 91 Gersting
Download