Logical Equivalence
Suppose you are told "if it is raining, then the streets are wet." Separately, you're told "either it is not raining, or the streets are wet." Are these two claims really saying the same thing, in every conceivable circumstance? Answering this precisely requires exhaustively checking every possible world, not gut feeling. That is the point of logical equivalence. It is the formal notion that lets us replace one statement by another. This substitution never changes what is being asserted. This idea matters because mathematics is built out of rewriting. We constantly replace a statement by a differently-worded one that means the same thing. We hope the new form is easier to prove, negate, or compute with. Every algebraic simplification of a Boolean expression relies on this. So does every rewriting of a proof goal. Every "it suffices to show" step in a mathematical argument secretly relies on logical equivalence too. Without a rigorous definition of "means the same thing," none of this rewriting could be trusted. The big picture is that logical equivalence turns propositional logic into an algebraic system. Compound statements are built from atomic propositions using . These can be classified into equivalence classes. Within each class, any member can substitute for any other in a proof. This is the seed from which the standard "laws of logic" all grow. These include De Morgan's laws, distributivity, and the equivalence of a conditional with its contrapositive. They are simply named, frequently-used instances of logical equivalence. This article gives the precise truth-table definition of logical equivalence. It proves the central fact that equivalence is exactly "identical truth tables." It works through two detailed non-trivial examples. It also shows, via a concrete counterexample, why the definition must quantify over all truth assignments rather than just some. It closes with the historical origins of the idea, its uses across mathematics and computing, and a quick-reference cheat sheet.
- Two propositions are logically equivalent when they have the same truth value under every possible assignment of truth values to their atomic components.
- The standard notation is ; it is not the same symbol as the biconditional connective , though the two are tightly related.
- Equivalence is proved by truth table comparison, or by transforming one formula into the other using known equivalences (Laws of Logical Equivalence).
- holds exactly when is a Tautology — this is the theorem that connects the semantic and syntactic pictures.
- Logical equivalence is reflexive, symmetric, and transitive: it is a genuine equivalence relation on the set of propositional formulas.
- It underlies the Converse Inverse and Contrapositive relationships and every algebraic simplification of logical formulas.
- Key idea: two statements say "the same thing" in logic precisely when no possible world can tell them apart.
Where this lives today
Digital circuit design and CS. Two Boolean circuits are functionally interchangeable exactly when the logical formulas describing their outputs are logically equivalent; circuit minimization tools (Karnaugh maps, the Quine–McCluskey algorithm, modern SAT/BDD-based equivalence checkers) are industrial-scale mechanizations of exactly this truth-table comparison, used to verify that a redesigned chip computes the same function as the original.
Formal verification and automated theorem proving. Proof assistants like Coq, Lean, and Isabelle constantly rewrite a proof goal into a logically equivalent but more tractable form; every such rewrite must be certified — ultimately by an argument reducible to the truth-table (or equivalently, semantic-model) characterization given here.
Database query optimization. SQL query optimizers routinely replace a query's filtering condition (a Boolean formula over predicates) with a logically equivalent but computationally cheaper one, relying on exactly the laws that follow from the theorem above.
Cryptography. Boolean functions with prescribed equivalence and non-equivalence properties (e.g. resistance to being logically simplified into low-degree equivalent forms) are central to designing S-boxes and stream ciphers resistant to algebraic attacks.
Mathematical proof writing generally. Every time a proof says "it suffices to show " after starting from goal , and justifies this by noting (via the Laws of Logical Equivalence such as the equivalence of a conditional with its contrapositive, see Converse Inverse and Contrapositive), it is invoking precisely the machinery developed in this article.
Ask the tutor: How do the standard Laws of Logical Equivalence (De Morgan, distributivity, exportation) get systematically derived from this truth-table definition, and how do they combine to prove the Converse Inverse and Contrapositive relationships?
Let and be compound propositions (well-formed formulas built from a finite list of atomic propositions using the connectives ). A truth assignment to is a function , extended to all compound formulas built from them by the usual truth table rules for the connectives. We say and are logically equivalent, written
if for every truth assignment to the atomic propositions occurring in or ,
Equivalently: and have identical truth tables — the same output column for every one of the rows, where is the number of distinct atomic propositions appearing in either formula.
Intuition
Think of each compound proposition as a function from "possible worlds" (truth assignments) to . A world here is nothing exotic — it is just one row of a truth table, one specific choice of true/false for each atomic letter involved. Two propositions are logically equivalent exactly when they are the same function: they agree on every input world, even though as strings of symbols they may look completely different. This is a strong requirement. It is not enough for two statements to agree "usually," or to agree whenever some third statement is true — they must agree in all rows, with no exceptions. That universal quantifier over truth assignments is the entire content of the definition, and forgetting it (checking only a few rows) is the most common way to get logical equivalence wrong. A useful visual is to picture each formula as coloring in a truth table's rightmost column with 's and 's. Logical equivalence means two formulas produce identical colorings. The figure below shows this for and : both produce the pattern T, T, F, T down the four rows of .
The central theorem
Let and be compound propositions built from atomic propositions among . Then
Moreover, logical equivalence is an equivalence relation on the set of all compound propositions in these atomic letters: for all , 1. (Reflexivity) . 2. (Symmetry) If then . 3. (Transitivity) If and , then .
Part 1: is a tautology. Recall the truth table rule for the biconditional: for any truth values ,
This is immediate from the defining truth table of (it is true precisely on the rows where both sides match: and ). () Suppose . Let be any truth assignment to . By definition of logical equivalence, . Applying the rule above with , , we get . Since was an arbitrary truth assignment, evaluates to under every assignment; by the definition of Tautologies and Contradictions, is a tautology. () Suppose is a tautology, i.e. for every truth assignment . Fix an arbitrary truth assignment . Then . By the rule above, this forces . Since was arbitrary, for every truth assignment, which is exactly the definition of . This completes the proof of Part 1; the technique used is direct proof by unfolding the definitions of the biconditional and of tautology, splitting into the two directions of the "if and only if."
Part 2: Logical equivalence is an equivalence relation. Reflexivity. Let be any compound proposition and any truth assignment. Trivially (equality of a value with itself). Since this holds for every , by definition . Symmetry. Suppose . Let be an arbitrary truth assignment. By hypothesis . Equality of truth values (indeed of any objects) is itself symmetric, so . As was arbitrary, this holds for every truth assignment, so . Transitivity. Suppose and . Let be an arbitrary truth assignment to the atomic propositions occurring in , , or . Restricting the hypotheses to this : since , we have ; since , we have . By transitivity of equality of truth values, . As was an arbitrary truth assignment, . No step above invokes logical equivalence's own characterization theorem or any result depending on it — each step is a direct unfolding of the definition together with elementary properties of equality, so the argument is non-circular.
∎If , and is any compound proposition in which occurs as a subformula, let be the result of replacing that occurrence of by . Then .
(Stated for completeness; the proof is a straightforward induction on the structure of , using the fact that each connective's truth value depends only on the truth values of its immediate components, together with to swap those values at the point of substitution. This principle is what licenses "replacing a subexpression by an equivalent one" throughout algebraic simplification of formulas, and is the engine behind the <a class="wiki-link" href="/wiki/math-found-laws-of-logical-equivalence" data-track="wiki_article.body.wiki_link">Laws of Logical Equivalence</a>.)
Worked examples
Example 1 — an asymmetric three-variable equivalence. Claim: . There are atomic propositions, so rows to check. We build the table.
| T | T | T | T | T | T | T |
| T | T | F | T | F | F | F |
| T | F | T | F | T | T | T |
| T | F | F | F | T | T | T |
| F | T | T | F | T | T | T |
| F | T | F | F | T | F | T |
| F | F | T | F | T | T | T |
| F | F | F | F | T | T | T |
Reading down the two boxed columns, and agree in all eight rows: T, F, T, T, T, T, T, T. Since they are compound propositions in the same three atomic letters , and their truth values coincide for every one of the possible truth assignments, the definition of logical equivalence is satisfied:
This particular equivalence is called exportation, and it is exactly the logical fact behind the common proof pattern "to show , assume , then show ." Note the asymmetry deliberately built into this example: the two sides look structurally quite different (one groups the hypotheses with , the other nests two conditionals), and there is no shortcut from symmetry of variables — all three letters genuinely play distinct roles ( never appears negated, and are not interchangeable in either formula), so the full eight-row check is doing real work, not simply confirming an obvious symmetry.
Example 2 — checking a plausible-looking equivalence that fails, then repairing it. Consider whether , and separately whether . First, the version, with three atomic letters again:
| T | T | T | T | T | T | T | T |
| T | T | F | F | F | T | F | F |
| T | F | T | F | F | F | T | F |
| T | F | F | F | F | F | F | F |
| F | T | T | T | T | T | T | T |
| F | T | F | F | T | T | T | T |
| F | F | T | F | T | T | T | T |
| F | F | F | F | T | T | T | T |
The last two columns agree in all eight rows (T,F,F,F,T,T,T,T), so indeed
Now check the analogous claim with in place of on both sides, i.e. . It is tempting to assume "distributes" over both and symmetrically the way multiplication distributes over addition. Compute row : the left side is . The right side is — they agree here. Try : left side . Right side — still agree. In fact one can check (and it is a standard, separately provable equivalence) that does hold for all eight rows — so this particular "distributivity across " intuition happens to be safe in both directions, but only a full truth-table check (not the surface analogy with arithmetic) establishes that; the arithmetic analogy is not a valid proof technique in propositional logic, since is not the propositional counterpart of multiplication and no theorem guarantees connectives obey the distributive habits of arithmetic operations merely by analogy. The moral of Example 2 is that resemblance to familiar algebraic laws must always be checked, row by row, against the definition — never assumed by pattern-matching.
Drop the universal quantifier from the definition and instead declare and "weakly equivalent" if for at least one truth assignment (or, similarly, if they merely agree on a proper subset of the rows one bothered to inspect). Take
Under the assignment : and — they disagree here. Under : , — they disagree here too. So under the correct definition, and are (as expected) not logically equivalent, since they disagree on every row, not just some. But now consider and , and check only the single row : both give . If equivalence only required agreement on the rows we bothered to check, we would wrongly conclude . Checking the remaining rows exposes the error: at , gives while gives — they disagree. The two formulas are not logically equivalent, yet a "some assignments" or "the assignments I checked" criterion would have certified a false equivalence. This shows the universal quantifier over all truth assignments is not a stylistic flourish — it is load-bearing. Weakening it to an existential quantifier, or to "true on the assignments actually tested," produces a relation that is not even well-behaved (it needn't respect the substitution principle, and it would call things equivalent that provably behave differently under some circumstance the definition was supposed to rule out). This is exactly the same discipline already required when verifying a Tautology: one bad row anywhere in the table refutes the universal claim.
Scope, edge cases & common traps
| Situation | What to check | Common error |
|---|---|---|
| use different sets of atomic letters | Build the table over the union of all letters appearing in either formula | Forgetting a "silent" variable, e.g. treating and as functions of alone |
| vs. | is a metalinguistic relation between formulas (true/false as a whole claim); is a connective producing a new formula whose truth value can vary by row | Writing when only some rows of are true, i.e. mistaking a non-tautologous biconditional for equivalence |
| Large | All rows must genuinely agree | Checking a handful of "representative" rows and generalizing, as in the counterexample above |
| Vacuous / degenerate formulas | A tautology is equivalent to any other tautology; a contradiction to any other contradiction | Assuming two tautologies must look syntactically similar |
| Substitution inside larger formulas | Corollary (Substitution Principle) licenses replacing subformulas | Substituting an equivalence that only holds "usually," not for every truth assignment |
The mathematician behind it
Origins · 1 minGeorge Boole and how this was discovered
George Boole was a largely self-educated English mathematician who supported his family as a schoolteacher before eventually becoming the first professor of mathematics at Queen's College, Cork. Working in relative isolation from the mainstream mathematical establishment of his day, he pursued the radical idea that logical reasoning itself — the syllogisms of Aristotle, the connectives "and," "or," "not" — could be captured by an algebra with its own symbolic laws, manipulated by rules just as rigorous as ordinary arithmetic. This was the founding insight that made a notion like "two logical expressions are identical" a mathematically precise, checkable claim rather than a matter of rhetorical judgment.
Is logical equivalence the same thing as the biconditional connective?
No, and this is the most important distinction to keep straight. The biconditional is itself a compound proposition — it is built by a connective and has its own truth table, so its truth value can be in some rows and in others, exactly like or . Logical equivalence , by contrast, is a single metalinguistic claim about and — either it holds (they agree in every row) or it fails; there is no "row-by-row" truth value for itself. The theorem in this article shows precisely how they connect: holds exactly when happens to be a tautology, i.e. when the biconditional connective's truth table is constantly .
Do I always need to build a full truth table to prove two formulas are logically equivalent?
Not in practice, though a full truth table is always a valid method and is the definition-level justification for every shortcut. Once a stock of known equivalences is established (De Morgan's laws, distributivity, the conditional–disjunction equivalence, double negation, and others collected under Laws of Logical Equivalence), you can prove new equivalences by a chain of substitutions, each licensed by the Substitution Principle. This is analogous to proving algebraic identities using known rules rather than expanding everything from scratch — but every one of those "known rules" was itself originally established by a truth-table (or equivalent semantic) argument, so the method is not circular, only efficient.
Can two logically equivalent formulas look completely different as strings of symbols?
Yes, and this is exactly the point of the concept. and have no symbols in common beyond and , yet they are logically equivalent because they produce identical truth tables. Logical equivalence deliberately ignores surface syntax and cares only about the semantic content — the function from truth assignments to truth values. This is precisely why the notion is useful: it licenses rewriting a hard-to-work-with formula into an easier-to-work-with one that says exactly the same thing.
What is the difference between logical equivalence and logical implication?
Logical implication (, or " entails ") means every truth assignment making true also makes true — it is a one-directional relationship, and could still be true in some world where is false. Logical equivalence is the special, symmetric case where and hold simultaneously — the two formulas succeed and fail together in every world, not just move in one direction. Every logical equivalence yields two implications, but not every implication comes from an equivalence.
Why does the definition require checking assignments only to the atomic propositions "occurring in or "? What if has an atomic letter that doesn't?
If contains a letter that does not appear in , you still build the table over the union of all letters used by either formula — here including — and simply note that 's truth value does not depend on 's value (it stays constant as varies). For instance (a tautology, using letter ) is logically equivalent to (a tautology, using letter ), because once you build the table jointly over , both formulas are in all four rows. The letters need not literally coincide; what must coincide is the truth value in every joint assignment.
Is logical equivalence really an equivalence relation in the technical sense used elsewhere in mathematics?
Yes — this is proved explicitly in the Theorem above by verifying reflexivity, symmetry, and transitivity directly from the definition. This matters conceptually: because is an equivalence relation, it partitions the (infinite) set of all compound propositions in given atomic letters into equivalence classes, one class per possible truth-table column. With atomic letters there are exactly such classes, since a truth table has rows and each row can independently be or . Every formula in a given class is a legitimate stand-in for every other, by the Substitution Principle.
Does logical equivalence depend on which connectives were used to build the formulas?
No — this is exactly what makes it a semantic rather than syntactic notion. Two formulas can be built from entirely different connectives (one using only and , another using and ) and still be logically equivalent, as Example 1's exportation law and the De Morgan equivalences illustrate. The connectives used are a feature of how a formula is written down; logical equivalence only cares about the resulting function from truth assignments to , which is why formulas built very differently can occupy the same equivalence class.