Docsity

Discrete Structures Lecture 4 - Nested Quantifiers, Slides of Discrete Structures and Graph Theory

Partial preview of the text

Download Discrete Structures Lecture 4 - Nested Quantifiers and more Slides Discrete Structures and Graph Theory in PDF only on Docsity!

CSD101 - Discrete Structures

(Discrete Mathematics)

Spring 2016

Lecture - 4

Nested

Quantifiers

Nested Quantifiers

  • Two quantifiers are nested if one is within scope of other, such as ∀ x ∃ y(x + y = 0 ).
  • Everything within the scope of a quantifier can be thought of as a propositional function.
  • For example, ∀ x ∃ y(x + y = 0 ) is the same thing as ∀ xQ(x) , where Q(x) is ∃ yP(x, y) , where P(x, y) is x + y = 0.

Predicates - the meaning of multiple quantifiers

Statement When True? When False? ∀ x ∀ yP(x, y) ∀ y ∀ xP(x, y) P(x, y) is true for every pair x, y. There is a pair x, y for which P(x, y) is false. ∀ x ∃ yP(x, y) For every x there is a y for which P(x, y) is true. There is an x such that P(x, y) is false for every y. ∃ x ∀ yP(x, y) There is an x for which P(x, y) is true for every y. For every x there is a y for which P(x, y) is false. ∃ x ∃ yP(x, y) ∃ y ∃ xP(x, y) There is a pair x, y for which P(x, y) is true. P(x, y) is false for every pair x, y.

Example

  • Let Q(x, y) denote “ x + y = 0.” What are the truth values of the quantifications ∃ y ∀ xQ(x, y) and ∀ x ∃ yQ(x, y) , where the domain for all variables consists of all real numbers?
  • 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.

Order of Quantifiers

  • xy and xy are not equivalent!
  • xy P(x,y)
    • P(x,y) = (x+y == 0) is false
  • xy P(x,y)
    • P(x,y) = (x+y == 0) is true

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.

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:
    • ¬(xy P(x,y)) = x ¬y P(x,y) = xy ¬P(x,y)
    • ¬(xyz P(x,y,z)) = x¬yz P(x,y,z) = xy ¬ z P(x,y,z) = xyz ¬P(x,y,z)

Negating Multiple Quantifiers

  • Consider ¬(xy P(x,y)) = xy ¬P(x,y)
    • The left side is saying “for all x, there exists a y such that P is true”
    • To negate it, you need to show that “there exists an x such that for all y, P is false”
  • Consider ¬(xy P(x,y)) = xy ¬P(x,y)
    • The left side is saying “there exists an x such that for all y, P is true”
    • To negate it, you need to show that “for all x, there exists a y such that P is false”

Chapter Reading

  • Chapter 1 , Kenneth H. Rosen, Discrete Mathematics and Its Applications, Section 1.

Chapter Exercise (For Practice)

  • Question # 1, 2, 3, 4, 8, 23, 24, 25, 26, 27, 30, 31, 39, 41