Mathematics · Ch 1 — Sets
Difference of Sets
Difference of Sets
Difference of sets. The difference of two sets and (in that order), written
(also read " minus "), is the set of elements that belong to but do
not belong to :
Not commutative. Unlike union and intersection, set difference is generally
not commutative — that is, in general, because the two sets
describe entirely different things: keeps only 's "private" elements, while
keeps only 's "private" elements.
Worked illustration. Let and . Then
Clearly here, confirming that difference is not commutative.
and are always disjoint. For any two sets and ,
Proof. Suppose, for contradiction, some element belonged to both and
. Since , we have and . Since
, we have and . But "" and ""
cannot both be true at once — a contradiction. Hence no such exists, so
. This matches the Venn-diagram
picture directly: is the part of circle outside the overlap, and
is the part of circle outside the overlap — two regions that, by construction,
never touch.
Relation to a Venn diagram. In the two-circle Venn diagram of Section 1.5, …