A tautology carries no information
p ∨ ¬p is true whatever p says, so learning it tells you nothing about the world. That is exactly why tautologies are useful as reasoning steps.
Classify a formula by its final column: all true, all false, or mixed. Then meet satisfiability — the question of whether any assignment works — and why it is the problem computer science measures hardness against.
Core ideas
One column, three verdicts — and a fourth question that turns out to be the hard one.
p ∨ ¬p is true whatever p says, so learning it tells you nothing about the world. That is exactly why tautologies are useful as reasoning steps.
A is a contradiction exactly when ¬A is a tautology. Every question about one is a question about the other.
Satisfiable asks whether SOME row is true; tautology asks whether EVERY row is. Most useful formulas are satisfiable and not tautologies.
The material
The three classes, then the question that made this lesson famous.
A formula is a tautology if it is true under every assignment, a contradiction if it is true under none, and contingent otherwise.
A formula is satisfiable if at least one assignment makes it true. Tautologies and contingent formulas are satisfiable; contradictions are not.
The relationships are worth stating as a single sentence: A is a tautology exactly when ¬A is unsatisfiable, and A is satisfiable exactly when ¬A is not a tautology. Every one of these questions reduces to any other, which is why an algorithm for one is an algorithm for all.
A ≡ B if and only if A ↔ B is a tautology. “Logical Equivalence”'s whole subject is therefore a special case of this lesson's.
Deciding satisfiability by truth table takes 2ⁿ rows. For a formula with 300 variables — small by the standards of real applications — that is 2³⁰⁰ rows, more than there are atoms in the observable universe, and no faster general method is known.
The problem of deciding whether a propositional formula is satisfiable was the first problem shown NP-complete. Algorithms and Complexity defines the term; what matters here is that this lesson's innocent question is the reference point against which computational hardness is measured.
The practical situation is stranger than the theory suggests. Modern SAT solvers routinely handle formulas with millions of variables, because real instances have structure that the worst case does not. Hardness in the worst case and difficulty in practice are different claims.
(p → q) ∨ (q → p) is a tautology — check all four rows. (p ↔ q) ∧ (p ⊕ q) is a contradiction, since the two conjuncts are negations of each other. p → (q ∧ r) is contingent.
Interactive
Every assignment, evaluated
Method
Look for a shortcut before writing 2ⁿ rows.
To test for a tautology, assume the whole formula is false and work backwards. If that forces a contradiction, it is a tautology.
To test satisfiability, look for one assignment. Finding it ends the question; a table is only needed when you fail.
A disjunction is satisfiable if either side is; a conjunction is a contradiction if either side is. Half the work is often unnecessary.
When the shortcuts do not settle it, 2ⁿ rows always will. Correctness beats elegance when the answer matters.
Assume it is false and see whether that is possible.
This tautology has a name: modus tollens, the inference rule of “Rules of Inference”. Every valid rule of inference is a tautology in exactly this shape — premises conjoined, implying the conclusion.
Take (p ∨ q) → (p ∧ q) and decide its class without a full table, by trying to construct a falsifying assignment. You should find one in two lines — and be able to say which row it is.
Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.
No recommendations yet for this lesson.