What is a Set?
A set is an unordered collection of distinct objects called elements or members.
Notation
- a∈A means "a is an element of set A"
- a∈/A means "a is not an element of A"
Ways to Define Sets
Roster Method (Listing)
A={1,2,3,4,5}
B={a,e,i,o,u}
Set-Builder Notation
A={x∣x is a positive integer less than 6}
B={x∈R∣x2−1=0}={−1,1}
Interval Notation (for real numbers)
[a,b]={x∈R∣a≤x≤b}
(a,b)={x∈R∣a<x<b}
Important Number Sets
| Symbol | Name | Elements |
|---|
| N | Natural numbers | {0,1,2,3,…} or {1,2,3,…} |
| Z | Integers | {…,−2,−1,0,1,2,…} |
| Z+ | Positive integers | {1,2,3,…} |
| Q | Rational numbers | {qp∣p,q∈Z,q=0} |
| R | Real numbers | All points on the number line |
| C | Complex numbers | {a+bi∣a,b∈R} |
Special Sets
Empty Set
The set with no elements:
∅={}={x∣x=x}
Note: ∅={∅} (empty set vs. set containing empty set)
Universal Set
The set U containing all objects under consideration.
Set Equality
Two sets are equal if they have exactly the same elements:
A=B⟺∀x(x∈A↔x∈B)
Properties
- Order doesn't matter: {1,2,3}={3,1,2}
- Repetition doesn't matter: {1,1,2}={1,2}
Subsets
A is a subset of B if every element of A is in B:
A⊆B⟺∀x(x∈A→x∈B)
A is a proper subset of B if A⊆B and A=B:
A⊂B⟺A⊆B∧A=B
Properties
- ∅⊆A for any set A
- A⊆A (reflexive)
- If A⊆B and B⊆A, then A=B
- If A⊆B and B⊆C, then A⊆C (transitive)
Cardinality
The cardinality of a finite set is the number of elements:
∣A∣=n if A has exactly n elements
Examples
- ∣{1,2,3}∣=3
- ∣∅∣=0
- ∣{a,{b,c}}∣=2
Power Set
The power set of A is the set of all subsets of A:
P(A)={S∣S⊆A}
Example
If A={1,2}:
P(A)={∅,{1},{2},{1,2}}
Cardinality
If ∣A∣=n, then ∣P(A)∣=2n
Cartesian Product
The Cartesian product of A and B:
A×B={(a,b)∣a∈A∧b∈B}
Example
If A={1,2} and B={a,b}:
A×B={(1,a),(1,b),(2,a),(2,b)}
Properties
- A×B=B×A (unless A=B or one is empty)
- ∣A×B∣=∣A∣⋅∣B∣
- A×∅=∅
n-tuples
A1×A2×⋯×An={(a1,a2,…,an)∣ai∈Ai}
An=A×A×⋯×A (n times)
Russell's Paradox
Consider: R={S∣S∈/S} (set of all sets that don't contain themselves)
Is R∈R?
- If R∈R, then by definition R∈/R — contradiction!
- If R∈/R, then by definition R∈R — contradiction!
This paradox shows naive set theory needs restrictions (resolved by axiomatic set theory).