Question

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

Choose one option
Official answer and solution
Official answer
D
From
Official GATE 2016 answer key

Solution

Find an interpretation in which the formula evaluates to false to demonstrate invalidity.

A formula in first-order logic is valid if it is true under all possible interpretations (domains and predicates).

Examine Option (D): ∀x(p(x)∨q(x))  ⟹  (∀xp(x)∨∀xq(x))\forall x (p(x) \lor q(x)) \implies (\forall x p(x) \lor \forall x q(x)).

Construct an interpretation:

  • Domain: The set of positive integers Z+={1,2,3,4,… }\mathbb{Z}^+ = \{1, 2, 3, 4, \dots\}.
  • Let p(x)p(x) be "xx is even".
  • Let q(x)q(x) be "xx is odd".

Evaluate the antecedent and consequent under this interpretation:

  • Antecedent: ∀x(p(x)∨q(x))\forall x (p(x) \lor q(x)). Every integer is either even or odd. This is TRUE.
  • Consequent: ∀xp(x)∨∀xq(x)\forall x p(x) \lor \forall x q(x).
    • ∀xp(x)\forall x p(x) states "all integers are even", which is FALSE.
    • ∀xq(x)\forall x q(x) states "all integers are odd", which is FALSE.
    • False ∨\lor False is FALSE.
  • The implication becomes True  ⟹  False\text{True} \implies \text{False}, which evaluates to FALSE.

Since there exists an interpretation under which the formula is false, it is NOT valid.

All other options are valid tautologies of predicate logic:

  • (A) distributes negation through implication: (∀xp(x)  ⟹  A)≡(¬∀xp(x)∨A)≡(∃x¬p(x)∨A)(\forall x p(x) \implies A) \equiv (\neg \forall x p(x) \lor A) \equiv (\exists x \neg p(x) \lor A).
  • (B) existential quantification distributes over disjunction: ∃x(p(x)∨q(x))≡∃xp(x)∨∃xq(x)\exists x (p(x) \lor q(x)) \equiv \exists x p(x) \lor \exists x q(x).
  • (C) if an element satisfies both pp and qq, then an element satisfies pp and an element satisfies qq.

Hence, option (D) is not valid.

Final answer

D

Common trap

Assuming the universal quantifier distributes over disjunction (it only distributes over conjunction).

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2016 Computer Science and Information Technology (CS) Session 2
Question
37 of 65, printed as CS Q.27
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.