Skip to content
Official PYQ · 2008

GATE CS 2008 Q15 — Tuple Calculus and SQL

Explain with AI

Which of the following tuple relational calculus expression(s) is/are equivalent to ∀t∈r(P(t))\forall t \in r \left(P\left(t\right)\right)?

  1. ¬∃t∈r(P(t))\neg \exists t \in r \left(P\left(t\right)\right)
  2. ∃t∉r(P(t))\exists t \notin r \left(P\left(t\right)\right)
  3. ¬∃t∈r(¬P(t))\neg \exists t \in r \left(\neg P\left(t\right)\right)
  4. ∃t∉r(¬P(t))\exists t \notin r \left(\neg P\left(t\right)\right)
Choose one option
View worked solution

Answer: C

In first-order logic and relational calculus, the universal quantifier (∀\forall) and the existential quantifier (∃\exists) are related by the following standard equivalence:

∀x ϕ(x)≡¬∃x (¬ϕ(x))\forall x \, \phi(x) \equiv \neg \exists x \, (\neg \phi(x))

Applying this equivalence to a restricted domain where the tuple tt belongs to the relation rr, the expression "for all tuples tt in rr, P(t)P(t) is true" can be rewritten as:

∀t∈r(P(t))≡¬∃t∈r(¬P(t))\forall t \in r \left(P\left(t\right)\right) \equiv \neg \exists t \in r \left(\neg P\left(t\right)\right)

This translates to: "There does not exist a tuple tt in rr for which P(t)P(t) is false." This matches expression III exactly.

Let's verify why the others are incorrect:

  • I: ¬∃t∈r(P(t))\neg \exists t \in r \left(P\left(t\right)\right) is equivalent to ∀t∈r(¬P(t))\forall t \in r \left(\neg P\left(t\right)\right) (no tuple in rr satisfies PP).
  • II and IV: These expressions involve t∉rt \notin r, which refers to tuples outside the relation rr and cannot be equivalent to a statement restricted to t∈rt \in r.

Thus, only expression III is equivalent, which corresponds to option C.

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

Published
Report a correction
Keep exploringMore Tuple Calculus and SQL questions