GATE / CS ARCHIVE

GATE CSE 2002 / QUESTION 1.8

Formalizing an unless condition

Discrete Mathematics · Propositional & Predicate Logic · Full GATE CSE 2002 paper

GATE 2002, Q1.8 1 mark · MCQ
Report issue

Propositional & Predicate Logic

Question 1.8, GATE 2002: Choose the propositional formula for “If X then Y unless Z.” Here ¬ means negation, ∧ conjunction, and → implication.
(A) (X ∧ ¬Z) → Y; (B) (X ∧ Y) → ¬Z; (C) X → (Y ∧ ¬Z); (D) (X → Y) ∧ ¬Z.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

Step 1: Translate the exceptional case before forming the implication.

Step 2: Only the case X=true,Z=false activates the requirement. The formula must therefore be false exactly when X=true,Z=false,Y=false. Option A has exactly this truth condition. A formula additionally demanding ¬Z when X is false, or forbidding Y whenever Z holds, would add an unstated requirement.

Conclusion: The obligation Y applies when X holds and the exception Z does not. This is (X∧¬Z)→Y, A, equivalently ¬X∨Z∨Y. The exception does not itself require ¬Y.

Original paper, page 1