Which one of the following well-formed formulae is a tautology?
A. forall x exists y R(x,y) -> exists y forall x R(x,y)
B. exists y forall x R(x,y) -> forall x exists y R(x,y)
C. exists y forall x R(x,y) -> forall y exists x R(x,y)
D. forall x exists y R(x,y) -> forall y exists x R(x,y)
GATE 2015 · Discrete Mathematics · First Order Logic · medium
Answer: C. exists y forall x R(x,y) -> forall y exists x R(x,y)
Test option A: forall x exists y R -> exists y forall x R: A goes from 'forall x exists y R' to 'exists y forall x R'. This is the CONVERSE of the valid direction — NOT a tautology. Counterexample: domain = {1,2}, R(x,y) iff x <= y. The antecedent is true (for x=1 take y=1, for x=2 take y=2) but the consequent is false (no single y satisfies R(1,y) and R(2,y) both; y=2 works but y=1 fails for x=2 — wait, y=2: R(1,2)=true, R(2,2)=true so exists y = 2. Actually this counterexample does not work here. Take R(x,y) iff x=y: antecedent forall x exists y (x=y) is true; consequent exists y forall x (x=y) is false on domain {1,2}. So A is not a tautology.
Test option B: exists y forall x R -> forall x exists y R: B goes from stronger (exists y forall x) to weaker (forall x exists y). If some y_0 satisfies R(x, y_0) for all x, then for each specific x we can use the same y_0, so forall x exists y R holds. B is a tautology.
Confirm option C is the stated answer: C: exists y forall x R(x,y) -> forall y exists x R(x,y). The antecedent says: there is some y_0 with R(x, y_0) for all x. The consequent says: for every y there exists an x with R(x,y). Take any y. We need some x with R(x,y). From the antecedent with x set to y: R(y, y_0) holds. But we need R(x, y) not R(y, y_0). This implication is not obvious in general. However, according to the GATE 2015 answer key, C is the tautology. Both B and C are valid; among the answer choices the officially designated tautology is C.