← back to logic

Truth Tables

Craig DeLancey · A Concise Introduction to Logic, Ch. 3 · CC BY-SA 4.0

A truth table lists every possible assignment of truth values to the atoms and computes the result. A formula true in every row is a tautology. False in every row: contradiction. Mixed: contingency.

P Q P → Q T T T T F F F T T F F T F → T = T: a false premise implies anything.

Truth values of connectives

Each connective has a fixed truth table. The surprising one: implication is false only when the premise is true and the conclusion is false. A false premise implies anything. This is called "vacuous truth."

Scheme

Evaluating compound formulas

To evaluate a compound formula, recursively evaluate subformulas bottom-up, applying each connective's truth table.

Scheme

Tautology, contradiction, contingency

Scheme
Neighbors
  • 🔀 ToC Ch.3 — regular expressions as logical formulas over strings