Boolean Algebra
Digital Logic 101 · 12 min read
Postulates and identities
| Name | AND form | OR form |
|---|---|---|
| Identity | A · 1 = A | A + 0 = A |
| Annihilator | A · 0 = 0 | A + 1 = 1 |
| Idempotence | A · A = A | A + A = A |
| Complement | A · A' = 0 | A + A' = 1 |
| Double negation | (A')' = A | |
| 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) |
| DeMorgan | (A · B)' = A' + B' | (A + B)' = A' · B' |
| Absorption | A · (A + B) = A | A + A·B = A |
Boolean algebra is the algebra of two values, , with two binary operations ( for AND, for OR) and one unary operation ( for NOT, sometimes written ).
Every identity comes in a pair. Swap and in any true statement and the result is also true — this is the duality principle.
DeMorgan’s theorems
and . Negation distributes over AND/OR by flipping the operator. In CMOS this lets you redraw any AND-OR network as a NAND-NAND network without changing the function — useful because NAND is cheaper to fabricate.
Absorption
| A | B | A·B | F = A + A·B | G = A |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 0 | 0 |
| 1 | 0 | 0 | 1 | 1 |
| 1 | 1 | 1 | 1 | 1 |
and . The shorter term "absorbs" the longer one whenever they share a literal.
Consensus theorem
. The third term BC is the consensus of the first two, and it can be removed without changing the function. This one is harder to spot by eye — Karnaugh maps make it obvious because consensus terms sit on a diagonal in the K-map.
Worked simplification
F = A·B + A·B' + A'·B| Step | Expression | Identity used |
|---|---|---|
| 1 | A·(B + B') + A'·B | Distributive (factor A) |
| 2 | A·1 + A'·B | Complement (B + B' = 1) |
| 3 | A + A'·B | Identity (A·1 = A) |
| 4 | A + B | Absorption (A + A'·B = A + B) |
F = A + B