Math 2.0

Order, lattices, ordered algebraic structures Proof

Proof of De Morgan's laws in a Boolean algebra

Builds on Boolean algebra

Proof

We show that ¬a∧¬b\neg a \wedge \neg b is a complement of a∨ba \vee b, and then use that complements are unique. All axioms quoted are those of the definition of a Boolean algebra AA.

  1. Let u∈Au \in A. By commutativity and the identity axiom, 0∨u=u0 \vee u = u and 1∧u=u1 \wedge u = u.
  2. Let u∈Au \in A. Absorption gives 0∧(0∨u)=00 \wedge (0 \vee u) = 0. By step 1, 0∨u=u0 \vee u = u, so 0∧u=00 \wedge u = 0.
  3. In the same way, absorption gives 1∨(1∧u)=11 \vee (1 \wedge u) = 1. By step 1, 1∧u=u1 \wedge u = u, so 1∨u=11 \vee u = 1.
  4. Uniqueness of complements. Let u,x∈Au, x \in A with u∨x=1u \vee x = 1 and u∧x=0u \wedge x = 0. We claim x=¬ux = \neg u.
  5. By the identity, complement and distributive axioms, x=x∧1=x∧(u∨¬u)=(x∧u)∨(x∧¬u)x = x \wedge 1 = x \wedge (u \vee \neg u) = (x \wedge u) \vee (x \wedge \neg u).
  6. By commutativity, x∧u=u∧x=0x \wedge u = u \wedge x = 0. So by step 1, step 5 gives x=x∧¬ux = x \wedge \neg u.
  7. In the same way, ¬u=¬u∧(u∨x)=(¬u∧u)∨(¬u∧x)=0∨(¬u∧x)=¬u∧x\neg u = \neg u \wedge (u \vee x) = (\neg u \wedge u) \vee (\neg u \wedge x) = 0 \vee (\neg u \wedge x) = \neg u \wedge x. Here ¬u∧u=u∧¬u=0\neg u \wedge u = u \wedge \neg u = 0.
  8. By commutativity, x∧¬u=¬u∧xx \wedge \neg u = \neg u \wedge x. So steps 6 and 7 give x=¬ux = \neg u, which proves the claim of step 4.
  9. Now fix a,b∈Aa, b \in A. By associativity and commutativity of ∨\vee, (a∨b)∨¬a=(a∨¬a)∨b=1∨b(a \vee b) \vee \neg a = (a \vee \neg a) \vee b = 1 \vee b. By step 3 this is 11.
  10. In the same way, (a∨b)∨¬b=a∨(b∨¬b)=a∨1=1∨a=1(a \vee b) \vee \neg b = a \vee (b \vee \neg b) = a \vee 1 = 1 \vee a = 1.
  11. By distributivity, (a∨b)∨(¬a∧¬b)=((a∨b)∨¬a)∧((a∨b)∨¬b)(a \vee b) \vee (\neg a \wedge \neg b) = ((a \vee b) \vee \neg a) \wedge ((a \vee b) \vee \neg b). By steps 9 and 10 this is 1∧1=11 \wedge 1 = 1.
  12. By associativity and commutativity of ∧\wedge, (¬a∧¬b)∧a=(a∧¬a)∧¬b=0∧¬b(\neg a \wedge \neg b) \wedge a = (a \wedge \neg a) \wedge \neg b = 0 \wedge \neg b. By step 2 this is 00.
  13. In the same way, (¬a∧¬b)∧b=¬a∧(b∧¬b)=¬a∧0=0∧¬a=0(\neg a \wedge \neg b) \wedge b = \neg a \wedge (b \wedge \neg b) = \neg a \wedge 0 = 0 \wedge \neg a = 0.
  14. By commutativity and distributivity, (a∨b)∧(¬a∧¬b)=((¬a∧¬b)∧a)∨((¬a∧¬b)∧b)(a \vee b) \wedge (\neg a \wedge \neg b) = ((\neg a \wedge \neg b) \wedge a) \vee ((\neg a \wedge \neg b) \wedge b). By steps 12 and 13 this is 0∨0=00 \vee 0 = 0.
  15. By steps 11 and 14, the element x=¬a∧¬bx = \neg a \wedge \neg b satisfies the hypotheses of step 4 with u=a∨bu = a \vee b. So ¬(a∨b)=¬a∧¬b\neg(a \vee b) = \neg a \wedge \neg b.
  16. For the second law, we check that ¬a∨¬b\neg a \vee \neg b is a complement of a∧ba \wedge b. By commutativity and distributivity, (a∧b)∨(¬a∨¬b)=((¬a∨¬b)∨a)∧((¬a∨¬b)∨b)(a \wedge b) \vee (\neg a \vee \neg b) = ((\neg a \vee \neg b) \vee a) \wedge ((\neg a \vee \neg b) \vee b).
  17. By associativity and commutativity, (¬a∨¬b)∨a=(a∨¬a)∨¬b=1∨¬b=1(\neg a \vee \neg b) \vee a = (a \vee \neg a) \vee \neg b = 1 \vee \neg b = 1, using step 3.
  18. In the same way, (¬a∨¬b)∨b=¬a∨(b∨¬b)=¬a∨1=1∨¬a=1(\neg a \vee \neg b) \vee b = \neg a \vee (b \vee \neg b) = \neg a \vee 1 = 1 \vee \neg a = 1.
  19. By steps 16 to 18, (a∧b)∨(¬a∨¬b)=1∧1=1(a \wedge b) \vee (\neg a \vee \neg b) = 1 \wedge 1 = 1.
  20. By distributivity, (a∧b)∧(¬a∨¬b)=((a∧b)∧¬a)∨((a∧b)∧¬b)(a \wedge b) \wedge (\neg a \vee \neg b) = ((a \wedge b) \wedge \neg a) \vee ((a \wedge b) \wedge \neg b).
  21. By associativity and commutativity, (a∧b)∧¬a=(a∧¬a)∧b=0∧b=0(a \wedge b) \wedge \neg a = (a \wedge \neg a) \wedge b = 0 \wedge b = 0, using step 2.
  22. In the same way, (a∧b)∧¬b=a∧(b∧¬b)=a∧0=0∧a=0(a \wedge b) \wedge \neg b = a \wedge (b \wedge \neg b) = a \wedge 0 = 0 \wedge a = 0.
  23. By steps 20 to 22, (a∧b)∧(¬a∨¬b)=0∨0=0(a \wedge b) \wedge (\neg a \vee \neg b) = 0 \vee 0 = 0.
  24. By steps 19 and 23 and step 4 with u=a∧bu = a \wedge b, we get ¬(a∧b)=¬a∨¬b\neg(a \wedge b) = \neg a \vee \neg b. This proves both laws for all a,b∈Aa, b \in A.

Idea

An element has only one complement: one element that joins with it to 11 and meets it in 00. So to find ¬(a∨b)\neg(a \vee b) it is enough to guess a candidate and check the two complement equations. The candidate ¬a∧¬b\neg a \wedge \neg b passes both checks by distributivity, and the second law works the same way with the roles of ∧\wedge and ∨\vee swapped.

Reading path

To understand this page from the ground up, read these 2 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Boolean algebra definition
  2. Proof of De Morgan's laws in a Boolean algebra proof

Where this leads

3 pages build on this one.

Further reading

  1. Web https://proofwiki.org/wiki/De_Morgan's_Laws_(Boolean_Algebras)
About this page
TagMMJ1K96P8V
URIm2://MMJ1K96P8V
Kindproof
WritingW0 stub
MSC06E05
ProvesDe Morgan's laws in a Boolean algebra
UsesBoolean algebra
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.