The Algebra of Sets

Can the manipulation of sets be reduced to a small list of rules? Arithmetic reduces to a handful of laws about ++ and ×\times. This question drives the algebra of sets. It rests on a finite catalogue of identities. These include commutative, associative, distributive, identity, and absorption laws. From these, every other true identity about unions, intersections, and complements can be derived. This is done by pure symbol-pushing. The payoff is enormous economy of thought. One need not draw Venn diagrams or chase elements through quantifiers every time. This applies whenever a new set expression appears. Instead, one recognizes the expression as an instance of a known algebraic pattern. Then one rewrites it directly. The deeper reason this works involves a specific structure. (P(U),∪,∩,c,∅,U)(\mathcal{P}(U), \cup, \cap, {}^c, \emptyset, U) is the power set of a universe UU. It comes equipped with union, intersection, and complement. This structure obeys exactly the axioms of a Boolean algebra. This is the same abstract structure that governs propositional logic. There, ∨,∧,¬\vee, \wedge, \neg replace ∪,∩,c\cup, \cap, {}^c. It also governs digital circuit design, with OR, AND, NOT gates. Recognizing set algebra as an instance of Boolean algebra explains something important. It explains why the laws come in their particular symmetric pattern. Each law has a "dual." This dual is obtained by swapping ∪↔∩\cup \leftrightarrow \cap and ∅↔U\emptyset \leftrightarrow U. Duality itself becomes a theorem rather than a coincidence. This article organizes the laws of set operations into a single coherent system. It proves the two least obvious members of that system: distributivity and absorption. These are proved with full rigor from the definition of set membership. The article also shows how the whole toolkit lets one derive further identities. This includes De Morgan's Laws for Sets. All this happens without ever again writing "let x∈…x \in \ldots." We build on the element-chasing method of Proving Set Identities. But the point of this article is to graduate from that method. We aim for a higher level of abstraction. Identities become algebraic laws to be composed. They are not just facts to be verified one at a time. By the end, you will have a complete axiomatic picture of set algebra. You will also gain a proof technique: the algebraic proof, chaining named laws. This technique sits alongside element-chasing and Venn diagrams. Finally, you will find a bridge toward the next natural object of study. That object is the Power Sets on which this whole algebra lives.

Key takeaways
  • Set union and intersection satisfy commutative, associative, and distributive laws, exactly mirroring ++ and ×\times in arithmetic — except intersection distributes over union and union distributes over intersection.
  • Identity elements exist: ∅\emptyset is identity for ∪\cup, and the universe UU is identity for ∩\cap.
  • Absorption laws (A∪(A∩B)=AA \cup (A \cap B) = A and A∩(A∪B)=AA \cap (A \cup B) = A) have no arithmetic analogue and are the signature of Boolean structure.
  • Every law has a dual: swap ∪↔∩\cup \leftrightarrow \cap and ∅↔U\emptyset \leftrightarrow U, and the result is also a theorem — this is the Duality Principle.
  • Once the laws are established, complicated set identities can be proved by algebraic rewriting alone, without chasing individual elements.
  • Key idea: the operations ∪,∩,c\cup, \cap, {}^c on P(U)\mathcal{P}(U) form a Boolean algebra, and every set identity is a formal consequence of a short, symmetric list of axioms.

Where this lives today

The algebra of sets is not a museum piece — it is the working vocabulary of several fields. In propositional logic, the exact same laws reappear with ∨,∧,¬\vee, \wedge, \neg replacing ∪,∩,c\cup, \cap, {}^c and tautology/contradiction replacing U,∅U, \emptyset; simplifying a logical formula and simplifying a set expression are, formally, the same computation, which is why studying set algebra pays double dividends for a course that later covers logical equivalence. In digital circuit design and computer engineering, absorption and distributive laws are used daily to minimize the number of logic gates in a circuit, directly reducing manufacturing cost and power consumption — Boolean minimization software (like the Quine–McCluskey algorithm) is essentially automated application of these laws. In database theory, query optimizers rewrite relational algebra expressions (which include set-like operations such as intersection, union, and selection) using distributive-style laws to push filters as early as possible in a query plan, directly speeding up database performance. In probability theory and measure theory, the algebra of events (subsets of a sample space) obeys precisely these laws, underlying identities like inclusion–exclusion; and in topology, open and closed sets satisfy the union/intersection half of this algebra (though not full complementation symmetry in general), so recognizing which laws survive and which don't is itself a diagnostic tool. Finally, this algebra is the direct staircase up to Power Sets: once you know P(U)\mathcal{P}(U) carries this rich algebraic structure, the natural next question is what P(U)\mathcal{P}(U) looks like as a set in its own right — its size, its own subsets, and its role in building even larger universes.

Ask the tutor: Can you show me, step by step, how to derive the associative law for ∪\cup as a consequence of the other axioms, without assuming it directly?

DefinitionThe Algebra of Sets

Fix a universal set UU, and let A,B,CA, B, C range over subsets of UU (elements of P(U)\mathcal{P}(U)). The algebra of sets is the structure

(P(U), ∪, ∩, c, ∅, U)\big(\mathcal{P}(U),\ \cup,\ \cap,\ {}^c,\ \emptyset,\ U\big)

together with the following laws, each holding for all A,B,C∈P(U)A, B, C \in \mathcal{P}(U):

Commutative laws

A∪B=B∪A,A∩B=B∩A.A \cup B = B \cup A, \qquad A \cap B = B \cap A.

Associative laws

(A∪B)∪C=A∪(B∪C),(A∩B)∩C=A∩(B∩C).(A \cup B) \cup C = A \cup (B \cup C), \qquad (A \cap B) \cap C = A \cap (B \cap C).

Distributive laws

A∩(B∪C)=(A∩B)∪(A∩C),A∪(B∩C)=(A∪B)∩(A∪C).A \cap (B \cup C) = (A \cap B) \cup (A \cap C), \qquad A \cup (B \cap C) = (A \cup B) \cap (A \cup C).

Identity laws

A∪∅=A,A∩U=A.A \cup \emptyset = A, \qquad A \cap U = A.

Complement laws

A∪Ac=U,A∩Ac=∅.A \cup A^c = U, \qquad A \cap A^c = \emptyset.

Idempotent laws

A∪A=A,A∩A=A.A \cup A = A, \qquad A \cap A = A.

Absorption laws

A∪(A∩B)=A,A∩(A∪B)=A.A \cup (A \cap B) = A, \qquad A \cap (A \cup B) = A.

Domination (annihilator) laws

A∪U=U,A∩∅=∅.A \cup U = U, \qquad A \cap \emptyset = \emptyset.

Together with De Morgan's laws (A∪B)c=Ac∩Bc(A\cup B)^c = A^c \cap B^c and (A∩B)c=Ac∪Bc(A \cap B)^c = A^c \cup B^c, these constitute a complete axiomatization: any true equation between set expressions built from ∪,∩,c,∅,U\cup, \cap, {}^c, \emptyset, U and variables is derivable from this list by substitution and equational reasoning, without ever mentioning elements.

Intuition

The best way to feel the algebra of sets is to notice how much of it you already know from ordinary arithmetic, and then to notice exactly where the analogy breaks — because that break is where the interesting Boolean structure lives. Union behaves like addition and intersection like multiplication: both are commutative, both are associative, and intersection distributes over union just as multiplication distributes over addition (a(b+c)=ab+aca(b+c) = ab+ac). The identity element for union (∅\emptyset, "add nothing") plays the role of 00, and the identity element for intersection (UU, "restrict to everything") plays the role of 11. But arithmetic has no analogue of the second distributive law A∪(B∩C)=(A∪B)∩(A∪C)A \cup (B\cap C) = (A\cup B)\cap(A \cup C) — you cannot generally write a+(b⋅c)=(a+b)(a+c)a + (b \cdot c) = (a+b)(a+c) for numbers. Nor does arithmetic have absorption: a+(a⋅b)≠aa + (a \cdot b) \neq a in general (try a=2,b=3a=2, b=3: 2+6=8≠22 + 6 = 8 \ne 2), yet A∪(A∩B)=AA \cup (A \cap B) = A always holds for sets. These extra symmetries are what make P(U)\mathcal{P}(U) a genuine Boolean algebra rather than merely a ring: every law has a mirror-image dual law, obtained by swapping ∪↔∩\cup \leftrightarrow \cap and ∅↔U\emptyset \leftrightarrow U. This pairing is not decorative — it is a theorem (the Duality Principle) that we prove below, and it halves the work of building the whole system. Absorption is the law that most needs a picture, since it has no numeric shadow. The picture below shows why A∪(A∩B)=AA \cup (A \cap B) = A: the region A∩BA \cap B is already entirely contained inside AA, so throwing it into a union with AA adds nothing new.

Figure
Absorption law: A∪(A∩B)=AA \cup (A \cap B) = A, since A∩B⊆AA \cap B \subseteq A
A B A ∩ B A ∪ (A ∩ B) = A (the lens A∩B contributes nothing new)

The second figure lays out the whole system as a lattice-style duality table: reading down the left column and swapping ∪↔∩\cup\leftrightarrow\cap, ∅↔U\emptyset\leftrightarrow U gives exactly the right column, law for law.

Figure
Duality between the two families of laws
∪ / ∅ side ∩ / U side A ∪ B = B ∪ A A ∩ B = B ∩ A A ∪ ∅ = A A ∩ U = A A ∪ Aᶜ = U A ∩ Aᶜ = ∅ A ∪ (A ∩ B) = A A ∩ (A ∪ B) = A A ∪ U = U A ∩ ∅ = ∅ swap ∪↔∩ and ∅↔U row by row
TheoremAlgebra of Sets: Distributive, Absorption, and Duality Laws

Let UU be a set and let A,B,C⊆UA, B, C \subseteq U be arbitrary. Then: 1. (Distributivity)

A∩(B∪C)=(A∩B)∪(A∩C),A \cap (B \cup C) = (A \cap B) \cup (A \cap C),
A∪(B∩C)=(A∪B)∩(A∪C).A \cup (B \cap C) = (A \cup B) \cap (A \cup C).

2. (Absorption)

A∪(A∩B)=A,A∩(A∪B)=A.A \cup (A \cap B) = A, \qquad A \cap (A \cup B) = A.

3. (Duality Principle) Let EE and E′E' be set expressions built from variables A1,…,AnA_1,\dots,A_n, the symbols ∪\cup, ∩\cap, and (possibly) the constants ∅,U\emptyset, U, such that E′E' is obtained from EE by simultaneously replacing every ∪\cup by ∩\cap, every ∩\cap by ∪\cup, every ∅\emptyset by UU, and every UU by ∅\emptyset. If the equation E1=E2E_1 = E_2 is derivable from the axioms of the algebra of sets (the laws listed in the definition above, excluding domination which we derive), then so is the dual equation E1′=E2′E_1' = E_2'.

Proof

We give a complete element-chasing proof of (1) and (2) directly from the definition of set membership, and then a separate structural proof of (3) that does not presuppose (3) anywhere (non-circular), using only the syntactic symmetry of the axiom list.

Proof of distributivity, first law. We show A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C) by mutual inclusion, the standard technique for proving set equality (justified because two sets are equal iff each is a subset of the other, by Proving Set Identities). (⊆\subseteq) Let x∈A∩(B∪C)x \in A \cap (B \cup C). By definition of intersection, x∈Ax \in A and x∈B∪Cx \in B \cup C. By definition of union, x∈Bx \in B or x∈Cx \in C.

  • Case x∈Bx \in B: then x∈Ax \in A and x∈Bx \in B, so x∈A∩Bx \in A \cap B, hence x∈(A∩B)∪(A∩C)x \in (A\cap B) \cup (A \cap C).
  • Case x∈Cx \in C: then x∈Ax \in A and x∈Cx \in C, so x∈A∩Cx \in A \cap C, hence x∈(A∩B)∪(A∩C)x \in (A\cap B)\cup(A\cap C).

In either case x∈(A∩B)∪(A∩C)x \in (A \cap B) \cup (A \cap C). Since xx was arbitrary, A∩(B∪C)⊆(A∩B)∪(A∩C)A \cap (B\cup C) \subseteq (A\cap B)\cup(A\cap C). (⊇\supseteq) Let x∈(A∩B)∪(A∩C)x \in (A \cap B) \cup (A \cap C). Then x∈A∩Bx \in A \cap B or x∈A∩Cx \in A \cap C.

  • Case x∈A∩Bx \in A \cap B: then x∈Ax \in A and x∈Bx \in B, so in particular x∈B∪Cx \in B \cup C, giving x∈A∩(B∪C)x \in A \cap (B \cup C).
  • Case x∈A∩Cx \in A \cap C: then x∈Ax \in A and x∈Cx \in C, so x∈B∪Cx \in B \cup C, giving x∈A∩(B∪C)x \in A \cap (B\cup C).

Either way x∈A∩(B∪C)x \in A \cap (B \cup C), so (A∩B)∪(A∩C)⊆A∩(B∪C)(A\cap B)\cup(A\cap C) \subseteq A \cap (B \cup C). Both inclusions hold, so the two sets are equal.

Proof of distributivity, second law. We show A∪(B∩C)=(A∪B)∩(A∪C)A \cup (B \cap C) = (A \cup B) \cap (A \cup C), again by mutual inclusion. (⊆\subseteq) Let x∈A∪(B∩C)x \in A \cup (B \cap C), so x∈Ax \in A or x∈B∩Cx \in B \cap C.

  • Case x∈Ax \in A: then x∈A∪Bx \in A \cup B (since x∈Ax \in A) and x∈A∪Cx \in A \cup C (since x∈Ax \in A), so x∈(A∪B)∩(A∪C)x \in (A\cup B)\cap(A\cup C).
  • Case x∈B∩Cx \in B \cap C: then x∈Bx \in B and x∈Cx \in C. From x∈Bx \in B we get x∈A∪Bx \in A \cup B; from x∈Cx \in C we get x∈A∪Cx \in A \cup C. Hence x∈(A∪B)∩(A∪C)x \in (A \cup B) \cap (A \cup C).

In both cases x∈(A∪B)∩(A∪C)x \in (A\cup B) \cap (A \cup C), giving the first inclusion. (⊇\supseteq) Let x∈(A∪B)∩(A∪C)x \in (A \cup B) \cap (A \cup C), so x∈A∪Bx \in A \cup B and x∈A∪Cx \in A \cup C. If x∈Ax \in A, then immediately x∈A∪(B∩C)x \in A \cup (B \cap C), and we are done. So suppose x∉Ax \notin A. Since x∈A∪Bx \in A \cup B and x∉Ax \notin A, we must have x∈Bx \in B (as x∈A∪Bx \in A \cup B means x∈Ax\in A or x∈Bx \in B, and the first disjunct fails). Similarly, since x∈A∪Cx \in A \cup C and x∉Ax \notin A, we get x∈Cx \in C. Thus x∈Bx \in B and x∈Cx \in C, i.e. x∈B∩Cx \in B \cap C, so x∈A∪(B∩C)x \in A \cup (B \cap C). In every case x∈A∪(B∩C)x \in A \cup (B\cap C), giving the second inclusion. Both hold, so the sets are equal. ■\blacksquare (distributivity)

Proof of absorption, first law: A∪(A∩B)=AA \cup (A \cap B) = A. (⊆\subseteq) Let x∈A∪(A∩B)x \in A \cup (A \cap B). Then x∈Ax \in A or x∈A∩Bx \in A \cap B. If x∈A∩Bx \in A \cap B then in particular x∈Ax \in A (definition of intersection). So in either case x∈Ax \in A. Hence A∪(A∩B)⊆AA \cup (A\cap B) \subseteq A. (⊇\supseteq) Let x∈Ax \in A. Then trivially x∈A∪(A∩B)x \in A \cup (A \cap B), since x∈Ax \in A is one of the two disjuncts defining that union. Hence A⊆A∪(A∩B)A \subseteq A \cup (A \cap B). Both inclusions give equality.

Proof of absorption, second law: A∩(A∪B)=AA \cap (A \cup B) = A. (⊆\subseteq) Let x∈A∩(A∪B)x \in A \cap (A \cup B). By definition of intersection, x∈Ax \in A (and also x∈A∪Bx \in A \cup B, which we don't need). So A∩(A∪B)⊆AA \cap (A \cup B) \subseteq A. (⊇\supseteq) Let x∈Ax \in A. Then x∈A∪Bx \in A \cup B as well (since x∈Ax \in A satisfies the disjunction). So x∈Ax \in A and x∈A∪Bx \in A \cup B, hence x∈A∩(A∪B)x \in A \cap (A \cup B). So A⊆A∩(A∪B)A \subseteq A \cap (A \cup B). Both inclusions give equality. ■\blacksquare (absorption)

Proof of the Duality Principle. This is a proof by structural induction on the length of a derivation, using the syntactic symmetry of the axiom list — a technique sometimes called a "meta-proof," since it is a proof about the proof system rather than a proof inside it. Observe first, by direct inspection of the axiom list in the definition, that the axioms come in dual pairs: each commutative law is the dual of the other commutative law, each associative law the dual of the other, each distributive law the dual of the other (this is exactly what we proved above — both distributive laws hold, so the pairing is not vacuous), each identity law the dual of the other, each complement law the dual of the other, each idempotent law the dual of the other, and each absorption law the dual of the other. In every pair, swapping ∪↔∩\cup \leftrightarrow \cap and ∅↔U\emptyset \leftrightarrow U in one member's statement produces exactly the other member's statement. (Check, e.g., the complement laws: dualizing A∪Ac=UA \cup A^c = U swaps ∪→∩\cup\to\cap and U→∅U \to \emptyset, giving A∩Ac=∅A \cap A^c = \emptyset, which is indeed the other complement law.) Now suppose E1=E2E_1 = E_2 has a derivation, i.e., a finite sequence of equations F0=F1,F1=F2,…,Fk−1=FkF_0 = F_1, F_1 = F_2, \dots, F_{k-1} = F_k where F0=E1F_0 = E_1, Fk=E2F_k = E_2, and each step Fi−1=FiF_{i-1} = F_i is obtained either by (a) instantiating one of the axioms (substituting expressions for the variables A,B,CA, B, C in an axiom), or (b) substituting equals for equals inside a larger expression using an equation already derived (this is simply the transitivity and congruence properties of equality, which require no separate justification since they hold in any set-theoretic context by the ordinary logic of equality). We build the dual derivation by dualizing every line: replace each FiF_i by its dual expression Fi′F_i'. We must check each step Fi−1′=Fi′F'_{i-1} = F'_i is still legitimate.

  • If step ii was an instantiation of axiom Ax\mathrm{Ax} with substitution σ\sigma (replacing variables by subexpressions), then dualizing commutes with substitution: the dual of Ax\mathrm{Ax} instantiated by σ\sigma equals the dual axiom Ax′\mathrm{Ax}' instantiated by the dual substitution σ′\sigma' (where σ′\sigma' dualizes each substituted subexpression). This is because dualization is defined by a purely syntactic swap performed uniformly on all occurrences of ∪,∩,∅,U\cup, \cap, \emptyset, U in an expression tree, and substitution simply grafts subexpressions into variable-slots of that tree; performing the swap before or after grafting yields the same tree. Since Ax′\mathrm{Ax}' is itself an axiom (by the dual-pairing observed above), the dualized step Fi−1′=Fi′F'_{i-1} = F'_i is a legitimate instantiation of axiom Ax′\mathrm{Ax}'.
  • If step ii used substitution of equals for equals from a previously derived equation, the dual step uses the dualized previously-derived equation (which is available by the induction hypothesis on shorter derivations) in the same substitutive role; dualizing an expression tree and then substituting a dualized subtree agrees with substituting the original subtree and then dualizing, by the same commutation argument.

By induction on i=0,1,…,ki = 0, 1, \dots, k, each Fi−1′=Fi′F'_{i-1} = F'_i is a legitimate derivation step, so F0′=Fk′F_0' = F_k', i.e. E1′=E2′E_1' = E_2', is derivable. ■\blacksquare

∎
CorollaryDe Morgan's Laws as instances of the algebra

Since (A∪B)c=Ac∩Bc(A \cup B)^c = A^c \cap B^c is dual to (A∩B)c=Ac∪Bc(A \cap B)^c = A^c \cup B^c (swap ∪↔∩\cup \leftrightarrow \cap throughout — complementation is unaffected by the swap since it is not itself one of ∪,∩,∅,U\cup,\cap,\emptyset,U), the Duality Principle shows that once either De Morgan law is established (see De Morgan's Laws for Sets), the other follows automatically without a second element-chase.

Worked examples

Example 1 — simplifying an asymmetric expression by pure algebra. Simplify (A∪(A∩Bc))∩(A∪C)\big(A \cup (A \cap B^c)\big) \cap (A \cup C) using only the named laws, with no element-chasing. Step 1 (absorption, first law, with BB replaced by BcB^c):

A∪(A∩Bc)=A.A \cup (A \cap B^c) = A.

This is a direct instantiation of A∪(A∩B)=AA \cup (A \cap B) = A with the variable BB instantiated to the expression BcB^c; the absorption law holds for all subsets of UU, and BcB^c is a subset of UU, so the instantiation is legitimate. So the original expression becomes

A∩(A∪C).A \cap (A \cup C).

Step 2 (absorption, second law):

A∩(A∪C)=A.A \cap (A \cup C) = A.

Hence

(A∪(A∩Bc))∩(A∪C)=A,\big(A \cup (A \cap B^c)\big) \cap (A \cup C) = A,

for all sets A,B,C⊆UA, B, C \subseteq U — the roles of BB and CC were entirely irrelevant, which the algebraic derivation makes transparent in two lines, whereas an element chase would require unpacking three levels of unions/intersections and a complement. Let's sanity-check with concrete numbers: let U={1,…,10}U = \{1,\dots,10\}, A={1,2,3}A = \{1,2,3\}, B={2,3,4}B = \{2,3,4\}, C={5,6,7}C = \{5,6,7\}. Then Bc={1,5,6,7,8,9,10}B^c = \{1,5,6,7,8,9,10\}, so A∩Bc={1}A \cap B^c = \{1\}, and A∪(A∩Bc)={1,2,3}=AA \cup (A\cap B^c) = \{1,2,3\} = A. Then A∪C={1,2,3,5,6,7}A \cup C = \{1,2,3,5,6,7\}, and A∩(A∪C)={1,2,3}=AA \cap (A\cup C) = \{1,2,3\} = A. Matches the algebraic prediction exactly.

Example 2 — a longer chain combining distributivity, complement, and identity laws. Simplify (A∩B)∪(A∩Bc)∪(Ac∩B)(A \cap B) \cup (A \cap B^c) \cup (A^c \cap B) where A,B⊆UA, B \subseteq U are arbitrary (not assumed disjoint, nested, or otherwise special). Step 1: Group the first two terms and factor by the first distributive law read right-to-left:

(A∩B)∪(A∩Bc)=A∩(B∪Bc).(A \cap B) \cup (A \cap B^c) = A \cap (B \cup B^c).

Step 2: Apply the complement law B∪Bc=UB \cup B^c = U:

A∩(B∪Bc)=A∩U.A \cap (B \cup B^c) = A \cap U.

Step 3: Apply the identity law A∩U=AA \cap U = A:

A∩U=A.A \cap U = A.

So the expression reduces to

A∪(Ac∩B).A \cup (A^c \cap B).

Step 4: Apply the second distributive law read right-to-left, treating this as A∪(Ac∩B)A \cup (A^c \cap B); to use distributivity we first rewrite using the second distributive law in the form A∪(X∩Y)=(A∪X)∩(A∪Y)A \cup (X \cap Y) = (A\cup X)\cap (A \cup Y) with X=AcX = A^c, Y=BY=B:

A∪(Ac∩B)=(A∪Ac)∩(A∪B).A \cup (A^c \cap B) = (A \cup A^c) \cap (A \cup B).

Step 5: Apply the complement law A∪Ac=UA \cup A^c = U and then the identity law U∩(A∪B)=A∪BU \cap (A\cup B) = A \cup B (this uses the identity law in its commuted form, licensed by the commutative law U∩(A∪B)=(A∪B)∩UU \cap (A\cup B) = (A\cup B)\cap U followed by A∩U=AA\cap U = A with AA replaced by A∪BA\cup B):

(A∪Ac)∩(A∪B)=U∩(A∪B)=A∪B.(A \cup A^c) \cap (A \cup B) = U \cap (A \cup B) = A \cup B.

Conclusion:

(A∩B)∪(A∩Bc)∪(Ac∩B)=A∪B.(A\cap B) \cup (A \cap B^c) \cup (A^c \cap B) = A \cup B.

Numerical check: let U={1,…,8}U=\{1,\dots,8\}, A={1,2,3,4}A = \{1,2,3,4\}, B={3,4,5,6}B = \{3,4,5,6\}. Then A∩B={3,4}A \cap B = \{3,4\}, Bc={1,2,7,8}B^c = \{1,2,7,8\} so A∩Bc={1,2}A \cap B^c = \{1,2\}, Ac={5,6,7,8}A^c = \{5,6,7,8\} so Ac∩B={5,6}A^c \cap B = \{5,6\}. The union of these three sets is {3,4}∪{1,2}∪{5,6}={1,2,3,4,5,6}\{3,4\}\cup\{1,2\}\cup\{5,6\} = \{1,2,3,4,5,6\}, which is exactly A∪B={1,2,3,4}∪{3,4,5,6}={1,2,3,4,5,6}A \cup B = \{1,2,3,4\}\cup\{3,4,5,6\} = \{1,2,3,4,5,6\}. Matches, confirming the algebraic derivation with asymmetric, overlapping (non-disjoint, non-nested) sets.

CounterexampleWhy we need a fixed universal set UU

The identity, complement, and domination laws in the theorem all refer to a universal set UU, and the whole apparatus of complementation AcA^c is defined relative to UU (as U∖AU \setminus A). If we drop the hypothesis that all sets under discussion are subsets of a single fixed UU — for instance if we allow AcA^c to mean "the complement of AA within the universe of all sets" — the algebra collapses, because "the set of all sets not in AA" is not a well-defined set at all (this is essentially Russell's Paradox in another guise: the collection of all sets is not itself a set). Concretely: fix no universe, and try to evaluate A∪AcA \cup A^c where A={1,2,3}A = \{1,2,3\} and AcA^c is (mistakenly) interpreted as "everything not in AA," with no ambient UU to bound the discourse. There is no set of "everything," so AcA^c is not a mathematical object, and the complement law A∪Ac=UA \cup A^c = U becomes meaningless — there is no UU for it to equal. Even if one tries to patch this by declaring UU to be, say, Z\mathbb{Z} in one part of an argument and N\mathbb{N} in another, the algebra breaks in a subtler way: with U1={1,2,3,4,5}U_1 = \{1,2,3,4,5\} and A={1,2,3}A = \{1,2,3\}, we get Ac1={4,5}A^{c_1} = \{4,5\}; but with U2={1,2,3,4,5,6,7}U_2 = \{1,2,3,4,5,6,7\} and the same AA, we get Ac2={4,5,6,7}≠Ac1A^{c_2} = \{4,5,6,7\} \ne A^{c_1}. The complement of AA is simply not well-defined without first fixing UU, so identities like De Morgan's laws or the complement laws are only meaningful, and only true, relative to one fixed universal set held constant throughout a derivation.

Scope, edge cases & common traps

SituationWhat happensWhy
A=∅A = \emptysetAll laws still hold; e.g. ∅∪(∅∩B)=∅\emptyset \cup (\emptyset \cap B) = \emptysetAbsorption law has no special-case exclusion; it is proved for all subsets, ∅\emptyset included
A=UA = UAll laws hold; e.g. U∩(U∪B)=UU \cap (U \cup B) = USame universality of the proof — no case was excluded when AA was shown to be arbitrary
A,BA, B disjointDistributive/absorption laws still hold, but do not simplify to anything shorter automaticallyDisjointness is extra information not used in the proofs above; it may enable further simplification only via the specific fact A∩B=∅A \cap B = \emptyset
Confusing ∪\cup-distributivity with only ∩\cap-distributivityAssuming only A∩(B∪C)=(A∩B)∪(A∩C)A\cap(B\cup C)=(A\cap B)\cup(A\cap C) holds and forgetting the second law A∪(B∩C)=(A∪B)∩(A∪C)A \cup (B \cap C) = (A\cup B)\cap(A\cup C)Both laws were proved above; sets are doubly distributive, unlike ordinary arithmetic, where only one distributive law exists
Treating "⊆\subseteq" laws as equalitiesE.g. writing A∪B=AA \cup B = A when only A∪B⊆A∪UA \cup B \subseteq A \cup U was shownOnly prove equality via genuine mutual inclusion or a chain of named equalities, never from a one-directional containment

The mathematician behind it

Origins · 1 minGeorge Boole and how this was discovered
GB
George Boole
1815–1864 · Victorian England, self-taught mathematician and logician

George Boole had almost no formal higher education — he was largely self-taught, working as a schoolteacher in Lincolnshire before eventually becoming the first professor of mathematics at Queen's College, Cork. His landmark works, The Mathematical Analysis of Logic (1847) and An Investigation of the Laws of Thought (1854), proposed that logical reasoning could be represented by algebraic equations over the values 00 and 11, with operations mirroring conjunction, disjunction, and negation. Boole's ambition was philosophical as much as mathematical: he wanted to capture the actual "laws of thought" in symbolic form. It took decades after his death for mathematicians (notably William Stanley Jevons and later Marshall Stone) to isolate the abstract algebraic structure now called a Boolean algebra, of which the algebra of sets, the algebra of propositions, and the algebra of switching circuits are all concrete instances.

History
- 1847 — George Boole publishes The Mathematical Analysis of Logic, introducing algebraic symbols for logical operations.
- 1854 — Boole's An Investigation of the Laws of Thought systematizes Boolean algebra as we recognize it today.
- 1904 — Edward Huntington gives an independent, purely axiomatic characterization of Boolean algebras (the Huntington postulates).
- 1936 — Marshall Stone proves the Stone Representation Theorem, showing every Boolean algebra is isomorphic to an algebra of sets.
- 1938 — Claude Shannon's master's thesis applies Boolean algebra to the analysis and design of relay/switching circuits, founding digital logic design.
Is the algebra of sets the same thing as a Boolean algebra?

Yes, in the sense that (P(U),∪,∩,c,∅,U)(\mathcal{P}(U), \cup, \cap, {}^c, \emptyset, U) is a concrete example of a Boolean algebra — it satisfies all the abstract Boolean algebra axioms (commutativity, associativity, distributivity, identity, complement, and the resulting absorption laws). The Stone Representation Theorem (1936) goes further and shows the converse in a precise sense: every finite Boolean algebra is isomorphic to the power set algebra of some finite set, and every Boolean algebra at all embeds into a power-set-like algebra of subsets of some set. So set algebra is not merely "an example of" Boolean algebra — up to isomorphism, it is essentially the only kind of example there is.

Do I need to memorize all these laws separately, or can I get away with fewer?

You can get away with far fewer, thanks to the Duality Principle proved above: once you know one law in a dual pair, you get the other for free by swapping ∪↔∩\cup\leftrightarrow\cap and ∅↔U\emptyset\leftrightarrow U. In fact, it is a standard fact (though beyond this article's scope to prove in full) that a minimal axiomatization needs only commutativity, distributivity, and the identity/complement laws — associativity and absorption can then be derived as theorems from those. Most courses list all the laws anyway, purely for convenient reference, since re-deriving associativity from scratch every time would be tedious even though it is possible.

How does this relate to De Morgan's Laws, which I've already studied?

De Morgan's laws are two more members of this same algebraic family, and the Duality Principle shows they are dual to each other: proving (A∪B)c=Ac∩Bc(A \cup B)^c = A^c \cap B^c automatically yields (A∩B)c=Ac∪Bc(A \cap B)^c = A^c \cup B^c by the swap ∪↔∩\cup \leftrightarrow \cap (complementation itself is untouched by the swap since it's not one of the four symbols being exchanged). If you've already proved De Morgan's laws by element-chasing in De Morgan's Laws for Sets, you now have a second route: once one is established, the algebra hands you the other automatically.

Can I use these laws to prove that two sets are not equal?

Not directly — the laws in this article are a toolbox for proving equalities, not inequalities. To show two set expressions are not equal in general, the standard technique is to exhibit a concrete counterexample: pick specific sets A,B,CA, B, C (as small and simple as possible, e.g. singletons or two-element sets) for which the two expressions evaluate to different sets. This is exactly the technique used in the counterexample block above, where specific universes and elements showed why a hypothesis (a fixed UU) cannot be dropped.

Why are there two distributive laws for sets, but only one for real numbers?

Real number multiplication distributes over addition (a(b+c)=ab+aca(b+c) = ab+ac), but addition does not distribute over multiplication in general (a+(bc)≠(a+b)(a+c)a + (bc) \ne (a+b)(a+c) for typical numbers). Sets are special: both operations distribute over each other, which is precisely the extra symmetry that makes P(U)\mathcal{P}(U) Boolean rather than merely ring-like. The deep reason is that ∪\cup and ∩\cap are both idempotent (A∪A=AA \cup A = A, A∩A=AA \cap A = A), a property ordinary ++ and ×\times lack (a+a≠aa + a \ne a unless a=0a=0); idempotence is what forces the second distributive law to hold as well.

Does this algebra work for infinite unions and intersections, not just two or three sets at a time?

Yes — every law here generalizes to arbitrary (even infinite) families of sets, with the general distributive law reading A∩⋃i∈IBi=⋃i∈I(A∩Bi)A \cap \bigcup_{i\in I} B_i = \bigcup_{i \in I}(A \cap B_i) and dually A∪⋂i∈IBi=⋂i∈I(A∪Bi)A \cup \bigcap_{i \in I} B_i = \bigcap_{i \in I}(A \cup B_i), for any index set II. The proofs are entirely analogous element-chases, replacing "x∈Bx \in B or x∈Cx \in C" with "x∈Bix \in B_i for some i∈Ii \in I." This generalization is essential once you study families of sets indexed by infinite sets, such as sequences of open sets in analysis or topology.

What's the practical benefit of treating this as "algebra" instead of just checking things with Venn diagrams every time?

Venn diagrams work beautifully for two or three sets but become unreliable or impossible to draw clearly for four or more sets, and they don't scale to abstract reasoning about arbitrary families. Algebraic manipulation, by contrast, scales without limit: a chain of named-law rewrites is exactly as valid for four sets as for two, and it produces a written proof that can be checked step by step, which is invaluable when you need to communicate or automate the reasoning (as compilers and query optimizers do). Learning to recognize "this expression is an instance of absorption" is the same skill as recognizing "this integral is an instance of integration by parts" — pattern recognition that replaces brute-force verification.

Before this

Where this leads