Predicate Quantifier
Predicate Quantifier
Predicate Quantifier
MATEMATIKA DISKRIT
(DISCRETE
MATHEMATICS )
PREDICATE
&
QUANTIFIER
Discrete Math Team
2 -- KS091201 MD W-03
Outline
Propositional function
Function with multiple variables
Quantifier
Universal quantifier
Existensial quantifier
Binding variable
Negating quantifier
Translating from English
Multiple quantifiers
Order of quantifiers
Negating multiple quantifiers
3 -- KS091201 MD W-03
Propositional Functions
Consider P(x), as a symbolic notation of x > 5
P(x): propositional function P at x (fungsi
proposisi P untuk x)
x is subject
> 5 is predicate
P(x) has no truth value when x is unknown
P(x) become a proposition when we assigned
certain value to x
The value given to x is taken from certain
universe of discourse or domain (himpunan
semesta)
4 -- KS091201 MD W-03
P(x,y,z) =x+y=z
P(3,4,5) is false, P(1,2,3) is true
P(x1,x2,x3 … xn) = …
6 -- KS091201 MD W-03
Quantifier
A quantifier is “an operator that limits the variables
of a proposition”
Universal quantifier
Existential quantifier
7 -- KS091201 MD W-03
Universal Quantifier
Represented by an upside-down A:
It means “for all”
Let P(x) = x+1 > x
Existensial Quantifier
Represented by an backwards E:
It means “there exists”
Let P(x) = x2 > 10
Conclusion
Statement When True When False
x P(x) P(x) is TRUE for every x There is an x for which
P(x) is FALSE
x P(x) There is an x for which P(x) is FALSE for every x
P(x) is TRUE
15 -- KS091201 MD W-03
Notes
Recall that P(x) is a propositional function
Let P(x) be “x > 0”
Binding Variable
Let P(x,y) be x > y
Consider: x P(x,y)
This is not a proposition!
What is y?
If it’s 5, then x P(x,y) is false
If it’s x-1, then x P(x,y) is true
Negating Quantifiers
Consider the statement:
All students in this class have Acer Laptop
Conclusion
Let:
S(x) be “x is a student in this class”
M(x) be “x has visited Manado”
C(x) be “x has visited Cianjur”
23 -- KS091201 MD W-03
x M(x)
True if the universe of discourse is all students
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
25 -- KS091201 MD W-03
Multiple Quantifiers
You can have multiple quantifiers on a statement
xy P(x, y)
“For all x, there exists a y such that P(x,y)”
Example: xy (x+y = 0)
xy P(x,y)
There exists an x such that for all y P(x,y) is true”
Example: xy (x*y = 0)
26 -- KS091201 MD W-03
Order of quantifiers
xy and xy are not equivalent!
xy P(x,y)
P(x,y) = (x+y = 0) is false
xy P(x,y)
P(x,y) = (x+y = 0) is true
27 -- KS091201 MD W-03
Examples:
¬(xy P(x,y)) = xy ¬P(x,y)
¬(xyz P(x,y,z)) = xyz ¬P(x,y,z)
28 -- KS091201 MD W-03
Translating Quantifiers
Let N(x) be the statement "x has visited North Dakota",
where he domain consist of the students in your school.
Express each of these quantifications in English.
a) x N(x)
Some students in the school have visited North Dakota.
There exists a student in the school who has visited N.D.
b) x N(x)
Every student in the school has visited North Dakota.
All students in the school have visited North Dakota.
c) ¬ x N(x) : negation of part a)
No student in the school has visited North Dakota.
There does not exist a student in the school who has visited
N.D.
30 -- KS091201 MD W-03
Translating Quantifiers
Let N(x) be the statement "x has visited North Dakota", where he
domain consist of the students in your school. Express each of
these quantifications in English.
d) x ¬ N(x)
Some students in the school have not visited North Dakota.
There exists a student in the school who has not visited N.D.
e) ¬ x N(x) : negation of part b)
It is not true that every student in the school has visited N.D.
Not all students in the school have visited N.D.
f) x ¬ N(x)
All students in the school have not visited North Dakota.
(common English sentence takes this sentence, incorrectly, the
answer of part e)
Translating Quantifiers
Note: The domain is all integers
The product of two negative integers is positive
xy ((x<0) (y<0) → (xy > 0))
Why conditional instead of and?
The average of two positive integers is positive
xy ((x>0) (y>0) → ((x+y)/2 > 0))
The difference of two negative integers is not
necessarily negative
xy ((x<0) (y<0) (x-y≥0))
Why and instead of conditional?
The absolute value of the sum of two integers does
not exceed the sum of the absolute values of these
integers
xy (|x+y| ≤ |x| + |y|)
32 -- KS091201 MD W-03
Translating Quantifiers
Note:The domain is all real numbers
xy (x+y = y)
There exists an additive identity for all real numbers
xy (((x≥0) (y<0)) → (x-y > 0))
A non-negative number minus a negative number
is greater than zero
xy (((x≤0) (y≤0)) (x-y > 0))
The difference between two non-positive numbers
is not necessarily non-positive (i.e. can be positive)
xy (((x≠0) (y≠0)) ↔ (xy ≠ 0))
The product of two non-zero numbers is non-zero if
and only if both factors are non-zero