Universal Sets of Operations
Context: FIT1058_MOC · an operation set that can express every Boolean expression · follows from DNF/CNF · motivates simple logic gates
Quick Revision
- 🎯 Objective: an operation set expressing every Boolean expression ➔ functional completeness.
- 📦 Core Components: (from DNF/CNF) ➔ shrink via De Morgan to or .
- ⚡ Key Constraint: alone (unary) and (no negation) are not universal; NAND/NOR alone are.
📝 Core
1. Universality (Functional Completeness)
- Definition ➔ set is universal if every Boolean expression equals one using only ‘s operations + variables.
- Baseline ➔ every expression has a DNF/CNF using only ⟹ universal.
2. Shrinking the Set
- De Morgan trades ➔ , .
- Drop one ➔ and are each universal (keep ).
- Not minimal via others ➔ already reduce to .
3. Why It Matters (Gates)
- Circuits ➔ Boolean expressions realise as logic-gate circuits.
- Few types ➔ a small universal set ⟹ fewer component types ⟹ cheaper, easier to verify.
- Single gate ➔ NAND or NOR is universal alone ⟹ chips often built from one gate type.
Key identities:
⚖️ Core Decision Matrix
| Set | Universal? | Reason |
|---|---|---|
| ✅ | DNF/CNF use only these | |
| , | ✅ | De Morgan drops one |
| ❌ | no way to negate | |
| ❌ | unary — can’t combine | |
| NAND, NOR | ✅ | each expresses |
When It Flips: universality guarantees expressibility, not minimal circuit size — a single-gate realisation may need more gates/longer chains than a mixed set. Trade-off: fewer component types (manufacturing) vs circuit depth.
📊 Exam Execution Trace
Applied Exercise
Problem: Express in and explain why fails. Derivation Proof / Hand-Calculation Walkthrough:
Final Extracted Output: universal; not — it cannot flip a value.
⚠️ Common Mistakes
- 💡 A universal singleton must be binary ➔ can’t combine two variables; can’t flip a value (any of stays T when is T), so negation is indispensable.
🧠 Active Recall
Why is universal, and how do you shrink it to two operations?
- Hint: DNF/CNF + De Morgan.
Answer
- Short answer: Every expression has a DNF/CNF over ; De Morgan rewrites one binary op via the other.
- Why: Drop or ➔ and each remain universal.
Why can't or be universal, and why does universality matter for circuits?
- Hint: Arity and negation.
Answer
- Short answer: is unary (can’t combine); can’t build .
- Why: Simple hardware ➔ NAND/NOR are each universal alone, so chips use few, mass-produced gate types.