TheoremComplete

Boolean Algebra and Lattices - Applications

De Morgan's Laws are fundamental for manipulating Boolean expressions and understanding the duality between operations.

DefinitionDe Morgan's Laws

For elements a,ba, b in a Boolean algebra: ¬(ab)=¬a¬b\neg(a \land b) = \neg a \lor \neg b ¬(ab)=¬a¬b\neg(a \lor b) = \neg a \land \neg b

Proof:

We prove the first law; the second follows by duality.

We show ¬(ab)=¬a¬b\neg(a \land b) = \neg a \lor \neg b by proving each side is the complement of aba \land b.

Part 1: Show (¬a¬b)(ab)=0(\neg a \lor \neg b) \land (a \land b) = 0.

(¬a¬b)(ab)=[(¬a¬b)a]b(\neg a \lor \neg b) \land (a \land b) = [(\neg a \lor \neg b) \land a] \land b (by associativity and commutativity)

=[(¬aa)(¬ba)]b= [(\neg a \land a) \lor (\neg b \land a)] \land b (by distributivity)

=[0(¬ba)]b=(¬ba)b= [0 \lor (\neg b \land a)] \land b = (\neg b \land a) \land b (by complement law and identity)

=a(¬bb)=a0=0= a \land (\neg b \land b) = a \land 0 = 0 (by associativity, complement law, and zero law)

Part 2: Show (¬a¬b)(ab)=1(\neg a \lor \neg b) \lor (a \land b) = 1.

(¬a¬b)(ab)=[¬a¬ba][¬a¬bb](\neg a \lor \neg b) \lor (a \land b) = [\neg a \lor \neg b \lor a] \land [\neg a \lor \neg b \lor b] (by distributivity)

=[(¬aa)¬b][¬a(¬bb)]= [(\neg a \lor a) \lor \neg b] \land [\neg a \lor (\neg b \lor b)] (by associativity and commutativity)

=[1¬b][¬a1]=11=1= [1 \lor \neg b] \land [\neg a \lor 1] = 1 \land 1 = 1 (by complement law and identity)

Since ¬a¬b\neg a \lor \neg b satisfies both conditions for being the complement of aba \land b, and complements are unique in Boolean algebras, we have: ¬(ab)=¬a¬b\neg(a \land b) = \neg a \lor \neg b

The second law follows symmetrically or by applying duality. \square

ExampleCircuit Simplification

De Morgan's laws enable converting between NAND/NOR implementations:

¬(abc)=¬a¬b¬c\neg(a \land b \land c) = \neg a \lor \neg b \lor \neg c

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.

ExampleSet Theory Application

For sets: AB=AB\overline{A \cap B} = \overline{A} \cup \overline{B} and AB=AB\overline{A \cup B} = \overline{A} \cap \overline{B}

To find elements NOT in both AA and BB: take elements not in AA OR not in BB.

Remark

De Morgan's laws extend to infinite collections in set theory: iIAi=iIAi\overline{\bigcap_{i \in I} A_i} = \bigcup_{i \in I} \overline{A_i} and iIAi=iIAi\overline{\bigcup_{i \in I} A_i} = \bigcap_{i \in I} \overline{A_i}. In logic, they connect conjunction/disjunction with negation, enabling conversion between DNF and CNF. In probability, they relate events: P(AB)=1P(AB)P(A \cup B) = 1 - P(\overline{A} \cap \overline{B}). The laws reveal the duality structure underlying Boolean algebra, where AND and OR are dual operations.