Union and Intersection

Suppose you are told that a number belongs to the set of even integers, or to the set of multiples of 33, or possibly both. How should mathematics record "or" and "and" between sets as precisely as it records them between statements? This question is not idle bookkeeping. Nearly every construction in analysis, algebra, and computer science combines collections of objects. It does this by asking what is in either of two sets, or what is in both. Union and intersection are the two most basic operations for building new sets from old ones. They turn the loose vocabulary of "or" and "and" into operations with exact, checkable defining conditions. The importance of getting this right is that these two operations generate an entire algebra of sets. Together with Set Equality and Extensionality, they mirror the algebra of logical connectives almost exactly. Once union and intersection are pinned down by precise membership conditions, statements like "union distributes over intersection" become theorems. They are provable from the definitions of ∈\in, ∨\lor, and ∧\land, rather than appeals to pictures. The big picture is that set theory builds all of its machinery from a small number of primitive operations. Each is defined by a membership condition: an if-and-only-if statement. It tells you exactly when an object belongs to the newly constructed set. Union and intersection are the first and most fundamental examples of this pattern. The technique used to prove facts about them — element-chasing, guided by extensionality — is the technique used throughout the rest of set theory. This article gives the formal definitions of A∪BA \cup B and A∩BA \cap B. It proves the core algebraic laws (commutativity, associativity, distributivity, absorption, and idempotence) with full element-chasing proofs. It works two concrete asymmetric examples, and shows exactly what fails when a hypothesis is dropped. It closes by placing union and intersection in the wider landscape. That landscape includes Set Difference and Complement, Proving Set Identities, and Indexed Families of Sets.

Key takeaways
  • A∪BA \cup B collects everything in AA or BB (inclusive or); A∩BA \cap B collects everything in both.
  • Both are defined by a single biconditional membership condition, then equality of sets is checked via Set Equality and Extensionality.
  • Union and intersection are commutative, associative, idempotent, and each distributes over the other.
  • A∩B⊆A⊆A∪BA \cap B \subseteq A \subseteq A \cup B always holds, for any sets A,BA, B.
  • A∩B=∅A \cap B = \varnothing characterizes disjointness; A∪B=AA \cup B = A exactly when B⊆AB \subseteq A.
  • Key idea: union and intersection translate "or" and "and" from logic into operations on sets, and every set-algebra identity about them is really a logic identity in disguise.

Where this lives today

Union and intersection are the backbone of measure theory and probability, where events are subsets of a sample space and P(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B) = P(A)+P(B)-P(A\cap B) (inclusion–exclusion) governs the probability of "AA or BB." In topology, arbitrary unions of open sets and finite intersections of open sets are declared open by definition, making union and intersection the literal generators of a topology. In computer science, database query languages implement `UNION` and `INTERSECT` as direct set operations on result tables, and Boolean circuit design uses OR-gates and AND-gates as the physical realization of ∪\cup and ∩\cap at the level of truth values. In formal logic and proof theory, the correspondence ∪↔∨\cup \leftrightarrow \lor, ∩↔∧\cap \leftrightarrow \land used throughout the proofs above is an instance of the broader algebraic structure called a Boolean algebra, which unifies set algebra, propositional logic, and switching circuits under one axiomatic roof. In cryptography and coding theory, intersections of codewords or key sets determine collision and security bounds, while unions describe the total space of possible messages or attacks under consideration.

Ask the tutor: How do the distributive laws for union and intersection generalize when one of the sets is replaced by an infinite indexed family?

DefinitionUnion and Intersection

Let AA and BB be sets. The union of AA and BB, written A∪BA \cup B, is the set defined by the membership condition

x∈A∪B  ⟺  (x∈A)∨(x∈B).x \in A \cup B \iff (x \in A) \lor (x \in B).

The intersection of AA and BB, written A∩BA \cap B, is the set defined by the membership condition

x∈A∩B  ⟺  (x∈A)∧(x∈B).x \in A \cap B \iff (x \in A) \land (x \in B).

Here ∨\lor is the inclusive or: x∈A∪Bx \in A \cup B holds if xx is in AA, or in BB, or in both. Two sets A,BA, B are called disjoint if A∩B=∅A \cap B = \varnothing. That such sets A∪BA \cup B and A∩BA \cap B actually exist (as genuine sets, not just descriptions) is guaranteed by the Axiom of Union and the Axiom Schema of Separation in Zermelo–Fraenkel set theory; at this level we take their existence and uniqueness (via Set Equality and Extensionality) as given, and treat the biconditionals above as the operative working definition.

Intuition

Picture AA and BB as two overlapping regions in a plane — the classical Venn diagram. The union is the entire shaded area covered by at least one of the two regions: you are asking "is xx in the left circle, the right circle, or the lens where they overlap?" The intersection is only the lens, the strip common to both: you are asking the much stronger question "is xx in the left circle and simultaneously in the right circle?" Because "and" is a stronger demand than "or," intersection always produces a smaller (or equal) set than union, and both are squeezed between the empty set and the full union of everything under discussion. A second useful picture is arithmetic with sets of numbers. If A={1,2,3,4}A = \{1,2,3,4\} and B={3,4,5,6}B = \{3,4,5,6\}, then A∪BA \cup B merges the lists (discarding repeats) to get {1,2,3,4,5,6}\{1,2,3,4,5,6\}, while A∩BA \cap B keeps only what survives in both lists, namely {3,4}\{3,4\}. This "merge vs. filter" intuition — union merges, intersection filters — is exactly the logical content of ∨\lor versus ∧\land, transported wholesale into the language of sets.

Figure
Venn diagram: A ∪ B (all shaded) versus A ∩ B (only the overlap)
A ∪ B A B A∩B A ∩ B A B Left: every shaded point lies in A or B. Right: only the lens lies in A and B.
TheoremBasic Algebra of Union and Intersection

Let AA, BB, CC be any sets. Then all of the following hold. 1. Commutativity: A∪B=B∪AA \cup B = B \cup A and A∩B=B∩AA \cap B = B \cap A. 2. Associativity: (A∪B)∪C=A∪(B∪C)(A \cup B) \cup C = A \cup (B \cup C) and (A∩B)∩C=A∩(B∩C)(A \cap B) \cap C = A \cap (B \cap C). 3. Idempotence: A∪A=AA \cup A = A and A∩A=AA \cap A = A. 4. Identity and annihilator laws: A∪∅=AA \cup \varnothing = A and A∩∅=∅A \cap \varnothing = \varnothing. 5. Absorption: A∪(A∩B)=AA \cup (A \cap B) = A and A∩(A∪B)=AA \cap (A \cup B) = A. 6. Distributivity: A∪(B∩C)=(A∪B)∩(A∪C)A \cup (B \cap C) = (A \cup B) \cap (A \cup C) and A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C). 7. Monotonicity of inclusion: A∩B⊆A⊆A∪BA \cap B \subseteq A \subseteq A \cup B. 8. Union-subset and intersection-subset criteria: A⊆B  ⟺  A∪B=B  ⟺  A∩B=AA \subseteq B \iff A \cup B = B \iff A \cap B = A.

Proof

The unifying technique is element-chasing: to prove two sets are equal, invoke Set Equality and Extensionality, which reduces X=YX = Y to proving x∈X  ⟺  x∈Yx \in X \iff x \in Y for an arbitrary object xx. Each membership statement about ∪\cup or ∩\cap is then rewritten using the defining biconditionals, reducing every set identity to a tautology of propositional logic in the variables P:(x∈A)P: (x\in A), Q:(x∈B)Q: (x \in B), R:(x∈C)R: (x \in C). We prove each part in full; several parts are genuinely independent tautologies and each is checked separately, not merely asserted "by symmetry" without justification, though once a law is proved for ∪\cup the identical logical tautology (with ∨,∧\lor,\land swapped) justifies the parallel statement for ∩\cap.

(1) Commutativity. Fix arbitrary xx. By definition of union,

x∈A∪B  ⟺  (x∈A)∨(x∈B).x \in A \cup B \iff (x\in A) \lor (x \in B).

Disjunction is commutative as a connective (P∨Q  ⟺  Q∨PP \lor Q \iff Q \lor P is a tautology, verified by a two-row truth table since it has only one variable pair with symmetric truth values). Hence

(x∈A)∨(x∈B)  ⟺  (x∈B)∨(x∈A)  ⟺  x∈B∪A.(x\in A)\lor(x\in B) \iff (x\in B)\lor(x\in A) \iff x \in B \cup A.

So x∈A∪B  ⟺  x∈B∪Ax \in A\cup B \iff x \in B \cup A for arbitrary xx; by extensionality A∪B=B∪AA \cup B = B \cup A. The same argument with ∧\land (commutative by an identical truth-table check) gives A∩B=B∩AA \cap B = B \cap A.

(2) Associativity. Fix arbitrary xx. Unwinding definitions twice,

x∈(A∪B)∪C  ⟺  [(x∈A)∨(x∈B)]∨(x∈C),x \in (A\cup B)\cup C \iff \big[(x\in A)\lor(x\in B)\big] \lor (x \in C),
x∈A∪(B∪C)  ⟺  (x∈A)∨[(x∈B)∨(x∈C)].x \in A\cup(B\cup C) \iff (x\in A) \lor \big[(x\in B)\lor(x\in C)\big].

Associativity of ∨\lor, i.e. (P∨Q)∨R  ⟺  P∨(Q∨R)(P\lor Q)\lor R \iff P \lor (Q \lor R), is a tautology: both sides are true exactly when at least one of P,Q,RP,Q,R is true, and false exactly when all three are false — this is checked by an eight-row truth table exhausting all assignments to P,Q,RP,Q,R. Hence the two membership conditions above are equivalent for every xx, so by extensionality (A∪B)∪C=A∪(B∪C)(A\cup B)\cup C = A \cup (B\cup C). The intersection case follows identically using associativity of ∧\land (true exactly when all of P,Q,RP,Q,R hold).

(3) Idempotence. For arbitrary xx, x∈A∪A  ⟺  (x∈A)∨(x∈A)x \in A \cup A \iff (x\in A)\lor(x\in A), and P∨P  ⟺  PP \lor P \iff P is a tautology (trivial two-row check). So x∈A∪A  ⟺  x∈Ax \in A\cup A \iff x \in A, giving A∪A=AA \cup A = A by extensionality. Likewise P∧P  ⟺  PP \land P \iff P gives A∩A=AA \cap A = A.

(4) Identity/annihilator. For arbitrary xx, x∈A∪∅  ⟺  (x∈A)∨(x∈∅)x \in A \cup \varnothing \iff (x\in A) \lor (x \in \varnothing). Since ∅\varnothing has no members, x∈∅x \in \varnothing is false for every xx; thus (x∈A)∨(x∈∅)  ⟺  (x∈A)∨F  ⟺  (x∈A)(x\in A)\lor(x\in\varnothing) \iff (x \in A) \lor F \iff (x\in A), a tautology (P∨F  ⟺  PP \lor F \iff P). So A∪∅=AA \cup \varnothing = A. Similarly x∈A∩∅  ⟺  (x∈A)∧Fx \in A \cap \varnothing \iff (x\in A)\land F, and P∧F  ⟺  FP \land F \iff F is a tautology, so x∈A∩∅x \in A\cap\varnothing is false for every xx, meaning A∩∅A \cap \varnothing has no elements; by extensionality it equals ∅\varnothing (two sets with no elements are equal, since the biconditional "x∈X  ⟺  x∈Yx\in X \iff x\in Y" holds vacuously — both sides always false).

(5) Absorption. For arbitrary xx,

x∈A∪(A∩B)  ⟺  (x∈A)∨[(x∈A)∧(x∈B)].x \in A \cup (A\cap B) \iff (x\in A) \lor \big[(x\in A)\land(x\in B)\big].

The propositional identity P∨(P∧Q)  ⟺  PP \lor (P \land Q) \iff P is a tautology: if PP is true the left side is true (first disjunct) and the right side is true; if PP is false, P∧QP\land Q is false, so the left side is false, matching the right side. Checking all four rows of the truth table confirms this. Hence x∈A∪(A∩B)  ⟺  x∈Ax \in A\cup(A\cap B) \iff x \in A, so A∪(A∩B)=AA \cup (A\cap B) = A. Dually, P∧(P∨Q)  ⟺  PP \land (P\lor Q) \iff P is also a tautology (identical four-row check), giving A∩(A∪B)=AA \cap (A \cup B) = A.

(6) Distributivity. For arbitrary xx,

x∈A∪(B∩C)  ⟺  (x∈A)∨[(x∈B)∧(x∈C)],x \in A\cup(B\cap C) \iff (x\in A) \lor \big[(x\in B)\land(x\in C)\big],
x∈(A∪B)∩(A∪C)  ⟺  [(x∈A)∨(x∈B)]∧[(x∈A)∨(x∈C)].x \in (A\cup B)\cap(A\cup C) \iff \big[(x\in A)\lor(x\in B)\big] \land \big[(x\in A)\lor(x\in C)\big].

The tautology P∨(Q∧R)  ⟺  (P∨Q)∧(P∨R)P \lor (Q\land R) \iff (P\lor Q)\land(P\lor R) is verified by an eight-row truth table over P,Q,RP,Q,R: in every row the two sides agree (for instance, when PP is false the left side reduces to Q∧RQ\land R and the right side reduces to Q∧RQ \land R as well; when PP is true both sides are true). Hence the two membership conditions coincide for every xx, and extensionality gives A∪(B∩C)=(A∪B)∩(A∪C)A\cup(B\cap C) = (A\cup B)\cap(A\cup C). The dual tautology P∧(Q∨R)  ⟺  (P∧Q)∨(P∧R)P\land(Q\lor R) \iff (P\land Q)\lor(P\land R) is checked the same way, giving A∩(B∪C)=(A∩B)∪(A∩C)A\cap(B\cup C) = (A\cap B)\cup(A\cap C).

(7) Monotonicity. Suppose x∈A∩Bx \in A \cap B. By definition this means (x∈A)∧(x∈B)(x\in A)\land(x\in B), which in particular implies x∈Ax \in A (conjunction elimination — a valid inference, not merely a tautology check, since P∧Q⇒PP\land Q \Rightarrow P is a tautology). So every element of A∩BA\cap B is an element of AA, i.e. A∩B⊆AA\cap B \subseteq A. Similarly, if x∈Ax \in A then (x∈A)∨(x∈B)(x\in A)\lor(x\in B) holds (disjunction introduction: P⇒P∨QP \Rightarrow P\lor Q is a tautology), so x∈A∪Bx \in A\cup B; hence A⊆A∪BA \subseteq A\cup B.

(8) Subset criteria. We prove the chain of three equivalences A⊆B  ⟺  A∪B=B  ⟺  A∩B=AA\subseteq B \iff A\cup B = B \iff A \cap B = A by proving A⊆B⇒A∪B=BA \subseteq B \Rightarrow A \cup B = B, then A∪B=B⇒A∩B=AA\cup B = B \Rightarrow A \cap B = A, then A∩B=A⇒A⊆BA \cap B = A \Rightarrow A \subseteq B; these three implications chain into all pairwise equivalences (a standard closing-the-loop argument for proving several statements equivalent). (A⊆B⇒A∪B=BA\subseteq B \Rightarrow A\cup B=B): Assume A⊆BA \subseteq B. By part (7), B⊆A∪BB \subseteq A \cup B always. For the reverse inclusion, let x∈A∪Bx \in A\cup B, so (x∈A)∨(x∈B)(x\in A)\lor(x\in B). If x∈Ax \in A then x∈Bx \in B since A⊆BA \subseteq B; if x∈Bx \in B then trivially x∈Bx \in B. Either way x∈Bx \in B. So A∪B⊆BA \cup B \subseteq B, and with the reverse inclusion, A∪B=BA \cup B = B by the antisymmetry of ⊆\subseteq (a set-theoretic consequence of extensionality). (A∪B=B⇒A∩B=AA \cup B = B \Rightarrow A \cap B = A): Assume A∪B=BA\cup B = B. By part (7), A∩B⊆AA \cap B \subseteq A always, so it remains to show A⊆A∩BA \subseteq A \cap B. Let x∈Ax \in A. Then x∈A∪Bx \in A \cup B (part 7 again, or directly since A⊆A∪BA \subseteq A\cup B), and by hypothesis A∪B=BA\cup B = B, so x∈Bx \in B. Thus x∈Ax \in A and x∈Bx \in B, i.e. x∈A∩Bx \in A\cap B. So A⊆A∩BA \subseteq A \cap B, giving A∩B=AA \cap B = A. (A∩B=A⇒A⊆BA \cap B = A \Rightarrow A \subseteq B): Assume A∩B=AA \cap B = A. Let x∈Ax \in A. Then x∈A∩Bx \in A \cap B (since A∩B=AA \cap B = A), so by definition (x∈A)∧(x∈B)(x\in A)\land(x\in B), in particular x∈Bx \in B. Hence A⊆BA \subseteq B. Chaining these three implications establishes all three statements are pairwise equivalent, completing the proof of part (8) and of the theorem. ■\blacksquare

∎

Worked examples

Example 1 (finite sets of mixed type, asymmetric sizes). Let

A={2,4,6,8,10},B={3,6,9,12}.A = \{2, 4, 6, 8, 10\}, \qquad B = \{3, 6, 9, 12\}.

These sets have different sizes (∣A∣=5|A|=5, ∣B∣=4|B|=4) and only partial overlap, which is exactly the kind of case that exposes errors a symmetric example would hide. Union. By definition x∈A∪Bx \in A\cup B iff x∈Ax\in A or x∈Bx \in B. Listing every element of AA, then adjoining every element of BB not already listed:

A∪B={2,3,4,6,8,9,10,12}.A \cup B = \{2,3,4,6,8,9,10,12\}.

Check: ∣A∪B∣=8=∣A∣+∣B∣−∣A∩B∣=5+4−1|A\cup B| = 8 = |A| + |B| - |A\cap B| = 5 + 4 - 1, consistent with the inclusion–exclusion count computed below. Intersection. By definition x∈A∩Bx \in A \cap B iff xx is in both lists. Scanning A={2,4,6,8,10}A = \{2,4,6,8,10\} against B={3,6,9,12}B=\{3,6,9,12\}, the only common value is 66. Hence

A∩B={6}.A \cap B = \{6\}.

Check via Theorem, part (7). We must have A∩B⊆A⊆A∪BA\cap B \subseteq A \subseteq A \cup B. Indeed {6}⊆{2,4,6,8,10}\{6\}\subseteq\{2,4,6,8,10\} (true, 66 is listed), and {2,4,6,8,10}⊆{2,3,4,6,8,9,10,12}\{2,4,6,8,10\} \subseteq \{2,3,4,6,8,9,10,12\} (true, every element of AA appears in the union list). Both inclusions hold, confirming the computation is consistent with monotonicity. Check via part (8). Since A≠BA \neq B and neither is a subset of the other (3∈B∖A3 \in B\setminus A and 2∈A∖B2 \in A \setminus B), the theorem predicts A∪B≠BA \cup B \neq B and A∩B≠AA \cap B \neq A — and indeed A∪B={2,3,4,6,8,9,10,12}≠{3,6,9,12}=BA\cup B = \{2,3,4,6,8,9,10,12\} \neq \{3,6,9,12\}=B, and A∩B={6}≠{2,4,6,8,10}=AA\cap B=\{6\}\neq\{2,4,6,8,10\}=A, matching the prediction exactly.

Example 2 (sets defined by conditions, not by listing). Let AA be the set of integers divisible by 44, and let BB be the set of integers divisible by 66:

A={n∈Z:4∣n},B={n∈Z:6∣n}.A = \{n \in \mathbb{Z} : 4 \mid n\}, \qquad B = \{n \in \mathbb{Z} : 6 \mid n\}.

These are infinite sets, so we cannot list elements; we must reason directly from the membership condition. Union. By definition, n∈A∪Bn \in A \cup B iff 4∣n4\mid n or 6∣n6 \mid n. So, for instance, 8∈A∪B8 \in A\cup B (since 4∣84\mid 8), 18∈A∪B18 \in A \cup B (since 6∣186 \mid 18), and 12∈A∪B12 \in A\cup B (since both hold), but 10∉A∪B10 \notin A \cup B (neither 44 nor 66 divides 1010). There is no simpler single-modulus description of A∪BA\cup B; it genuinely is the union, not reducible to "divisible by dd" for any one dd. Intersection. By definition, n∈A∩Bn \in A \cap B iff 4∣n4\mid n and 6∣n6\mid n, i.e. nn is a common multiple of 44 and 66. A standard number-theoretic fact (provable by unique factorization) is that the common multiples of 4=224=2^2 and 6=2⋅36=2\cdot 3 are exactly the multiples of lcm⁡(4,6)=12\operatorname{lcm}(4,6) = 12. So

A∩B={n∈Z:12∣n}.A \cap B = \{n \in \mathbb{Z} : 12 \mid n\}.

Concretely 12,24,−12,0∈A∩B12, 24, -12, 0 \in A\cap B, while 6∉A∩B6 \notin A \cap B (since 4∤64 \nmid 6, even though 6∣66\mid 6) — a useful reminder that membership in BB alone is not enough; both conditions in the ∧\land must hold. Check via Theorem, part (7). Every multiple of 1212 is a multiple of 44, so A∩B⊆AA \cap B \subseteq A; and every multiple of 44 satisfies "divisible by 44 or by 66," so A⊆A∪BA \subseteq A\cup B. Both containments hold as predicted, and here neither is an equality (e.g. 4∈A4 \in A but 4∉A∩B4 \notin A\cap B, and 6∈A∪B6\in A\cup B but 6∉A6 \notin A), showing the inclusions in part (7) are generally strict.

Counterexamplewhy we need the same universe, and why one must not drop the biconditional to a one-way implication

Theorem parts (1)–(8) were all proved using the biconditional membership conditions

x∈A∪B  ⟺  (x∈A)∨(x∈B),x∈A∩B  ⟺  (x∈A)∧(x∈B).x \in A \cup B \iff (x\in A)\lor(x\in B), \qquad x \in A\cap B \iff (x\in A)\land(x\in B).

Suppose instead we weaken the definition of union to only the forward implication,

x∈A∪B  ⟹  (x∈A)∨(x∈B),x \in A \cup B \;\Longrightarrow\; (x\in A)\lor(x\in B),

without requiring the converse. This is a genuine weakening: it says every element of A∪BA\cup B lies in AA or BB, but it no longer forces every element of AA or BB to land in A∪BA\cup B. Under this weaker one-directional rule, take A={1,2}A = \{1,2\}, B={2,3}B=\{2,3\}, and let X={2}X = \{2\}. Check the forward implication for XX in place of "A∪BA\cup B": every x∈Xx \in X (namely x=2x=2) satisfies x∈Ax \in A (true, 2∈A2\in A) or x∈Bx\in B (also true), so the implication x∈X⇒(x∈A)∨(x∈B)x \in X \Rightarrow (x\in A)\lor(x\in B) holds for every xx. So X={2}X=\{2\} is a perfectly legal candidate for "A∪BA\cup B" under the weakened, implication-only rule — yet XX fails to contain 11 and 33, both of which certainly ought to belong to a union. Worse, so is Y=∅Y = \varnothing: vacuously every x∈∅x \in \varnothing satisfies anything, so ∅\varnothing also satisfies the one-way rule. Thus the weakened definition does not pin down a unique set at all — it admits {2}\{2\}, ∅\varnothing, {1,2}\{1,2\}, {1,2,3}\{1,2,3\}, and more, all simultaneously "legal," which contradicts the very purpose of a definition together with Set Equality and Extensionality (namely, to determine one specific set). This shows precisely why the defining condition must be a biconditional: the forward direction alone only bounds A∪BA \cup B from above (nothing "extra" gets in), while the backward direction (x∈A)∨(x∈B)⇒x∈A∪B(x\in A)\lor(x\in B) \Rightarrow x \in A\cup B is what forces everything that should be included actually to be included. Dropping either half breaks uniqueness, and every proof in the Theorem block above used both directions of the biconditional at some point (for instance, part (7)'s proof that A⊆A∪BA \subseteq A\cup B used disjunction introduction feeding into the backward direction of the union's defining biconditional).

Scope, edge cases & common traps

SituationWhat to watch for
A=BA = BA∪B=A∩B=AA\cup B = A\cap B = A; union and intersection collapse to the common value (idempotence).
AA, BB disjointA∩B=∅A \cap B = \varnothing; union has size ∣A∣+∣B∣\lvert A\rvert + \lvert B\rvert when finite.
One set emptyA∪∅=AA \cup \varnothing = A and A∩∅=∅A\cap\varnothing = \varnothing always — never assume A∩∅=AA\cap\varnothing = A.
A⊆BA \subseteq BA∪B=BA\cup B = B and A∩B=AA\cap B = A (Theorem part 8); a common source of "obvious" but unproved claims.
Infinite sets given by conditionsCannot list elements; must reason from the membership biconditional directly, as in Example 2.
Confusing ∨\lor with exclusive orA∪BA\cup B uses inclusive or; elements in both AA and BB are still counted once in A∪BA\cup B.

The mathematician behind it

Origins · 1 minGeorg Cantor and how this was discovered
GC
Georg Cantor
1845–1918 · Halle, German Empire

Georg Cantor created set theory as an independent mathematical discipline in the 1870s–1880s, seeking a rigorous foundation for treating collections of infinite objects — such as the set of all real numbers or all points on a line — as legitimate mathematical entities subject to precise operations, including union and intersection of arbitrarily infinite families. His work provoked fierce controversy (Kronecker and others rejected completed infinities outright) but ultimately became the bedrock on which nearly all of modern mathematics, including the formal treatment given here, is built.

History
- 1874 — Cantor publishes his first paper proving the real numbers are uncountable, launching set theory as a subject.
- 1895–1897 — Cantor systematically develops operations on sets, including union and intersection of infinite families, in his Beiträge.
- 1901 — Russell's paradox exposes the need for careful axiomatic restriction on which "sets" can exist.
- 1908 — Zermelo axiomatizes set theory, including the Axiom of Union, giving union and intersection a rigorous existential footing.
- 1963 — Paul Cohen's independence results confirm set theory's axioms leave certain questions (e.g. the continuum hypothesis) genuinely open, cementing set theory's mature axiomatic status.
Is A ∪ B always at least as large as A?

Yes, whenever these are finite sets: A⊆A∪BA \subseteq A \cup B by Theorem part (7), and a subset of a finite set has cardinality no greater than the whole set. In fact for finite sets, ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣|A \cup B| = |A| + |B| - |A \cap B| (inclusion–exclusion), which is at least ∣A∣|A| since ∣B∣−∣A∩B∣≥0|B| - |A\cap B| \ge 0 (because A∩B⊆BA\cap B \subseteq B, so ∣A∩B∣≤∣B∣|A \cap B| \le |B|). For infinite sets "size" needs cardinal arithmetic, but the inclusion A⊆A∪BA \subseteq A \cup B itself holds unconditionally, regardless of finiteness.

Does A ∩ B always contain something, i.e. can it be empty?

Yes, it can absolutely be empty, and often is. Whenever AA and BB share no common element — for example A={1,2}A = \{1,2\} and B={3,4}B=\{3,4\} — the definition gives x∈A∩B  ⟺  (x∈A)∧(x∈B)x \in A\cap B \iff (x\in A)\land(x\in B), and no xx satisfies both, so A∩B=∅A\cap B = \varnothing. This is precisely the definition of AA and BB being disjoint. There is no hypothesis in the definitions of union or intersection that forces overlap; disjointness is a special, extra condition on the pair (A,B)(A,B), not a general guarantee.

How is union different from the logical "or" it is built from?

Union is a set-forming operation, while "or" (∨\lor) is a connective between two truth-valued statements. They are linked, not identical: A∪BA \cup B is defined precisely so that the statement "x∈A∪Bx \in A\cup B" is logically equivalent to the statement "x∈Ax\in A or x∈Bx \in B." Every algebraic law about ∪\cup (commutativity, associativity, distributivity) is literally a restatement, via this biconditional, of the corresponding tautology about ∨\lor. The set operation packages the logical connective into an object you can then intersect, take subsets of, or apply further operations to.

Why do we need extensionality to prove things like commutativity of union?

The definitions of A∪BA\cup B and A∩BA\cap B only tell you the membership condition — when an object belongs to the set. To conclude that two differently described sets, such as A∪BA\cup B and B∪AB\cup A, are the same set, you need a principle converting "same membership condition for every xx" into "same set." That principle is exactly Set Equality and Extensionality: two sets are equal if and only if they have exactly the same elements. Every proof in this article's Theorem block ends by invoking extensionality after establishing the biconditional on memberships.

What happens with unions and intersections of more than two sets, or infinitely many sets?

Everything here generalizes, but requires new notation and a new definition, covered separately under Indexed Families of Sets. Briefly, for a family {Ai}i∈I\{A_i\}_{i\in I}, one defines ⋃i∈IAi\bigcup_{i\in I} A_i by x∈⋃iAi  ⟺  ∃i∈I, x∈Aix \in \bigcup_i A_i \iff \exists i \in I,\, x \in A_i, and ⋂i∈IAi\bigcap_{i \in I} A_i by x∈⋂iAi  ⟺  ∀i∈I, x∈Aix \in \bigcap_i A_i \iff \forall i \in I,\, x \in A_i, mirroring the quantifiers ∃\exists and ∀\forall the same way binary union and intersection mirror ∨\lor and ∧\land. Associativity of the binary operations is exactly what makes finite unions and intersections well-defined regardless of parenthesization before this generalization is even needed.

Is there an operation capturing "in A but not B"? Is that related to union and intersection?

Yes — that is set difference, A∖B={x:x∈A∧x∉B}A \setminus B = \{x : x \in A \land x \notin B\}, treated under Set Difference and Complement. It is built from the same logical toolkit (∧\land together with negation ¬\lnot), and interacts with union and intersection through identities such as De Morgan's laws, A∖(B∪C)=(A∖B)∩(A∖C)A \setminus (B\cup C) = (A\setminus B)\cap(A\setminus C). Understanding union and intersection first, with their biconditional-and-truth-table proof method, is exactly the preparation needed to prove those difference/complement identities rigorously rather than just diagrammatically.

Can A ∪ B ever equal A ∩ B without A = B?

No. If A∪B=A∩BA\cup B = A \cap B, take any x∈Ax \in A. Then x∈A∪Bx \in A \cup B (since A⊆A∪BA \subseteq A\cup B always), so by the assumed equality x∈A∩Bx \in A\cap B, which means x∈Bx \in B. This shows A⊆BA \subseteq B. By a symmetric argument starting from x∈Bx \in B, one gets B⊆AB \subseteq A. Two mutual inclusions give A=BA = B by extensionality. So A∪B=A∩BA\cup B = A\cap B forces A=BA = B; it is not a coincidence but a provable equivalence, and conversely if A=BA=B then trivially A∪B=A=A∩BA\cup B = A = A\cap B.

Before this

Where this leads