forked from OpenLogicProject/OpenLogic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcauchy.tex
More file actions
230 lines (206 loc) · 10.7 KB
/
cauchy.tex
File metadata and controls
230 lines (206 loc) · 10.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
% Part: sets-functions-relations
% Chapter: arithmetization
% Section: cauchy
\documentclass[../../../include/open-logic-section]{subfiles}
\begin{document}
\olfileid{sfr}{arith}{cauchy}
\olsection{Appendix: the Reals as Cauchy Sequences}
In \olref[cuts]{sec}, we constructed the reals as Dedekind cuts. In
this section, we explain an alternative construction. It builds on
Cauchy's definition of (what we now call) a Cauchy sequence; but the
use of this definition to \emph{construct} the reals is due to other
nineteenth-century authors, notably Weierstrass, Heine, M\'{e}ray and
Cantor. (For a nice history, see \citeauthor{OConnorRobertson:RN}
\citeyear{OConnorRobertson:RN}.)
Before we get to the nineteenth century, it's worth considering Simon
Stevin (1548--1620). In brief, Stevin realised that we can think of
each real in terms of its decimal expansion. Thus even an irrational
number, like $\sqrt{2}$, has a nice decimal expansion, beginning:
\[
1.41421356237\ldots
\]
It is very easy to model decimal expansions in set theory: simply
consider them as functions $d \colon \Nat \to \Nat$, where $d(n)$ is
the $n$th decimal place that we are interested in. We will then need a
bit of tweak, to handle the bit of the real number that comes before
the decimal point (here, just $1$). We will also need a further tweak
(an equivalence relation) to guarantee that, for example, $0.999\ldots
= 1$. But it is not difficult to offer a perfectly rigorous
construction of the real numbers, in the manner of Stevin, within set
theory.
Stevin is not our focus. (For more on Stevin, see
\citealt{KatzKatz2012}.) But here is a closely related thought.
Instead of treating $\sqrt{2}$'s decimal expansion directly, we can
instead consider a \emph{sequence} of increasingly accurate rational
approximations to $\sqrt{2}$, by considering the increasingly precise
expansions:
\[
1, 1.4, 1.414, 1.4142, 1.41421,\ldots
\]
The idea that reals can be considered via ``increasingly good
approximations'' provides us with the basis for another sequence of
insights (akin to the realisations that we used when constructing
$\Rat$ from $\Int$, or $\Int$ from $\Nat$). The basic insights are
these:
\begin{enumerate}
\item Every real can be written as a (perhaps infinite) decimal
expansion.
\item The information encoded by a (perhaps infinite) decimal
expansion can be equally be encoded by a sequence of rational
numbers.
\item A sequence of rational numbers can be thought of as a
function from $\Nat$ to $\Rat$; just let $f(n)$ be the $n$th
rational in the sequence.
\end{enumerate}
Of course, not just \emph{any} function from $\Nat$ to $\Rat$ will
give us a real number. For instance, consider this function:
\[
f(n) =\begin{cases}
1 & \text{if }n\text{ is odd}\\
0 &\text{if }n\text{ is even}
\end{cases}
\]
Essentially the worry here is that the sequence $0,1,0,1,0,1,0,\ldots$
doesn't seem to ``hone in'' on any real. So: to ensure that we
consider sequences which do hone in on some real, we need to restrict
our attention to sequences which have some \emph{limit}.
We have already encountered the idea of a limit, in
\olref[his][set][limits]{sec}. But we cannot use \emph{quite} the same
definition as we used there. The expression ``$(\forall \epsilon>0)$''
there tacitly involved quantification over the real numbers; and we
were considering the limits of functions on the real numbers; so
invoking that definition would be to help ourselves to the real
numbers; and they are exactly what we were aiming to \emph{construct}.
Fortunately, we can work with a closely related idea of a limit.
\begin{defn}\ollabel{def:CauchySequence}
A function $f: \Nat \to \Rat$ is a \emph{Cauchy sequence} iff for
any positive $\epsilon \in \Rat$ we have that $(\exists \ell \in
\Nat)(\forall m, n > \ell)|f(m) - f(n)| < \epsilon$.
\end{defn}
The general idea of a limit is the same as before: if you want a
certain level of precision (measured by~$\epsilon$), there is a
``region'' to look in (any input greater than~$\ell$). And it is easy
to see that our sequence $1$, $1.4$, $1.414$, $1.4142$,
$1.41421$\ldots has a limit: if you want to approximate $\sqrt{2}$ to
within an error of $\nicefrac{1}{10^{n}}$, then just look to any entry
after the $n$th.
The obvious thought, then, would be to say that a real number just
\emph{is} any Cauchy sequence. But, as in the constructions of $\Int$
and $\Rat$, this would be too na\"{i}ve: for any given real number,
multiple different Cauchy sequences indicate that real number. A
simple way to see this as follows. Given a Cauchy sequence~$f$, define
$g$ to be exactly the same function as~$f$, except that $g(0)\neq
f(0)$. Since the two sequences agree everywhere after the first
number, we will (ultimately) want to say that they have the same
limit, in the sense employed in \olref{def:CauchySequence},
and so should be thought of ``defining'' the same real. So, we should
really think of these Cauchy sequences as the same real number.
Consequently, we again need to define an equivalence relation on the
Cauchy sequences, and identify real numbers with equivalence
relations. First we need the idea of a function which tends to $0$ in
the limit. For any function $h : \Nat \to \Rat$, say that \emph{$h$
tends to $0$} iff for any positive $\epsilon \in \Rat$ we have that
$(\exists \ell \in \Nat)(\forall n > \ell)|f(n)| <
\epsilon$.\footnote{Compare this with the definition of $\lim_{x
\mathord{\rightarrow}\infty}f(x) = 0$ in
\olref[his][set][limits]{sec}.} Further, where $f$ and $g$ are
functions $\Nat \to \Rat$, let $(f-g)(n) = f(n) - g(n)$. Now define:
\[
f \Realequiv g \text{ iff $(f-g)$ tends to $0$}.
\]
We need to check that $\Realequiv$ is an equivalence relation; and it
is. We can then, if we like, define the reals as the equivalence
classes, under $\Realequiv$, of all Cauchy sequences from $\Nat \to
\Rat$.
\begin{prob}
Let $f(n) = 0$ for every $n$. Let $g(n) = \frac{1}{(n+1)^2}$. Show
that both are Cauchy sequences, and indeed that the limit of both
functions is $0$, so that also $f \sim_\Real g$.
\end{prob}
Having done this, we shall as usual write $\equivrep{f}{\Realequiv}$
for the equivalence class with $f$ as !!a{element}. However, to keep
things readable, in what follows we will drop the subscript and write
just $\equivrep{f}{}$. We also stipulate that, for each $q \in \Rat$,
we have $q_{\Real} = \equivrep{c_{q}}{}$, where $c_{q}$ is the
constant function $c_q(n) = q$ for all $n \in \Nat$. We then define
basic relations and operations on the reals, e.g.:
\begin{align*}
\equivrep{f}{} + \equivrep{g}{} &= \equivrep{(f + g)}{} \\
\equivrep{f}{} \times \equivrep{g}{} &= \equivrep{(f \times g)}{}
\end{align*}
where $(f + g)(n) = f(n) + g(n)$ and $(f \times g)(n) = f(n) \times
g(n)$. Of course, we also need to check that each of $(f + g)$,
$(f-g)$ and $(f\times g)$ are Cauchy sequences when $f$ and $g$ are;
but they are, and we leave this to you.
Finally, we define we a notion of order. Say $\equivrep{f}{}$ is
\emph{positive} iff both $\equivrep{f}{}\neq 0_\Rat$ and $(\exists
\ell \in \Nat)(\forall n > \ell)0 < f(n)$. Then say $\equivrep{f}{} <
\equivrep{g}{}$ iff $\equivrep{(g - f)}{}$ is positive. We have to
check that this is well-defined (i.e., that it does not depend upon
choice of ``representative'' function from the equivalence class).
%\begin{align*}
% \equivrep{f}{} \leq \equivrep{g}{} \text{ iff }&\equivrep{f}{} = \equivrep{g}{} \text{ or }\\
% &(\exists \ell \in \Nat)(\forall n \in \Nat)(\ell < n \lif f(n) \leq g(n))
%\end{align*}
But having done this, it is quite easy to show that these yield the
right algebraic properties; that is:
\begin{thm}\ollabel{thm:cauchyorderedfield}
The Cauchy sequences constitute an ordered field.
\end{thm}
\begin{proof}
Exercise.
\end{proof}
\begin{prob}
Prove that the Cauchy sequences constitute an ordered field.
\end{prob}
It is harder to prove that the reals, so constructed, have the
Completeness Property, so we will give the proof.
\begin{thm}
Every non-empty set of Cauchy sequences with an upper bound has a
least upper bound.
\end{thm}
\begin{proof}[Proof sketch] Let $S$ be any non-empty set of Cauchy
sequences with an upper bound. So there is some $p \in \Rat$ such that
$p_{\Real}$ is an upper bound for $S$. Let $r \in S$; then there is
some $q \in \Rat$ such that $q_{\Real} < r$. So if a least upper bound
on $S$ exists, it is between $q_\Real$ and $p_\Real$ (inclusive).
We will hone in on the l.u.b., by approaching it simultaneously from
below and above. In particular, we define two functions, $f, g \colon
\Nat \to \Rat$, with the aim that $f$ will hone in on the l.u.b.\ from
above, and $g$ will hone on in it from below. We start by defining:
\begin{align*}
f(0) &= p \\
g(0) &= q
\end{align*}
Then, where $a_n = \frac{f(n) + g(n)}{2}$, let:\footnote{This is a
recursive definition. But we have not \emph{yet} given any reason to
think that recursive definitions are ok.}
\begin{align*}
f(n+1) &=
\begin{cases}
a_n &\text{if }(\forall h \in S)\equivrep{h}{} \leq (a_n)_\Real\\
f(n)&\text{otherwise}
\end{cases}\\
g(n+1) &=
\begin{cases}
a_n &\text{if }(\exists h \in S)\equivrep{h}{} \geq (a_n)_\Real\\
g(n) &\text{otherwise}
\end{cases}
\end{align*}
Both $f$ and $g$ are Cauchy sequences. (This can be checked fairly
easily, but we leave it as an exercise.) Note that the function $(f-g)$
tends to $0$, since the difference between $f$ and $g$ halves at each
step. Hence $\equivrep{f}{} = \equivrep{g}{}$.
We first show that $\equivrep{f}{}$ is an upper bound on $S$, i.e.\ that $(\forall h \in S)\equivrep{h}{} \leq \equivrep{f}{}$.
(We will invoke \olref{thm:cauchyorderedfield} as we go.) Let $h \in S$ and
suppose, for reductio, that $\equivrep{f}{} < \equivrep{h}{}$, so that
$0_\Real < \equivrep{(h-f)}{}$. Since $f$ is a monotonically
decreasing Cauchy sequence, there is some $n \in \Nat$ such that
$\equivrep{(c_{f(n)} - f)}{} < \equivrep{(h-f)}{}$. So:
\[
(f(n))_\Real = \equivrep{c_{f(n)}}{} < \equivrep{f}{} + \equivrep{(h-f)}{} = \equivrep{h}{},
\]
contradicting the fact that, by construction, $\equivrep{h}{} \leq (f(n))_\Real$.
We next show that $\equivrep{f}{} = \equivrep{g}{}$ is the \emph{least} upper bound on $S$. So let $j$ be any Cauchy sequence and suppose $\equivrep{j}{} < \equivrep{g}{}$. Reasoning as above (using the fact that $g$ is \emph{increasing}), there is $n \in \Nat$ such that $\equivrep{j}{} < (g(n))_\Real$. But by construction there is $h \in S$ such that $(g(n))_\Real \leq \equivrep{h}{}$, so $\equivrep{j}{} < \equivrep{h}{}$ and therefore $\equivrep{j}{}$ is not an upper bound on $S$.
\end{proof}
\end{document}