Boolean Algebra Laws
Context: FIT1058_MOC · FIT1047_MOC · the equivalences that govern connectives · proved by truth tables · the logical mirror of set algebra · used to simplify and to build normal forms — and, in FIT1047, to shrink circuits before Karnaugh Maps make it systematic
Quick Revision
- 🎯 Objective: equivalences transforming one Boolean expression into another ➔ simplify, or decide equivalence without a full truth table.
- 📦 Core Components: commutative / associative / idempotent / complement / identity / null / absorption / distributive / De Morgan.
- ⚡ Key Constraint: two distributive laws (unlike numbers); same laws as set algebra; simpler expression ⟹ simpler circuit.
📝 Core
1. Tautology & Equivalence
- Tautology ➔ always true (truth-table column all T).
- Logically equivalent () ➔ identical truth tables ⟺ a tautology.
- Laws ➔ standard equivalences to rewrite Boolean expressions; each is universally true (“law of nature” for logic).
2. The Dual Laws
- Paired forms ➔ each -law has a -dual (commutative, associative, idempotent, complement/inverse, identity, null/annihilator, absorption, double complement).
- Distributive (both ways) ➔ and .
- De Morgan ➔ , .
3. Reducing Other Connectives
- Implication ➔ .
- Biconditional ➔ .
- Xor ➔ ➔ shows suffices (Universal Sets of Operations).
4. Circuit Notation & Why Simplify (FIT1047)
- Engineering notation ➔ AND: (or ) · OR: (or ) · NOT: (or ) · constants for T/F.
- Precedence ➔ NOT binds tightest, then AND, then OR: reads .
- Law names in circuit dress ➔ Identity , · Null , · Idempotent · Inverse , · Absorption , · De Morgan .
- Why simplify ➔ simpler expression ⟹ simpler circuit ⟹ cheaper, smaller, more power-efficient, faster — the whole point of the algebra in hardware.
- Limit of hand algebra ➔ law-chasing is unsystematic; Karnaugh Maps give a guaranteed-minimal method for ≤6 variables.
⚖️ Core Decision Matrix
| Use | Goal | Tool |
|---|---|---|
| simplify | smaller equivalent | apply laws left-to-right |
| decide equivalence | avoid full truth table | reduce both to a normal form |
| set analogue | transfer results | , , complement |
| minimise a circuit | guaranteed simplest SOP | Karnaugh Maps (systematic) over ad-hoc laws |
When It Flips: every law mirrors a set law under , , complement, , — so set and logical De Morgan are the same statements.
📊 Exam Execution Trace
Manual Execution Trace
Simplify :
| Step / State | Expression | Law used |
|---|---|---|
| 0 (Init) | — | |
| 1 | distributive | |
| 2 | complement | |
| 3 | identity |
⚠️ Common Mistakes
- 💡 Logic has TWO distributive laws ➔ both directions hold; number algebra only has over ().
- 💡 Precedence slips in circuit notation ➔ — the bar’s extent matters; De Morgan converts between them at the cost of swapping the operator.
🧠 Active Recall
Define tautology and logical equivalence, and how they relate.
- Hint: All-true vs identical tables.
Answer
- Short answer: Tautology = truth table all T; = identical truth tables.
- Why: Link ➔ iff is a tautology.
Why does propositional logic have two distributive laws while number algebra has one?
- Hint: self-duality.
Answer
- Short answer: Both over and over hold; arithmetic only has over .
- Why: Structural duality ➔ Boolean algebra’s paired-column symmetry (also De Morgan) is absent from numbers.
Rewrite and using only .
- Hint: Reduce to a functionally complete set.
Answer
- Short answer: ; .
- Why: Sugar over ➔ with , all connectives reduce to this set (Universal Sets of Operations).
(FIT1047) Why does a hardware engineer care about these laws at all?
- Hint: Expression size ⟹ circuit cost.
Answer
- Short answer: Each operator becomes a gate; a smaller equivalent expression means fewer gates ⟹ cheaper, smaller, cooler, faster silicon.
- Why: Equivalence-preserving rewriting ➔ the simplified circuit computes the identical truth table, verified row-by-row or by the laws used.