Skip to main content
Mathematics LibreTexts

13.1: Basics and Examples

  • Page ID
    83473
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    If \(A\) is a set that has the same size as \(\mathbb{N}\text{,}\) then we can think of a bijection \(\mathbb{N} \to A\) as “counting” the elements of \(A\) (even though there are an infinite number of elements to count), in exactly the same way that we use our counting sets \(\mathbb{N}_{<m}\) to count finite sets.

    Definition: Countable

    a set that is finite or has the same size as \(\mathbb{N}\)

    Definition: Countably Infinite

    a countable set which has the same size as \(\mathbb{N}\)

    Definition: Uncountable

    a set that is not countable

    Remark \(\PageIndex{1}\)

    Compare this fact with Fact 12.2.1.

    Theorem \(\PageIndex{1}\): Countability of Integers and Rationals

    Sets \(\mathbb{Z}\) and \(\mathbb{Q}\) are both countable.

    Proof

    We have already constructed a bijection \(\mathbb{N} \to \mathbb{Z}\) in Example 12.3.1, which shows that \(\mathbb{Z}\) is countable.

    To show that \(\mathbb{Q}\) is countable, we will use Fact \(\PageIndex{1}\) and construct an infinite sequence which contains each element of \(\mathbb{Q}\) exactly once. First, construct an infinite grid which contains all positive rational numbers. By zig-zagging through the grid, we obtain an infinite sequence which contains each positive element of \(\mathbb{Q}\) at least once, though there are duplicates because an element of \(\mathbb{Q}\) can have many different representations as a fraction.

    clipboard_ed24178f3dadd10433e98b9e7b5aaff1d.png
    Figure \(\PageIndex{1}\): A grid containing all positive rational numbers.
    clipboard_ea6943d11b0ec9a6a44ce7cbe787fe8e8.png
    Figure \(\PageIndex{2}\): A path through the positive rational numbers.

    The path through the grid creates the following sequence of positive rational numbers. By crossing out duplicates, we obtain an infinite sequence which contains each positive rational number exactly once.

    \begin{gather*} 1, \;\;\; \dfrac{1}{2}, \;\;\; 2, \;\;\; 3, \;\;\; \xcancel{1,} \;\;\; \dfrac{1}{3}, \;\;\; \dfrac{1}{4}, \;\;\; \dfrac{2}{3}, \;\;\; \dfrac{3}{2}, \;\;\; 4, \;\;\; 5,\\ \xcancel{2,} \;\;\; \xcancel{1,} \;\;\; \xcancel{\dfrac{1}{2},} \;\;\; \dfrac{1}{5}, \;\;\; \dfrac{1}{6}, \;\;\; \dfrac{2}{5}, \;\;\; \dfrac{3}{4}, \;\;\; \dfrac{4}{3}, \;\;\; \dfrac{5}{2}, \;\;\; \dotsc \end{gather*}

    Finally, interleave the negative rational numbers into the above sequence, and insert \(0\) at the beginning.

    \begin{gather*} 0, \;\;\; 1, \;\;\; -1, \;\;\; \dfrac{1}{2}, \;\;\; -\dfrac{1}{2}, \;\;\; 2, \;\;\; -2, \;\;\; 3, \;\;\; -3, \;\;\; \dfrac{1}{3}, \;\;\; -\dfrac{1}{3}, \;\;\;\\ \dfrac{1}{4}, \;\;\; -\dfrac{1}{4}, \;\;\; \dfrac{2}{3}, \;\;\; -\dfrac{2}{3}, \;\;\; \dfrac{3}{2}, \;\;\; -\dfrac{3}{2}, \;\;\; 4, \;\;\; -4, \;\;\; 5, \;\;\; -5, \;\;\; \dotsc \end{gather*}

    Here is an example of an uncountable set. The argument to prove the set is uncountable is a famous one, so we encapsulate it as the proof of a Lemma, rather than just a plain Example.

    Lemma \(\PageIndex{1}\): An uncountable set of real numbers

    Let \(\scr{C}\) represent the set of all real numbers between \(0\) and \(0.2\) (including \(0\)) whose decimal expansions involve only the digits \(0\) and \(1\text{.}\)

    Set \(\scr{C}\) is uncountable.

    Proof

    The argument in this proof is called Cantor's diagonal argument.

    We will show that no sequence of numbers from \(\scr{C}\) can contain every element of \(\scr{C}\text{.}\)

    Suppose \(\{a_k\}\) is an infinite sequence of elements of \(\scr{C}\text{.}\) We can create an element \(r \in \scr{C}\) which is not in the sequence as follows. Set

    \begin{equation*} r = 0.r_1 r_2 r_3 r_4 \cdots \text{,} \end{equation*}
    where \(r_k\) is the digit in the \(k^{th}\) decimal place of \(r\text{,}\) according to the following rules.

    If the \(k^{th}\) decimal place of \(a_{k-1}\) is \(0\text{,}\) set \(r_k = 1\text{.}\)

    If the \(k^{th}\) decimal place of \(a_{k-1}\) is \(1\text{,}\) set \(r_k = 0\text{.}\)

    Clearly every digit of \(r\) will be either a \(0\) or \(1\text{,}\) and \(0 \le r \lt 0.2\text{,}\) so \(r \in \scr{C}\text{.}\) (The reason we use \(a_{k-1}\) instead of \(a_k\) in the rules to create \(r\) is to make sure we consider sequence element \(a_0\) somewhere in there.)

    Now we have \(a_k \ne r\) for every \(k \in \mathbb{N}\text{,}\) since \(r\) and \(a_k\) differ in the \((k+1)^{th}\) decimal place. Furthermore, \(r \in \scr{C}\) because it is between \(0\) and \(0.2\) and its decimal expansion involves only digits \(0\) and \(1\text{.}\) Therefore, sequence \(\{a_k\}\) does not contain every element of \(\scr{C}\) because it does not contain \(r\text{.}\)

    Remark \(\PageIndex{2}\)

    1. The “diagonal” part of the name Cantor's diagonal argument refers to the following. If the decimal expansions of the real numbers in the sequence \(\{a_k\}\) are written out in a grid so that each row is one of the numbers \(a_k\) and each column represents a specific decimal place in the sequence numbers, then the rules to create \(r\) can be thought of as “flipping” the digits that occur in the diagonal positions of this grid. (Draw the grid for yourself to see the pattern!)
    2. Later in this chapter we will use Lemma \(\PageIndex{1}\) to prove that \(\mathbb{R}\) itself is uncountable. (See Theorem 13.2.1.)

    ​​​​


    This page titled 13.1: Basics and Examples is shared under a GNU Free Documentation License 1.3 license and was authored, remixed, and/or curated by Jeremy Sylvestre via source content that was edited to the style and standards of the LibreTexts platform.