propositional logic
Truth Tables
You should know: logical connectives
Overview
A truth table is a complete tabular listing of the truth value of a propositional formula for every possible combination of truth values of its variables. A formula with n distinct propositional variables has exactly 2ⁿ rows, since each variable independently takes one of two values. Truth tables provide a mechanical, exhaustive method to determine whether a formula is a tautology (true in every row), a contradiction (false in every row), a contingency (true in some rows and false in others), or logically equivalent to another formula (identical truth-value columns). Because propositional logic's connectives are all truth-functional, truth tables are a complete decision procedure for propositional validity, though the 2ⁿ row count makes them impractical for formulas with many variables.
Intuition
A truth table is simply an exhaustive checklist: since propositional variables only ever take two values, and connectives are entirely mechanical, you can just enumerate every scenario (all TT, TF, FT, FF for two variables) and read off the answer row by row — there's no cleverness required, only patience. This brute-force completeness is exactly what makes truth tables the gold standard for settling any dispute about whether two statements really mean the same thing or whether an argument form is truly valid, even though it becomes impractical once you have more than four or five variables (16 or 32 rows) and named equivalences become the faster tool.
Formal Definition
For a formula φ with variables p₁,...,pₙ, its truth table lists all 2ⁿ assignments and the resulting value of φ:
Worked Examples
List all four rows for p, q ∈ {T,F} and evaluate p → q, which is false only when p=T, q=F.
Since row 2 (p=T,q=F) gives False, the formula is not true in every row.
Answer: Not a tautology — it is a contingency (true in 3 rows, false in 1).
Practice Problems
How many rows does the truth table for a formula with 4 distinct propositional variables have?
Build a truth table to classify p ∧ ¬p as a tautology, contradiction, or contingency.
Using a truth table, determine whether ((p → q) ∧ p) → q (modus ponens) is a tautology.
Quiz
Summary
- A truth table exhaustively lists a formula's truth value across all 2ⁿ assignments of its n propositional variables.
- Formulas classify as tautologies (always true), contradictions (always false), or contingencies (a mix).
- Truth tables give a complete, if impractical for large n, decision procedure for validity and logical equivalence in propositional logic.
References
- WebsiteWikipedia — Truth table
Mathematics