Introduce to Set
BasisSets are the foundation on which almost all of modern mathematics is built. Functions, sequences, probability spaces, even the natural numbers themselves — all of these are ultimately defined in terms of sets. Before you can read or write serious mathematics, you need to be fluent with sets.
What is a set?
A set is an unordered collection of distinct objects. The objects it contains are called its elements (or members).
The most direct way to describe a set is to list its elements inside curly braces:
Two things to keep in mind:
- Order doesn’t matter. and are the same set.
- Repetition is ignored. is the same set as .
Membership
The symbol means “is an element of.” Its negation means “is not an element of.”
Standard number sets
Certain sets of numbers appear so often that they have reserved symbols:
| Symbol | Name | Elements |
|---|---|---|
| Natural numbers | ||
| Integers | ||
| Rational numbers | ||
| Real numbers | ||
| Complex numbers |
Convention: Whether varies by author. In this series, is a natural number.
Set-builder notation
Listing elements works for small sets, but most interesting sets are too large — or infinite — to list explicitly. Set-builder notation lets you describe a set by a property its elements must satisfy:
Read this as: “the set of all in such that ” — the positive reals. The vertical bar stands for “such that.” You will also see a colon used in its place: .
More generally:
denotes the subset of consisting of all elements for which the predicate holds.
The empty set
The empty set (also written ) is the unique set that contains no elements. For every object , you have .
The empty set plays the same structural role in set theory that plays in arithmetic.
Subsets
A set is a subset of , written , when every element of is also an element of :
If but , then is a proper subset of , written .
A few facts worth memorizing:
- for every set .
- for every set .
- .
Set equality
Two sets are equal when they contain exactly the same elements. The standard way to prove is to show mutual containment:
This means sets are fully determined by their elements alone — it does not matter how you wrote down the set.
Core set operations
Given sets and , you can form new sets using the following operations.
Union
The union collects every element that belongs to , to , or to both:
Intersection
The intersection keeps only elements that belong to both and :
When , the sets are called disjoint.
Set difference
The difference (read: ” minus ”) contains elements of that are not in :
Complement
When all sets under discussion sit inside a fixed universal set , the complement of is everything in that is not in :
Cardinality
The cardinality of a finite set , written , is the number of elements it contains:
For infinite sets — like or — cardinality still makes sense, but requires more care. You will encounter the full theory of infinite cardinality in later checkpoints.
Summary
- A set is an unordered collection of distinct objects; write it as or with set-builder notation .
- means belongs to ; means it does not.
- The empty set has no elements and is a subset of every set.
- iff every element of is in ; iff and .
- Core operations: union (), intersection (), difference (), complement ().
- The cardinality counts how many elements a set has.