2.2 Truth Tables, Implication, and Equivalence
Section 2.1 taught us to evaluate a compound proposition after choosing truth values for its atomic parts. One chosen assignment describes only one possible world. To compare formulas reliably, we need to inspect every possible assignment. A truth table organizes that complete inspection.
This section develops three connected tools:
- truth tables enumerate all possible input worlds;
- implication expresses a conditional promise and identifies exactly when it is broken;
- logical equivalence compares complete truth-table columns rather than surface wording.
Construct every input row systematically
Suppose an expression contains two atomic propositions, and . Each one has two possible truth values. Therefore there are
assignments. A standard row order is
| Row | ||
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 |
Notice the pattern: the column changes slowly, while the column alternates more quickly. With three atomic propositions , there are rows. The first column stays true for four rows, the next changes every two rows, and the last changes every row. This counting reuses the independent-choice idea from the power set in Chapter 1.
To build the truth table for
do not try to calculate the entire formula at once. Create one column for each needed subexpression:
Read one row as a trace. In row 2, and . Therefore , , and the final conjunction is true. Every other row is computed by the same local rules.
A dependable construction process is:
1. list every atomic proposition;
2. create all input rows, where is the number of atomic propositions;
3. add columns for the smallest subexpressions;
4. work outward until the final expression has a column;
5. recheck any row in which the output changes from the row above.
Implication is a promise, not a claim of causation
The implication
is read “if , then .” Proposition is called the hypothesis or antecedent, and is called the conclusion or consequent.
Use a policy example:
> If a file is confidential, then the file is encrypted.
Let mean “the file is confidential” and mean “the file is encrypted.” The policy is broken only when the file is confidential but is not encrypted. Its truth table is therefore
| Policy interpretation | |||
|---|---|---|---|
| confidential and encrypted: promise kept | |||
| confidential but unencrypted: promise broken | |||
| not confidential: rule imposes no requirement | |||
| not confidential: rule imposes no requirement |
The last two rows often surprise beginners. The implication does not say that encryption happens only for confidential files. It makes a promise about what must happen when is true. When is false, that particular promise has not been violated.
This meaning gives a useful equivalence:
The symbol means “has the same truth value under every assignment.” The expression is false only when is false and is false—that is, when and . It therefore fails in exactly the same row as the implication.
The patrol simulation makes the conditional a rule that can be violated. Sort all four worlds. The important observation is not merely which cargo pod fails, but why the other three pods do not constitute counterexamples to the stated promise.
Related conditionals are not interchangeable
Starting from , three related statements can be formed:
| Name | Formula | Verbal form |
|---|---|---|
| original | if , then | |
| converse | if , then | |
| inverse | if not , then not | |
| contrapositive | if not , then not |
The original and contrapositive are logically equivalent. The converse and inverse are logically equivalent to each other, but usually not to the original.
Return to the file policy. From “if confidential, then encrypted,” the converse says “if encrypted, then confidential.” That need not be true because a public file may also be encrypted. One concrete encrypted public file is enough to refute the converse.
The contrapositive says “if not encrypted, then not confidential.” This restates the same policy from the failure side: an unencrypted file cannot be confidential if the original policy is obeyed.
Do not accept these equivalences by word order alone. In the next part, truth-table columns give a complete test.
Equivalence means matching in every possible world
Two compound propositions are logically equivalent when they have the same truth value for every possible assignment. We write
Here and may stand for whole compound expressions. To test equivalence:
1. place both expressions in the same truth table;
2. calculate their final columns;
3. compare the columns row by row;
4. declare equivalence only if every pair matches.
For example, De Morgan’s law from Chapter 1 becomes
The two highlighted final ideas are represented by the fourth and seventh columns. Their truth values match in every row, so the equivalence is established.
If columns differ in even one row, that row is a counterexample to equivalence. A counterexample is a specific assignment that makes one expression true and the other false.
Tautologies, contradictions, and contingencies
A final truth-table column also tells us how an expression behaves:
- A tautology is true in every row.
- A contradiction is false in every row.
- A contingency is true in some rows and false in others.
For example,
is a tautology because either is true or its negation is true. Meanwhile,
is a contradiction because cannot be both true and false in one assignment. The expression is a contingency because its value depends on the chosen row.
The biconditional
is read “ if and only if .” It is true exactly when and have the same truth value. It can be understood as requiring both directions:
The scanner treats a final truth-table column as a four-bit signature. Search for matching expression pairs, then deliberately choose a nonmatching pair and locate the first counterexample row. Both actions are essential: equivalence requires all rows, while non-equivalence requires only one.
Bridge to the next section
Truth tables work well when a formula contains a small fixed number of propositions. Many claims instead concern every object in a collection or the existence of an object with a property. Section 2.3 returns to the open statement and gives “for every” and “there exists” precise meanings through predicates and quantifiers.