Distributive law of intersection over union
Statement
For any three sets , , : .
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 , and (on sale or new arrival )" 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 (element-chasing).
() Suppose . By the definition of intersection this means and . By the definition of union, means or . Consider the two cases separately. Case 1: . Combined with , this gives . Case 2: . Combined with , this gives . In either case lies in or in , so .
() Suppose . By the definition of union this means or . If , then and , hence (since is in , it is in or ), so . If instead , then and , hence , so again .
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 . This finishes the proof.
Topics that use this theorem
Step-by-step proofs
No step-by-step proof yet for this theorem.
References
- Paul R. Halmos (1960). Naive Set Theory
- Kenneth H. Rosen (2019). Discrete Mathematics and Its Applications