Intuition
Set laws let us rewrite expressions without changing their elements. To justify a law, compare membership on both sides. Each object must belong to the left-hand set exactly when it belongs to the right-hand set.
Two search filters are equivalent when they return exactly the same records for every allowed input. Similar-looking filter names alone do not establish equivalence.
Definitions and notation
Let A, B and C be subsets of a fixed universal set U. All complements below are relative to this same U. The symbol ⇔ means if and only if: a transition is valid in both directions. To prove a set equality, compare membership for an arbitrary object x.
How to use the definitions
- Identity: .
- Distribution: .
Union is commutative
Choose an arbitrary object x. Each ⇔ in the chain below can be read in both directions. The chain shows that x belongs to one union exactly when it belongs to the other. Because x was arbitrary, the two unions have the same elements.
Proof steps
For an arbitrary object x, compare membership in the left-hand set.
Expand the definition of union; the equivalence holds in both directions.
Swapping the two alternatives does not change whether at least one is true.
Use the definition of union in reverse.
Every object belongs to one union exactly when it belongs to the other, so the sets are equal.
Applications
Practice
Try it
Which expression can replace for all sets A and B?
Try it
For every set A, the expression simplifies to which set?
Distribute an intersection
.
The left side is {1}. On the right, the two intersections are {1} and the empty set; their union is also {1}.
Try it
Which expression equals for all sets A, B and C?
Outside a union means outside both
If , and , then .
Only 3 is absent from both A and B within this U.
Try it
Fix U with and . Which expression equals ?
One counterexample can disprove a law
, while .
These sets provide a counterexample to commutativity of set difference.
Try it
Set difference is commutative for all sets A and B.
Proving and Disproving a Law
A law is proved by chasing an arbitrary element through both sides. It is disproved by one choice of sets where the two sides differ.
Try it
Which expression equals for all sets?
Try it
for all sets and .
Try it
A student writes: " means and , so ." Which sentence is wrong, and why?
Try it
Let , , . How many elements does have?
What You Learned
- A set identity is proved by a chain of statements each read in both directions.
- Commutativity, associativity, distribution, absorption and De Morgan hold for all sets.
- Difference is not commutative, and one pair of sets shows it.
- A false law is refuted by a single counterexample, never by a failed attempt at a proof.
Final checkpoint
Try it
Which of these fails for some choice of sets?
Completion
Lesson complete
Great work! You now know how to:
- Prove a set identity by chasing an arbitrary element through both sides
- Name the standard laws and apply them to simplify an expression
- Refute a proposed law with a single counterexample