Truth Tables for Tautology and Contradiction Proofs in Propositional Logic

Truth Tables for Tautology and Contradiction Proofs in Propositional Logic

Verified Sources
Sep 12, 2026

In propositional logic, a truth table lets us verify whether a compound proposition is a tautology or a contradiction.

We will use the standard equivalence for implication:
(pq)(¬pq).(p \to q) \equiv (\neg p \lor q).
This allows each row of a truth table to be computed mechanically.

Propositional Logic: Truth Tables (Implications, Tautologies & Contradictions)

Key connectives and how to evaluate them

For any truth assignment:

  • negation: ¬p\neg p
  • conjunction: pqp \land q
  • disjunction: pqp \lor q
  • implication: pqp \to q

Using implication as disjunction: pq¬pq.p \to q \equiv \neg p \lor q.

How to build the truth table (workflow)

  1. 1
    Step 1

    For nn variables, list 2n2^n rows. Here we use p,q,rp,q,r so there are 23=82^3=8 rows.

  2. 2
    Step 2

    Compute truth values for pp, qq, and rr in each row.

  3. 3
    Step 3

    Start with simplest subformulas (like (qr)(q \to r), then (pq)(p \to q), etc.), then compute larger ones.

  4. 4
    Step 4

    Whenever you see \to, compute it using  egpq\ eg p \lor q for that row.

  5. 5
    Step 5

    If the final formula is true in every row ⇒ tautology. If false in every row ⇒ contradiction.

Pro Tip

When you see pqp \to q, compute it as ( egpq)(\ eg p \lor q)—this avoids common mistakes in implication evaluation.

(i) Show ((pto(qtor))to((ptoq)to(ptor)))((p \\to (q \\to r)) \\to ((p \\to q) \\to (p \\to r))) is a tautology

Let F=(p(qr))((pq)(pr)).F = (p \to (q \to r)) \to ((p \to q) \to (p \to r)).

We build a truth table for p,q,rp,q,r (8 rows) and compute FF row-by-row.

Truth table computation

We will compute key subexpressions per row:

  • A=(qr)A = (q \to r)
  • B=(pA)=(p(qr))B = (p \to A) = (p \to (q \to r))
  • C=(pq)C = (p \to q)
  • D=(pr)D = (p \to r)
  • E=(CD)=((pq)(pr))E = (C \to D) = ((p \to q) \to (p \to r))
  • F=(BE)=((p(qr))((pq)(pr)))F = (B \to E) = ( (p \to (q \to r)) \to ((p \to q) \to (p \to r)) )

Remember: XY¬XY.X \to Y \equiv \neg X \lor Y.

Truth Table for F=(p(qr))((pq)(pr))F = (p \to (q \to r)) \to ((p \to q) \to (p \to r))

Final column FF is true in every row, so FF is a tautology.

Because Coursify tables must be rendered as markdown/HTML rather than interactive chart tables, here is the standard truth-table layout explicitly:

pqrqrq\to rp(qr)p\to(q\to r)pqp\to qprp\to r(pq)(pr)(p\to q)\to(p\to r)FF
TTTTTTTTT
TTFFFTFFT
TFTTTFTTT
TFFT? Actually qrq\to r: F?

Let’s compute cleanly (using qr¬qrq\to r \equiv \neg q \lor r and then repeatedly XY¬XYX\to Y\equiv \neg X\lor Y). The correct completed table is:

pqrqrq\to rp(qr)p\to(q\to r)pqp\to qprp\to r(pq)(pr)(p\to q)\to(p\to r)FF
TTTTTTTTT
TTFFFTFFT
TFTTTFTTT
TFFTTFFTT
FTTTTTTTT
FTFFTTTTT
FFTTTTTTT
FFFTTTTTT

Thus FF evaluates to T in every row, so: ((p(qr))((pq)(pr)))((p \to (q \to r)) \to ((p \to q) \to (p \to r))) is a tautology.

Common Pitfall

Do not compute pqp\to q as pp implies qq in the everyday sense. In logic, pqp\to q is false only for the single pattern p=T and q=F.

(ii) Show ¬(qr)  r  (pq)\neg(q \to r)\ \land\ r\ \land\ (p \to q) is a contradiction

Let G=¬(qr)  r  (pq).G = \neg(q \to r)\ \land\ r\ \land\ (p \to q).

A contradiction means GG must be false for every truth assignment to p,q,rp,q,r.

Key observation from implication

Start with: qr¬qr.q \to r \equiv \neg q \lor r.

If ¬(qr)\neg(q \to r) is true, then (qr)(q \to r) must be false. The only way an implication is false is:

  • qrq \to r is false exactly when q=Tq = T and r=Fr = F.

So from ¬(qr)\neg(q\to r) true, we get: q=Tandr=F. q = T \quad \text{and} \quad r = F.

But GG also contains the conjunct rr (i.e., it requires r=Tr=T).

So ¬(qr)\neg(q\to r) forces r=Fr=F, while rr forces r=Tr=T—cannot both hold in the same row.

Formally, in every valuation:

  • If ¬(qr)\neg(q\to r) is true, then rr must be false, so the conjunction with rr becomes false.
  • If ¬(qr)\neg(q\to r) is false, then the whole conjunction is false.

Therefore GG is false in all rows.

Contradiction proof via truth-table logic (short-circuiting)

  1. 1
    Step 1

    For GG to be true, we must have  eg(qr)=T\ eg(q\to r)=T and r=Tr=T simultaneously.

  2. 2
    Step 2

    Since qrq\to r is false only when (q=T,r=F)(q=T, r=F),  eg(qr)=T\ eg(q\to r)=T implies r=Fr=F.

  3. 3
    Step 3

    But GG includes rr, requiring r=Tr=T. Contradiction: r=Fr=F and r=Tr=T in the same row.

  4. 4
    Step 4

    Hence GG cannot be true under any valuation; therefore GG is a contradiction.

(Optional) Micro-truth-table for the critical part

The only potentially nontrivial part is ¬(qr)r\neg(q\to r)\land r; the (pq)(p\to q) conjunct is irrelevant once that is already impossible.

qrqrq\to r¬(qr)\neg(q\to r)¬(qr)r\neg(q\to r)\land r
TTTFF
TFFTF
FTTFF
FFTFF

So ¬(qr)r\neg(q\to r)\land r is always F, and therefore: G=¬(qr)r(pq)G=\neg(q \to r)\land r\land(p\to q) is always F, i.e., a contradiction.

How truth-table proofs flow in propositional logic

Identify goal

1

Decide whether the formula must be all-true (tautology) or all-false (contradiction)."

Use implication equivalence

2

Replace pqp\to q with  egpq\ eg p\lor q to compute each row reliably."

Compute subformulas

3

Build the table bottom-up: qrq\to r, then p(qr)p\to(q\to r), etc."

Check final column

4

If final column is all T ⇒ tautology; if all F ⇒ contradiction."

Truth-table essentials

1 / 5
Question · Term

What does it mean for a formula to be a tautology?

Click to reveal
Answer · Definition

It evaluates to True under every truth assignment.

FAQ & edge cases

Knowledge Check

Question 1 of 4
Q1Single choice

For an implication pqp \to q, which valuation makes it false?