Try this
- Shade only the common part of and (ignore ). What does the machine write? Now unshade the small piece of it that lies in . What does the formula become?
- Shade the two regions “in but not in ”. Why does the machine use instead of and a complement?
- Shade every region outside , then tap “Complement” a few times. How are the two formulas related?
- Into how many regions do the three circles cut ? Each region is either shaded or not.
Intersection, union, complement and difference are all defined element by element:
The three logical words “and”, “or” and “not” are the whole secret. A Venn diagram draws exactly this: which region an element lands in depends only on whether it is in , whether it is in and whether it is in . Three yes/no answers give possibilities.
Predict first
Three sets cut the universal set into regions. Using with intersection, union, difference and complement, how many different sets can you write?
A formula can be as long as you like, but the set it describes depends only on which regions are shaded. Each of the regions is shaded or not, giving shadings.
Conversely, every shading can be written down: each region is itself an intersection of or , or , and or , so just take the union of the regions you want. That is what the machine above does, except that it looks for the shortest formula.
Why: De Morgan's laws
The standard way to prove that two sets are equal is to show that each contains the other, that is, to chase elements: take any element of the left side and show it is in the right side, and vice versa. On a Venn diagram this amounts to shading every region the same way.
Proof: ∁(A∪B) = ∁A ∩ ∁B
Step 1 / 6- The left side
First shade : the three regions inside the circles.
The commutative, associative, distributive and absorption laws can all be checked region by region in the same way. The “picture matcher” below draws the two sides next to each other. There are two distributive laws: which option is another way of writing ?
Unlike the arithmetic of numbers, both distributive laws hold for sets: distributes over , and distributes over .
Remove one condition
Break it
Counterexample lab: remove one condition
Conclusion: The brackets can be moved freely ← still true?
When every operation is (or every one is ), the associative law holds and it does not matter where the brackets go:
With inside and outside, try moving the brackets:
Both options have red regions. For example, an element that is only in belongs to the left side but not to . When the operations differ, the brackets are part of the formula: you cannot just move them.
Practice
Let , let be the set of even numbers in , and let be the set of multiples of in . How many elements does have?
Given , and , find (list its elements separated by commas).
How many ordered pairs of sets satisfy ? (When , and count as two.)
Let . How many ordered triples satisfy and ?