Union is inclusive
x ∈ A ∪ B when x is in at least one. Elements in both are in the union once — a set has no multiplicities.
Five operations, each defined by a connective from Logic and Proof. Union is ∨, intersection is ∧, complement is ¬ — which is why the set identities are the logical equivalences wearing different symbols.
Core ideas
Every set operation is a logical connective applied to membership. That correspondence is the reason to have done Logic and Proof first.
x ∈ A ∪ B when x is in at least one. Elements in both are in the union once — a set has no multiplicities.
Ā is meaningless without a stated universal set U. The complement of the even numbers is different inside ℤ and inside ℝ.
A \ B and B \ A are generally different sets. Symmetric difference A △ B is the union of the two, and is the set analogue of ⊕.
The material
Definitions, then the correspondence with the connectives.
A ∪ B = {x : x ∈ A ∨ x ∈ B}, A ∩ B = {x : x ∈ A ∧ x ∈ B}, A \ B = {x : x ∈ A ∧ x ∉ B}.
Relative to a universal set U containing every set under discussion, Ā = U \ A = {x ∈ U : x ∉ A}.
A △ B = (A \ B) ∪ (B \ A) — the elements in exactly one of the two. Equivalently (A ∪ B) \ (A ∩ B).
A and B are disjoint when A ∩ B = ∅. A collection is pairwise disjoint when every two distinct members of it are disjoint — the condition “Equivalence Relations and Partitions” needs for partitions.
This is not an analogy. Every set identity in “Set Identities and Proofs” is a logical equivalence from “Logical Equivalence” in Logic and Proof, applied pointwise to membership. De Morgan for sets and De Morgan for propositions are the same theorem in two notations, and knowing that halves what has to be memorised.
For finite sets, |A ∪ B| = |A| + |B| − |A ∩ B|.
Adding |A| and |B| counts every element of A ∩ B twice — once in each term — and every other element of A ∪ B once. Subtracting |A ∩ B| removes exactly the surplus.
□
“The Inclusion-Exclusion Principle” in Combinatorics and Counting generalises this to any number of sets, where the alternating signs are less obvious and the correction is larger. The two-set case is worth having by heart now.
With A = {1, 2, 3} and B = {3, 4}: A \ B = {1, 2} and B \ A = {4}. Their union {1, 2, 4} is A △ B, and A ∩ B = {3} is exactly what △ excludes.
Interactive
Two expressions, one membership
Method
Translate to membership conditions, then evaluate elementwise.
x ∈ A ∩ (B ∪ C) becomes x ∈ A ∧ (x ∈ B ∨ x ∈ C). From here it is propositional logic.
With a small universe this is quick and cannot go wrong. It is also how the lab computes.
Ā depends entirely on U. An expression mixing complements and an unstated universe is not well defined.
What does the expression give when A = ∅, or when A = B? Degenerate cases catch misreadings faster than general ones.
U = {1,…,8}, A = {1,2,3,4}, B = {3,4,5,6}, C = {4,6,8}.
Element 4 is the interesting one: it fails the first term and passes the second. Checking a few elements individually is how you catch a misplaced parenthesis, which the set-level calculation hides.
Take (A △ B) \ C and write the condition for x to belong. If you produce (x ∈ A ⊕ x ∈ B) ∧ x ∉ C, the rest of the course's set algebra is Logic and Proof in different symbols.
Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.
No recommendations yet for this lesson.