Skip to content
Official PYQ · 2016

GATE CS 2016 Set 2 Q27 — Propositional and First Order Logic

Explain with AI

Which one of the following well-formed formulae in predicate calculus is NOT valid ?

Choose one option
View worked solution

Answer: D

A formula in predicate logic is valid if it is true under every possible interpretation. Let us analyze each option to find the one that is NOT valid:

  • Option A: Using the implication equivalence A  ⟹  B≡¬A∨BA \implies B \equiv \neg A \vee B, we can rewrite the antecedent: ∀xp(x)  ⟹  ∀xq(x)≡¬(∀xp(x))∨∀xq(x)≡∃x¬p(x)∨∀xq(x)\forall_x p(x) \implies \forall_x q(x) \equiv \neg(\forall_x p(x)) \vee \forall_x q(x) \equiv \exists_x \neg p(x) \vee \forall_x q(x) Since the antecedent is logically equivalent to the consequent, the formula is of the form F  ⟹  FF \implies F, which is always valid.
  • Option B: The existential quantifier distributes over disjunction, meaning (∃xp(x)∨∃xq(x))≡∃x(p(x)∨q(x))(\exists x p(x) \vee \exists x q(x)) \equiv \exists x (p(x) \vee q(x)). Since they are equivalent, the implication is valid.
  • Option C: If there exists an object xx that satisfies both p(x)p(x) and q(x)q(x), then there exists an object satisfying p(x)p(x) and there exists an object satisfying q(x)q(x). Thus, the implication is valid.
  • Option D: This is NOT valid. Consider a counterexample where the domain is the set of integers Z\mathbb{Z}:
    • Let p(x)p(x) be "xx is even" and q(x)q(x) be "xx is odd".
    • The antecedent ∀x(p(x)∨q(x))\forall x (p(x) \vee q(x)) is True because every integer is either even or odd.
    • The consequent (∀xp(x)∨∀xq(x))(\forall x p(x) \vee \forall x q(x)) is False because it is not true that all integers are even, nor is it true that all integers are odd.
    • Since True  ⟹  False\text{True} \implies \text{False} is False, the formula is invalid.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Propositional and First Order Logic questions