Question

Consider the first order predicate formula φ\varphi:

∀x[(∀z(z∣x  ⟹  ((z=x)∨(z=1))))  ⟹  ∃w((w>x)∧(∀z(z∣w  ⟹  ((w=z)∨(z=1)))))]\forall x [(\forall z (z \mid x \implies ((z = x) \lor (z = 1)))) \implies \exists w ((w > x) \land (\forall z (z \mid w \implies ((w = z) \lor (z = 1)))))]

Here 'a∣ba \mid b' denotes that 'aa divides bb', where aa and bb are integers. Consider the following sets:

S1S_1: {1,2,3,…,100}\{1, 2, 3, \dots, 100\}
S2S_2: Set of all positive integers
S3S_3: Set of all integers

Which of the above sets satisfy φ\varphi?

Choose one option
Official answer and solution
Official answer
C
From
Official GATE 2019 answer key

Solution

Translate the first-order predicate formula into natural language and evaluate its truth across the given domains.

The predicate formula is:

∀x[(∀z(z∣x  ⟹  ((z=x)∨(z=1))))  ⟹  ∃w((w>x)∧(∀z(z∣w  ⟹  ((w=z)∨(z=1)))))]\forall x [(\forall z (z \mid x \implies ((z = x) \lor (z = 1)))) \implies \exists w ((w > x) \land (\forall z (z \mid w \implies ((w = z) \lor (z = 1)))))]

Let P(u)≡∀z(z∣u  ⟹  (z=u∨z=1))P(u) \equiv \forall z (z \mid u \implies (z = u \lor z = 1)). This condition states that uu has no positive divisors other than 11 and uu itself, which characterizes prime numbers (and 1).
Thus, the formula φ\varphi states:
"For every prime xx, there exists a prime ww such that w>xw > x."

Now let us evaluate φ\varphi for each domain:

  • S1={1,2,3,…,100}S_1 = \{1, 2, 3, \dots, 100\}: In this domain, x=97x = 97 satisfies the antecedent P(97)P(97) since 9797 is prime. However, the next prime is 101101, which is not in S1S_1. Thus, there is no w∈S1w \in S_1 with w>97w > 97 that is prime. Hence φ\varphi is FALSE in S1S_1.
  • S2S_2 (Positive integers): By Euclid's theorem, the set of primes is infinite. For every positive prime xx, there exists a strictly greater prime w>xw > x. Hence φ\varphi is TRUE in S2S_2.
  • S3S_3 (All integers): For negative integers and 0, the antecedent is false (for example, for x=−2x = -2, z=−1z = -1 divides −2-2, but −1≠−2-1 \ne -2 and −1≠1-1 \ne 1), making the implication vacuously true. For positive primes xx, larger positive primes w>xw > x always exist in Z\mathbb{Z}. Hence φ\varphi is TRUE in S3S_3.

Therefore, φ\varphi is satisfied by S2S_2 and S3S_3 (Option C).

Final answer

C

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

Source

Paper
GATE 2019 Computer Science and Information Technology (CS)
Question
45 of 65, printed as CS Q.35
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.