Chapter1.5
Chapter1.5
All slides' contents are adapted from the book Discrete Mathematics and its Applications by Rosen, 8th edition.
1
The Foundations:
Logic and Proofs
Chapter 1
2
The Foundations:
Logic and Proofs
Nested Quantifiers
3
Outline
4 4
Understanding
1
Nested quantifiers
5
Nested Quantifiers
Two quantifiers are nested if one is within the scope of another; such
as:
x y (x + y = 0)
Note that: Everything within the scope of a quantifier can be
thought as a propositional function.
e.g., x y (x + y = 0) is the same thing as
∀x Q(x) where,
Q(x) is ∃ y P(x,y) where.
P(x , y) is (x + y = 0).
6
Nested Quantifiers
Additive Inverse: for every real number x,
there’s a real number y such that: x + y =0.
xy ( x y 0)
Commutative Law for Addition: x+y=y+x
xy ( x y y x)
Associative Law for Addition: x+(y + z) = (x + y) +
z
xyz ( x ( y z ) ( x y ) z )
Also see Example 2 on page 61
7
Thinking of quantification as a
loop
8
Thinking of quantification as a
loop
∃x ∀y P(x,y)
For all y
For all x
P(x,y) at least one is true in x loop and all y
End for all x
End for all y
∃x ∃y P(x,y)
For all x
For all y
P(x,y) at least one is true.
End for all y
End for all x
9
The order of
2
quantifiers
10
Order of Nested Quantifiers
11
Order of Nested Quantifiers
xyP ( x, y ) yxP ( x, y )
xyP( x, y ) yxP( x, y )
We cannot always change the order of quantifiers:
x y P ( x, y ) yx P ( x, y ) ?
x y ( x y 0) yx ( x y 0)
true false
12
Order of Nested Quantifiers:
Examples
Let U be the real numbers, Define
P(x,y) : x ∙ y = 0
What is the truth value of the following:
1. xyP(x,y)
Answer: False
2. xyP(x,y)
Answer: True
3. xy P(x,y)
Answer: True
4. x y P(x,y)
Answer: True 13
Quantifications of Two Variables
14
Translating Mathematical
statements to statements
3
involving nested
quantifiers
15
Translate the following statements into logical expression
1
16
Translating from
4 nested quantifiers to
English
17
Translate the statements into English
“every student in your school has a computer or has a friend who has a
computer”
1
18
Translating English
5 sentences to logical
expressions
19
Translating from English to logical
expressions
2
20
Negating nested
6
quantifiers
21
Negating Nested Quantifiers
22
Negating Nested Quantifiers
∀x ∃y (xy=1)
(∀x ∃y (xy=1))
∃ x ∃ y (xy=1)
∃ x ∀y (xy=1)
∃ x ∀y (xy1)
2
23
Summery
24 24
Reference
25