Evanalysis
1.2Source-backed1 Interactive checkpoints

1.2 Truth tables and equivalence

Build truth tables, compare formulas row by row, and recognize tautologies, contradictions, and logical equivalence.

Interactive textbooks

MATH1090 interactive textbook

A beginner-friendly set theory path with short units, source traceability, and guided interaction.

Chapter 1

Logic

Reasoning tools for statements, connectives, and quantifiers.

Chapter 2

Sets and relations

Basic set language, functions, and relations.

Truth tables and equivalence

Prerequisite: review 1.1 Propositional logic first, because the truth-table language uses the same connectives.

What a truth table does

Definition

Truth table

A truth table lists the truth value of a formula for every possible assignment of its variables.

It is the safest way to check whether two formulas always match.

A first example

Worked example

Checking implication by rows

Consider the formula P → Q.

| P | Q | P → Q | | --- | --- | --- | | T | T | T | | T | F | F | | F | T | T | | F | F | T |

The formula is false only in the row where P is true and Q is false.

Solution

Why `P → Q` matches `¬P ∨ Q`

Logical equivalence

Definition

Logical equivalence

Two formulas are logically equivalent when they have the same truth value in every row of their truth tables.

That means a rewrite is allowed only if the whole table matches, not just one example row.

Common mistake

One matching row is not a proof

If two formulas agree on a single assignment, that does not prove equivalence. You must compare every row, or use a known equivalence law such as P → Q ≡ ¬P ∨ Q.

Tautologies and contradictions

Definition

Two special kinds of formulas

  • A tautology is always true.
  • A contradiction is always false.

Examples:

  • P ∨ ¬P is a tautology.
  • P ∧ ¬P is a contradiction.

Quick check

Quick check

Are `P ∧ Q` and `Q ∧ P` logically equivalent?

Try it live

Try it here

Truth-table builder

The live builder lets you switch formulas and inspect how each row changes the final truth value.

PQP → Q
TTT
TFF
FTT
FFT

Key terms in this unit

Source trail

reference/MATH1090/MATH1090_Lecture_Notes_Feb27.pdf (§1.4-§1.6)

reference/MATH1090/MATH1090_Worksheet1.pdf — Part C to Part E

reference/MATH1090/MATH1090_HW1.pdf — Questions 2 to 5