∑GateAndNet
Practice MCQs
GATE CS / Engineering Mathematics & Discrete Math
Edit
BEGINNER🔥 High-Yield Exam Topic 4 min read 4 views

Propositional Logic, Equivalences, Implication Laws & Valid Inference

Truth tables, contrapositive vs converse, functional completeness, quantifier negations, and Modus Ponens/Tollens.

Implication (p→qp \to q) & Its Variants

Given conditional statement p→qp \to q ("if pp, then qq"):

  • Contrapositive: ¬q→¬p\neg q \to \neg p — Always logically equivalent to p→qp \to q!
  • Converse: q→pq \to p — Equivalent to Inverse (¬p→¬q\neg p \to \neg q), not equivalent to p→qp \to q.
  • Negation of Implication: ¬(p→q)≡p∧¬q\neg(p \to q) \equiv p \land \neg q (Notice there is NO implication arrow in the negation!).
ExpressionEquivalent English PhrasingSymbolic Form
pp is sufficient for qqIf pp happens, qq is guaranteedp→qp \to q
pp is necessary for qqqq cannot happen without ppq→p≡¬p→¬qq \to p \equiv \neg p \to \neg q
pp only if qqpp implies qqp→qp \to q
pp unless qqIf not qq, then pp¬q→p≡p∨q\neg q \to p \equiv p \lor q
🚨 Exam Trap Alert

"p only if q" vs "p if q":

  • "pp if qq" means q→pq \to p.
  • "pp only if qq" means p→qp \to q! Mixing these two up is the #1 logic trap in GATE & UGC NET.

Counting Boolean Functions of nn Variables

For nn boolean variables, the truth table has 2n2^n rows:

  • Total distinct Boolean functions =22n= 2^{2^n}
  • Self-dual functions =22n−1= 2^{2^{n-1}} (cannot contain constants 00 or 11 alone)
📐 Quick Revision Formula Sheet
Material Implication Identity
p→q≡¬p∨q≡¬q→¬pp \to q \equiv \neg p \lor q \equiv \neg q \to \neg p
💡 False ONLY when p = True and q = False
Negation of Nested Quantifiers
¬(∀x ∃y P(x,y))≡∃x ∀y ¬P(x,y)\neg(\forall x\, \exists y\, P(x,y)) \equiv \exists x\, \forall y\, \neg P(x,y)
💡 Flip every quantifier and negate predicate
#Discrete Math#Logic#GATE CS#UGC NET

🎯 Practice PYQs on This Topic (1)

Q1.GATE CS Discrete MathMCQEASY
+1 Marks • -0.33 Neg

Which of the following propositional formulas is logically equivalent to the implication p→qp \to q?

Next Topic Graph Theory Masterclass: Handshaking, Euler/Planar Formulas & Coloring