Given
\(x\in\mathbb{R}\text{,}\) we need to produce the decimal digits
\(d_0,d_1,\ldots\text{.}\)
To make the exposition easier, let’s assume
\(x\gt 0\text{.}\)
If
\(x\leq 1\text{,}\) set
\(d_0=0\text{.}\) Otherwise, the set
\(\left\{n\in\mathbb{N}\middle\vert n\lt x\right\}\) is nonempty. Clearly this set is bounded above, so has a supremum. Since this is a set of natural numbers, that supremum is a maximum. Set
\(d_0=\sup\left\{n\in\mathbb{N}\middle\vert n\lt x\right\}\text{.}\)
Now, consider the set
\(\left\{n\in\mathbb{N}\cup\{0\}\middle\vert d_0+n\frac{1}{10}\lt x\right\}\text{.}\) This set is bounded above by
\(9\) (why?) and nonempty (why?) so it has a supremum. Because it’s a set of natural numbers, that supremum is a maximum. Set
\(d_1=\sup\left\{n\in\mathbb{N}\cup\{0\}\middle\vert d_0+n\frac{1}{10}\lt x\right\}\) and
\(x_1=d_0+\frac{1}{10}d_1\text{.}\)
For the same reason, we can define
\(d_2=\sup\left\{n\in\mathbb{N}\cup\{0\}\middle\vert d_0+d_1\frac{1}{10}+n\frac{1}{100}\lt x\right\}\text{,}\) and
\(x_2=d_0+\frac{1}{10}d_1+\frac{1}{100}d_2\) and so on.
It remains to show that
\(x_n\to x\text{.}\)
\(x_n\) converges by
Proposition 2.4.10; the trouble is to show that the limit is
\(x\text{.}\)
Notice that by construction, each
\(x_n\) has
\(x-\frac{1}{10^n}\lt x_n\lt x\text{.}\) By
Proposition 2.2.7, this means
\(x_n\to x\text{.}\)