Skip to content
Official PYQ · 2007

GATE CS 2007 Q22 — Propositional and First Order Logic

Explain with AI

Let  Graph(x)\text{ Graph}(x) be a predicate which denotes that xx is a graph. Let  Connected(x)\text{ Connected}(x) be a predicate which denotes that xx is connected. Which of the following first order logic sentences DOES NOT represent the statement:

“Not every graph is connected"\qquad\text{“Not every graph is connected"}

Choose one option
View worked solution

Answer: D

Let us denote the predicates as follows:

  • G(x)G(x): xx is a graph
  • C(x)C(x): xx is connected

The English statement "Not every graph is connected" can be translated step-by-step:

  1. "Every graph is connected" is represented as: ∀x (G(x)  ⟹  C(x))\forall x \, \bigl( G(x) \implies C(x) \bigr)
  2. "Not every graph is connected" is the negation of the above statement: ¬∀x (G(x)  ⟹  C(x))\lnot \forall x \, \bigl( G(x) \implies C(x) \bigr) This directly matches Option A.

Let us analyze the equivalence of the other options:

  • Option B: Using the equivalence P  ⟹  Q≡¬P∨QP \implies Q \equiv \lnot P \lor Q and De Morgan's laws for quantifiers: ¬∀x (G(x)  ⟹  C(x))≡∃x ¬(G(x)  ⟹  C(x))\lnot \forall x \, \bigl( G(x) \implies C(x) \bigr) \equiv \exists x \, \lnot \bigl( G(x) \implies C(x) \bigr) ≡∃x ¬(¬G(x)∨C(x))\equiv \exists x \, \lnot \bigl( \lnot G(x) \lor C(x) \bigr) ≡∃x (G(x)∧¬C(x))\equiv \exists x \, \bigl( G(x) \land \lnot C(x) \bigr) This matches Option B (which translates to: "There exists some xx which is a graph and is not connected").
  • Option C: Replacing the implication with its disjunctive form in Option A: ¬∀x (G(x)  ⟹  C(x))≡¬∀x (¬G(x)∨C(x))\lnot \forall x \, \bigl( G(x) \implies C(x) \bigr) \equiv \lnot \forall x \, \bigl( \lnot G(x) \lor C(x) \bigr) This matches Option C.
  • Option D: The statement is: ∀x (G(x)  ⟹  ¬C(x))\forall x \, \bigl( G(x) \implies \lnot C(x) \bigr) This translates to: "Every graph is disconnected" (or "No graph is connected"), which is a much stronger statement and is not logically equivalent to "Not every graph is connected".

Therefore, Option D does not represent the given statement.

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

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