Loading…
Build truth tables systematically, use them to test equivalence, and distinguish tautologies, contradictions, and contingent formulas.
Once the atomic propositions have been fixed, a truth table tests a compound statement under every possible assignment of truth values.
A complete truth table is an exhaustive argument. If a formula depends on proposition variables, then there are exactly possible assignments, so there are no hidden cases once those rows have been checked.
Definition 1.2.1
(Truth table)
A truth table for a propositional formula lists every possible assignment of truth values to the variables in , together with the resulting truth value of in each case.
For example, if a formula involves only and , then there are four rows:
The truth table is therefore not just a picture. It is an exhaustive case analysis.
A table is reliable only when its rows and columns follow a stated procedure. For
atomic variables, make rows. Keep one row order from the beginning (for
three variables, for example, TTT, TTF, TFT, TFF, FTT, FTF, FFT, FFF) and use it
for every intermediate column. Then add one column per subformula, starting with
the innermost connective. A final column written without these checks is not an
argument that can be audited.
Worked example 1.2.2
(Build in stages)
First compute , then use that column as the antecedent of the implication.
| T | T | T | T | T |
| T | T | F | T | F |
| T | F | T | T | T |
| T | F | F | T | F |
| F | T | T | T | T |
| F | T | F | T | F |
| F | F | T | F | T |
| F | F | F | F | T |
The last column is false exactly when the computed antecedent is true and is false. The table has eight rows because there are three independent variables.
The same discipline handles nested implications. In , calculate the inner first. Its four values, in the two-variable order , are ; the outer implication then has values . The formula is therefore a tautology. Notice that the repeated is not a reason to skip the inner column: each occurrence has a scope determined by its connective.
Worked example 1.2.3
(Why and say the same thing)
Consider the formulas and .
| T | T | F | T | T |
| T | F | F | F | F |
| F | T | T | T | T |
| F | F | T | T | T |
The last two columns match in every row.
Therefore
This is one of the most useful equivalences in elementary logic. It explains why an implication fails only in the case "true hypothesis, false conclusion."
Definition 1.2.4
(Logical equivalence)
Two formulas and are logically equivalent if they have the same truth value under every assignment of their variables. We write
Logical equivalence is stronger than saying that two formulas happen to agree in one example. It means they define the same truth function.
Do not confuse two related but different ideas:
These are connected, but they are not literally the same notation.
Theorem 1.2.5
(Equivalence and biconditionals)
Two formulas and are logically equivalent if and only if the formula
is a tautology.
So a biconditional can be used as a test for equivalence: if its final column is all true, then the two formulas match in every row.
Definition 1.2.6
(Three basic types of formula)
Let be a propositional formula.
Standard examples are:
which is a tautology, and
which is a contradiction.
The distinction matters because many short logical arguments amount to showing that some formula is always true or always false.
Worked example 1.2.7
(Checking De Morgan's law by truth table)
We test
| T | T | T | F | F | F | F |
| T | F | T | F | F | T | F |
| F | T | T | F | T | F | F |
| F | F | F | T | T | T | T |
The fourth and seventh columns agree row by row, so the formulas are logically equivalent.
This is a typical use of truth tables: not merely evaluating one formula, but proving a law of equivalence.
Theorem 1.2.8
(Test finite propositional consequence)
For premises and conclusion , with , the argument is valid exactly when
is a tautology. This conditional is false exactly when all premises are true and the conclusion is false: precisely a countermodel. Rows with a false premise cannot refute the argument.
Worked example 1.2.9
(Compare two premise lists)
For premises and conclusion , the test is . Its only row with both premises true is , where is true; every other row makes the outer implication true through its false antecedent. For premises and conclusion , the test instead fails at . Changing a premise changes the argument being tested.
Worked example 1.2.10
(Replace an equivalent component)
In , replace by . For any assignment the two inner expressions have equal truth values, so conjoining either with the same value of produces equal results. Thus . The outer connective and its scope stay fixed.
The equivalences introduced above give a practical way to put a formula into a more uniform shape before making a table. First replace every biconditional by . Then replace every implication using ; use De Morgan's laws to move a negation inward; and remove double negations. Use distributivity when a conjunction or disjunction must be regrouped. For example,
At each line, the formula is replaced by a logically equivalent formula, so the truth table's final column is preserved. The point of this workflow is auditability: a formula with only , , and makes its subformula columns visible. These identities justify the rewrites; they do not remove the need to check the original formula's scope.
For this workflow, the target is negation normal form: a formula built from , , and , with each immediately in front of an atomic proposition. It is a useful table-building target, not a claim that every proof can be replaced by a rewrite.
Worked example 1.2.11
(Equivalence is different from entailment)
The formulas and are not equivalent: at , the first is false while the second is true. Nevertheless, the argument , therefore , is valid, because there is no row with the premise true and the conclusion false. Its associated test formula is a tautology. Thus equivalence asks for matching columns in both directions, while entailment asks only whether a forbidden premise-true/conclusion-false row exists.
The following truth-table identities are useful when rearranging a formula:
Commutativity permits an exchange of two operands. Associativity permits a change of parentheses when the same connective is repeated. Distributivity is the expansion step that changes the connective structure. For instance,
To apply this step in a larger expression, identify the whole left-hand pattern, replace it by the right-hand pattern, and then continue evaluating the new subformulas. Every row keeps the same final value because each displayed identity is a truth-table equivalence.
The commutativity biconditional is a tautology:
| T | T | T | T | T |
| T | F | F | F | T |
| F | T | F | F | T |
| F | F | F | F | T |
is also a tautology. If is true and is false, then is true; if is false and is true, then is true; when the values match, both implications are true.
The following biconditionals have the same value in every row:
| T | T | T | F | F | T |
| T | F | F | F | T | F |
| F | T | F | T | F | F |
| F | F | T | T | T | T |
Therefore .
Worked example 1.2.12
(Full table for )
The full table for is:
| T | T | T | T |
| T | F | F | T |
| F | T | F | T |
| F | F | F | T |
Its final column is all true, so it is a tautology and the argument “, therefore ” is valid.
The negation of is true exactly when the two values differ:
This is the exclusive-difference condition, obtained by listing the two rows in which the biconditional is false.
For a cyclic implication exercise, avoid ambiguous chain notation. The three implications , , and force all three atomic values to agree, so the precise equivalent condition is
This explicit conjunction states the two required biconditionals; it avoids silently treating as one primitive three-place connective.
For a fixed element , the statements and have truth values. The logical identities above therefore give the corresponding identities for set operations once membership is checked for every . A quantifier over an infinite domain is different: a finite table of propositional truth values cannot enumerate all domain elements. The next note replaces enumeration with arbitrary elements and checked witnesses.
Common mistake
(One matching row is not enough)
If two formulas agree on one row, or even on several rows, that does not prove equivalence. Equivalence requires agreement on every possible assignment.
Common mistake
(Do not confuse with )
The formula belongs inside a truth table. The notation is a metalogical statement saying that two formulas define the same truth function.
Trace one truth table
Choose a formula and read its column in the full table. Is it true under all four valuations?
| P | Q | P → Q | P ↔ Q | ¬P ∨ Q |
|---|---|---|---|---|
| true | true | true | true | true |
| true | false | false | false | false |
| false | true | true | false | true |
| false | false | true | true | true |
Shaded column: P → Q. Boxed, underlined entries are the valuations that make it false.
Does not hold: P → Q is a tautology
Counterexample: (P, Q) = (T, F) makes P → Q false. It is true under the other 3, so it is not always false either.
NoticeNot a tautology does not mean always false: one F in the column is enough to fail, and the T entries still stand.
Quick check
(How many rows are needed in a truth table for a formula involving exactly three proposition variables?)
Use the rule for the number of possible truth assignments.
There are rows, because each of the three variables can be either true or false independently.
Quick check
(Why is a tautology?)
Think row by row, not by slogan.
If is true, then is true because the left side is true. If is false, then is true, so the disjunction is still true. Every row therefore gives T.
Quick check
(Is the formula logically equivalent to ?)
Compare at least one row where the two formulas behave differently.
No. For example, when and , we get but . Since they differ on that row, they are not equivalent.
This page builds directly on 1.1 Propositional logic and prepares for 1.3 Quantifiers and negation.
Work out your answer, then check it. You can revise and try again.
Loading…