MathLabs
TheoremProved

Distributive law of intersection over union

Statement

For any three sets AA, BB, CC: A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C).

Why is it true?

Just as multiplication distributes over addition in ordinary algebra, intersection distributes over union in set algebra. This lets you rewrite a filter such as "in category AA, and (on sale BB or new arrival CC)" as two separately manageable filters combined by a union, which is exactly how database and search-engine query planners simplify boolean filters.

Proof sketch

We prove set equality by showing both inclusions, using an arbitrary element x0x_0 (element-chasing).

(⊆\subseteq) Suppose x0∈A∩(B∪C)x_0 \in A \cap (B \cup C). By the definition of intersection this means x0∈Ax_0 \in A and x0∈B∪Cx_0 \in B \cup C. By the definition of union, x0∈B∪Cx_0 \in B \cup C means x0∈Bx_0 \in B or x0∈Cx_0 \in C. Consider the two cases separately. Case 1: x0∈Bx_0 \in B. Combined with x0∈Ax_0 \in A, this gives x0∈A∩Bx_0 \in A \cap B. Case 2: x0∈Cx_0 \in C. Combined with x0∈Ax_0 \in A, this gives x0∈A∩Cx_0 \in A \cap C. In either case x0x_0 lies in x0∈A∩Bx_0 \in A \cap B or in x0∈A∩Cx_0 \in A \cap C, so x0∈(A∩B)∪(A∩C)x_0 \in (A \cap B) \cup (A \cap C).

(⊇\supseteq) Suppose x0∈(A∩B)∪(A∩C)x_0 \in (A \cap B) \cup (A \cap C). By the definition of union this means x0∈A∩Bx_0 \in A \cap B or x0∈A∩Cx_0 \in A \cap C. If x0∈A∩Bx_0 \in A \cap B, then x0∈Ax_0 \in A and x0∈Bx_0 \in B, hence x0∈B∪Cx_0 \in B \cup C (since x0x_0 is in BB, it is in BB or CC), so x0∈A∩(B∪C)x_0 \in A \cap (B \cup C). If instead x0∈A∩Cx_0 \in A \cap C, then x0∈Ax_0 \in A and x0∈Cx_0 \in C, hence x0∈B∪Cx_0 \in B \cup C, so again x0∈A∩(B∪C)x_0 \in A \cap (B \cup C).

Since every element of the left-hand side lies in the right-hand side and vice versa, the two sets contain exactly the same elements, so A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C). This finishes the proof.

Topics that use this theorem

Step-by-step proofs

No step-by-step proof yet for this theorem.

References

  1. Paul R. Halmos (1960). Naive Set Theory
  2. Kenneth H. Rosen (2019). Discrete Mathematics and Its Applications