Skip to content
Official PYQ · 2026

GATE CS 2026 Set 2 Q1 — Propositional and First Order Logic

Explain with AI

For two different persons xx and yy, the predicate M(x,y)M(x, y) denotes that xx knows yy. Consider the following statement.

There is a person who does not know anyone else, but that person is known by everyone else.

Which one of the following expressions represents the above statement?

Choose one option
View worked solution

Answer: A

To translate the given English statement into first-order logic, let us break it down into smaller components:

  1. "There is a person..."
    This indicates an existential quantifier. Let this special person be represented by the variable yy. Thus, we start with: ∃y\exists y
  2. "...who does not know anyone else..."
    For any other person xx (where x≠yx \neq y), yy does not know xx. This is represented as: ∀x(x≠y→¬M(y,x))\forall x (x \neq y \rightarrow \neg M(y, x))
  3. "...but that person is known by everyone else."
    For any other person xx (where x≠yx \neq y), xx knows yy. This is represented as: ∀x(x≠y→M(x,y))\forall x (x \neq y \rightarrow M(x, y))

Combining these two conditions for all other persons xx, we get:

∀x((x≠y)→(M(x,y)∧¬M(y,x)))\forall x \left( (x \neq y) \rightarrow (M(x, y) \wedge \neg M(y, x)) \right)

Prefixing this with the existential quantifier for yy yields the complete expression:

(∃y)(∀x)((x≠y)→(M(x,y)∧¬M(y,x)))(\exists y)(\forall x)\left((x \neq y) \rightarrow(M(x, y) \wedge \neg M(y, x))\right)

This matches Option A.

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

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