Skip to content
Official PYQ · 2014

GATE CS 2014 Set 1 Q1 — Propositional and First Order Logic

Explain with AI

Consider the statement

 "Not all that glitters is gold”

Predicate glitters(x)(x) is true if xx glitters and predicate gold(x)(x) is true if xx is gold.  Which one of the following logical formulae represents the above statement?

Choose one option
View worked solution

Answer: D

To translate the statement "Not all that glitters is gold" into first-order logic, we can break it down step-by-step:

  1. First, let's write the statement "All that glitters is gold": ∀x (glitters(x)⇒gold(x))\forall x \, (\text{glitters}(x) \Rightarrow \text{gold}(x))
  2. Now, we negate this statement to get "Not all that glitters is gold": ¬∀x (glitters(x)⇒gold(x))\neg \forall x \, (\text{glitters}(x) \Rightarrow \text{gold}(x))
  3. Using the logical equivalence ¬∀x P(x)≡∃x ¬P(x)\neg \forall x \, P(x) \equiv \exists x \, \neg P(x), we get: ∃x ¬(glitters(x)⇒gold(x))\exists x \, \neg (\text{glitters}(x) \Rightarrow \text{gold}(x))
  4. Using the implication negation rule ¬(A⇒B)≡A∧¬B\neg (A \Rightarrow B) \equiv A \wedge \neg B, we simplify the formula to: ∃x (glitters(x)∧¬gold(x))\exists x \, (\text{glitters}(x) \wedge \neg \text{gold}(x))

This matches Option D, which states that "there exists some object xx that glitters and is not gold".

Analysis of other options:

  • Option A: ∀x (glitters(x)⇒¬gold(x))\forall x \, (\text{glitters}(x) \Rightarrow \neg \text{gold}(x)) translates to "Nothing that glitters is gold" (or "All glittering things are not gold").
  • Option B: ∀x (gold(x)⇒glitters(x))\forall x \, (\text{gold}(x) \Rightarrow \text{glitters}(x)) translates to "All gold things glitter".
  • Option C: ∃x (gold(x)∧¬glitters(x))\exists x \, (\text{gold}(x) \wedge \neg \text{glitters}(x)) translates to "There is some gold that does not glitter".

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

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