A set is its members
{1, 2} and {2, 1, 1} are the same set. Notation differs; the object does not. This is called extensionality.
A set is determined entirely by what belongs to it. Roster and set-builder notation, the empty set, and why order and repetition carry no information.
Core ideas
Two sets are equal when they have the same members. Everything in this lesson follows from that single sentence.
{1, 2} and {2, 1, 1} are the same set. Notation differs; the object does not. This is called extensionality.
x ∈ A is either true or false for every x. A collection where membership is uncertain is not a set in this sense.
∅ has no members, and there is only one such set. ∅ and {∅} are different: the second has one member, which happens to be empty.
The material
Notation, equality, and the standard number sets.
A set is a collection of distinct objects, called its elements or members. We write x ∈ A when x is a member of A, and x ∉ A when it is not.
Two notations describe sets. Roster notation lists the members: A = {2, 3, 5, 7}. Set-builder notation states the property that characterises them: A = {x ∈ ℤ : x is prime and x < 10}. The colon is read "such that", and a vertical bar is used equally often.
A = B exactly when every member of A is a member of B and conversely — that is, ∀x (x ∈ A ↔ x ∈ B). A set carries no information beyond its membership.
Two consequences follow immediately, and both surprise people once. Order carries no information: {1, 2} = {2, 1}. Repetition carries none either: {1, 1, 2} = {1, 2}. If you need order, you need a sequence or a tuple, which “Cartesian Products and Tuples” supplies.
∅ (also written {}) is the set with no members. There is exactly one: any two sets with no members satisfy extensionality vacuously.
The distinction between ∅ and {∅} is worth ten seconds. The first has zero members. The second has one member — the empty set. |∅| = 0 and |{∅}| = 1, and a box containing an empty box is not an empty box.
Whether 0 ∈ ℕ is a convention, not a fact, and sources differ. This path includes it, and says so wherever it matters — a base case at n = 0 versus n = 1 is exactly the kind of detail Induction and Recursion cannot leave ambiguous.
For a finite set A, |A| is the number of members. |{1, 2, 3}| = 3 and |∅| = 0. “Cardinality and Countability” extends this to infinite sets, where it stops behaving the way the notation suggests.
{x ∈ ℝ : x² < 0} is ∅, written in a form that does not look empty. A set-builder description says which objects belong; it does not promise that any do.
Interactive
Two expressions, one membership
Method
Decide membership one element at a time.
{x ∈ ℤ : P(x)} is exactly the elements of ℤ satisfying P. The domain before the colon matters as much as the condition after it.
Substituting three or four values tells you whether you have read the condition correctly. It does not tell you the set.
A condition no element satisfies describes ∅. This is not an error, and it is easy to miss.
Roster for small sets, set-builder for large or infinite ones. Being able to move between them is what makes a proof of equality writable.
Let A = {x ∈ ℤ : x = 3k + 1 for some k ∈ ℤ}.
Note that −2 required a negative k. Set-builder conditions quantify over the domain stated, and forgetting that k may be negative is how half a set goes missing.
Given {2, 4, 6, 8, 10}, write a set-builder description; given {x ∈ ℤ : x² < 10}, write the roster. If the second gives you seven elements you have remembered the negatives.
Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.
No recommendations yet for this lesson.