Chapter 1 Quantifier and Proof Part 4
Chapter 1 Quantifier and Proof Part 4
Part 4
Quantifiers & Proof Technique
1
QUANTIFIERS
2
QUANTIFIERS
3
QUANTIFIERS
Example:
P (x) : x > 3
Q (x,y) : x = y + 3
R (x,y,z) : x + y = z
4
Example
x2 + 4x is an odd integer
(domain of discourse is set of positive numbers).
x2 – x – 6 = 0
(domain of discourse is set of real numbers).
5
QUANTIFIERS
A predicate becomes a proposition if the variable(s) contained
is(are)
Assigned specific value(s)
Quantified
Example
• P(x) : x > 3.
What are the truth values of P(4) and P(2)?
• Q(x,y) : x = y + 3. (multiple variables)
What are the truth values of Q(1,2) and Q(3,0)?
6
Propositional functions
• Let P(x) : x + 3 =0
• For what values of x is P(x) true?
7
QUANTIFIERS
8
QUANTIFIERS
9
Universal quantifiers
Example
Let P(x) = x+1 > x
We can state the following:
"x P(x)
English translation: “for all values of x, P(x) is true”
English translation: “for all values of x, x+1>x is true”
10
10
QUANTIFIERS
The statement can be written as
∀x A(x)
Above statement is true if A(x) is true for every x in B
(false if A(x) is false for at least one x in B ).
OR In order to prove that a universal quantification is true,
it must be shown for ALL cases
In order to prove that a universal quantification is false, it
must be shown to be false for only ONE case
A value x in the domain of discourse that makes the statement A(x)
false is called a counterexample to the statement.
11
Example
12
Example
13
QUANTIFIERS
Easy to prove a universally quantified statement is true
or false if the domain of discourse is not too large.
What happen if the domain of discourse contains a
large number of elements?
For example, a set of integer from 1 to 100, the set of
positive integers, the set of real numbers or a set of
students in School of Computing. It will be hard to
show that every element in the set is true.
14
QUANTIFIERS
15
QUANTIFIERS
16
Example
Let the existentially quantified statement is
∃x x 2
2 =
x 1 5
Domain of discourse is the set of real numbers.
17
Negation of Quantifiers
18
Example
∀x P(x)
All students are taking Discrete Structure course.
∃x P(x)
There is some students who are taking Discrete
Structure course.
19
Example
¬∃x P(x)
None of the students are taking Discrete Structure course.
∀x ¬ P(x)
All students are not taking Discrete Structure course.
20
Example
¬∀x P(x)
Not all students are taking Discrete Structure course.
∃x ¬P(x)
There is some students who are not taking Discrete Structure
course
21
Translating from English
"x C(x)
• True if the universe of discourse is all students in
this class
22
22
Translating from English
• "x (S(x)C(x)) X
• This is wrong! Why? (because this statement says
that all people are students in this class and have
studied calculus)
• "x (S(x)→C(x)) √
23
Translating from English
Consider:
• “Some students have visited Mexico”
• Rephrasing: “There exists a student who has visited
Mexico”
Let:
• S(x) be “x is a student”
• M(x) be “x has visited Mexico”
$x M(x)
• True if the universe of discourse is all students
24
24
Translating from English
$x (S(x) M(x))
25
Exercise
Let P(x, y) = (x * y)2 1. Given the domain of discourse for x and y is set of integer, Z.
Determine the truth value of the following statements. Give the value of x and y that make the
statement TRUE or FALSE.
a) $x$y P(x, y)
b) "x"y P(x, y)
26
26
Translating from English
Consider “Every student in this class has visited Canada or
Mexico”
Let, S(x) be “x is a student in this class”
M(x) be “x has visited Mexico”
C(x) be “x has visited Canada”
"x (M(x)C(x))
(When the universe of discourse is all students in this class)
"x (S(x)→(M(x)C(x))
(When the universe of discourse is all people or all students)
27
27
Proof Techniques
Mathematical systems consists:
28
Proof Techniques
Direct Proof (Direct Method)
Proof of those theorems that can be expressed in
the form ∀x (P(x) → Q(x)), D is the domain of
discourse.
Select a particular, but arbitrarily chosen, member a
of the domain D.
Show that the statement P(a) → Q(a) is true.
(Assume that P(a) is true).
Show that Q(a) is true.
By the rule of Universal Generalization (UG),
∀x (P(x) → Q(x)) is true.
29
Example
“For all integer x, if x is odd, then x2 is odd”
Or P(x) : x is an odd integer
Q(x) : x2 is an odd integer
"x( P ( x) Q( x))
The domain of discourse is set Z of all integer.
Can verify the theorem for certain value of x.
x=3, x2 =9 ; odd
Or show that the square of an odd number is an odd number
Rephrased: “if n is odd, then n2 is odd”
30
Example
• a is an odd integer
2 2
a = (2 n 1)
2 2
a = 4n 4n 1
2 2
a = 2(2 n 2n) 1
2 where m= 2n2 + 2n is an integer
a = 2m 1
2
a is an odd integer
31
Proof Techniques
Indirect Proof
The implication p → q is equivalent to the
implication (¬q → ¬p) (contrapositive)
Therefore, in order to show that p → q is true,
one can also show that the implication (¬q →
¬p) is true.
To show that (¬ q → ¬ p) is true, assume that
the negation of q is true and prove that the
negation of p is true.
32
Example
P(n) : n2+3 is an odd number
Q(n) : n is even number
" n ( P ( n ) Q ( n ))
P (n) Q (n) Q (n) P (n)
33
Example
2 2
n 3 = (2 k 1) 3
2
= 4 k 4 k 1 3
2
= 4 k 4 k 4
2
= 2 (2 k 2 k 2 )
t = 2k 2 2k 2
t is integer
2
n 3 = 2t
n2+3 is an even integer, thus ¬ P(n) is true
34
Which to use
35
35
Example
Prove that “if n is an integer and n3+5 is odd, then
n is even”
36
Example
37
37
Proof Techniques
Proof by Contradiction
38
Example
Prove that “there are infinitely many prime numbers”.
Proof:
Assume there are not infinitely many prime numbers,
therefore they are can be listed, i.e. p1,p2,…,pn
Consider the number q = p1 x p2 x…x pn + 1.
q is either prime or not divisible, but not listed above.
Therefore, q is a prime. However, it was not listed.
Contradiction! Therefore, there are infinitely many
primes numbers.
39
Example
Proof
• Suppose that the conclusion is false. Then
x < 1 and y <1
Add these inequalities, x+y < 1+1 = 2 (x+y <2)
• Contradiction
• Thus we conclude that the statement is true.
40
Example
Suppose a∈Z . If a2 is even, then a is even
Proof
• Contradiction: Suppose a2 is even and a is not even.
• Then a2 is even, and a is odd
• Let, a = 2c 1 (odd)
2
a 2 = 2c 1 = 4c 2 4c 1 = 2 2c 2 2c 1 (odd)
• Contradiction
• Thus we conclude that the statement is true.
41
Exercise
42
Thank You
43