Nested Quantifiers
Nested Quantifiers
Niloufar Shafiei
Nested quantifiers
Two quantifiers are nested if one is within the
scope of the other.
P(x,y)
Example:
x y (x + y = 0)
Q(x)
x Q(x)
Q(x) is y P(x,y)
P(x,y) is (x + y = 0)
1
11
x y P(x,y)
When true?
For every x there is a y for which P(x,y) is true.
When false?
There is an x such that P(x,y) is false for every y.
12
x y P(x,y)
When true?
There is a pair x, y for which P(x,y) is true.
When false?
P(x,y) is false for every pair x, y.
13
15
domain: integers
16
Solution:
Rewrite it in English that quantifiers and a domain
are shown
For every real number except zero, there is a
multiplicative inverse.
17
Solution:
Introduce variables
For every real number except zero, there is a multiplicative
inverse.
For every real number x, if x 0, then there is a real number
y such that xy = 1.
18
Solution:
Translate it to a logical expression
For every real number x, if x 0, then there is a real number
y such that xy = 1.
19
26
x P(x)
x P(x)
x P(x)
x P(x)
27
28
x a f (F(x,f) A(f,a))
by previous example
Recommended exercises
1,3,10,13,23,25,27,33,39
31