CSCE 222 Chapter 1.4

From Notes
Jump to navigation Jump to search

« previous | Sunday, February 20, 2011 | next »


Nested Quantifiers

Think of nested quantifiers as loops:

∀x∀yP(x,y)

for x in Domain do
  for y in Domain do
    p(x,y)
  end
end

Order Matters

∀x∃y(x+y=0)≢∃y∀x(x+y=0)

Left side: For all real numbers x, there is a real number y such that x+y=0. (Namely, y=−x)

Right side: There is a real number y such that for all real numbers x, x+y=0. (can never be true)


Negating Nested Quantifiers

Follow rules of negating quantifiers and De Morgan's Laws, just cascade down the line.

∀w¬∀a∃f(P(w,f)∧Q(f,a))≡∀w∃a¬∃f(P(w,f)∧Q(f,a))≡∀w∃a∀f¬(P(w,f)∧Q(f,a))≡∀w∃a∀f(¬P(w,f)∨¬Q(f,a))