This section turns propositional formulas into something we can calculate with. Once the atomic propositions have been fixed, a truth table lets us test a compound statement by checking every possible assignment of truth values.
That may sound mechanical, but the point is mathematical: a truth table is a complete 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.
What a truth table records
Definition
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 row-by-row construction protocol
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
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.
A first important equivalence
Worked example
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."
Logical equivalence
Definition
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:
- is a new Boolean formula;
- is a statement about two formulas.
These are connected, but they are not literally the same notation.
Theorem
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.
Tautologies, contradictions, and contingent formulas
Definition
Three basic types of formula
Let be a propositional formula.
- is a tautology if it is true in every row.
- is a contradiction if it is false in every row.
- is contingent if it is true in some rows and false in others.
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.
A second worked example
Worked example
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.
From an argument to one truth-table column
Theorem
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
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
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.
A controlled rewriting workflow
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
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.
Commutativity, associativity, and distributivity
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.
From table patterns to logical identities
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 . This is a statement about two formulas, not a claim that and are the same connective.
Worked example
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.
Negating a biconditional and reading a cycle
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.
Why this section matters later
Truth-table reasoning is not the endpoint of mathematical logic, but it trains two habits that remain important:
- separating syntax from meaning;
- checking whether a claim is valid in every case, not merely in one example.
Later, when the course turns to quantifiers, sets, and proof, that same demand for complete case analysis returns in a more sophisticated form.
Common mistakes
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.
Try it yourself
Read and try
Trace one truth table
The worked table lets you compare the three formulas and inspect each row's final truth value.
| P | Q | P → Q |
|---|---|---|
| T | T | T |
| T | F | F |
| F | T | T |
| F | F | T |
Quick checks
Checkpoint
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.
Solution · Answer
There are rows, because each of the three variables can be either true or false independently.
Checkpoint
Why is a tautology?
Think row by row, not by slogan.
Solution · Answer
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.
Checkpoint
Is the formula logically equivalent to ?
Compare at least one row where the two formulas behave differently.
Solution · Answer
No. For example, when and , we get but . Since they differ on that row, they are not equivalent.
Continue to quantified statements
This page builds directly on 1.1 Propositional logic and prepares for 1.3 Quantifiers and negation.