MTS102 - Discrete Structures (Discrete Mathematics) 2021: Nested Quantifiers
MTS102 - Discrete Structures (Discrete Mathematics) 2021: Nested Quantifiers
MTS102 - Discrete Structures (Discrete Mathematics) 2021: Nested Quantifiers
(Discrete Mathematics)
2021
Lecture - 5
Nested
Quantifiers
Quantifiers with Restricted Domain
•
Quantifiers with Restricted Domain
•
Quantifiers with Restricted Domain
•
Quantifiers with Restricted Domain
•
Nested Quantifiers
• Two quantifiers are nested if one is within scope of other,
such as
∀x∃y(x + y = 0).
• Solution:
The quantification ∃y∀xQ(x, y) denotes the proposition
“There is a real number y such that for every real number
x, Q(x, y).”
• No matter what value of y is chosen, there is only one
value of x for which x + y = 0. Because there is no real
number y such that x + y = 0 for all real numbers x, the
statement ∃y∀xQ(x, y) is false.
Example
• The quantification ∀x∃yQ(x, y) denotes the proposition
“For every real number x there is a real number y such
that Q(x, y).”
• xy P(x,y)
• P(x,y) = (x+y == 0) is true
Example
•
Domain: Real numbers
• True/False???
• For all real numbers x and for all real numbers y there is a
real number z such that .
• True
• True/False???
• There is a real number z such that for all real numbers x
and for all real numbers y it is true that .
• False
Translating between English and Quantifiers
• Translate the statement “The sum of two positive integers
is always positive” into a logical expression.
• Solution:
• First rewrite it so that the implied quantifiers and a domain
are shown: “For every two integers, if these integers are
both positive, then the sum of these integers is positive.”
• Next, introduce the variables x and y to obtain “For all
positive integers x and y, x + y is positive.”
• Statement is ∀x∀y((x > 0) ∧ (y > 0) → (x +y > 0)),
• where the domain for both variables consists positive
integers.
Translating between English and Quantifiers
• Translate the statement
∀x(C(x) ∨ ∃y(C(y) ∧ F(x, y)))
into English, where C(x) is “x has a computer,” F(x, y) is “x
and y are friends,” and the domain for both x and y
consists of all students in your school.
• Solution:
• The statement says that for every student x in your
school, x has a computer or there is a student y such that
y has a computer and x and y are friends.
• In other words, every student in your school has a
computer or has a friend who has a computer.
Chapter Reading
• Chapter 1, Kenneth H. Rosen, Discrete Mathematics and
Its Applications, Section 1.5