datarekha

Propositional Logic

Truth tables, models, satisfiability, equivalence, and entailment — the algebra of true/false that GATE DA quietly tests every year.

8 min read Intermediate GATE DA Lesson 103 of 122

What you'll learn

  • Atomic propositions and the five connectives: ¬, ∧, ∨, →, ↔
  • A truth assignment maps each variable to T/F; a model makes the formula true
  • Satisfiable, valid (tautology), logical equivalence, and entailment — what each means on the truth table
  • Counting models of a formula (a real 2024 NAT) by ruling out the false rows
  • The key identity: X ⊨ Y if and only if X ∧ ¬Y is unsatisfiable

Before you start

“If it rains, the picnic is off.” You’ve just stated a logical implication — and you can already feel that “it rains” tells you about “picnic off,” but not the other way around. Propositional logic is the math behind that feeling.

Each simple statement (“it rains”, “picnic is off”) is an atomic proposition — a variable that’s either true or false. You glue them together with five connectives, and the whole apparatus of “what follows from what” reduces to one boring object: the truth table. The payoff is everywhere in real systems — the same satisfiability and entailment reasoning drives SAT solvers, digital-circuit verification, and the rule engines behind feature flags and access-control checks.

The five connectives

  • ¬pnot p
  • p ∧ qp and q (both true)
  • p ∨ qp or q (at least one true)
  • p → qp implies q (false only when p is true and q is false)
  • p ↔ qp iff q (true when p and q agree)

The one that trips people up is . p → q is false in exactly one row: p true, q false. In all three other rows it’s true — even when p is false (“vacuously true”). Remember the identity that makes most equivalence problems trivial: p → q ≡ ¬p ∨ q.

Truth assignments, models, and the words you’ll see on the exam

A truth assignment picks T or F for every variable. With n variables there are 2^n such assignments. A model of a formula is an assignment that makes the formula come out true.

From models you get every other piece of vocabulary:

  • Satisfiable — at least one model exists.
  • Valid (a tautology) — every assignment is a model.
  • Unsatisfiable (a contradiction) — no models at all.
  • Logically equivalentS₁ ≡ S₂ means they have exactly the same models.
  • EntailmentX ⊨ Y means every model of X is also a model of Y.
Truth table: A ∨ ¬B ∨ CABCvalueFFFTFFTTFTFFFTTTTFFTTFTTTTFTTTTTModels among 2³ = 8 assignments7models (true rows)1A=F, B=T, C=F
The only row that falsifies A ∨ ¬B ∨ C is A=F, B=T, C=F — every disjunct is F. So 7 of 8 assignments are models.

How GATE asks this

Three flavours, all close to the surface of the truth table:

  1. NAT — count the models of a small formula over 2-3 variables. Rule out the rows that make it false; what’s left is the count.
  2. MCQ — logical equivalence. Pick which pair of formulas have the same truth table. The lever is almost always p → q ≡ ¬p ∨ q or De Morgan.
  3. MCQ/MSQ — entailment. Pick a true statement about . The key fact: X ⊨ Y if and only if X ∧ ¬Y is unsatisfiable (no row makes X true and Y false simultaneously).

Worked example — a real 2024 question

Over the three variables A, B, C, how many models does the formula A ∨ ¬B ∨ C have?

There are 2^3 = 8 truth assignments. A disjunction is false only when every disjunct is false. The three disjuncts are A, ¬B, C, so we need

A = F   and   ¬B = F (i.e. B = T)   and   C = F

That’s the single row (A, B, C) = (F, T, F) — exactly one falsifying assignment. Every other row is a model.

8 − 1 = 7, so the answer is 7. (This is GATE DA 2024, Q2.)

The recipe generalises: for any disjunction of literals over n variables, count the rows that make every literal false (usually just one), and subtract from 2^n.

Equivalence and entailment — the two identities to memorise

GATE DA 2025’s Q15 asked which of several equivalences S₁ ≡ S₃, etc. hold. The single trick was rewriting every implication as a disjunction:

p → q   ≡   ¬p ∨ q

Once everything is in ¬/∧/∨ form, De Morgan and the absorption laws finish the job — no truth tables needed for 4-variable formulas.

GATE DA 2026’s Q24 asked which is equivalent to “X entails Y”. The answer hinges on this chain:

X ⊨ Y
   ⇔ every model of X is a model of Y
   ⇔ there is no assignment with X true and Y false
   ⇔ X ∧ ¬Y is unsatisfiable
   ⇔ X → Y is valid (a tautology)

Read those four lines twice. Every entailment MCQ in the syllabus is one of them in disguise.

Quick check

Quick check

0/6
Q1Over the three variables A, B, C, how many models does the formula (A ∨ ¬B ∨ C) have?numerical answer — type a number
Q2Over two variables p, q, how many models does (p → q) have?numerical answer — type a number
Q3Which formula is logically equivalent to (p → q)?
Q4Which statements are TRUE about propositional logic? (select all that apply)select all that apply
Q5Let F = (p ∧ q) ∨ (¬p ∧ ¬q) over two variables. How many models does F have?numerical answer — type a number
Q6Which pairs are logically equivalent? (select all that apply)select all that apply

Practice this in an interview

All questions

Sign in to track your progress

Completed lessons, your XP, level, and streak save to your account — it's free and takes a few seconds.

Explore further

Related lessons

Skip to content