Completed: / exercises

HW0: Set Theory Foundations

Due date: 2026-01-15 23:59.
Recommended Resources:
This homework is designed to help you assess and refresh some of the background knowledge and notation that will be important for the rest of the course. Completing this assignment will help identify any areas that may need review and set you up for success in the rest of the course.

Set Theory Basics

A set is a collection of objects that are referred to as elements (or members).
Usually curly brackets are used when listing out the elements of a set. The order in
which the elements appear is not important. For example,
X = \{1, 4, 5\} = \{4, 1, 5\} = \{5, 4, 1\} \\\
The following symbols are used to indicate when an object is or is not an element of a set.
\in \text{--- used to show an object is an element of a set} \\ \notin \text{--- used to show an object is not an element of a set} \\\
For example, we can make the following statements about the set X defined earlier.
5 \in X, 3 \notin X \\\
Sets are often represented with capital letters, while their elements are often represented with lowercase letters, such as
x \in X \\\
A set that contains no elements is referred to as the empty set, and is denoted by
a special symbol.
\emptyset \text{ --- symbol for the empty set} \\\
A set is not required to consist of numbers. For example, one could have a set of
strings.
\{\text{``cat'', ``dog'', ``mouse'', ``fish''}\} \\\
There are some additional restrictions on what collections of objects are allowed to
be sets. Those restrictions are out-of-scope for this class, but those who are interested
in why those restrictions exist should look into Russell's Paradox.

Problem 1

Consider the following set.
Z = \{3, 5, 9, 53, 99\} \\\
Choose the correct statements.
Warning: You have not logged in. You cannot answer.

Subsets and Supersets

Consider the following three sets.
X = \{1, 2, 3\}, Y = \{1, 2, 3, 0\}, Z = \{1, 2, 3\} \\\
Each element of X is also an element of Y . This means that X is a subset of Y and the set Y is a superset of X. The following four symbols are used to indicate subset and superset relationships.
X \subseteq Y \text{ --- X is a subset of Y} \\ Y \supseteq X \text{ --- Y is a superset of X} \\ X \subset Y \text{ --- X is a subset of Y and } X \neq Y \\ Y \supset X \text{ --- Y is a superset of X and } X \neq Y \\\
It is possible for a set to be both a subset and a superset of another set. For example,
each element of Z is an element of X and each element of X is an element of Z.
Therefore both X ⊆ Z and X ⊇ Z are true statements.

Problem 2

Consider the following sets.
A = \{\text{``cat'', ``dog'', ``fish''}\} \\ B = \{\text{``dog'', ``fish'', ``bird'', ``cat''}\} \\ C = \{\text{``bird'', ``cat''}\} \\\
Choose the correct statements
Warning: You have not logged in. You cannot answer.

Intersections and Unions

The set consisting of elements that are elements of both set X and set Y are referred to as
the intersection of X and Y . The set consisting of elements that are elements of set X, elements of set Y , or elements of both are referred to as the union of X and Y .
\cap \text{ --- the operator for the intersection of sets} \\ \cup \text{ --- the operator for the union of sets} \\\
Suppose that X and Y are defined as follows.
X = \{2, 3, 5\}, Y = \{1, 2, 3, 7\} \\\
In that case, the intersection of the sets is:
X \cap Y = \{2, 3\} \\\
And the union of the sets is:
X \cup Y = \{1, 2, 3, 5, 7\} \\\
The intersection and union can be easily visualized with a Venn diagram.

Problem 3

Consider the following sets.
X = \{25, 50, 100\} \\ Y = \{50, 75, 100\} \\ Z = \{10, 25\} \\\
Choose the correct statements
Warning: You have not logged in. You cannot answer.

Infinite Sets

Sets are not required to contain a finite number of elements. Four infinite sets are particularly useful and each of them is represented by a particular "blackboard bold" letter.
The natural numbers are the positive whole numbers starting from 1 (some definitions start from 0 instead). These are the numbers you would use if you were counting a set of objects out loud. The set of natural numbers is denoted with a blackboard bold ℕ.
\mathbb{N} = \{1, 2, 3, 4, 5, \dots \} \text{ (Natural numbers)} \\\
The integers consists of the natural numbers, along with zero and the negative whole numbers. The set of integers is denoted with a blackboard bold ℤ.
\mathbb{Z} = \{\dots, -2, -1, 0, 1, 2, \dots \} \text{ (Integers)} \\\
The rational numbers consists of numbers that can be written as fractions of integers. The set of rational numbers is denoted with a blackboard bold ℚ.
\frac{3}{4}, 6, \frac{-10}{3} \in \mathbb{Q} \text{ (Rational Numbers)} \\\
The rational numbers do not include numbers that cannot be represented as fractions of integers.
\sqrt{2}, \pi \notin \mathbb{Q} \\\
The set that includes "all" of the numbers is called the real numbers, represented with a blackboard bold ℝ.
\sqrt[3]{7}, e, \frac{\pi}{2}, -100, 0, 1.5 \in \mathbb{R} \text{ (Real Numbers)} \\\
Interval subsets of the real numbers are denoted with parentheses and square brackets. A parenthesis is used when the endpoint is not included in the interval, and a square bracket is used when the endpoint is included.
(0,1) \text{ --- } x \text{ is part of the set if } 0 < x < 1 \\ [0,1] \text{ --- } x \text{ is part of the set if } 0 \leq x \leq 1 \\ \\\
It is acceptable to use a parenthesis on one side of the interval and a square bracket on the other side. The following intervals are perfectly valid.
[0,1) \text{ --- } x \text{ is part of the set if } 0 \leq x < 1 \\ (0,1] \text{ --- } x \text{ is part of the set if } 0 < x \leq 1 \\ \\\
A rigorous definition of the real numbers is outside of the scope of this class and it might seem like there is not much of a difference between the rational numbers and the real numbers (after all, there are an infinite number of both between 0 and 1). However, the set of real numbers is significantly "larger" than the rational numbers. Those who are interested in the distinction should look into Cantor's Diagonalization Proof.

Problem 4

Select the correct statements.
Warning: You have not logged in. You cannot answer.

Cartesian Products

Sometimes it is useful to define a set that combines elements from two other sets. For example, consider a chessboard. It has a set of a set of columns.
C = \{A, B, C, D, E, F, G, H\} \\\
And it has a set of rows.
R = \{1, 2, 3, 4, 5, 6, 7, 8\} \\\
Any specific square on the chessboard can be described by the combination of a
column and a row.
Sets whose elements are formed by choosing one element from each of a list of input sets are called Cartesian products. The cross operator is used to indicate that a Cartesian product is being formed from sets.
C \times R \text{ --- the Cartesian product of C and R} \\\
Usually the elements of a set formed from a Cartesian product are written with parentheses.
For example, suppose we have the following two sets.
X = \{2,3\}, Y = \{5,8\} \\\
In that case, the Cartesian product of those two sets consists of the following elements.
X \times Y = \{ (2,5), (2,8), (3,5), (3,8) \} \\\
Note that order within the parentheses is important for Cartesian products.
(2,5) \in X \times Y \text{ but } (5,2) \notin X \times Y \\\
Cartesian products can be made from more than two input sets.
X = \{2,3\}, Y = \{5,8\}, Z = \{1,3\} \\ X \times Y \times Z = \{ (2,5,1), (2,8,1), (3,5,1), (3,8,1), \allowbreak (2,5,3), (2,8,3), (3,5,3), (3,8,3)\} \\\
Cartesian products of the infinite sets we described earlier are particularly useful when describing something's position. For example, a car driving on the ground could have its position described by a pair of real numbers representing their longitude and latitude. An airplane could have its position described by a longitude, a latitude, and an altitude. (Let us assume that the car and airplane are not traveling so far that they have to worry about going around the entire planet.) Something that moves around on an infinite grid could have its position described by a pair of integers representing the x and y coordinates. Cartesian products between the same infinite set are often denoted with exponents.
\mathbb{R} \times \mathbb{R} = \mathbb{R}^2 \text{ --- position on flat surface} \\ \mathbb{R} \times \mathbb{R} \times \mathbb{R} = \mathbb{R}^3 \text{ --- position in air or space} \\ \mathbb{Z} \times \mathbb{Z} = \mathbb{Z}^2 \text{ --- position on an infinite grid} \\\

Problem 5

Consider the following sets.
Y = \{5, 6, 7\} \\ Z = \{a, b, c\} \\\
Choose the correct statements.
Warning: You have not logged in. You cannot answer.

Sets of Sets and Power Sets

A set can contain another set as an element. In these situations, it is very important to remember the differences between being an element of a set and of being a subset of a set. For example, consider the following two sets.
X = \{2, 5\}, Y = \{ \emptyset, \{2, 5\}, \{2, 6\} \} \\\
In this case,
X \in Y,\text{ but } X \not\subseteq Y \\\
The set of all subsets of a set X is referred to as the power set of X. This is usually denoted 2X or pow(X). For example,
X = \{1, 2\} \\ 2^X = \{ \emptyset, \{1\}, \{2\}, \{1, 2\} \} \\~\\ Y = \{2, 5, 7\} \\ 2^Y = \{ \emptyset, \{2\}, \{5\}, \{7\}, \{2, 5\}, \{2, 7\}, \{5, 7\}, \{2, 5, 7\} \} \\\

Problem 6

Consider the following sets.
A = \{1, 2\} \\ B = \{1, 2, 3\} \\ C = \{ \{1, 2\}, \{2, 3\} \} \\ \\\
Choose the correct statements.
Warning: You have not logged in. You cannot answer.

Quantifiers

Consider the following two sets
X = \{1, 2, 3\}, Y = \{2, 4, 5, 6\} \\\
It is obvious from looking at those sets that for each element x in X, there is an element y in Y such that
y = 2x.
There is notation that can be used to write statements like this
\forall \text{ --- ”all”, ”for all”, or ”for each”} \\ \exists \text{ --- ”exists” or ”there exists”} \\ | \text{ --- "such that"} \\\
For the X and Y sets above, we can make the following statement:
\forall x \in X, \exists y \in Y~|~y=2x \\\
Which directly translates to "for each x in X, there exists a y in Y such that y=2x".

Problem 7

Consider the following sets.
X = \{1, 2, 3\} \\ Y = \{3, 4, 5, 6\} \\\
Choose the correct statements.
Warning: You have not logged in. You cannot answer.

Set Builder Notation

Listing all of the individual elements of a set is often not practical. Set builder notation can be used to quickly define the elements of a set based on a condition and a previously defined superset that the set elements are being drawn from. Set builder notation consists of the following pieces:
  1. An opening curly bracket - {
  2. A variable and the superset being drawn from. For example, n ∈ ℤ or (x,y) ∈ ℝ2 .
  3. A "such that" vertical bar - |
  4. A condition on the variable that must be true for any values of the variable that are to be included in the set and false for anything not included in the set. For example, ∃m ∈ ℤ, n=2m or x2 + y2 = 1.
  5. A closing curly bracket - }
If we put together these pieces using the examples above, we can quickly define things like the set of even integers:
\{n \in \mathbb{Z}~|~\exists m ∈ ℤ, n=2m \} \\\
Or the set of points on a circle of radius 1 centered at the origin.
\{ (x,y) \in \mathbb{R}^2~|~x^2 + y^2 = 1 \} \\\

Problem 8

Consider the following sets.
A = \{1, 2, 3\} \\ B = \{-1, 0, 1\} \\ C = 2^\mathbb{N} \\ S = \{\text{``cat'', ``dog'', ``fish''}\} \\\
Choose the correct statements.
Warning: You have not logged in. You cannot answer.

Authors

Hannah Erickson
?