GateMCQSCIENTIFIC PREP LAB
PlanSign Up
BEGINNERFrequently Tested 4 min read 23 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
Common Exam Mistake

"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)
Key Formulas Summary
Material Implication Identity
p→q≡¬p∨q≡¬q→¬pp \to q \equiv \neg p \lor q \equiv \neg q \to \neg p
Note: 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)
Note: Flip every quantifier and negate predicate
#Discrete Math#Logic#GATE CS#UGC NET

Practice Questions on This Chapter (3)

Q1GATE CS Discrete MathMCQEASY
+1M • -0.33

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

⚡ Click an option above to verify instantly
Q2GATE CS 2023MCQEASY
+1M • -0.33

Which First-Order Logic formula accurately translates: "Every student who loves Algorithms also loves Coding" (domain = all people, S(x)S(x): xx is a student, A(x)A(x): xx loves Algorithms, C(x)C(x): xx loves Coding)?

⚡ Click an option above to verify instantly
Q3GATE CS 2021NATEASY
+1M • 0 Neg

For how many truth assignments out of 24=162^4 = 16 over (P,Q,R,S)(P, Q, R, S) does the implication (P∧Q)→(R∨S)(P \land Q) \to (R \lor S) evaluate to TRUE?

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