Skip to content
Official PYQ · 2021

GATE CS 2021 Set 1 Q7 — Propositional and First Order Logic

Explain with AI

Let pp and qq be two propositions. Consider the following two formulae in propositional logic.

  • S1:(¬p∧(p∨q))→qS_1: (\neg p\wedge(p\vee q))\rightarrow q
  • S2:q→(¬p∧(p∨q))S_2: q\rightarrow(\neg p\wedge(p\vee q))

Which one of the following choices is correct?

Choose one option
View worked solution

Answer: B

We can simplify the common sub-expression ¬p∧(p∨q)\neg p \wedge (p \vee q) using the distributive law of propositional logic:

¬p∧(p∨q)≡(¬p∧p)∨(¬p∧q)≡False∨(¬p∧q)≡¬p∧q\begin{aligned} \neg p \wedge (p \vee q) &\equiv (\neg p \wedge p) \vee (\neg p \wedge q) \\ &\equiv \text{False} \vee (\neg p \wedge q) \\ &\equiv \neg p \wedge q \end{aligned}

Now, let's analyze the two formulae:

  1. Formula S1S_1: (¬p∧(p∨q))→q(\neg p \wedge (p \vee q)) \rightarrow q
    Substituting the simplified expression, we get: (¬p∧q)→q(\neg p \wedge q) \rightarrow q Since any implication of the form A∧B→BA \wedge B \rightarrow B is always true, S1S_1 is a tautology.
  2. Formula S2S_2: q→(¬p∧(p∨q))q \rightarrow (\neg p \wedge (p \vee q))
    Substituting the simplified expression, we get: q→(¬p∧q)q \rightarrow (\neg p \wedge q) If we assign p=Truep = \text{True} and q=Trueq = \text{True}, the formula evaluates to: True→(False∧True)≡True→False≡False\text{True} \rightarrow (\text{False} \wedge \text{True}) \equiv \text{True} \rightarrow \text{False} \equiv \text{False} Since it is false for at least one truth assignment, S2S_2 is not a tautology.

Hence, S1S_1 is a tautology but S2S_2 is not a tautology.

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

Published
Report a correction
Keep exploringMore Propositional and First Order Logic questions