Sets & Venn diagrams
The importance of Set Theory to Modern Math is discussed in:
Constructive maths

Sets and Venn diagrams are fundamental to logical argument.
Equal sets
If 2 sets have the same members or elements, those sets are said to be equal. The orders of the elements are not important.
If set A = {a, b, c} and B = {c, b, a}, then A = B.
Null set
A null set is a set with no members, that is, an empty set { }, denoted by Ø.
The set of zero, {0}, is not an empty set because it contains the element zero.
Subset
If all the elements of set A are also contained in set B, then set A is a subset of set B.
If A = {1, 2, 3} and B = {1, 2, 3, 4, 5}, then A is a subset of B.
If A = B, then A is a subset of B, and B is a subset of A.
If A has n elements, then A has 2n subsets.
Example:
A = {1, 2, 3} then the subsets of A are : {}, {1}, {2}, {3}, {1, 2}, {1, 3}, {2, 3}, {1, 2, 3}.
Note that {}, {1, 2, 3} are subsets of A.
Proper subset
If A is a subset of B and A ≠ B, then A is a proper subset of B.
If A has n elements, then A has (2n - 1) proper subsets.
Intersection
The intersection of 2 sets, A and B, is denoted by A ∩ B. Read "A intersect B".
A ∩ B contains all the elements common to both A and B, but no other element.
Example: If A = {1, 2, 3} and B = {3, 4, 5} then A ∩ B = {3}.
The element 3 is in both A and B, and so is the only 'place' where A and B intersect.
Not B
If B means not B, that is, not-part-of-B, then
AB=part of A which is not-part-of-B
=A – A∩B

That is, AB = A - A ∩ B
Union
The union of 2 sets, A and B, is the set A U B, A ∪ B containing the elements of each A and B, but no other.
A ∪ B is read "A union B".
Example: If A = {1, 2, 3} and B = {3, 4, 5} then A U B = {1, 2, 3, 4, 5}.
Although the element 3 is in both A and B, it occurs only once in A ∪ B.


[Sorry, but my diagrams cannot show the ∩ symbol.]
This diagram shows that A U B consists of 3 parts.
A ∪ B=AB + A ∩ B + BA
=(AB + A ∩ B) + (BA + A ∩ B) - A ∩ B
Check by removing the brackets and adding.
From the preceding line, because:
(AB + A ∩ B) becomes A and
(BA + A ∩ B) becomes B,
we have:
A ∪ B=A + B - A ∩ B
This formula should be learnt.
Universal set
The universal set is the biggest set possible in your discussion.
This definition is loose enough to adapt to any situation. If your discussion is about cows, the universal set can be ALL the cows on your farm or ALL the cows in your district or ALL the cows in your country, the world, the universe. YOU decide.
Complement of a set
The complement of set A is the universal set minus set A.
The complement of A is usually denoted by A.


Disjoint sets
Disjoint sets are sets which have no common or shared elements.
A ∩ B = Ø
Number of elements
The number of elements in a set A is usually denoted by n(A).

Venn diagrams