Visual walkthrough — Boolean algebra laws (commutative, associative, distributive)
Step 0 — The only two symbols we are allowed
Before any law, agree on what the marks mean. A variable like is a switch that is either off (we write ) or on (we write ). There is nothing in between — no , no half-on.
- (read " AND ") turns on only when both switches are on. Think: two switches wired in series on one wire — current passes only if both are closed.
- (read " OR ") turns on when at least one switch is on. Think: two switches wired in parallel — either one alone lets current through.

Look at the picture: series = AND (both must close), parallel = OR (either closes). Hold these two shapes in your head — the whole proof is about rearranging wires between series and parallel.
Step 1 — Draw the left-hand side as a circuit
WHAT. We build a lamp circuit for .
WHY. A formula is abstract; a circuit is something you can trace with your finger. If the lamp lights, the expression is .
PICTURE. Reading the formula outside-in: it is an OR () between two things — the single switch , and the block . The block is an AND, so and sit in series. Then that whole series block sits in parallel with .

There are exactly two ways for current to reach the lamp: the top wire through alone, or the bottom wire through -then-. That is the entire meaning of the left side.
Step 2 — Draw the right-hand side as a circuit
WHAT. We build a lamp circuit for .
WHY. We want to compare shapes, so we draw the target the same way.
PICTURE. Outside-in this is an AND () between two brackets — so the two brackets sit in series. Each bracket is an OR, so inside each one the two switches sit in parallel.

Notice something odd already: switch appears twice — once in the left gate, once in the right gate. That duplication is exactly what the law is claiming is necessary, and Step 5 will show why.
Step 3 — Expand algebraically, term by term
WHAT. Multiply the two brackets out, using the ordinary distributive law (the "AND-over-OR" form, which behaves just like school algebra).
WHY. We can't yet see the two circuits are equal. Algebra lets us grind one side until it turns into the other. We start from the right side because it is the bushier one.
Each term is one way to pick one switch from the left bracket and one from the right bracket:
- term 1 — took from both,
- term 2 — took from left, from right,
- term 3 — took from left, from right,
- term 4 — took from left, from right.

The grid picture shows all four pairings as cells. Keep every cell for now — the next step deletes and merges them.
Step 4 — Collapse using two Boolean facts
WHAT. Simplify the four terms.
WHY. In ordinary algebra and you'd be stuck. In Boolean algebra a switch ANDed with itself is just itself, and OR-ing with anything gives . These two facts (from Boolean Algebra Identity & Null Laws) are what make Boolean algebra shrink instead of grow.
Fact 1 — Idempotence: . A switch in series with a copy of itself is still just " is on". So term 1 becomes plain : (We also used commutativity, , to line up the 's.)
Factor out of the first three terms: Here is pulled outside; the leftover inside is , where the is really ... no — the appears because , so factoring from the bare leaves a .
Fact 2 — Null / domination: . An OR with a permanently-on switch is always on. So the bracket collapses:
Therefore:

The right side turned into the left side. The law is proven — but why did needing to appear twice matter? That is the picture we still owe you.
Step 5 — WHY the must be copied into both brackets
WHAT. We test the wrong version — the version where a student "distributes once" like in normal algebra and forgets the second .
WHY. Seeing a law fail is what fixes it in memory. We hunt for a single row of inputs where the two sides disagree.
PICTURE. Try :
- Correct left side: . Lamp ON (the top wire through alone carries current).
- Wrong form: . Lamp OFF — because is in series and blocks everything, even though is on.

In the wrong circuit, acts like a broken wire on the only path. The correct form survives because when , the second gate becomes , and the first gate , so both series gates pass and the lamp lights. The second copy of is the escape hatch that keeps 's power alive when and both fail. Drop it, and loses its voice.
Step 6 — All the degenerate cases at once
WHAT. Check the "boring" corner inputs so no scenario surprises the reader.
WHY. Contract rule: cover every case. A law you only tested on one row is a guess.
| Left | Right | Agree? | |||
|---|---|---|---|---|---|
| 0 | 0 | 0 | ✓ | ||
| 0 | 0 | 1 | ✓ | ||
| 0 | 1 | 0 | ✓ | ||
| 0 | 1 | 1 | ✓ | ||
| 1 | 0 | 0 | ✓ | ||
| 1 | 0 | 1 | ✓ | ||
| 1 | 1 | 0 | ✓ | ||
| 1 | 1 | 1 | ✓ |
Two degenerate readings worth naming:
- When : left (the dominates), right . The whole thing is stuck on — overrides entirely.
- When : left , right . With gone, both sides quietly reduce to the same plain AND of and .
Every row agrees, every corner explained. Nothing can ambush the reader now.
The one-picture summary

One figure, the whole journey: the parallel-of-(series) circuit on the left morphs into the series-of-(parallels) circuit on the right, with shown splitting into two copies — the duplication the law demands. Same lamp, same truth table, different wiring. This trade is the seed of Combinational Circuit Simplification and gets automated by Karnaugh Maps; the "flip AND/OR" flavour continues in De Morgan's Theorems.
Recall Feynman retelling in plain words
I want a lamp that lights if switch A is on, OR if both B and C are on. The easy build: run A on one wire, and B-then-C (in a row) on another wire, both feeding the lamp. Now a friend claims the same lamp can be built a totally different way: two little gates in a row, and in each gate you place A next to one of the others — first gate is "A or B", second is "A or C". At first that looks wasteful — why put A twice? Because if I ever forget the second A, then whenever the second gate's partner (C) is off, the whole row goes dead and my lamp won't light even when A is on — which is wrong. The second copy of A is a spare doorway that keeps A's on-signal flowing no matter what B and C do. Put A in both gates, and the two wildly different-looking circuits light on exactly the same inputs. That freedom — same behaviour, cheaper wiring — is why chip designers love this rule.
Active Recall
Circuit shape of
Why (idempotence)
Row that breaks
and when
The two collapsing facts used in the proof
#flashcards/hardware
Connections
- Parent topic — Boolean algebra laws
- Boolean Algebra Identity & Null Laws (supplies and used in Step 4)
- Logic Gates AND OR NOT (the physical series/parallel meaning of Step 0)
- De Morgan's Theorems (next AND/OR flipping tool)
- Karnaugh Maps (automates the factoring seen here)
- Combinational Circuit Simplification (where the cheaper wiring pays off)