Skip to content
Official PYQ · 2006

GATE CS 2006 Q26 — Propositional and First Order Logic

Explain with AI

Which one of the first order predicate calculus statements given below correctly expresses the following English statement?

 Tigers and lions attack if they are hungry or threatened.

Choose one option
View worked solution

Answer: D

To translate the English statement into first-order logic, we can break it down into smaller logical components:

  1. "Tigers and lions...": This refers to any animal xx that is either a tiger or a lion. In natural language, "and" is used here to group two classes together, meaning the statement applies to any member of either class. Thus, the antecedent is: tiger(x)∨lion(x)\text{tiger}(x) \lor \text{lion}(x) Note: Using tiger(x)∧lion(x)\text{tiger}(x) \land \text{lion}(x) (as in Option A) would incorrectly imply an animal that is simultaneously both a tiger and a lion.
  2. "...attack if they are hungry or threatened.": The phrase "PP if QQ" translates to the conditional statement Q→PQ \rightarrow P. Here, the condition QQ is "hungry or threatened" and the consequence PP is "attacks". This translates to: (hungry(x)∨threatened(x))→attacks(x)(\text{hungry}(x) \lor \text{threatened}(x)) \rightarrow \text{attacks}(x)

Combining these two parts for all individuals xx in the domain, we get:

∀x[(tiger(x)∨lion(x))→{(hungry(x)∨threatened(x))→attacks(x)}]\forall x [(\text{tiger}(x) \lor \text{lion}(x)) \rightarrow \{(\text{hungry}(x) \lor \text{threatened}(x)) \rightarrow \text{attacks}(x)\}]

This matches Option D.

Why other options are incorrect:

  • Option A: Uses tiger(x)∧lion(x)\text{tiger}(x) \land \text{lion}(x), which means the statement only applies to creatures that are both a tiger and a lion at the same time.
  • Option B: Asserts that every tiger or lion is always hungry or threatened, and always attacks.
  • Option C: Represents the converse: "if they attack, then they are hungry or threatened" (i.e., attacks(x)→(hungry(x)∨threatened(x))\text{attacks}(x) \rightarrow (\text{hungry}(x) \lor \text{threatened}(x))).

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

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