Boolean Algebra and Lattices - Applications
De Morgan's Laws are fundamental for manipulating Boolean expressions and understanding the duality between operations.
For elements in a Boolean algebra:
Proof:
We prove the first law; the second follows by duality.
We show by proving each side is the complement of .
Part 1: Show .
(by associativity and commutativity)
(by distributivity)
(by complement law and identity)
(by associativity, complement law, and zero law)
Part 2: Show .
(by distributivity)
(by associativity and commutativity)
(by complement law and identity)
Since satisfies both conditions for being the complement of , and complements are unique in Boolean algebras, we have:
The second law follows symmetrically or by applying duality.
De Morgan's laws enable converting between NAND/NOR implementations:
So a 3-input NAND gate equals a 3-input NOR gate with inverted inputs. This flexibility helps optimize circuits for available gate types and power consumption.
For sets: and
To find elements NOT in both and : take elements not in OR not in .
De Morgan's laws extend to infinite collections in set theory: and . In logic, they connect conjunction/disjunction with negation, enabling conversion between DNF and CNF. In probability, they relate events: . The laws reveal the duality structure underlying Boolean algebra, where AND and OR are dual operations.