Naive set theory: Elementary notions and notations
Operations on sets: intersection, union, difference, and complement
Sets can be combined in various ways.
Intersection of sets
Intersection
The intersection of two sets and , denoted as , is the set of all elements that belong to and to . In formula form:
Analogously, the intersection of indexed sets :
Examples
If , then
For all sets , , and :
- is idempotent: .
- is commutative: .
- is associative: .
- if and only if .
- .
- and .
- If then .
- If and then .
Union of sets
Union
The union of two sets and , denoted as , is the set of all elements that belong to or to . In formula form:
Analogously, the union of indexed sets :
Examples
If , then
For all sets , , and :
- is idempotent: .
- is commutative: .
- is associative: .
- if and only if .
- .
- and
- If then .
- if and only if and .
Absorption laws For all sets and :
- .
- .
Distributive laws For all sets , , and :
- .
- .
Difference of sets and complement
Difference and complement
If and are sets, then the difference of A and B , denoted , is the set of all elements that belong to and not to . In formula form:
From the definition of difference it immediately follows that for every set and the universe :
Examples
Symmetric difference of sets
Symmetric difference
The symmetric difference of two sets and , denoted as , is in formula form:
This Venn diagram also illustrates:
Examples
For a set the following applies:
For all sets , , and the following statement is true: