Consider the following well-formed formulae: I. ~forall x (P(x)) II. ~exists x (P(x)) III. ~exists x (~P(x)) IV. exists x (~P(x)) Which of the following pairs are logically equivalent? A. I and III B. I and IV C. II and III D. II and IV

GATE 2009 · Discrete Mathematics · First Order Logic · medium

Answer: B. I and IV are logically equivalent: both express 'not all x satisfy P', i.e., ~forall x P(x) = exists x ~P(x).

  1. Simplify Formula I: I: ~forall x P(x) = exists x ~P(x) = Formula IV.
  2. Simplify Formula II: II: ~exists x P(x) = forall x ~P(x). This is different from I (exists x ~P) and from III.
  3. Simplify Formula III: III: ~exists x (~P(x)) = forall x ~~P(x) = forall x P(x) by double negation. This is the strong claim 'P holds for all x' — not equivalent to I or II.