Finite, Countable, and Uncountable Sets

2.1 Rudin Definition. Consider two sets $A$ and $B,$ whose elements may be any objects whatsoever, and suppose that with each element $x$ of $A$ there is associated, in some manner, an element of $B,$ which we denote by $f(x).$ Then $f$ is said to be a function from $A$ to $B$, (or a mapping of $A$ into $B$.) The set $A$ is called the domain of $f$. (We also say $f$ is defined on $A$), and the elements $f(x)$ are called the values of $f$. The set of all values of $f$ is called the range of $f$.

2.2 Rudin Definition. Let $A$ and $B$ be two sets and let $f$ be a mapping of $A$ into $B.$ If $E \subset A,$ $f(E)$ is defined to be the set of all elements $f(x),$ for $x \in E.$ We call $f(E)$ the image of $E$ under $f$. In this notation, $f(A)$ is the range of $f.$ It is clear that $f(A) \subset B.$ If $f(A) = B,$ we say that $f$ maps $A$ onto $B$. (Note that, according to this usage, onto is more specific than into.)

If $E \subset B,$ $f^{-1}(E)$ denotes the set of all $x\subset A$ such that $f(x) \in E.$ We call $f^{-1}(E)$ the inverse image of $E$ under $f$. If $y \in B,$ $f^{-1}(y)$ is the set of all $x \in A$ such that $f(x) = y.$ If, for each $y\in B,$ $f^{-1}(y)$ consists of at most one element of $A,$ then $f$ is said to be a one-to-one mapping of $A$ into $B$. This may also be expressed as follows: $f$ is a one-to-one mapping of $A$ into $B$ provided that $f(x_1) \ne f(x_2)$ whenever $x_1\ne x_2,$ $x_1 \in A,$ $x_2 \in A.$ (The notation $x_1 \ne x_2$ means that $x_1$ and $x_2$ are distinct elements; otherwise we write $x_1 = x_2.$)

2.3 Rudin Definition. If there exists a one-to-one mapping of $A$ onto $B,$ we say that $A$ and $B$ can be put in one-to-one correspondence, or that $A$ and $B$ have the same cardinal number, or, briefly, that $A$ and $B$ are equivalent, and we write $A \sim B.$ This relation clearly has the following properties:

  • reflexive: $A \sim A$
  • symmetric: If $A \sim B,$ then $B \sim A.$
  • transitive: If $A \sim B$ and $B \sim C,$ then $A \sim C.$
Any relation with these three properties is called an equivalence relation.

2.4 Rudin Definition. For any positive integer $n,$ let $J_n$ be the set whose elements are the integers $1, 2, \ldots, n.$ Let $J$ be the set consisting of all positive integers. For any set $A,$ we say:

  1. $A$ is finite if $A \sim J_n$ for some $n$ (the empty set is also considered to be finite).
  2. $A$ is infinite if $A$ is not finite.
  3. $A$ is countable if $A \sim J.$
  4. $A$ is uncountable if $A$ is neither finite nor countable.
  5. $A$ is at most countable if $A$ is finite or countable.
Countable sets are sometimes called enumerable, or denumerable. For two finite sets $A$ and $B,$ we evidently have $A \sim B$ if and only if $A$ and $B$ contain the same number of elements. For infinite sets, however, the idea of "having the same number of elements" becomes quite vague, whereas the notion of one-to-one correspondence retains its clarity.

2.5 Rudin Example. Let $A$ be the set of all integers. Then $A$ is countable. For, consider the following arrangement of the sets $A$ and $J$: \[ A:0,1,–1,2,–2,3,–3,\ldots \] \[ J:1,2,3,4,5,6,7,\ldots \] Then ...

2.6 Rudin Remark. A finite set cannot be equivalent to one of its proper subsets. That this is, however, possible for infinite sets, is shown by Rudin 2.5, in which $J$ is a proper subset of $A.$ In fact, we could replace Rudin 2.4(b) by the statement: $A$ is infinite if $A$ is equivalent to one of its proper subsets.

2.7 Rudin Definition. By a sequence, we mean a function $f$ defined on the set $J$ of all positive integers. If $f(n)=x_n$ for $n \in J,$ it is customary to denote the sequence $f$ by the symbol $\{x_n\},$ or sometimes by $x_1, x_2, x_3, \ldots$ The values of $f,$ that is, the elements $x_n,$ are called the terms of the sequence. If $A$ is a set and if $x_n\in A,\forall n\in J,$ then $\{x_n\}$ is said to be a sequence in $A$, or a sequence of elements of $A.$ Note that the terms $x_1,x_2,x_3,\ldots$ of a sequence need not be distinct. Since every countable set is the range of a one-to-one function defined on $J,$ we may regard every countable set as the range of a sequence of distinct terms. Speaking more loosely, we may say that the elements of any countable set can be arranged in a sequence. Sometimes it is convenient to replace $J$ in this definition by the set of all nonnegative integers, i.e., to start with $0$ rather than with $1.$

2.8 Rudin Theorem. Every infinite subset of a countable set is countable.

Proof. Suppose $E \subset A,$ and $E$ is infinite. Arrange the elements $x$ of $A$ in a sequence $\{x_n\}$ of distinct elements. Construct a sequence $\{n_k\}$ as follows: Let $n_1$ be the smallest positive integer such that $x_{n_1}\in E.$ Having chosen $n_1,\ldots,n_k–1$ and $k = 2, 3, 4, \ldots,$ let $n_k$ be the smallest integer greater than $n_{k}–1$ such that $x_{n_k}\in E.$ Putting $f(k) = x_{n_k}$ where $k=1,2,3,\ldots,$ we obtain a one-to-one correspondence between $E$ and $J.$

The theorem shows that, roughly speaking, countable sets represent the "smallest" infinity: No uncountable set can be a subset of a countable set.

2.9 Rudin Definition. Let $A$ and $\Omega$ be sets, and suppose that with each element $\alpha$ of $A$ there is associated a subset of $\Omega$ which we denote by $E_\alpha.$ The set whose elements are the set $E_\alpha$ will be denoted by $\{E_\alpha\}.$ Instead of speaking of sets of sets, we shall sometimes speak of a collection of sets, or a family of sets. The union of the sets $E_\alpha$ is defined to be the set $S$ such that $x\in S$ if and only if $x\in E_\alpha$ for at least one $\alpha\in A.$ We use the notation \begin{equation} S = \bigcup\limits_{\alpha\in A}{E_\alpha} \end{equation} If $A$ consists of the integers $1,2,\ldots,n,$ one usually writes \begin{equation} S=\bigcup\limits_{m=1}^{n}{E_m} \end{equation} or \begin{equation} S=E_1\cup E_2\cup\cdots\cup E_n \end{equation} If $A$ is the set of all positive integers, the usual notation is \begin{equation} S=\bigcup\limits_{m=1}^{\infty}{E_m} \end{equation} The symbol $\infty$ in (4) merely indicates that the union of a countable collection of sets is taken, and should not be confused wit the symbols $+\infty,$ $–\infty,$ introduced in Rudin 1.23. The intersection of the sets $E_\alpha$ is defined to be the set $P$ such that $x\in P$ if and only if $x\in E_\alpha$ for every $\alpha$ in $A.$ We use the notation \begin{equation} P = \bigcap\limits_{\alpha \in A}{E_\alpha} \end{equation} or \begin{equation} P = \bigcap\limits_{m = 1}^{n}{E_m} = E_1 \cap E_2 \cap \cdots \cap E_n \end{equation} or \begin{equation} P = \bigcap\limits_{m = 1}^{\infty}{E_m} \end{equation} as for unions. If $A \cap B$ is not empty, we say that $A$ and $B$ intersect; otherwise they are disjoint.

2.10 Rudin Example.

2.11 Rudin Definition.

2.12 Rudin Definition. Let $\{E_n\}$ be a sequence of countable sets. Then $S = \cup E_n $ is countable.

2.12.1 Rudin Definition. Suppose $A$ is at most countable, and, for every $\alpha \in A,$ $B_\alpha$ is at most countable. Then $T=\cup_{\alpha\in A}{B_\alpha}$ is at most countable.

2.13 Rudin Definition. Let $A$ be a countable set, and let $B_n$ be the set of all $n$-tuples $(a_1,\ldots,a_n),$ where $a_k \in A$ and the elements $a_1,\ldots,a_n$ need not be distinct. Then $B_n$ is countable.

2.13.1 Rudin Corollary. The set of all rational numbers is countable.

2.14 Rudin Theorem. The set $A$ of all sequences whose elements are the digits $0$ and $1$ is uncountable.

Metric Spaces

2.15 Rudin Definition. A set $X,$ whose elements we shall call points, is said to be a metric space if with any two points $p$ and $q$ of $X$ there is associated a real number $d(p,q),$ called the distance from $p$ to $q$, such that:

  1. \( d(p,q)\gt0\text{ if }p\ne q;d(p,p)=0 \)
  2. \( d(p,q)=d(q,p) \)
  3. \( d(p,q)\le d(p,r)+d(r,q) \text{ for any } r\in X \)
Any function with these three properties is called a distance function, or a metric.

2.15.1 Rudin Example.

2.16 Rudin Definition. The distance in $R^k$ is defined by $d(x,y)=\abs{x–y}$ where $x,y\in R^k$

2.17 Rudin Definition. Let $a,$ $b,a_i,b_i,r,\lambda \in R.$ Then

  1. A segment is a set $(a,b)=\{x\in R:a\lt x\lt b\}.$
  2. An interval is a set $[a,b]=\{x\in R:a\le x\le b \}.$
  3. A half-open interval is a set $(a,b]$ or $[a,b).$
  4. A $k$-cell is a set \( \{(x_1,\ldots,x_k)\in R^k:a_i\le x_i\le b_i\}. \) E.g. a $1$-cell is an interval, a $2$-cell is a rectangle, etc.
  5. An open ball is a set \( \{y\in R^k:\abs{y–x}\lt r,r\gt0\} \)
  6. A closed ball is a set $\{y\in R^k:\abs{y–x}\le r,r\gt0\}$
  7. $E\in R^k$ is convex if $\lambda x+(1–\lambda) y\in E$ whenever $x,y\in E$ and $0\lt\lambda\lt1.$ For example, balls and $k$-cells are convex.

2.18 Rudin Definition. Let $(X,d)$ be a metric space, $E\subset X,r\inR,p,q\in X$

  1. neighborhood of $p$: For any $r\in R, r \gt0,$ the set $N_r(p)=\{q:d(p,q)\lt r\}.$ In $R,$ neighborhoods are segments, in $R^2,$ circles, in $R^3,$ spheres, etc.
  2. radius: The number $r$ in the definition of neighborhood.
  3. limit point of $E$: A point $p\in E$ such that for every $N=N_r(p)$ there is a $q\ne p$ such that $q\in N \cap E.$
  4. isolated point of $E$: A point $p \in E$ such that $p$ is not a limit point of $E.$
  5. closed set: A set $E$ such that every limit point $p$ of $E$ is in $E.$
  6. interior point: A point $p\in E$ such that there is a neighborhood $N$ of $p$ such that $N\in E.$
  7. open set: A set $E$ such that every point $p\in E$ is an interior point.
  8. perfect set: A closed set $E$ such that every point of $E$ is a limit point of $E.$
  9. bounded set: A set $E$ such that there is an $M\in R$ and $q\in X$ such that $d(p,q)\lt M$ for all $p\in E.$
  10. dense: $E$ is dense in $X$ if every point of $X$ is a limit point of $E,$ or a point of $E,$ or both.

2.19 Rudin Theorem. Every neighborhood is an open set.

2.20 Rudin Theorem. If $p$ is a limit point of a set $E,$ then every neighborhood of $p$ contains infinitely many points of $E.$

2.20.1 Rudin Corollary. A set with a finite number of points has no limit points.

2.21 Rudin Example. The following are examples of sets that are one or more of closed, open, perfect, bounded.

Set Closed Open Perfect Bounded
$\{z \in C: |z| \lt 1\}$ No Yes No Yes
$\{z \in C: |z| \le 1 \}$ Yes No Yes Yes
A nonempty finite set Yes No No Yes
$Z$ Yes No No No
$\left\{\frac{1}{n}\right\}_{n=1}^\infty$ No No No Yes
$C (=R^2)$ Yes Yes Yes No
$(a, b)$ No - No Yes

2.22 Rudin Theorem. Let $\{E_\alpha\}$ be a (finite or infinite) collection of sets $E_\alpha.$ Then \( (\cup_\alpha{E_\alpha})^c =\cap_\alpha E_\alpha^c. \)

2.23 Rudin Definition. A set $E$ is open if and only if its complement is closed.

2.23.1 Rudin Corollary. A set $F$ is closed if and only if its complement is open.

2.24 Rudin Theorem.

  1. For any collection $\{G_\alpha\}$ of open sets, $\cup_\alpha G_\alpha$ is open.
  2. For any collection $\{G_\alpha\}$ of closed sets, $\cap_\alpha G_\alpha$ is closed.
  3. For any finite collection $G_1,\ldots,G_n$ of open sets, $\cap_{i=1}^n G_i$ is open.
  4. For any finite collection $F_1,\ldots,F_n$ of closed sets, $\cup_{i=1}^n F_i $ is closed.

2.25 Rudin Example. For the segment \( G_n=\left(-\frac{1}{n},\frac{1}{n}\right), \) $\{G_n\}$ is a collection of open subsets of $R,$ yet is not an open subset of $R.$

2.26 Rudin Definition. If $X$ is a metric space, if $E\subset X,$ and if $E'$ denotes the set of all limit points of $E$ in $X,$ then the closure of $E$ is the set $\overline E=E\cup E'.$

2.27 Rudin Theorem. If $X$ is a metric space and $E\subset X,$ then

  1. $\overline E$ is closed
  2. $E=\overline E$ if and only if $E$ is closed
  3. $\overline E\subset F$ for every closed set $F\subset X$ such that $E\subset F.$
By (a) and (c), $\overline E$ is the smallest closed subset of $X$ that contains $E.$

2.28 Rudin Theorem. Let $E$ be a nonempty set of real numbers which is bounded above. Let $y=\sup E.$ Then $y\in\overline E.$ Hence, $y\in E$ if $E$ is closed.

2.29 Rudin Remark.

2.30 Rudin Theorem. Suppose $Y \subset X.$ A subset $E$ of $Y$ is open relative to $Y$ if and only if $E=Y\cap G$ for some open subset $G$ of $X.$

Compact Sets

2.31 Rudin Definition. By an open cover of a set $K$ in a metric space $X$ we mean a collection $G=\{G_\alpha\}$ of open subsets of $X$ such that $K\subset\cup_\alpha{G_\alpha}.$

2.32 Rudin Definition. $H$ is a subcover of $K$ if $H$ is an open cover of $K$ and $H\subset \cup_\alpha{G_\alpha}.$

2.32.1 Rudin Definition. A subset $K$ of a metric space $X$ is said to be compact if every open cover of $K$ contains a finite subcover.

2.32.2 Rudin Definition. $K$ is compact relative to $X$ if $K$ and $X$ satisfy Rudin 2.32 for compactness.

2.33 Rudin Theorem. Suppose $K \subset Y \subset X.$ Then $K$ is compact relative to $X$ if and only if $K$ is compact relative to $Y.$

2.33.1 Guevara Question Does the commentary before and after Rudin 2.33 mean or imply that:

  1. all compact sets are metric spaces
  2. not all metric spaces are compact
  3. all compact sets are both open and closed, relative to themselves
  4. all compact sets $K$ are compact relative to all supersets of $K$
  5. all compact sets $K$ are open and closed relative to all supersets of $K$

2.34 Rudin Theorem. Compact subsets of metric spaces are closed.

2.35 Rudin Theorem. Closed subsets of compact sets are compact.

2.35.1 Rudin Corollary. If $F$ is closed and $K$ is compact, then $F\cap K$ is compact.

2.36 Rudin Theorem. If $\{K_\alpha\}$ is a collection of compact subsets of a metric space $X$ such that the intersection of every finite subcollection of $\{K_\alpha\}$ is nonempty, then $\cap {K_\alpha}$ is nonempty.

2.36.1 Rudin Corollary. If $\{K_n\}$ is a sequence of nonempty compact sets such that $K_n\subset K_n+1$ then $\cap{K_n}$ is nonempty.

2.37 Rudin Theorem. If $E$ is an infinite subset of a compact set $K,$ then $E$ has a limit point in $K.$

2.38 Rudin Theorem. $\{I_n\}$ is a sequence of intervals in $R$ such that $I_n\supset I_n+1$ then $\cap{I_n}$ is nonempty.

2.39 Rudin Theorem. If $\{I_n\}$ is a sequence of $k$-cells, $k\in Z^{+},$ such that $I_n\supset I_n+1$ then $\cap I_n$ is ....

2.40 Rudin Theorem. Every $k$-cell is compact.

2.41 Rudin Theorem.. Heine-Borel Theorem. If a set $E$ in $R^k$ has one of the following three properties, then it has the other two:

  1. $E$ is closed and bounded.
  2. $E$ is compact.
  3. Every infinite subset of $E$ has a limit point in $E.$

2.42 Rudin Theorem. Every bounded infinite subset of $R^k$ has a limit point in $R^k.$

Perfect Sets

2.43 Rudin Theorem. If $P$ is a nonempty perfect set in $R^k$ then $P$ is countable.

2.43.1 Rudin Corollary. Every interval $[a,b]$ where $a\lt b$ is uncountable. In particular, $R$ is uncountable.

2.44 Rudin Theorem. There exist perfect sets in $R$ which contain no segment.

2.44.1 Rudin Definition. The Cantor Set,

Connected Sets

2.45 Rudin Definition. Two subsets $A$ and $B$ of a metric space $X$ are said to be separated if both $A\cap\overline B$ and $\overline A\cap B$ are empty, i.e. if no point of $A$ lies in the closure of $B$ and no point of $B$ lies in the closure of $A.$ A set $E \subset X$ is said to be connected if $E$ is not a union of two nonempty separated sets.

2.46 Rudin Remark. Separated sets are of course disjoint, but disjoint sets need not be separated. For example, $[0,1]$ and the segment $(1,2)$ are not separated, since $1$ is a limit point of $(1,2).$ However, the segments $(0,1)$ and $(1,2)$ are separated.

2.47 Rudin Theorem. A subset $E$ of the real line $R$ is connected if and only if it has the following property: If $x,y\in E$ and $x\lt z\lt y$ then $z\in E.$