Quantifiers - A Nested Approach
Quantifiers - A Nested Approach
1
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”
xy (x*y == 0)
2
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
3
Negating multiple quantifiers
Recall negation rules for single quantifiers:
¬x P(x) = x ¬P(x)
¬x P(x) = x ¬P(x)
Essentially, you change the quantifier(s), and negate
what it’s quantifying
Examples:
¬(xy P(x,y))
= x ¬y P(x,y)
= xy ¬P(x,y)
¬(xyz P(x,y,z))
= x¬yz P(x,y,z)
= x¬yz P(x,y,z)
= xyz ¬P(x,y,z)
4
Negating multiple quantifiers 2
Consider ¬(xy P(x,y)) = xy ¬P(x,y)
The left side is saying “for all x, there exists a y such
that P is true”
To disprove it (negate it), you need to show that “there
exists an x such that for all y, P is false”
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
7
Rosen, section 1.4 question 30
Rewrite these statements so that the negations
only appear within the predicates
a) yx P(x,y)
yx P(x,y)
yx P(x,y)
b) xy P(x,y)
xy P(x,y)
xy P(x,y)
c) y (Q(y) x R(x,y))
y (Q(y) x R(x,y))
y (Q(y) (x R(x,y)))
y (Q(y) x R(x,y))
9
Rosen, section 1.4 question 31
Express the negations of each of these statements so
that all negation symbols immediately precede
predicates.
a) xyz T(x,y,z)
(xyz T(x,y,z))
xyz T(x,y,z)
xyz T(x,y,z)
xyz T(x,y,z)
xyz T(x,y,z)
b) xy P(x,y) xy Q(x,y)
(xy P(x,y) xy Q(x,y))
xy P(x,y) xy Q(x,y)
xy P(x,y) xy Q(x,y)
xy P(x,y) xy Q(x,y)
10
Quick survey
I felt I understood the material in this slide set…
a) Very well
b) With some review, I’ll be good
c) Not really
d) Not at all
11
Quick survey
The pace of the lecture for this slide set was…
a) Fast
b) About right
c) A little slow
d) Too slow
12
Quick survey
How interesting was the material in this slide
set? Be honest!
a) Wow! That was SOOOOOO cool!
b) Somewhat interesting
c) Rather borting
d) Zzzzzzzzzzz
13