0% found this document useful (0 votes)
27 views

Lecture 1.01 - Set Notation

MATH1081 introduces set theory and functions in Topic 1. This first lecture defines basic set notation and discusses sets of numbers. It introduces set membership, the empty set, cardinality, and sets within sets. An example is given to explain the difference between the empty set, the set containing the empty set, and the set containing the empty set and the set containing the empty set.

Uploaded by

Amelia Amelia
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Lecture 1.01 - Set Notation

MATH1081 introduces set theory and functions in Topic 1. This first lecture defines basic set notation and discusses sets of numbers. It introduces set membership, the empty set, cardinality, and sets within sets. An example is given to explain the difference between the empty set, the set containing the empty set, and the set containing the empty set and the set containing the empty set.

Uploaded by

Amelia Amelia
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

MATH1081 – Discrete Mathematics

Topic 1 – Set theory and functions


Lecture 1.01 – Set notation

Lecturer: Nathan J Jackson – [email protected]


Based on materials prepared by Dr Sean Gardiner
Introduction to set theory and functions
The mathematical study of set theory began in 1874, founded by Georg
Cantor. Mathematical sets underlie almost all branches of mathematics, and
set theory provides an important framework for describing and understanding
formal logic.
In MATH1081, we will encounter sets throughout all 5 topics of the course.
In this first topic, we will also use sets to motivate the investigation of
functions, another fundamental mathematical concept that appears in
almost all branches of mathematics.
Much of our study of Topic 1 will be focused on definitions and results
about sets and functions. Probably the most difficult part of this topic is
understanding and applying the different methods of proof regarding
properties of sets and functions. We will revisit these ideas in a more
generalised sense in Topic 3 (Proofs and logic).

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}.

• {letters in BANANA} = {A, B, N}.

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}.

• {positive even numbers} = {2, 4, 6, 8, ... }.

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.

• Z = {... , −3, −2, −1, 0, 1, 2, 3, ... }, the set of integers.


• Z+ = {x ∈ Z : x > 0} = {1, 2, 3, ... }, the set of positive integers.
n o n o
p
• Q= : p, q ∈ Z, q ̸= 0 = qp : p ∈ Z, q ∈ Z+ , the set of
q
rational numbers. The rational numbers include all integers and fractions.
• R = {all points on the real number line}, the set of real numbers. The
real √
numbers include all rational numbers as well as all irrational numbers
like 2, π, and e.
• C = {a + bi : a, b ∈ R, i 2 = −1}, the set of complex numbers. The
complex numbers include all real numbers as well as imaginary numbers
(real multiples of the imaginary unit i) and their sums.
Much of this course is focused on the sets N, Z, and Z+ . In fact, the study
of number theory (seen in Topic 2) is exclusively concerned with integers.
MATH1081 Topic 1 – Set theory and functions Lecture 1.01 – Set notation 4/8
The empty set and cardinality
Example. Write out the following sets explicitly.
• A = {x ∈ N | x < 5} = {0, 1, 2, 3, 4}.

• 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.

• | {x, {x}, {x, x}} | = | {x, {x}, {x}} | = | {x, {x}} | = 2.

• | {{}} | = 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 ∅.

• {∅, {∅}} is a set containing two elements, namely, ∅ and {∅}.

So when we put this together, we end up with the following:

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

You might also like