Laws of Logical Equivalence

Can you rewrite ¬(P∧(Q∨¬R))\neg(P \land (Q \lor \neg R)) without a negation outside a parenthesis? Every student of proof-writing eventually meets a tangled compound statement. Checking its truth table by hand becomes impractical. Yet a proof's correctness may hinge on knowing two statements say the same thing. The laws of logical equivalence are a toolkit that answers this question algebraically. They work the way arithmetic rules let you rewrite 2(x+3)2(x+3) as 2x+62x+6. You don't need to re-derive multiplication from scratch each time. These laws matter because Logical Equivalence itself is defined by an expensive test. It requires a truth table with 2n2^n rows for nn atomic statements. The laws let you transform statements symbolically in a fixed number of steps instead. This mirrors how a proof actually proceeds line by line. They let a mathematician say "negating 'every xx satisfies PP or QQ' gives 'some xx fails both PP and QQ'" directly. There's no need to re-derive that fact from first principles each time. The big picture: propositional logic, under logical equivalence, behaves like an algebraic structure. Technically, it forms a Boolean algebra. Its operations ∧,∨,¬\land, \lor, \neg play roles analogous to multiplication, addition, and sign-change in ordinary algebra. They are commutative, associative, distributive, and have identity elements. But they also have extra symmetry laws, such as De Morgan's laws, with no numerical analogue. This article develops that algebra rigorously. It states each law precisely. It proves the whole family from the definition of equivalence via one unifying argument. It also shows how to chain the laws together to simplify or negate complicated statements. By the end you will have a proved, named list of equivalences. These include commutativity, associativity, distributivity, identity/domination, double negation, idempotence, and De Morgan's laws. You will also see a worked derivation showing how these laws compose to negate a genuinely nested statement. There is a discussion of exactly which hypotheses are needed. Finally, there are pointers toward how these same laws resurface when Negating Quantified Statements.

Key takeaways
  • Logical equivalence (≡\equiv) behaves algebraically: ∧\land and ∨\lor obey commutative, associative, and mutual distributive laws.
  • Identity laws (P∧T≡PP \land T \equiv P, P∨F≡PP \lor F \equiv P) and domination laws (P∨T≡TP \lor T \equiv T, P∧F≡FP \land F \equiv F) pin down the role of the constants True/False.
  • De Morgan's laws convert a negated conjunction/disjunction into a disjunction/conjunction of negations: ¬(P∧Q)≡¬P∨¬Q\neg(P\land Q)\equiv \neg P \lor \neg Q.
  • Double negation (¬¬P≡P\neg\neg P \equiv P) and idempotence (P∧P≡PP \land P \equiv P) let you cancel redundancy.
  • All these laws are proved uniformly by exhibiting identical truth tables — no law needs a separate ad hoc argument.
  • Key idea: logical equivalence laws let you rewrite compound statements step-by-step, the same way algebraic identities let you rewrite expressions, and every step is justified by a truth-table fact proved once and for all.

Where this lives today

In pure mathematics, these laws are the daily grammar of proof-writing: negating a hypothesis correctly (via De Morgan's laws) is the first step in almost every proof by contradiction or contrapositive, and distributivity underlies manipulations of set operations, since A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B\cup C) = (A\cap B)\cup(A\cap C) is the set-theoretic mirror of the propositional distributive law, with ∩,∪,c\cap,\cup,{}^c playing the roles of ∧,∨,¬\land,\lor,\neg. In <a class="wiki-link" href="/wiki/math-found-negating-quantified-statements" data-track="wiki_article.body.wiki_link">Negating Quantified Statements</a>, the same De Morgan pattern reappears one level up: negating ∀x P(x)\forall x\, P(x) gives ∃x ¬P(x)\exists x\, \neg P(x) and negating ∃x P(x)\exists x\, P(x) gives ∀x ¬P(x)\forall x\, \neg P(x), a direct quantifier analogue of the propositional De Morgan laws proved here, since a universally quantified statement behaves like an (infinite) conjunction and an existential one like an (infinite) disjunction. In computer science and digital circuit design, De Morgan's laws let engineers convert AND-gates into OR-gates (with inverters), which is essential when a chip fabrication process makes one gate type cheaper or faster than another; compilers and hardware synthesis tools apply these laws automatically to optimize boolean expressions in code and circuits. In automated theorem proving and SAT solving, converting formulas to conjunctive or disjunctive normal form relies on repeated application of exactly these laws (distributivity to expand, De Morgan's laws to push negations to the leaves). In database query optimization, De Morgan's and distributive laws rewrite filter conditions (`WHERE NOT (a AND b)` becomes `WHERE NOT a OR NOT b`) into forms an optimizer can index more efficiently. In statistics and probability, De Morgan's laws applied to events justify P(Ac∪Bc)=P((A∩B)c)=1−P(A∩B)P(A^c \cup B^c) = P((A\cap B)^c) = 1 - P(A\cap B), a step used constantly when computing probabilities of "at least one failure" type events.

Ask the tutor: Can you show me step by step how to use these laws to negate ∀x (P(x)→Q(x))\forall x\,(P(x) \to Q(x))?

DefinitionLogical Equivalence and the Laws

Let P,Q,RP, Q, R denote statement forms built from atomic statements using ¬,∧,∨\neg, \land, \lor (and, later, →,↔\to,\leftrightarrow, which are themselves shorthand for combinations of these three). Two statement forms PP and QQ are logically equivalent, written

P≡Q,P \equiv Q,

if PP and QQ have identical truth values under every assignment of truth values to their atomic components — equivalently, if the biconditional P↔QP \leftrightarrow Q is a tautology. A law of logical equivalence is a schema P≡QP \equiv Q that holds for all statement forms P,QP,Q obtained by substituting arbitrary statement forms for the letters involved. The laws treated here are, for arbitrary statement forms P,Q,RP, Q, R:

Commutative laws

P∧Q≡Q∧P,P∨Q≡Q∨P.P \land Q \equiv Q \land P, \qquad P \lor Q \equiv Q \lor P.

Associative laws

(P∧Q)∧R≡P∧(Q∧R),(P∨Q)∨R≡P∨(Q∨R).(P \land Q)\land R \equiv P \land (Q \land R), \qquad (P \lor Q)\lor R \equiv P \lor (Q \lor R).

Distributive laws

P∧(Q∨R)≡(P∧Q)∨(P∧R),P∨(Q∧R)≡(P∨Q)∧(P∨R).P \land (Q \lor R) \equiv (P\land Q)\lor(P\land R), \qquad P \lor (Q \land R) \equiv (P\lor Q)\land(P\lor R).

Identity and domination laws (writing TT for a fixed tautology and FF for a fixed contradiction)

P∧T≡P,P∨F≡P,P∨T≡T,P∧F≡F.P \land T \equiv P,\quad P \lor F \equiv P, \qquad P \lor T \equiv T,\quad P \land F \equiv F.

Idempotent laws

P∧P≡P,P∨P≡P.P \land P \equiv P, \qquad P \lor P \equiv P.

Double negation law

¬¬P≡P.\neg \neg P \equiv P.

De Morgan's laws

¬(P∧Q)≡¬P∨¬Q,¬(P∨Q)≡¬P∧¬Q.\neg(P \land Q) \equiv \neg P \lor \neg Q, \qquad \neg(P \lor Q) \equiv \neg P \land \neg Q.

Intuition

Think of ∧\land as behaving like multiplication and ∨\lor like addition on the two-element set {T,F}\{T, F\}, where TT acts like the number 11 (identity for ∧\land, absorbing for ∨\lor) and FF acts like 00 (identity for ∨\lor, absorbing for ∧\land). Under this analogy, commutativity and associativity are unsurprising — order and grouping should not matter for "and" or "or" any more than for ordinary addition. What is more striking is that both distributive laws hold: not only does ∧\land distribute over ∨\lor (matching multiplication distributing over addition), but ∨\lor also distributes over ∧\land, which has no counterpart in ordinary arithmetic (x+(y⋅z)≠(x+y)⋅(x+z)x + (y \cdot z) \ne (x+y)\cdot(x+z) in general). This extra symmetry is a hallmark of Boolean algebra and is exactly what makes De Morgan's laws possible: negation swaps the roles of ∧\land and ∨\lor entirely, turning every "and" into an "or" and vice versa, while flipping every atomic truth value. De Morgan's laws are best pictured as duality: negating a compound statement pushes the ¬\neg inward, flips ∧↔∨\land \leftrightarrow \lor, and lands a ¬\neg on each atomic piece. The diagram below shows this "push-through" action on ¬(P∧Q)\neg(P \land Q), and a second figure shows the algebraic structure — the constants T,FT, F sitting like 1,01, 0 at the ends of a truth-value line, with ∧,∨\land, \lor as the two binary operations connecting them.

Figure
De Morgan's law as a negation "pushed through" a connective, swapping ∧ and ∨
¬(P ∧ Q) ≡ ¬P ∨ ¬Q ∧ flips to ∨ The outer ¬ disappears; each atomic letter P, Q acquires its own ¬, and ∧ becomes ∨.
Figure
Truth values T, F as endpoints, with ∧ and ∨ as the two binary operations
F T P ∧ F ≡ F (domination) P ∨ T ≡ T (domination) P ∨ F ≡ P (identity) P ∧ T ≡ P (identity) F behaves like 0, T behaves like 1

Theorem

TheoremThe Laws of Logical Equivalence

Let P,Q,RP, Q, R be arbitrary statement forms, let TT denote a fixed tautology, and let FF denote a fixed contradiction. Then all of the following equivalences hold, where each is understood as holding for every assignment of truth values to the atomic statements comprising P,Q,RP, Q, R: 1. Commutativity: P∧Q≡Q∧PP \land Q \equiv Q \land P and P∨Q≡Q∨PP \lor Q \equiv Q \lor P. 2. Associativity: (P∧Q)∧R≡P∧(Q∧R)(P\land Q)\land R \equiv P \land (Q\land R) and (P∨Q)∨R≡P∨(Q∨R)(P\lor Q)\lor R \equiv P \lor (Q\lor R). 3. Distributivity: P∧(Q∨R)≡(P∧Q)∨(P∧R)P \land (Q\lor R) \equiv (P\land Q)\lor(P\land R) and P∨(Q∧R)≡(P∨Q)∧(P∨R)P \lor (Q\land R) \equiv (P\lor Q)\land(P\lor R). 4. Identity/domination: P∧T≡PP\land T \equiv P, P∨F≡PP\lor F\equiv P, P∨T≡TP\lor T \equiv T, P∧F≡FP\land F \equiv F. 5. Idempotence: P∧P≡PP\land P \equiv P and P∨P≡PP\lor P \equiv P. 6. Double negation: ¬¬P≡P\neg\neg P \equiv P. 7. De Morgan's laws: ¬(P∧Q)≡¬P∨¬Q\neg(P\land Q)\equiv \neg P\lor \neg Q and ¬(P∨Q)≡¬P∧¬Q\neg(P\lor Q)\equiv \neg P\land \neg Q.

Proof

The proof technique throughout is the truth table method: to show X≡YX \equiv Y for statement forms X,YX, Y built from atomic statements P,Q,RP, Q, R, it suffices by the definition of logical equivalence to check that XX and YY receive the same truth value under every one of the finitely many assignments of T/FT/F to P,Q,RP, Q, R. Since P,Q,RP, Q, R range over arbitrary statement forms, and the only facts used in each check are the defining truth tables of ¬,∧,∨\neg, \land, \lor (which depend only on the truth values of their arguments, not on their internal structure), verifying the equivalence for atomic letters P,Q,RP, Q, R ranging over {T,F}\{T,F\} establishes it for arbitrary statement forms substituted in their place. This is because the truth value of a compound statement is a function only of the truth values of its immediate constituents (the truth-functionality of ¬,∧,∨\neg,\land,\lor), so substituting an arbitrary statement form P0P_0 for the letter PP everywhere changes no comparison being made: wherever P0P_0 evaluates to TT, the table row for "P=TP=T" applies, and likewise for FF. We now verify each law.

(1) Commutativity. The defining truth tables of ∧\land and ∨\lor are symmetric in their two arguments:

PPQQP∧QP\land QQ∧PQ\land PP∨QP\lor QQ∨PQ\lor P
TTTTTT
TFFFTT
FTFFTT
FFFFFF

Columns P∧QP\land Q and Q∧PQ\land P agree in every row, and likewise P∨QP\lor Q and Q∨PQ\lor P agree in every row. By the truth table method this proves both commutative laws.

(2) Associativity. There are 23=82^3 = 8 assignments to P,Q,RP,Q,R. We tabulate (P∧Q)∧R(P\land Q)\land R against P∧(Q∧R)P\land(Q\land R):

PPQQRRP∧QP\land Q(P∧Q)∧R(P\land Q)\land RQ∧RQ\land RP∧(Q∧R)P\land(Q\land R)
TTTTTTT
TTFTFFF
TFTFFFF
TFFFFFF
FTTFFTF
FTFFFFF
FFTFFFF
FFFFFFF

The two rightmost relevant columns, (P∧Q)∧R(P\land Q)\land R and P∧(Q∧R)P\land(Q\land R), agree in all 88 rows (each is TT exactly when P=Q=R=TP=Q=R=T, and FF otherwise), so (P∧Q)∧R≡P∧(Q∧R)(P\land Q)\land R \equiv P\land(Q\land R). An entirely parallel table — each is TT exactly when at least one of P,Q,RP,Q,R is TT — shows (P∨Q)∨R≡P∨(Q∨R)(P\lor Q)\lor R \equiv P \lor (Q\lor R). (This is unsurprising: P∧Q∧RP\land Q\land R is TT exactly when all three atoms are TT, and P∨Q∨RP \lor Q \lor R is TT exactly when at least one is; parenthesization cannot change which set of assignments makes the string true, only the order of evaluation, and by the two tables above that set is unaffected.)

(3) Distributivity. We check P∧(Q∨R)≡(P∧Q)∨(P∧R)P\land(Q\lor R) \equiv (P\land Q)\lor(P\land R) over all 88 assignments:

PPQQRRQ∨RQ\lor RP∧(Q∨R)P\land(Q\lor R)P∧QP\land QP∧RP\land R(P∧Q)∨(P∧R)(P\land Q)\lor(P\land R)
TTTTTTTT
TTFTTTFT
TFTTTFTT
TFFFFFFF
FTTTFFFF
FTFTFFFF
FFTTFFFF
FFFFFFFF

The columns P∧(Q∨R)P\land(Q\lor R) and (P∧Q)∨(P∧R)(P\land Q)\lor(P\land R) agree in every row, proving the first distributive law. For the second, P∨(Q∧R)≡(P∨Q)∧(P∨R)P\lor(Q\land R) \equiv (P\lor Q)\land(P\lor R):

PPQQRRQ∧RQ\land RP∨(Q∧R)P\lor(Q\land R)P∨QP\lor QP∨RP\lor R(P∨Q)∧(P∨R)(P\lor Q)\land(P\lor R)
TTTTTTTT
TTFFTTTT
TFTFTTTT
TFFFTTTT
FTTTTTTT
FTFFFTFF
FFTFFFTF
FFFFFFFF

Again both columns agree in every row, proving the second distributive law.

(4) Identity and domination. Each has a two-row table (only PP varies, with T,FT,F constant):

PPP∧TP\land TPPP∨FP\lor FPPP∨TP\lor TTTP∧FP\land FFF
TTTTTTTFF
FFFFFTTFF

Each pair of adjacent relevant columns agrees in both rows, so P∧T≡PP\land T\equiv P, P∨F≡PP\lor F \equiv P, P∨T≡TP\lor T\equiv T, P∧F≡FP\land F\equiv F.

(5) Idempotence. By definition of ∧\land, P∧PP\land P is TT exactly when PP is TT (taking both arguments to be PP requires both to be TT, i.e. PP to be TT), and is FF exactly when PP is FF; hence P∧PP\land P and PP agree in both rows of a two-row table. Symmetrically P∨PP\lor P is TT exactly when PP is TT, matching PP in both rows. This proves both idempotent laws.

(6) Double negation. By the defining table of ¬\neg, ¬P\neg P is FF when PP is TT and TT when PP is FF; applying ¬\neg again, ¬¬P\neg\neg P is TT when ¬P\neg P is FF, i.e. when PP is TT, and is FF when ¬P\neg P is TT, i.e. when PP is FF. So ¬¬P\neg\neg P and PP agree in both rows: ¬¬P≡P\neg\neg P \equiv P.

(7) De Morgan's laws. We check ¬(P∧Q)≡¬P∨¬Q\neg(P\land Q) \equiv \neg P \lor \neg Q over all four assignments to P,QP, Q:

PPQQP∧QP\land Q¬(P∧Q)\neg(P\land Q)¬P\neg P¬Q\neg Q¬P∨¬Q\neg P \lor \neg Q
TTTFFFF
TFFTFTT
FTFTTFT
FFFTTTT

The columns ¬(P∧Q)\neg(P\land Q) and ¬P∨¬Q\neg P \lor \neg Q agree in all four rows, proving the first De Morgan law. For ¬(P∨Q)≡¬P∧¬Q\neg(P\lor Q) \equiv \neg P \land \neg Q:

PPQQP∨QP\lor Q¬(P∨Q)\neg(P\lor Q)¬P\neg P¬Q\neg Q¬P∧¬Q\neg P \land \neg Q
TTTFFFF
TFTFFTF
FTTFTFF
FFFTTTT

Again both columns agree in all four rows, proving the second De Morgan law. All seven families of laws have now been verified by exhaustive truth table comparison, which — by the truth-functionality argument given at the start of the proof — establishes each as holding for arbitrary statement forms P,Q,RP, Q, R, not merely for atomic letters. ■\blacksquare

∎
CorollaryLaws compose

If X≡YX \equiv Y is an instance of one of the laws above (with arbitrary statement forms substituted for P,Q,RP,Q,R), and XX occurs as a subformula of a larger statement form ZZ, then replacing that occurrence of XX by YY produces a statement form Z′Z' with Z≡Z′Z \equiv Z'.

Proof

This is the substitution principle for logical equivalence, proved by induction on the structure of ZZ. If Z=XZ = X itself, then Z′=YZ' = Y and Z≡Z′Z\equiv Z' is exactly the hypothesis. Otherwise ZZ is ¬W\neg W, W1∧W2W_1 \land W_2, or W1∨W2W_1 \lor W_2 for shorter statement forms W,W1,W2W, W_1, W_2 in which XX occurs as a subformula of one of them (say WW, or W1W_1 without loss of generality); by the inductive hypothesis, replacing XX by YY inside WW (or W1W_1) yields W′W' (or W1′W_1') with W≡W′W \equiv W' (or W1≡W1′W_1 \equiv W_1'). Since truth value is determined functionally by the truth values of immediate constituents, and WW, W′W' agree on every assignment (by W≡W′W\equiv W'), the compounds ¬W\neg W and ¬W′\neg W' also agree on every assignment, so ¬W≡¬W′\neg W \equiv \neg W'; similarly W1∧W2≡W1′∧W2W_1 \land W_2 \equiv W_1' \land W_2 and W1∨W2≡W1′∨W2W_1\lor W_2 \equiv W_1' \lor W_2. In each case Z≡Z′Z \equiv Z'. This closes the induction. ■\blacksquare

∎

This corollary is what licenses "chaining" the laws: once X≡YX\equiv Y is known, you may replace XX by YY anywhere it sits inside a larger statement without changing the larger statement's equivalence class, exactly as you replace 2⋅32\cdot 3 by 66 inside a larger arithmetic expression.

Worked examples

Example 1 — negating a genuinely nested statement. Simplify ¬(P∧(Q∨¬R))\neg\big(P \land (Q \lor \neg R)\big) into a form with no negation applied to anything but an atomic letter. Step 1 (outer De Morgan, first law): treat A=PA = P, B=Q∨¬RB = Q\lor\neg R; then

¬(P∧(Q∨¬R))≡¬P∨¬(Q∨¬R).\neg(P \land (Q\lor \neg R)) \equiv \neg P \lor \neg(Q \lor \neg R).

Step 2 (inner De Morgan, second law) applied to the subformula ¬(Q∨¬R)\neg(Q\lor\neg R), licensed by the substitution principle:

¬(Q∨¬R)≡¬Q∧¬¬R.\neg(Q \lor \neg R) \equiv \neg Q \land \neg\neg R.

Step 3 (double negation) applied to the subformula ¬¬R\neg\neg R:

¬Q∧¬¬R≡¬Q∧R.\neg Q \land \neg\neg R \equiv \neg Q \land R.

Chaining steps 1–3 via the substitution principle,

¬(P∧(Q∨¬R))≡¬P∨(¬Q∧R).\neg\big(P \land (Q \lor \neg R)\big) \equiv \neg P \lor (\neg Q \land R).

Check by direct truth table (all 88 rows), to confirm no error crept in:

PPQQRR¬R\neg RQ∨¬RQ\lor\neg RP∧(Q∨¬R)P\land(Q\lor\neg R)¬(P∧(Q∨¬R))\neg(P\land(Q\lor\neg R))¬P\neg P¬Q∧R\neg Q \land R¬P∨(¬Q∧R)\neg P \lor (\neg Q\land R)
TTTFTTFFFF
TTFTTTFFFF
TFTFFFTFTT
TFFTTTFFFF
FTTFTFTTFT
FTFTTFTTFT
FFTFFFTTTT
FFFTTFTTFT

The columns "¬(P∧(Q∨¬R))\neg(P\land(Q\lor\neg R))" and "¬P∨(¬Q∧R)\neg P \lor (\neg Q\land R)" agree in all 88 rows, confirming the simplification.

Example 2 — proving an equivalence between two visibly different statements, using the laws instead of a raw truth table. Show

(P∨Q)∧(P∨¬Q)≡P(P \lor Q) \land (P \lor \neg Q) \equiv P

using the laws of logical equivalence (not a fresh truth table from scratch). Step 1 (second distributive law, with the roles P↦PP\mapsto P, Q↦QQ\mapsto Q, R↦¬QR\mapsto \neg Q):

(P∨Q)∧(P∨¬Q)≡P∨(Q∧¬Q).(P\lor Q)\land(P\lor \neg Q) \equiv P \lor (Q \land \neg Q).

Step 2: the subformula Q∧¬QQ \land \neg Q is a contradiction — it is FF under both truth values of QQ (if Q=TQ=T then ¬Q=F\neg Q = F so Q∧¬Q=FQ\land\neg Q = F; if Q=FQ=F then Q∧¬Q=FQ\land\neg Q=F directly), so Q∧¬Q≡FQ\land\neg Q \equiv F by the truth-table method (a two-row check). This is sometimes called the negation law and follows the same proof pattern used throughout the theorem above. Step 3 (substitute FF for Q∧¬QQ\land\neg Q, via the substitution principle):

P∨(Q∧¬Q)≡P∨F.P \lor (Q\land\neg Q) \equiv P \lor F.

Step 4 (identity law): P∨F≡PP \lor F \equiv P. Chaining steps 1–4:

(P∨Q)∧(P∨¬Q)≡P.(P\lor Q)\land(P\lor\neg Q) \equiv P.

This derivation used only the theorem's laws (distributivity, identity) plus one auxiliary two-row fact (the negation law Q∧¬Q≡FQ\land\neg Q\equiv F), illustrating how the laws let you avoid an 88-row truth table entirely — a genuine efficiency gain that becomes dramatic as the number of atomic letters grows.

Counterexamplewhy truth-functionality (hence the exhaustive-check method) is essential

The proof of every law in the theorem rested on the fact that the truth value of ¬X\neg X, X∧YX\land Y, X∨YX \lor Y is determined entirely by the truth values of XX and YY — never by their internal structure or by anything outside the truth-value framework. Drop this hypothesis and the laws can fail. Consider replacing ∧\land by a non-truth-functional binary connective &\mathbin{\&} meant to informally capture "PP and, because of, QQ" — i.e. P&QP \mathbin{\&} Q is intended to be true only when PP and QQ are both true and QQ is a genuine reason for PP. Let

P="the ground is wet",Q="it rained",Q′="the sprinkler ran".P = \text{"the ground is wet"}, \qquad Q = \text{"it rained"}, \qquad Q' = \text{"the sprinkler ran"}.

Suppose in the actual world both QQ and Q′Q' are true (it rained and the sprinkler ran), and PP is true because it rained (not because of the sprinkler). Then informally P&QP \mathbin{\&} Q is true (rain genuinely explains the wet ground) while P&Q′P \mathbin{\&} Q' is false (the sprinkler running is not, in this scenario, why the ground is wet), even though QQ and Q′Q' have the same truth value TT. So substituting Q′Q' for QQ — an operation the truth-table method treats as harmless whenever QQ and Q′Q' agree in truth value — changes the truth value of the compound. Consequently the entire machinery of the theorem's proof breaks down for &\mathbin{\&}: two connectives can be true/false-equivalent on their inputs without the compounds built from them agreeing, so commutativity, associativity, and De Morgan-style laws for &\mathbin{\&} cannot be established (and generally fail) by the truth table method, and indeed need not hold at all. This shows the hypothesis of truth-functionality — built into the very definition of ¬,∧,∨\neg, \land, \lor as connectives whose output depends only on input truth values — is not a minor technicality but the load-bearing assumption that makes "check finitely many rows" a valid proof rather than a coincidence. Ordinary ∧,∨,¬\land, \lor, \neg satisfy it by definition, which is exactly why the theorem's laws are laws and not merely typical patterns.

Scope, edge cases & common traps

SituationWhat holdsWhat to watch for
Substituting equivalent statement forms into a lawSubstitution principle (corollary) applies validlyMust substitute the whole statement form consistently, not just one occurrence
Mixing →\to and ↔\leftrightarrow into these lawsFine, once P→QP\to Q is rewritten as ¬P∨Q\neg P \lor QApplying De Morgan's laws directly to →\to without first rewriting it is a common error
Negating a chain of three or more connectivesApply De Morgan's law innermost-out or outermost-in, one connective at a timeTrying to negate "all at once" often drops a ¬\neg on an inner atomic letter
Distributivity of ∨\lor over ∧\landGenuinely holds (unlike ordinary arithmetic)Students often assume it fails "by analogy" with x+(yz)≠(x+y)(x+z)x+(yz)\ne(x+y)(x+z) — it does not fail here
Treating ≡\equiv like == between numbersValid — ≡\equiv is an equivalence relation (reflexive, symmetric, transitive)Still must justify each rewriting step by a named law, exactly as with algebraic identities

The mathematician behind it

Origins · 1 minAugustus De Morgan and how this was discovered
AD
Augustus De Morgan
1806–1871 · British mathematician and logician, professor at University College London

De Morgan was one of the founders of modern symbolic logic, working alongside George Boole to move logic away from purely verbal syllogistic reasoning and toward an algebraic calculus of propositions and relations. He is best remembered today for the two duality laws bearing his name, which he stated in the context of both propositional logic and the algebra of sets, recognizing the same pattern in both settings — an early instance of the abstraction that later crystallized as Boolean algebra.

History
- 1847 — De Morgan publishes Formal Logic, developing a symbolic treatment of syllogisms and relations, in the same year Boole publishes The Mathematical Analysis of Logic.
- 1858 — De Morgan gives a systematic statement of the duality between conjunction/disjunction under negation, in work on the logic of relations, crystallizing what are now called De Morgan's laws.
- 1854 — George Boole's An Investigation of the Laws of Thought provides the algebraic framework (Boolean algebra) in which commutativity, associativity, distributivity, identity, and De Morgan's laws are unified as axioms/theorems of a single structure.
- 1930s–1940s — Claude Shannon and others show that Boolean algebra, and hence these very laws, describe the behavior of switching circuits, founding digital circuit design on propositional logic.
- Present — the laws are standard content in discrete mathematics and logic courses (Velleman, Halmos, Enderton among the standard references) and are implemented directly as simplification rules in automated theorem provers and hardware description languages.
Are the laws of logical equivalence the same as logical implication?

No. Logical equivalence P≡QP \equiv Q means PP and QQ have identical truth values on every assignment — a two-way relationship — whereas implication only requires P→QP \to Q to be a tautology, a one-way relationship where QQ need not force PP back. Every law in this article states a genuine equivalence: for instance P∧Q≡Q∧PP \land Q \equiv Q \land P means each side implies the other. It would be a strictly weaker (and different) claim to say only "P∧QP \land Q implies Q∧PQ \land P" (true, but so is the converse, which is the extra content of ≡\equiv). Confusing ≡\equiv with a one-directional implication is a common source of errors when applying these laws inside a longer proof, since you can substitute equivalents in either direction but can only substitute implications in one.

Do these laws also hold for the connectives →\to and ↔\leftrightarrow?

Indirectly, yes, once you rewrite →\to and ↔\leftrightarrow in terms of ¬,∧,∨\neg, \land, \lor. Since P→Q≡¬P∨QP \to Q \equiv \neg P \lor Q and P↔Q≡(P→Q)∧(Q→P)P \leftrightarrow Q \equiv (P\to Q)\land(Q\to P), any manipulation of →\to or ↔\leftrightarrow can be carried out by first substituting these equivalent forms and then applying the laws stated in this article. There is no need for separate "commutative law for →\to" (indeed P→QP\to Q is not equivalent to Q→PQ\to P in general, so no such commutative law could hold) — the laws here are specifically about ∧,∨,¬\land, \lor, \neg, the connectives for which the symmetric algebraic structure actually exists.

Why do both distributive laws hold, when in ordinary arithmetic only one distributive law (multiplication over addition) holds?

This reflects a genuine structural difference between Boolean algebra and the arithmetic of real numbers: in {T,F}\{T,F\} with ∧,∨\land,\lor, both operations happen to distribute over each other, a symmetry that has no counterpart in a ring like R\mathbb{R}, where x+(y⋅z)≠(x+y)(x+z)x+(y\cdot z) \ne (x+y)(x+z) in general (e.g. 1+(2⋅3)=71+(2\cdot3)=7 but (1+2)(1+3)=12(1+2)(1+3)=12). The theorem's proof verifies this directly by exhaustive truth table check on both distributive laws, so it is not an analogy or approximation — both really do hold as stated, for all statement forms P,Q,RP,Q,R.

Can I use these laws to prove that two statements are not equivalent?

Not directly — the laws only give you positive rewriting steps to show two forms are equivalent. To show non-equivalence, the standard technique is to exhibit a single row of the truth table (a single assignment of truth values to the atomic letters) where the two statement forms disagree; this is enough because logical equivalence requires agreement on every row, so one disagreeing row suffices to refute it. The Logical Equivalence article's exhaustive truth table method is exactly the right tool for disproving equivalence, while the laws in this article are the right tool for proving it once you suspect it holds.

Is there a way to remember which De Morgan law goes with which connective?

Picture the mnemonic "break the line, flip the sign": to negate P∧QP \land Q or P∨QP \lor Q, distribute the ¬\neg onto each letter (put a ¬\neg on PP and on QQ separately) and simultaneously flip the connective between them (∧\land becomes ∨\lor, or ∨\lor becomes ∧\land). This is visualized in this article's first figure, showing ¬(P∧Q)\neg(P\land Q) transforming into ¬P∨¬Q\neg P \lor \neg Q by pushing the negation through and flipping the connective. The same "flip the connective" pattern reappears with quantifiers in Negating Quantified Statements, where ∀\forall and ∃\exists swap roles under negation exactly as ∧\land and ∨\lor do here.

Why are identity, domination, and idempotent laws sometimes omitted from a short list of "the" laws of logical equivalence?

Different textbooks draw the boundary of "the core laws" differently, but identity (P∧T≡PP\land T\equiv P), domination (P∨T≡TP \lor T \equiv T), and idempotent laws (P∧P≡PP\land P\equiv P) are genuine, independently provable equivalences, each verifiable by the same truth table method used for commutativity or De Morgan's laws. They are sometimes treated as "obvious" corollaries rather than headline laws because their truth tables have only one or two rows, but logically they carry exactly the same status as the more celebrated laws: each is a tautological biconditional, proved the same way, and each is genuinely useful — for instance the identity law P∨F≡PP\lor F\equiv P was used explicitly in Worked Example 2 above to finish simplifying (P∨Q)∧(P∨¬Q)(P\lor Q)\land(P\lor\neg Q) down to PP.

Do these laws generalize beyond two-valued (classical) logic?

Within classical (two-valued) logic — the setting of this article and of Logical Equivalence as defined here — all seven law families hold exactly as stated, proved by the finite truth-table method. In other logical systems (e.g. three-valued logics, intuitionistic logic), some of these laws can fail or require reformulation; double negation elimination (¬¬P≡P\neg\neg P \equiv P), for instance, is famously not valid in intuitionistic logic, which restricts what counts as a constructive proof. Those systems are beyond the classical propositional setting developed here, but it is worth knowing that "law of logical equivalence" is not an absolute metaphysical fact — it is a theorem relative to the classical two-valued truth table semantics fixed in the definition above.

Before this

Where this leads