Lecture 1.01 - Set Notation
Lecture 1.01 - Set Notation
MATH1081 Topic 1 – Set theory and functions Lecture 1.01 – Set notation 1/8
Set notation
Definition. A set is a well-defined, unordered collection of distinct objects.
The objects contained in a set are called its elements.
Notation. A set can be represented by writing its elements surrounded by
braces (curly brackets). For example, the set S with just the elements 1, 2,
and 3 can be written as S = {1, 2, 3}.
Since sets are unordered collections, this set S can also be written as
S = {3, 1, 2} = {1, 2, 3}.
Since the elements of a set are distinct, repetition of elements is ignored, so
the set S can also be written as S = {1, 2, 2, 3, 3, 3} = {1, 2, 3}.
Example. Simplify each of the following sets.
• {x, a, y , x, a, y } = {a, x, y }.
• {even numbers between 1 and 9} = {2, 4, 6, 8}.
Notice that the elements of a set can be numbers, letters, or any other
object, and can be given explicitly or descriptively.
MATH1081 Topic 1 – Set theory and functions Lecture 1.01 – Set notation 2/8
Defining sets
Notation. The set membership symbol ∈ is used to indicate that an object
is an element of a set. We write x ∈ S to mean “x is an element of S”. We
can also use the symbol ̸∈ to indicate non-membership of a set.
For example, writing S = {1, 2, 3}, we have 1 ∈ S but 0 ̸∈ S. Similarly, we
have a ∈ {a, x, y } while b ̸∈ {a, x, y }.
We can properly define a set by writing out all its elements, or by giving a
careful description of its elements. So long as there is no ambiguity, we can
also use the ellipsis symbol (... ) to help describe a set. For example:
• {letters in the English alphabet} = {A, B, C, ... , Z}.
Notation. A colon (:) or vertical bar (|) symbol can be used to introduce
additional properties that define the elements of a set. We write
{x ∈ S : (some property of x)} or {x ∈ S | (some property of x)}
to mean “the set of elements in S that satisfy the property”, or literally, “all
x in S such that x satisfies the property”.
For example, writing S = {1, 2, 3}, we have {x ∈ S : x > 1} = {2, 3}.
MATH1081 Topic 1 – Set theory and functions Lecture 1.01 – Set notation 3/8
Numeric sets
Notation. The following are some important and commonly-used sets of
numbers.
• N = {0, 1, 2, 3, ... }, the set of natural numbers. Note here that 0 ∈ N.
• B = {n ∈ Z | n2 = 4} = {−2, 2}.
• C = {x ∈ Z+ : x
2 ∈ Z} = {2, 4, 6, 8, ... }.
• D = {2k : k ∈ Z+ } = {2, 4, 6, 8, ... } = C .
• E = {x ∈ D : x ̸∈ R} = {}.
Definition. The set with no elements is called the empty set, which is
written as {} or ∅.
Definition. The cardinality or size of a set is the number of distinct
elements it contains. We write |S| to mean “the cardinality of the set S”.
Note that if S is finite, then |S| ∈ N.
Example. Find the cardinality of each of the sets from the previous example.
• |A| = 5. • |C | =|D| are infinite.
• |B| = 2. • |E | = 0.
MATH1081 Topic 1 – Set theory and functions Lecture 1.01 – Set notation 5/8
Sets within sets
We have seen that sets can contain elements of any type. In particular, sets
themselves can be contained in other sets. For example, if we think of
tutorials as sets of students, then the set of all MATH1081 tutorials is a set
containing sets.
For another example, consider the set S = {1, 2, {3, 4}}. It contains the
elements 1, 2, and {3, 4}. This means we can write that {3, 4} ∈ S. This
also tells us that the cardinality of S is given by |S| = 3. Notice that the
elements of {3, 4} are not related to the elements of S nor the cardinality
of S. So in particular, in this case 3 ̸∈ S and 4 ̸∈ S.
Example. Find the cardinality of each of the following sets.
• | {x, {x}} | = 2.
• | {x, y , {x}, {y }, {x, y }, N} | = 6.
• | {{}} | = 1.
• | {{{}}} | = 1.
MATH1081 Topic 1 – Set theory and functions Lecture 1.01 – Set notation 6/8
Sets within sets
Example. What is the difference between the sets ∅, {∅}, and {∅, {∅}}?
Let’s describe each of these sets:
• ∅ is the empty set.
• {∅} is the set containing one element, namely, the empty set ∅.
X |X | ∅ ∈ X? {∅} ∈ X ?
∅ 0 No No
{∅} 1 Yes No
{∅, {∅}} 2 Yes Yes
MATH1081 Topic 1 – Set theory and functions Lecture 1.01 – Set notation 7/8
Case study: Russell’s paradox
Occasionally we will encounter “case studies”, which are included to give
more context to the topics we are studying.
These case studies are considered additional content and are not examinable.
In 1901, logician Bertrand Russell posed a problem that is now known as
Russell’s paradox (also attributed to Ernst Zermelo):
Problem. (Russell’s paradox)
Let S = {sets which are not elements of themselves}. Is S an element of S?
• By the definition, any element X ∈ S must satisfy X ̸∈ X . Replacing X
with S, we see that if S ∈ S, then S ̸∈ S, which is a contradiction.
• Similarly, by the definition, any set such that X ̸∈ X must satisfy X ∈ S.
Replacing X with S, we see that if S ̸∈ S, then S ∈ S, which is again a
contradiction.
So neither “S ∈ S” nor “S ̸∈ S” can be true statements!
We mentioned earlier that a set must be well-defined. Russell’s paradox
provides an example of a set that is not well-defined, in this case due to its
definition being self-referential.
MATH1081 Topic 1 – Set theory and functions Lecture 1.01 – Set notation 8/8