Skip to main content

Chapter 8 Basic Set Theory and Countability

We now modify our notion of function so that the domain and range are not restricted to subsets of the real numbers. From this point on, we will also allow the possibility that a set is empty.

Definition 8.1

Given two sets \(X\) and \(Y\text{,}\) \(X \times Y = \{(x,y): x \in X, y\in Y\}\text{.}\) A relation on \(X \times Y\) is a subset of \(X \times Y\text{.}\) A function on \(X \times Y\) is a relation on \(X \times Y\) with the property that no two elements have the same first coordinates. The set of all first coordinates is called the domain of the function and the set of all second coordinates is called the range of the function.

For a function \(f\) on \(X \times Y\) we will write \(f : X \to Y\) and if \((u,v)\) is an element of \(f\) then we will use the notation, \(f(u)=v\text{.}\) In this case, we say that \(f\) maps \(u\) to \(v\text{.}\)

Definition 8.2

If \(f: X \to Y\) is a function, then \(f\) is injective (one-to-one) if no two elements of \(X\) map to the same element in \(Y\text{.}\) We say that \(f\) is surjective (onto \(Y\)) if for each element \(y \in Y\) there is some element \(x \in X\) such that \(f(x) = y\text{.}\) We call an injective function an injection, a surjective function a surjection, and a function that is both injective and surjective a bijection.

Problem 8.3

Show that the function \(f: \R \to Y\) defined by \(f(x) = \frac{x}{x-2}\) is not surjective if \(Y=\R\text{,}\) but is surjective if \(Y\) is the range of \(f\text{.}\)

Definition 8.5

Given a function \(f: X \to Y\text{,}\) the relation \(f^{-1}\) is defined by \(f^{-1} = \{ (v,u) : (u,v) \in f \}\text{.}\)

The set \(f^{-1}\) might not be a function. If \(f\) is injective then by Theorem 8.4 we have that \(f^{-1}\) is a function. From this point forward, we may use (i) “\(\exists\)” to mean “there exists,”(ii) “\(\not \in\)” to mean “is not in” and (iii) “\(\ni\)” to mean “such that.”

Definition 8.6

If \(f: X \to Y\) and \(A \subseteq X\) then the image of \(A\) under \(f\) is \(\{ f(x) : x \in A\}\) and is denoted by \(f(A)\text{.}\) More precisely, \(f(A) = \{ y \in Y : \exists x \in A \ni f(x) = y \}\text{.}\)

Definition 8.7

If \(f : X \to Y\) and \(A \subseteq Y\) then the inverse image of \(A\) under \(f\) is \(\{ x \in X : f(x) \in A \}\) and is denoted by \(f^{-1}(A)\text{.}\) This is called the pre-image of \(A\) under \(f\).

Definition 8.10

Assume that each of \(A\) and \(B\) are subsets of the set \(X\text{.}\) Assume that \(\Lambda\) is a set and that \(A_{\lambda}\) is a subset of \(X\) for each \(\lambda \in \Lambda\text{.}\) The set \(\Lambda\) is called an index set.

  1. \(\emptyset =\) the empty set

  2. \(\displaystyle{ A^c = \{ x \in X : x \not\in A \}}\)

  3. \(\displaystyle{ A \cup B = \{ x \in X : x \in A \mbox{ or } x \in B \}}\)

  4. \(\displaystyle{ A \cap B = \{ x \in X : x \in A \mbox{ and } x \in B \}}\)

  5. \(\bigcup_{\lambda \in \Lambda} A_{\lambda} = \{ x \in X : x \in A_{\lambda} \mbox{ for some } \lambda \in \Lambda \}\)

  6. \(\bigcap_{\lambda \in \Lambda} A_{\lambda} = \{ x \in X : x \in A_{\lambda} \mbox{ for every } \lambda \in \Lambda \}\)

We won't present the next theorem. You only need to write down a proof if you cannot write down a proof.

Definition 8.16

A set is countable if it is the range of some sequence.

Definition 8.21

A set is perfect if every point of the set is a limit point of the set.

Problem 8.22

Show that there exists a set, other than \(\R\text{,}\) that is countable, infinite and closed. Show there exists a set that is countable and perfect. Show that there exists a set that is closed and perfect.

This fun foray to show that \(\R\) is not countable was unnecessary, since we showed this in Theorem 2.19.