Let denote the statements ”It is raining”, “It is cold”, and “It is pleasant”, respectively. Then the statement “It is not raining and it is pleasant, and it is not pleasant only if it is raining and it is cold” is represented by
GATE CSE 2017Mathematical Logic › Propositional LogicVerified
GATE CSE 2017 PYQ: Let p , q , r p, q, r p , q , r denote the statements ” It is raining ”, “ It is cold ”, and “ It is…
- ACorrect answer
- B
- C
- D
Answer
(A) ( ¬ p ∧ r ) ∧ ( ¬ r → ( p ∧ q ) ) (\neg p \wedge r) \wedge (\neg r \rightarrow (p \wedge q)) ( ¬ p ∧ r ) ∧ ( ¬ r → ( p ∧ q ))
Approach
Translate the natural-language statement piece by piece. Use the standard logical equivalence: "P only if Q" means P → Q, not Q → P, and not a biconditional. The word "and" between the two main clauses gives a conjunction.
The sentence is a conjunction of two claims: (1) it is not raining and pleasant, and (2) not pleasant implies only that it is raining and cold, i.e. ¬r → (p ∧ q). Therefore the correct translation is (¬p ∧ r) ∧ (¬r → (p ∧ q)), which is option A.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.