Boolean algebra is ordinary algebra's stranger cousin: the variables can only be 0 or 1, and there are only three operations. It matters because a circuit and an expression are the same object written two ways. Simplify the expression and you have simplified the circuit — fewer gates, less power, less heat, lower cost, and fewer things to go wrong. On a chip produced a million times, removing one gate is a real saving.
The laws
| Law | OR form | AND form |
|---|---|---|
| Identity | A + 0 = A | A · 1 = A |
| Null / Annulment | A + 1 = 1 | A · 0 = 0 |
| Idempotent | A + A = A | A · A = A |
| Complement | A + A′ = 1 | A · A′ = 0 |
| Commutative | A + B = B + A | A · B = B · A |
| Associative | (A+B)+C = A+(B+C) | (A·B)·C = A·(B·C) |
| Distributive | A + (B·C) = (A+B)·(A+C) | A · (B+C) = A·B + A·C |
| Absorption | A + A·B = A | A · (A+B) = A |
| Double negation | (A′)′ = A | — |
De Morgan's theorems
De Morgan's theorems are the most-used rules in the whole topic, and the most-misapplied. The error is inverting the variables but leaving the operator alone — writing , which is simply false. Test it: with A = 1, B = 0, the left side is while the wrong right side is . One counterexample is enough to disprove it, and checking one row takes ten seconds.
Simplification in practice
- Expand any brackets using the distributive law, to get a sum of AND terms.
- Look for a variable that appears in two terms, and factor it out.
- Apply the complement law: any bracket containing becomes 1.
- Apply identity and absorption to remove what is left.
- Verify with a truth table. If the original and simplified expressions do not match on every row, you made an error.
Why this earns its place
Consider . As written, that is two AND gates, one inverter and one OR gate — four gates. Factor out A to get , then apply the complement law to get , and the identity law to get simply . Four gates become a wire. The output never depended on B at all, which the original expression hid completely.
- 4 gates, 2 chips
- Propagation delay through three levels
- More power, more board area, more to fail
- A single wire
- No delay
- Nothing to fail