Topology (Munkres)
§43 Complete Metric Spaces
$s$ is a Cauchy sequence in $X$ with respect to $d$ iff $s$ is a sequence in $X$ and $d$ is a metric on $X$ and for all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $d((s(n),s(m))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
LaTeX source
\begin{definition}
\label{cauchy_sequence}
$s$ is a Cauchy sequence in $X$ with respect to $d$ iff
$s$ is a sequence in $X$ and
$d$ is a metric on $X$ and
for all $\epsilon\in\reals$ such that $0 < \epsilon$
there exists $N\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$d((s(n),s(m))) < \epsilon$.
\end{definition}
$X$ is complete with respect to $d$ iff $d$ is a metric on $X$ and for all $s$ if $s$ is a Cauchy sequence in $X$ with respect to $d$ then there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $s$ converges to $x$ in $X$ with respect to $\metricTopology{d}{X}$.
LaTeX source
\begin{definition}
\label{complete_metric_space}
$X$ is complete with respect to $d$ iff
$d$ is a metric on $X$ and
for all $s$ if
$s$ is a Cauchy sequence in $X$ with respect to $d$
then there exists $x\in X$ such that
$s$ converges to $x$ in $X$ with respect to $\metricTopology{d}{X}$.
\end{definition}
Assume $u$ is strictly increasing on $\naturalsPlus$.
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Then $n \class{latex-symbol-tip latex-symbol-id-leq}{\leq} u(n)$.
LaTeX source
\begin{lemma}
\label{strictly_increasing_naturalsplus_geq_identity}
Assume $u$ is strictly increasing on $\naturalsPlus$.
Suppose $n\in\naturalsPlus$.
Then $n \leq u(n)$.
\end{lemma}
Proof
Let $P = \{k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid k \class{latex-symbol-tip latex-symbol-id-leq}{\leq} u(k)\}$.
We have $P\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in} P$ by Axiom 42, Axiom 43, Definition 258, Proposition 361.
Claim: For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in} P$ we have $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} P$.
Fix $k$ such that $k\class{latex-symbol-tip latex-symbol-id-in}{\in} P$.
We have $k \class{latex-symbol-tip latex-symbol-id-leq}{\leq} u(k)$.
$k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $k < k + 1$ by Axiom 45, Definition 1, Lemma 399.
Hence $u(k) < u(k + 1)$ by Definition 258.
Claim: It is wrong that $u(k + 1) < k + 1$.
Suppose not.
Then $u(k + 1) < k + 1$.
$u(k + 1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Definition 258, Proposition 361.
Hence $u(k + 1)\class{latex-symbol-tip latex-symbol-id-leq}{\leq} k + 1$ by Lemma 231.
$u(k + 1)\class{latex-symbol-tip latex-symbol-id-neq}{\neq} k + 1$ by Axiom 39, Axiom 41, Axiom 45, Definition 1, Lemma 82.
$u(k + 1)\class{latex-symbol-tip latex-symbol-id-leq}{\leq} k$ by Lemma 29.
We have $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $u(k)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $u(k + 1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Definition 1, Definition 258, Proposition 361.
Hence $k < u(k + 1)$ by Lemma 266.
$k < k$ by Lemma 544.
Contradiction by Axiom 39.
$u(k + 1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 45, Definition 1, Definition 258, Proposition 361.
$k + 1 < u(k + 1)$ or $k + 1 = u(k + 1)$ or $u(k + 1) < k + 1$ by Axiom 34.
$k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} u(k + 1)$ by Lemma 81.
$k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} P$.
For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $k \class{latex-symbol-tip latex-symbol-id-leq}{\leq} u(k)$ by Definition 1, Proposition 445.
LaTeX source
\begin{proof}
Let $P = \{k\in\naturalsPlus \mid k \leq u(k)\}$.
We have $P\subseteq\naturalsPlus$ by \cref{subseteq}.
$1\in P$ by \cref{real_one_in_naturals,strictly_increasing_on_set,funs_type_apply,real_one_leq_naturalsplus}.
Show that for all $k\in P$ we have $k + 1\in P$.
\begin{subproof}
Fix $k$ such that $k\in P$.
We have $k \leq u(k)$.
$k + 1\in\naturalsPlus$ and $k < k + 1$
by \cref{subseteq,real_naturals_closed_succ,real_naturals_lt_succ_local}.
Hence $u(k) < u(k + 1)$ by \cref{strictly_increasing_on_set}.
Show that it is wrong that $u(k + 1) < k + 1$.
\begin{subproof}
Suppose not.
Then $u(k + 1) < k + 1$.
$u(k + 1)\in\naturalsPlus$ by \cref{strictly_increasing_on_set,funs_type_apply}.
Hence $u(k + 1)\leq k + 1$ by \cref{real_lt_imp_leq}.
$u(k + 1)\neq k + 1$ by \cref{real_lt_subst_left,real_naturals_closed_succ,real_naturals_subset_reals,subseteq,real_lt_irreflexive}.
$u(k + 1)\leq k$ by \cref{real_naturals_leq_succ_elim}.
We have $k\in\reals$ and $u(k)\in\reals$ and $u(k + 1)\in\reals$
by \cref{strictly_increasing_on_set,funs_type_apply,real_naturals_subset_reals,subseteq}.
Hence $k < u(k + 1)$ by \cref{real_leq_lt_trans}.
$k < k$ by \cref{real_lt_leq_trans_local}.
Contradiction by \cref{real_lt_irreflexive}.
\end{subproof}
$u(k + 1)\in\reals$ and $k + 1\in\reals$
by \cref{strictly_increasing_on_set,funs_type_apply,subseteq,real_naturals_closed_succ,real_naturals_subset_reals}.
$k + 1 < u(k + 1)$ or $k + 1 = u(k + 1)$ or $u(k + 1) < k + 1$
by \cref{real_lt_trichotomy}.
$k + 1 \leq u(k + 1)$ by \cref{real_leq_split}.
$k + 1\in P$.
\end{subproof}
For all $k\in\naturalsPlus$ we have $k \leq u(k)$ by \cref{real_naturals_induction,subseteq}.
\end{proof}
Assume $d$ is a metric on $X$.
Suppose for all $s$ if $s$ is a Cauchy sequence in $X$ with respect to $d$ then there exist $t,x$ such that $t$ is a sequence in $X$ and $t$ is a subsequence of $s$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $t$ converges to $x$ in $X$ with respect to $\metricTopology{d}{X}$.
Then $X$ is complete with respect to $d$.
LaTeX source
\begin{lemma}
\label{cauchy_subsequence_completeness_criterion}
Assume $d$ is a metric on $X$.
Suppose for all $s$ if
$s$ is a Cauchy sequence in $X$ with respect to $d$
then there exist $t,x$ such that
$t$ is a sequence in $X$ and
$t$ is a subsequence of $s$ and
$x\in X$ and
$t$ converges to $x$ in $X$ with respect to $\metricTopology{d}{X}$.
Then $X$ is complete with respect to $d$.
\end{lemma}
Proof
Claim: For all $s$ if $s$ is a Cauchy sequence in $X$ with respect to $d$ then there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $s$ converges to $x$ in $X$ with respect to $\metricTopology{d}{X}$.
Fix $s$ such that $s$ is a Cauchy sequence in $X$ with respect to $d$.
$s$ is a sequence in $X$ by Definition 342.
Take $t,x$ such that $t$ is a sequence in $X$ and $t$ is a subsequence of $s$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $t$ converges to $x$ in $X$ with respect to $\metricTopology{d}{X}$ by assumption.
Take $u$ such that $u$ is strictly increasing on $\naturalsPlus$ and for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $t(n) = \apply{s}{\apply{u}{n}}$ by Definition 259.
Claim: For all $U$ if $U$ is a neighborhood of $x$ in $X$ with respect to $\metricTopology{d}{X}$ then there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Fix $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $\metricTopology{d}{X}$.
We have $U$ is open in $X$ with respect to $\metricTopology{d}{X}$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 153.
Take $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ and $\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 1, Definition 101, Definition 103, Lemma 195, Proposition 156.
Let $m_2 = 1 + 1$.
Let $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} / m_2$.
We have $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 275.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < 1$ by Axiom 17, Axiom 41, Axiom 42, Definition 1, Proposition 462.
$\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBasis{d}{X}$ by Definition 1, Definition 180, Definition 181, Proposition 155.
Hence $\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricTopology{d}{X}$ by Definition 182, Lemma 77, Lemma 194.
$\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ is open in $X$ with respect to $\metricTopology{d}{X}$ by Definition 103, Definition 115, Definition 182, Lemma 76, Lemma 194.
Hence $\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ is a neighborhood of $x$ in $X$ with respect to $\metricTopology{d}{X}$ by Definition 153, Definition 176, Definition 179, Definition 180, Lemma 82.
Take $N_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N_1\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $t(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ by Definition 159.
Take $N_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N_0\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N_0\class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $d((s(n),s(m))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 342.
Let $N = N_0 + N_1$.
$N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Lemma 433.
Claim: For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Fix $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Suppose $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
$N_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $N_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Definition 1.
$n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Definition 1.
$0 < N_0$ and $0 < N_1$ by Axiom 36, Axiom 43, Proposition 462.
$0 + N_0 < N_1 + N_0$ by Axiom 37.
$0 + N_0 = N_0$ and $N_1 + N_0 = N_0 + N_1$ by Axiom 16, Axiom 17.
Hence $N_0 < N_0 + N_1$ by Lemma 82, Lemma 83.
$N_0 < N$ by Lemma 83.
$N_0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} N$ by Lemma 231.
$0 + N_1 < N_0 + N_1$ by Axiom 37.
$0 + N_1 = N_1$ by Axiom 17.
Hence $N_1 < N_0 + N_1$ by Lemma 82, Lemma 83.
$N_1 < N$ by Lemma 83.
$N_1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} N$ by Lemma 231.
$N_0\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N_1\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ by Lemma 23.
$u(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Definition 258, Proposition 361.
Hence $n \class{latex-symbol-tip latex-symbol-id-leq}{\leq} u(n)$ by Lemma 661.
We have $N_0\class{latex-symbol-tip latex-symbol-id-leq}{\leq} u(n)$ and $N_1\class{latex-symbol-tip latex-symbol-id-leq}{\leq} u(n)$ by Axiom 41, Definition 1, Lemma 23.
$d((s(n),s(u(n)))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 342.
$d((s(u(n)),x)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 159, Definition 177, Definition 179, Definition 180, Lemma 82.
$s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $s(u(n))\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 158, Definition 342, Proposition 361.
$d((s(n),x)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((s(n),s(u(n)))) + d((s(u(n)),x))$ by Definition 178, Definition 179.
$d((s(n),s(u(n))))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((s(u(n)),x))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((s(n),x))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
Hence $d((s(u(n)),x)) + d((s(n),s(u(n)))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + d((s(n),s(u(n))))$ by Axiom 37.
$d((s(u(n)),x)) + d((s(n),s(u(n)))) = d((s(n),s(u(n)))) + d((s(u(n)),x))$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + d((s(n),s(u(n)))) = d((s(n),s(u(n)))) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 16.
$d((s(n),s(u(n)))) + d((s(u(n)),x)) < d((s(n),s(u(n)))) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 82, Lemma 83.
$d((s(n),s(u(n)))) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 37.
$d((s(n),s(u(n)))) + d((s(u(n)),x)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 13, Axiom 36.
Hence $d((s(n),s(u(n)))) + d((s(u(n)),x)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 83.
$d((s(n),s(u(n)))) + d((s(u(n)),x))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$d((s(n),x)) < d((s(n),s(u(n)))) + d((s(u(n)),x))$ or $d((s(n),x)) = d((s(n),s(u(n)))) + d((s(u(n)),x))$ by Lemma 81.
Hence $d((s(n),x)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 36, Lemma 82.
$d((x,s(n))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 177, Definition 179, Lemma 82.
$s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 180.
$s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 1.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
$s$ converges to $x$ in $X$ with respect to $\metricTopology{d}{X}$ by Definition 159.
$X$ is complete with respect to $d$ by Definition 343.
LaTeX source
\begin{proof}
Show that for all $s$ if
$s$ is a Cauchy sequence in $X$ with respect to $d$
then there exists $x\in X$ such that
$s$ converges to $x$ in $X$ with respect to $\metricTopology{d}{X}$.
\begin{subproof}
Fix $s$ such that $s$ is a Cauchy sequence in $X$ with respect to $d$.
$s$ is a sequence in $X$ by \cref{cauchy_sequence}.
Take $t,x$ such that
$t$ is a sequence in $X$ and
$t$ is a subsequence of $s$ and
$x\in X$ and
$t$ converges to $x$ in $X$ with respect to $\metricTopology{d}{X}$
by assumption.
Take $u$ such that
$u$ is strictly increasing on $\naturalsPlus$ and
for all $n\in\naturalsPlus$ we have $t(n) = \apply{s}{\apply{u}{n}}$ by \cref{subsequence}.
Show that for all $U$ if $U$ is a neighborhood of $x$ in $X$ with respect to $\metricTopology{d}{X}$ then
there exists $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in U$.
\begin{subproof}
Fix $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $\metricTopology{d}{X}$.
We have $U$ is open in $X$ with respect to $\metricTopology{d}{X}$ and $x\in U$ by \cref{neighborhood}.
Take $\epsilon\in\reals$ such that $0 < \epsilon$ and $\metricBall{d}{X}{x}{\epsilon}\subseteq U$
by \cref{open_in,topology_on,subseteq,powerset_elim,metric_open_iff}.
Let $m_2 = 1 + 1$.
Let $\delta = \epsilon / m_2$.
We have $\delta\in\reals$ and $0 < \delta$ and $\delta + \delta = \epsilon$ by \cref{real_half_of_positive}.
$1\in\reals$ and $0\in\reals$ and $0 < 1$
by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_add_ident,real_zero_lt_one}.
$\metricBall{d}{X}{x}{\delta}\in\metricBasis{d}{X}$ by \cref{metric_ball,subseteq,powerset_intro,metric_basis}.
Hence $\metricBall{d}{X}{x}{\delta}\in\metricTopology{d}{X}$
by \cref{metric_basis_is_basis,basis_elem_open_in_generated,metric_topology}.
$\metricBall{d}{X}{x}{\delta}$ is open in $X$ with respect to $\metricTopology{d}{X}$
by \cref{open_in,basis_topology_is_topology,metric_topology,metric_basis_is_basis,basis_for_topology}.
Hence $\metricBall{d}{X}{x}{\delta}$ is a neighborhood of $x$ in $X$ with respect to $\metricTopology{d}{X}$
by \cref{metric_ball,metric_zero_characterization,real_lt_subst_left,metric_on,neighborhood}.
Take $N_1\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N_1\leq n$ then
$t(n)\in\metricBall{d}{X}{x}{\delta}$ by \cref{converges_to}.
Take $N_0\in\naturalsPlus$ such that for all $n,m\in\naturalsPlus$ if $N_0\leq n$ and $N_0\leq m$ then
$d((s(n),s(m))) < \delta$ by \cref{cauchy_sequence}.
Let $N = N_0 + N_1$.
$N\in\naturalsPlus$ by \cref{naturalsplus_add_closed}.
Show that for all $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in U$.
\begin{subproof}
Fix $n\in\naturalsPlus$.
Suppose $N\leq n$.
$N_0\in\reals$ and $N_1\in\reals$ and $N\in\reals$ by \cref{real_naturals_subset_reals,subseteq}.
$n\in\reals$ by \cref{real_naturals_subset_reals,subseteq}.
$0 < N_0$ and $0 < N_1$ by \cref{real_zero_lt_one,real_one_leq_naturalsplus,real_lt_trans}.
$0 + N_0 < N_1 + N_0$ by \cref{real_lt_add}.
$0 + N_0 = N_0$ and $N_1 + N_0 = N_0 + N_1$ by \cref{real_add_ident,real_add_comm}.
Hence $N_0 < N_0 + N_1$ by \cref{real_lt_subst_left,real_lt_subst_right}.
$N_0 < N$ by \cref{real_lt_subst_right}.
$N_0 \leq N$ by \cref{real_lt_imp_leq}.
$0 + N_1 < N_0 + N_1$ by \cref{real_lt_add}.
$0 + N_1 = N_1$ by \cref{real_add_ident}.
Hence $N_1 < N_0 + N_1$ by \cref{real_lt_subst_left,real_lt_subst_right}.
$N_1 < N$ by \cref{real_lt_subst_right}.
$N_1 \leq N$ by \cref{real_lt_imp_leq}.
$N_0\leq n$ and $N_1\leq n$ by \cref{real_leq_trans}.
$u(n)\in\naturalsPlus$ by \cref{strictly_increasing_on_set,funs_type_apply}.
Hence $n \leq u(n)$ by \cref{strictly_increasing_naturalsplus_geq_identity}.
We have $N_0\leq u(n)$ and $N_1\leq u(n)$
by \cref{real_naturals_subset_reals,subseteq,real_leq_trans}.
$d((s(n),s(u(n)))) < \delta$ by \cref{cauchy_sequence}.
$d((s(u(n)),x)) < \delta$
by \cref{converges_to,metric_ball,metric_on,metric_symmetric,real_lt_subst_left}.
$s(n)\in X$ and $s(u(n))\in X$ by \cref{cauchy_sequence,sequence_in,funs_type_apply}.
$d((s(n),x)) \leq d((s(n),s(u(n)))) + d((s(u(n)),x))$ by \cref{metric_on,metric_triangle_inequality}.
$d((s(n),s(u(n))))\in\reals$ and $d((s(u(n)),x))\in\reals$ and $d((s(n),x))\in\reals$
by \cref{times_tuple_intro,metric_on,funs_type_apply}.
Hence $d((s(u(n)),x)) + d((s(n),s(u(n)))) < \delta + d((s(n),s(u(n))))$ by \cref{real_lt_add}.
$d((s(u(n)),x)) + d((s(n),s(u(n)))) = d((s(n),s(u(n)))) + d((s(u(n)),x))$ and
$\delta + d((s(n),s(u(n)))) = d((s(n),s(u(n)))) + \delta$ by \cref{real_add_comm}.
$d((s(n),s(u(n)))) + d((s(u(n)),x)) < d((s(n),s(u(n)))) + \delta$
by \cref{real_lt_subst_left,real_lt_subst_right}.
$d((s(n),s(u(n)))) + \delta < \delta + \delta$ by \cref{real_lt_add}.
$d((s(n),s(u(n)))) + d((s(u(n)),x)) < \delta + \delta$
by \cref{real_add_closed,real_lt_trans}.
Hence $d((s(n),s(u(n)))) + d((s(u(n)),x)) < \epsilon$ by \cref{real_lt_subst_right}.
$d((s(n),s(u(n)))) + d((s(u(n)),x))\in\reals$ by \cref{real_add_closed}.
$d((s(n),x)) < d((s(n),s(u(n)))) + d((s(u(n)),x))$ or
$d((s(n),x)) = d((s(n),s(u(n)))) + d((s(u(n)),x))$ by \cref{real_leq_split}.
Hence $d((s(n),x)) < \epsilon$ by \cref{real_lt_trans,real_lt_subst_left}.
$d((x,s(n))) < \epsilon$ by \cref{metric_on,metric_symmetric,real_lt_subst_left}.
$s(n)\in\metricBall{d}{X}{x}{\epsilon}$ by \cref{metric_ball}.
$s(n)\in U$ by \cref{subseteq}.
\end{subproof}
For all $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in U$.
\end{subproof}
$s$ converges to $x$ in $X$ with respect to $\metricTopology{d}{X}$ by \cref{converges_to}.
\end{subproof}
$X$ is complete with respect to $d$ by \cref{complete_metric_space}.
\end{proof}
Assume $d$ is a metric on $X$.
Suppose $s$ is a Cauchy sequence in $X$ with respect to $d$.
Then $\ran{s}$ is bounded in $X$ with respect to $d$.
LaTeX source
\begin{lemma}
\label{cauchy_sequence_bounded_range}
Assume $d$ is a metric on $X$.
Suppose $s$ is a Cauchy sequence in $X$ with respect to $d$.
Then $\ran{s}$ is bounded in $X$ with respect to $d$.
\end{lemma}
Proof
We have $s\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\naturalsPlus}{X}$ and $s$ is a function by Definition 158, Definition 342, Proposition 356.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $d((s(n),s(m))) < 1$ by Axiom 41, Axiom 42, Definition 1, Definition 342, Proposition 462.
Let $a = s(N)$.
Let $g = \{(i,d((a,s(i)))) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}\}$.
For all $i,r_1,r_2$ such that $(i,r_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ and $(i,r_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ we have $r_1 = r_2$ by Axiom 6.
$g$ is a function by Definition 12, Definition 51.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}$ we have $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ by Proposition 200.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ we have $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}$ by Axiom 6, Proposition 199.
$\dom{g} = \initialSegment{N}$ by Definition 1, Proposition 3.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ we have $g(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1, Definition 84, Definition 158, Definition 179, Proposition 115, Proposition 346, Proposition 361.
$g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{N}}{\reals}$ by Proposition 358.
Let $D = \img{g}{\initialSegment{N}}$.
$D$ is finite by Lemma 192, Lemma 208.
$N\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}$ by Definition 84.
$g(N)\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Proposition 235, Proposition 348.
$D\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Lemma 323, Proposition 10.
$D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1, Proposition 235, Proposition 348.
Take $M_0\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ such that $M_0$ is a maximum of $D$ by Lemma 47.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $s(N)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 158, Proposition 361.
$d((a,s(N))) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$ by Definition 175, Definition 179.
$g(N) = d((a,s(N)))$ by Proposition 346.
$d((a,s(N)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
Hence $0 < d((a,s(N)))$ or $0 = d((a,s(N)))$ by Lemma 81.
Thus $0 < g(N)$ or $0 = g(N)$ by Lemma 82, Lemma 83.
Therefore $g(N) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_0$ by Definition 73.
$g(N)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $M_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1, Definition 73, Proposition 348.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} g(N)$ by Lemma 81.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_0$ by Lemma 23.
Let $M = (M_0 + 1) + (M_0 + 1)$.
Claim: For all $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\ran{s}$ we have $d((a,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_0 + 1$.
Fix $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\ran{s}$.
Take $k$ such that $(k,z)\class{latex-symbol-tip latex-symbol-id-in}{\in} s$ by Proposition 208.
Hence $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{s}$ by Definition 15.
Thus $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Definition 1, Definition 158, Proposition 359.
We have $s(k) = z$ by Proposition 349.
$z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 158, Proposition 361.
Thus $k < N$ or $k = N$ or $N < k$ by Axiom 34, Axiom 41, Definition 1.
We have $k \class{latex-symbol-tip latex-symbol-id-leq}{\leq} N$ by Lemma 231.
Hence $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}$ by Definition 84.
Hence $g(k)\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Proposition 235, Proposition 348.
Therefore $g(k) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_0$ by Definition 73.
Hence $d((a,s(k))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_0$ by Proposition 346.
Thus $d((a,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_0$ by Lemma 83.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < 1$ by Axiom 41, Axiom 42, Definition 1, Proposition 462.
Thus $d((a,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
We have $M_0 + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$0 + M_0 < 1 + M_0$ by Axiom 37.
Hence $M_0 < M_0 + 1$ by Axiom 16, Axiom 17, Lemma 82, Lemma 83.
$d((a,z)) < M_0$ or $d((a,z)) = M_0$ by Lemma 81.
Thus $d((a,z)) < M_0 + 1$ by Axiom 36, Lemma 83.
Therefore $d((a,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_0 + 1$ by Lemma 231.
We have $a = z$ by Lemma 82.
Thus $d((a,z)) = 0$ by Definition 176, Definition 179.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < 1$ by Axiom 41, Axiom 42, Definition 1, Proposition 462.
Hence $d((a,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
Thus $M_0 + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
We have $0 + M_0 < 1 + M_0$ by Axiom 37.
Hence $M_0 < M_0 + 1$ by Axiom 16, Axiom 17, Lemma 82.
Thus $0 < M_0 + 1$ by Lemma 266.
Therefore $d((a,z)) < M_0 + 1$ by Lemma 82.
We have $d((a,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_0 + 1$ by Lemma 231.
We have $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} k$ by Lemma 231.
Hence $d((s(N),s(k))) < 1$ by Definition 342.
Thus $d((a,z)) < 1$ by Lemma 82, Lemma 83.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
Hence $d((a,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
Thus $M_0 + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$0 < M_0$ or $0 = M_0$.
Therefore $d((a,z)) < M_0 + 1$ by Axiom 17, Axiom 36, Axiom 37, Lemma 82, Lemma 83.
We have $d((a,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_0 + 1$ by Lemma 231.
LaTeX source
\begin{byCase}
\caseOf{$k < N$.}
We have $k \leq N$ by \cref{real_lt_imp_leq}.
Hence $k\in\initialSegment{N}$ by \cref{initial_segment_naturalsplus}.
Hence $g(k)\in D$ by \cref{function_apply_elim,img_iff}.
Therefore $g(k) \leq M_0$ by \cref{real_maximum}.
Hence $d((a,s(k))) \leq M_0$ by \cref{function_apply_intro}.
Thus $d((a,z)) \leq M_0$ by \cref{real_lt_subst_right}.
$1\in\reals$ and $0 < 1$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_zero_lt_one}.
Thus $d((a,z))\in\reals$ by \cref{times_tuple_intro,metric_on,funs_type_apply}.
We have $M_0 + 1\in\reals$ by \cref{real_add_closed}.
$0 + M_0 < 1 + M_0$ by \cref{real_lt_add}.
Hence $M_0 < M_0 + 1$ by \cref{real_add_ident,real_add_comm,real_lt_subst_left,real_lt_subst_right}.
$d((a,z)) < M_0$ or $d((a,z)) = M_0$ by \cref{real_leq_split}.
Thus $d((a,z)) < M_0 + 1$ by \cref{real_lt_trans,real_lt_subst_right}.
Therefore $d((a,z)) \leq M_0 + 1$ by \cref{real_lt_imp_leq}.
\caseOf{$k = N$.}
We have $a = z$ by \cref{real_lt_subst_left}.
Thus $d((a,z)) = 0$ by \cref{metric_on,metric_zero_characterization}.
$1\in\reals$ and $0 < 1$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_zero_lt_one}.
Hence $d((a,z))\in\reals$ by \cref{times_tuple_intro,metric_on,funs_type_apply}.
Thus $M_0 + 1\in\reals$ by \cref{real_add_closed}.
We have $0 + M_0 < 1 + M_0$ by \cref{real_lt_add}.
Hence $M_0 < M_0 + 1$ by \cref{real_add_ident,real_add_comm,real_lt_subst_left}.
Thus $0 < M_0 + 1$ by \cref{real_leq_lt_trans}.
Therefore $d((a,z)) < M_0 + 1$ by \cref{real_lt_subst_left}.
We have $d((a,z)) \leq M_0 + 1$ by \cref{real_lt_imp_leq}.
\caseOf{$N < k$.}
We have $N \leq k$ by \cref{real_lt_imp_leq}.
Hence $d((s(N),s(k))) < 1$ by \cref{cauchy_sequence}.
Thus $d((a,z)) < 1$ by \cref{real_lt_subst_left,real_lt_subst_right}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
Hence $d((a,z))\in\reals$ by \cref{times_tuple_intro,metric_on,funs_type_apply}.
Thus $M_0 + 1\in\reals$ by \cref{real_add_closed}.
$0 < M_0$ or $0 = M_0$.
Therefore $d((a,z)) < M_0 + 1$ by \cref{real_lt_add,real_add_ident,real_lt_subst_left,real_lt_trans,real_lt_subst_right}.
We have $d((a,z)) \leq M_0 + 1$ by \cref{real_lt_imp_leq}.
\end{byCase}
Claim: For all $x,y\class{latex-symbol-tip latex-symbol-id-in}{\in}\ran{s}$ we have $d((x,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$.
Fix $x$.
Fix $y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\ran{s}$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\ran{s}$.
Thus $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1, Definition 15, Definition 158, Proposition 208, Proposition 349, Proposition 359, Proposition 361.
We have $d((a,x)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_0 + 1$.
$d((a,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_0 + 1$.
We have $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 158, Proposition 361.
Thus $d((x,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x,a)) + d((a,y))$ by Definition 178, Definition 179.
Hence $d((x,a)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_0 + 1$ by Definition 177, Definition 179.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(x,a)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(a,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Proposition 115.
$d((x,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((x,a))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((a,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
We have $M_0 + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 41, Axiom 42, Definition 1.
$d((x,a)) + d((a,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $(M_0 + 1) + d((a,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $(M_0 + 1) + (M_0 + 1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
Thus $d((x,a)) + d((a,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (M_0 + 1) + d((a,y))$ by Lemma 24.
We have $d((a,y)) + (M_0 + 1) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (M_0 + 1) + (M_0 + 1)$ by Lemma 24.
$(M_0 + 1) + d((a,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (M_0 + 1) + (M_0 + 1)$ by Axiom 16.
Therefore $d((x,a)) + d((a,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (M_0 + 1) + (M_0 + 1)$ by Lemma 23.
Thus $d((x,a)) + d((a,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ by Axiom 16.
Therefore $d((x,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ by Lemma 23.
Hence $M\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 41, Axiom 42, Definition 1.
$\ran{s}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 1, Definition 158, Proposition 284, Proposition 357.
Hence $\ran{s}$ is bounded in $X$ with respect to $d$ by Definition 187.
LaTeX source
\begin{proof}
We have $s\in\funs{\naturalsPlus}{X}$ and $s$ is a function by \cref{cauchy_sequence,sequence_in,funs_is_function}.
Take $N\in\naturalsPlus$ such that for all $n,m\in\naturalsPlus$ if $N\leq n$ and $N\leq m$ then
$d((s(n),s(m))) < 1$ by \cref{real_zero_lt_one,real_naturals_subset_reals,real_one_in_naturals,subseteq,cauchy_sequence}.
Let $a = s(N)$.
Let $g = \{(i,d((a,s(i)))) \mid i\in\initialSegment{N}\}$.
For all $i,r_1,r_2$ such that $(i,r_1)\in g$ and $(i,r_2)\in g$ we have $r_1 = r_2$ by \cref{pair_eq_iff}.
$g$ is a function by \cref{relation,rightunique}.
For all $i$ such that $i\in\initialSegment{N}$ we have $i\in\dom{g}$ by \cref{dom_intro}.
For all $i$ such that $i\in\dom{g}$ we have $i\in\initialSegment{N}$ by \cref{dom_iff,pair_eq_iff}.
$\dom{g} = \initialSegment{N}$ by \cref{subseteq,subseteq_antisymmetric}.
For all $i\in\dom{g}$ we have $g(i)\in\reals$
by \cref{subseteq,initial_segment_naturalsplus,sequence_in,funs_type_apply,metric_on,times_tuple_intro,function_apply_intro}.
$g\in\funs{\initialSegment{N}}{\reals}$ by \cref{funs_intro}.
Let $D = \img{g}{\initialSegment{N}}$.
$D$ is finite by \cref{initial_segment_finite,finite_image_function}.
$N\in\initialSegment{N}$ by \cref{initial_segment_naturalsplus}.
$g(N)\in D$ by \cref{function_apply_elim,img_iff}.
$D\neq\emptyset$ by \cref{inhabited_nonempty,nonempty_inhabited}.
$D\subseteq\reals$ by \cref{subseteq,img_iff,function_apply_elim}.
Take $M_0\in D$ such that $M_0$ is a maximum of $D$ by \cref{finite_real_maximum}.
$a\in X$ and $s(N)\in X$ by \cref{sequence_in,funs_type_apply}.
$d((a,s(N))) \geq 0$ by \cref{metric_on,metric_nonnegative}.
$g(N) = d((a,s(N)))$ by \cref{function_apply_intro}.
$d((a,s(N)))\in\reals$ by \cref{times_tuple_intro,metric_on,funs_type_apply}.
Hence $0 < d((a,s(N)))$ or $0 = d((a,s(N)))$ by \cref{real_leq_split}.
Thus $0 < g(N)$ or $0 = g(N)$ by \cref{real_lt_subst_right,real_lt_subst_left}.
Therefore $g(N) \leq M_0$ by \cref{real_maximum}.
$g(N)\in\reals$ and $M_0\in\reals$ by \cref{function_apply_elim,subseteq,real_maximum}.
$0\in\reals$ by \cref{real_add_ident}.
$0 \leq g(N)$ by \cref{real_leq_split}.
$0 \leq M_0$ by \cref{real_leq_trans}.
Let $M = (M_0 + 1) + (M_0 + 1)$.
Show that for all $z\in\ran{s}$ we have $d((a,z)) \leq M_0 + 1$.
\begin{subproof}
Fix $z\in\ran{s}$.
Take $k$ such that $(k,z)\in s$ by \cref{ran_iff}.
Hence $k\in\dom{s}$ by \cref{dom}.
Thus $k\in\naturalsPlus$ by \cref{sequence_in,funs_elim,subseteq}.
We have $s(k) = z$ by \cref{function_apply_iff}.
$z\in X$ by \cref{sequence_in,funs_type_apply}.
Thus $k < N$ or $k = N$ or $N < k$ by \cref{real_naturals_subset_reals,subseteq,real_lt_trichotomy}.
\begin{byCase}
\caseOf{$k < N$.}
We have $k \leq N$ by \cref{real_lt_imp_leq}.
Hence $k\in\initialSegment{N}$ by \cref{initial_segment_naturalsplus}.
Hence $g(k)\in D$ by \cref{function_apply_elim,img_iff}.
Therefore $g(k) \leq M_0$ by \cref{real_maximum}.
Hence $d((a,s(k))) \leq M_0$ by \cref{function_apply_intro}.
Thus $d((a,z)) \leq M_0$ by \cref{real_lt_subst_right}.
$1\in\reals$ and $0 < 1$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_zero_lt_one}.
Thus $d((a,z))\in\reals$ by \cref{times_tuple_intro,metric_on,funs_type_apply}.
We have $M_0 + 1\in\reals$ by \cref{real_add_closed}.
$0 + M_0 < 1 + M_0$ by \cref{real_lt_add}.
Hence $M_0 < M_0 + 1$ by \cref{real_add_ident,real_add_comm,real_lt_subst_left,real_lt_subst_right}.
$d((a,z)) < M_0$ or $d((a,z)) = M_0$ by \cref{real_leq_split}.
Thus $d((a,z)) < M_0 + 1$ by \cref{real_lt_trans,real_lt_subst_right}.
Therefore $d((a,z)) \leq M_0 + 1$ by \cref{real_lt_imp_leq}.
\caseOf{$k = N$.}
We have $a = z$ by \cref{real_lt_subst_left}.
Thus $d((a,z)) = 0$ by \cref{metric_on,metric_zero_characterization}.
$1\in\reals$ and $0 < 1$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_zero_lt_one}.
Hence $d((a,z))\in\reals$ by \cref{times_tuple_intro,metric_on,funs_type_apply}.
Thus $M_0 + 1\in\reals$ by \cref{real_add_closed}.
We have $0 + M_0 < 1 + M_0$ by \cref{real_lt_add}.
Hence $M_0 < M_0 + 1$ by \cref{real_add_ident,real_add_comm,real_lt_subst_left}.
Thus $0 < M_0 + 1$ by \cref{real_leq_lt_trans}.
Therefore $d((a,z)) < M_0 + 1$ by \cref{real_lt_subst_left}.
We have $d((a,z)) \leq M_0 + 1$ by \cref{real_lt_imp_leq}.
\caseOf{$N < k$.}
We have $N \leq k$ by \cref{real_lt_imp_leq}.
Hence $d((s(N),s(k))) < 1$ by \cref{cauchy_sequence}.
Thus $d((a,z)) < 1$ by \cref{real_lt_subst_left,real_lt_subst_right}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
Hence $d((a,z))\in\reals$ by \cref{times_tuple_intro,metric_on,funs_type_apply}.
Thus $M_0 + 1\in\reals$ by \cref{real_add_closed}.
$0 < M_0$ or $0 = M_0$.
Therefore $d((a,z)) < M_0 + 1$ by \cref{real_lt_add,real_add_ident,real_lt_subst_left,real_lt_trans,real_lt_subst_right}.
We have $d((a,z)) \leq M_0 + 1$ by \cref{real_lt_imp_leq}.
\end{byCase}
\end{subproof}
Show that for all $x,y\in\ran{s}$ we have $d((x,y)) \leq M$.
\begin{subproof}
Fix $x$.
Fix $y$ such that $x\in\ran{s}$ and $y\in\ran{s}$.
Thus $x\in X$ and $y\in X$ by \cref{sequence_in,ran_iff,dom,funs_elim,subseteq,function_apply_iff,funs_type_apply}.
We have $d((a,x)) \leq M_0 + 1$.
$d((a,y)) \leq M_0 + 1$.
We have $a\in X$ by \cref{sequence_in,funs_type_apply}.
Thus $d((x,y)) \leq d((x,a)) + d((a,y))$ by \cref{metric_on,metric_triangle_inequality}.
Hence $d((x,a)) \leq M_0 + 1$ by \cref{metric_on,metric_symmetric}.
$(x,y)\in X\times X$ and $(x,a)\in X\times X$ and $(a,y)\in X\times X$ by \cref{times_tuple_intro}.
$d((x,y))\in\reals$ and $d((x,a))\in\reals$ and $d((a,y))\in\reals$
by \cref{metric_on,funs_type_apply}.
We have $M_0 + 1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_add_closed}.
$d((x,a)) + d((a,y))\in\reals$ and $(M_0 + 1) + d((a,y))\in\reals$ and $(M_0 + 1) + (M_0 + 1)\in\reals$
by \cref{real_add_closed}.
Thus $d((x,a)) + d((a,y)) \leq (M_0 + 1) + d((a,y))$ by \cref{real_leq_add}.
We have $d((a,y)) + (M_0 + 1) \leq (M_0 + 1) + (M_0 + 1)$ by \cref{real_leq_add}.
$(M_0 + 1) + d((a,y)) \leq (M_0 + 1) + (M_0 + 1)$ by \cref{real_add_comm}.
Therefore $d((x,a)) + d((a,y)) \leq (M_0 + 1) + (M_0 + 1)$ by \cref{real_leq_trans}.
Thus $d((x,a)) + d((a,y)) \leq M$ by \cref{real_add_comm}.
Therefore $d((x,y)) \leq M$ by \cref{real_leq_trans}.
\end{subproof}
Hence $M\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_add_closed}.
$\ran{s}\subseteq X$ by \cref{sequence_in,funs_subseteq_rels,subseteq,rels_ran_subseteq}.
Hence $\ran{s}$ is bounded in $X$ with respect to $d$ by \cref{metric_bounded}.
\end{proof}
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $X = \realsPower{\initialSegment{n}}$.
Then $X$ is complete with respect to $\squareMetric{n}$.
LaTeX source
\begin{theorem}
\label{euclidean_space_square_metric_complete}
Assume $n\in\naturalsPlus$.
Let $X = \realsPower{\initialSegment{n}}$.
Then $X$ is complete with respect to $\squareMetric{n}$.
\end{theorem}
Proof
Let $d = \squareMetric{n}$.
Let $T = \metricTopology{d}{X}$.
$d$ is a metric on $X$ by Lemma 250.
We have $T$ is a topology on $X$ by Definition 101, Definition 182, Lemma 76, Lemma 194.
Claim: For all $s$ if $s$ is a Cauchy sequence in $X$ with respect to $d$ then there exist $t,x$ such that $t$ is a sequence in $X$ and $t$ is a subsequence of $s$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $t$ converges to $x$ in $X$ with respect to $T$.
Fix $s$ such that $s$ is a Cauchy sequence in $X$ with respect to $d$.
Let $A = \closure{\ran{s}}{X}{T}$.
Let $T_A = \subspaceTopology{T}{A}$.
$s\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\naturalsPlus}{X}$ by Definition 158, Definition 342.
$\ran{s}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 1, Proposition 284, Proposition 357.
$A$ is closed in $X$ with respect to $T$ and $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 1, Definition 149, Lemma 144.
Take $M_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that for all $a_1,a_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\ran{s}$ we have $d((a_1,a_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_1$ by Definition 187, Lemma 663.
Let $M = 1 + (M_1 + 1)$.
Claim: For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ there exists $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\ran{s}$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $d((p,y)) < 1$.
Fix $p\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
We have $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1.
$\metricBall{d}{X}{p}{1}$ is open in $X$ with respect to $T$ by Axiom 41, Axiom 42, Definition 1, Definition 103, Definition 115, Definition 180, Definition 181, Definition 182, Lemma 77, Lemma 194, Proposition 155, Proposition 462.
Hence $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X}{p}{1}$ by Axiom 41, Axiom 42, Definition 1, Definition 176, Definition 179, Definition 180, Lemma 82, Proposition 462.
Thus $\metricBall{d}{X}{p}{1}$ intersects $\ran{s}$ by Theorem 11.
Take $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X}{p}{1}\inter\ran{s}$ by Definition 152, Proposition 10.
We have $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\ran{s}$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $d((p,y)) < 1$ by Definition 180, Proposition 62, Proposition 63.
Claim: For all $x,z\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$.
Fix $x$.
Fix $z$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1.
Take $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\ran{s}$ such that $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $d((x,y_1)) < 1$.
Take $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\ran{s}$ such that $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $d((z,y_2)) < 1$.
Therefore $d((y_1,y_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_1$.
Thus $d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x,y_1)) + d((y_1,z))$ by Definition 178, Definition 179.
We have $d((y_1,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((y_1,y_2)) + d((y_2,z))$ by Definition 178, Definition 179.
Hence $d((y_2,z)) < 1$ by Definition 177, Definition 179, Lemma 82.
Therefore $d((x,y_1)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ and $d((y_2,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ by Lemma 231.
$(x,z)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(x,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(y_1,z)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(y_1,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(y_2,z)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Proposition 115.
We have $d((x,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((x,y_1))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((y_1,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((y_1,y_2))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((y_2,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
$M_1 + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 41, Axiom 42, Definition 1.
We have $d((y_1,y_2)) + d((y_2,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $M_1 + d((y_2,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1 + M_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((x,y_1)) + d((y_1,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1 + d((y_1,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1 + (M_1 + 1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
Thus $d((y_1,y_2)) + d((y_2,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_1 + d((y_2,z))$ by Lemma 24.
We have $d((y_2,z)) + M_1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 + M_1$ by Lemma 24.
$M_1 + d((y_2,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 + M_1$ by Axiom 16.
Therefore $M_1 + d((y_2,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_1 + 1$ by Axiom 16.
Thus $d((y_1,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_1 + 1$ by Lemma 23.
We have $d((x,y_1)) + d((y_1,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 + d((y_1,z))$ by Lemma 24.
$d((y_1,z)) + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (M_1 + 1) + 1$ by Lemma 24.
Thus $1 + d((y_1,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (M_1 + 1) + 1$ by Axiom 16.
We have $1 + d((y_1,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 + (M_1 + 1)$ by Axiom 16.
Therefore $d((x,y_1)) + d((y_1,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 + (M_1 + 1)$ by Lemma 23.
Therefore $d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ by Lemma 23.
$M\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 41, Axiom 42, Definition 1.
$A$ is bounded in $X$ with respect to $d$ by Definition 187.
$A$ is compact with respect to $T_A$ by Theorem 66.
Thus $X$ is metrizable with respect to $T$ by Definition 185.
$A$ is a subspace of $X$ with respect to $T$ by Definition 147.
$T_A$ is a topology on $A$ by Definition 147, Lemma 131.
$A$ is metrizable with respect to $T_A$ by Definition 147, Lemma 516.
Therefore $A$ is sequentially compact with respect to $T_A$ by Theorem 72.
For all $m$ such that $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{s}$ we have $s(m)\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 1, Definition 158, Definition 342, Lemma 146, Proposition 208, Proposition 348, Proposition 359.
We have $s\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\naturalsPlus}{A}$ by Definition 158, Definition 342, Proposition 358, Proposition 359.
Thus $s$ is a sequence in $A$ by Definition 158.
Take $t,x$ such that $t$ is a sequence in $A$ and $t$ is a subsequence of $s$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $t$ converges to $x$ in $A$ with respect to $T_A$ by Definition 260.
$t$ is a sequence in $X$ by Definition 158, Proposition 360.
For all $U$ if $U$ is a neighborhood of $x$ in $X$ with respect to $T$ then there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $t(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 1, Definition 103, Definition 146, Definition 153, Definition 159, Proposition 61, Proposition 63.
$t$ converges to $x$ in $X$ with respect to $T$ by Definition 159.
Thus $t$ is a sequence in $X$ and $t$ is a subsequence of $s$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $t$ converges to $x$ in $X$ with respect to $T$ by Definition 1, Definition 158.
$X$ is complete with respect to $d$ by Lemma 662.
LaTeX source
\begin{proof}
Let $d = \squareMetric{n}$.
Let $T = \metricTopology{d}{X}$.
$d$ is a metric on $X$ by \cref{square_metric_is_metric}.
We have $T$ is a topology on $X$ by \cref{metric_basis_is_basis,basis_topology_is_topology,metric_topology,topology_on}.
Show that for all $s$ if
$s$ is a Cauchy sequence in $X$ with respect to $d$
then there exist $t,x$ such that
$t$ is a sequence in $X$ and
$t$ is a subsequence of $s$ and
$x\in X$ and
$t$ converges to $x$ in $X$ with respect to $T$.
\begin{subproof}
Fix $s$ such that $s$ is a Cauchy sequence in $X$ with respect to $d$.
Let $A = \closure{\ran{s}}{X}{T}$.
Let $T_A = \subspaceTopology{T}{A}$.
$s\in\funs{\naturalsPlus}{X}$ by \cref{cauchy_sequence,sequence_in}.
$\ran{s}\subseteq X$ by \cref{funs_subseteq_rels,subseteq,rels_ran_subseteq}.
$A$ is closed in $X$ with respect to $T$ and $A\subseteq X$ by \cref{closure_closed_in,closed_in,subseteq}.
Take $M_1\in\reals$ such that for all $a_1,a_2\in\ran{s}$ we have $d((a_1,a_2)) \leq M_1$
by \cref{cauchy_sequence_bounded_range,metric_bounded}.
Let $M = 1 + (M_1 + 1)$.
Show that for all $p\in A$ there exists $y\in\ran{s}$ such that $y\in X$ and $d((p,y)) < 1$.
\begin{subproof}
Fix $p\in A$.
We have $p\in X$ by \cref{subseteq}.
$\metricBall{d}{X}{p}{1}$ is open in $X$ with respect to $T$
by \cref{metric_ball,subseteq,powerset_intro,real_naturals_subset_reals,real_one_in_naturals,real_zero_lt_one,metric_basis,metric_basis_is_basis,basis_elem_open_in_generated,metric_topology,basis_for_topology,open_in}.
Hence $p\in\metricBall{d}{X}{p}{1}$
by \cref{metric_ball,metric_zero_characterization,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_zero_lt_one,metric_on,real_lt_subst_left}.
Thus $\metricBall{d}{X}{p}{1}$ intersects $\ran{s}$ by \cref{closure_iff_intersects_open}.
Take $y$ such that $y\in\metricBall{d}{X}{p}{1}\inter\ran{s}$ by \cref{intersects,nonempty_inhabited}.
We have $y\in\ran{s}$ and $y\in X$ and $d((p,y)) < 1$ by \cref{inter_elim_right,inter_elim_left,metric_ball}.
\end{subproof}
Show that for all $x,z\in A$ we have $d((x,z)) \leq M$.
\begin{subproof}
Fix $x$.
Fix $z$ such that $x\in A$ and $z\in A$.
Hence $x\in X$ and $z\in X$ by \cref{subseteq}.
Take $y_1\in\ran{s}$ such that $y_1\in X$ and $d((x,y_1)) < 1$.
Take $y_2\in\ran{s}$ such that $y_2\in X$ and $d((z,y_2)) < 1$.
Therefore $d((y_1,y_2)) \leq M_1$.
Thus $d((x,z)) \leq d((x,y_1)) + d((y_1,z))$ by \cref{metric_on,metric_triangle_inequality}.
We have $d((y_1,z)) \leq d((y_1,y_2)) + d((y_2,z))$ by \cref{metric_on,metric_triangle_inequality}.
Hence $d((y_2,z)) < 1$ by \cref{metric_on,metric_symmetric,real_lt_subst_left}.
Therefore $d((x,y_1)) \leq 1$ and $d((y_2,z)) \leq 1$ by \cref{real_lt_imp_leq}.
$(x,z)\in X\times X$ and $(x,y_1)\in X\times X$ and $(y_1,z)\in X\times X$ and
$(y_1,y_2)\in X\times X$ and $(y_2,z)\in X\times X$ by \cref{times_tuple_intro}.
We have $d((x,z))\in\reals$ and $d((x,y_1))\in\reals$ and $d((y_1,z))\in\reals$ and
$d((y_1,y_2))\in\reals$ and $d((y_2,z))\in\reals$ by \cref{metric_on,funs_type_apply}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
$M_1 + 1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_add_closed}.
We have $d((y_1,y_2)) + d((y_2,z))\in\reals$ and $M_1 + d((y_2,z))\in\reals$ and $1 + M_1\in\reals$ and
$d((x,y_1)) + d((y_1,z))\in\reals$ and $1 + d((y_1,z))\in\reals$ and $1 + (M_1 + 1)\in\reals$
by \cref{real_add_closed}.
Thus $d((y_1,y_2)) + d((y_2,z)) \leq M_1 + d((y_2,z))$ by \cref{real_leq_add}.
We have $d((y_2,z)) + M_1 \leq 1 + M_1$ by \cref{real_leq_add}.
$M_1 + d((y_2,z)) \leq 1 + M_1$ by \cref{real_add_comm}.
Therefore $M_1 + d((y_2,z)) \leq M_1 + 1$ by \cref{real_add_comm}.
Thus $d((y_1,z)) \leq M_1 + 1$ by \cref{real_leq_trans}.
We have $d((x,y_1)) + d((y_1,z)) \leq 1 + d((y_1,z))$ by \cref{real_leq_add}.
$d((y_1,z)) + 1 \leq (M_1 + 1) + 1$ by \cref{real_leq_add}.
Thus $1 + d((y_1,z)) \leq (M_1 + 1) + 1$ by \cref{real_add_comm}.
We have $1 + d((y_1,z)) \leq 1 + (M_1 + 1)$ by \cref{real_add_comm}.
Therefore $d((x,y_1)) + d((y_1,z)) \leq 1 + (M_1 + 1)$ by \cref{real_leq_trans}.
Therefore $d((x,z)) \leq M$ by \cref{real_leq_trans}.
\end{subproof}
$M\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_add_closed}.
$A$ is bounded in $X$ with respect to $d$ by \cref{metric_bounded}.
$A$ is compact with respect to $T_A$ by \cref{compact_reals_power_iff_closed_bounded}.
Thus $X$ is metrizable with respect to $T$ by \cref{metrizable}.
$A$ is a subspace of $X$ with respect to $T$ by \cref{subspace_of}.
$T_A$ is a topology on $A$ by \cref{subspace_topology_is_topology,subspace_of}.
$A$ is metrizable with respect to $T_A$ by \cref{subspace_of,subspace_metrizable}.
Therefore $A$ is sequentially compact with respect to $T_A$
by \cref{metrizable_compact_iff_limit_point_compact_iff_sequentially_compact}.
For all $m$ such that $m\in\dom{s}$ we have $s(m)\in A$
by \cref{cauchy_sequence,sequence_in,funs_elim,function_apply_elim,ran_iff,subseteq_closure,subseteq}.
We have $s\in\funs{\naturalsPlus}{A}$ by \cref{cauchy_sequence,sequence_in,funs_elim,funs_intro}.
Thus $s$ is a sequence in $A$ by \cref{sequence_in}.
Take $t,x$ such that
$t$ is a sequence in $A$ and
$t$ is a subsequence of $s$ and
$x\in A$ and
$t$ converges to $x$ in $A$ with respect to $T_A$ by \cref{sequentially_compact}.
$t$ is a sequence in $X$ by \cref{sequence_in,funs_weaken_codom}.
For all $U$ if $U$ is a neighborhood of $x$ in $X$ with respect to $T$ then
there exists $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then $t(n)\in U$
by \cref{subspace_topology,open_in,inter_intro,subseteq,neighborhood,converges_to,inter_elim_right}.
$t$ converges to $x$ in $X$ with respect to $T$ by \cref{converges_to}.
Thus $t$ is a sequence in $X$ and
$t$ is a subsequence of $s$ and
$x\in X$ and
$t$ converges to $x$ in $X$ with respect to $T$
by \cref{sequence_in,subseteq}.
\end{subproof}
$X$ is complete with respect to $d$ by \cref{cauchy_subsequence_completeness_criterion}.
\end{proof}
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $X = \realsPower{\initialSegment{n}}$.
Then $X$ is complete with respect to $\euclideanMetric{n}$.
LaTeX source
\begin{theorem}
\label{euclidean_space_euclidean_metric_complete}
Assume $n\in\naturalsPlus$.
Let $X = \realsPower{\initialSegment{n}}$.
Then $X$ is complete with respect to $\euclideanMetric{n}$.
\end{theorem}
Proof
Let $d = \euclideanMetric{n}$.
Let $d_1 = \squareMetric{n}$.
$d$ is a metric on $X$ and $d_1$ is a metric on $X$ by Lemma 250, Theorem 23.
Claim: For all $s$ if $s$ is a Cauchy sequence in $X$ with respect to $d$ then there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $s$ converges to $x$ in $X$ with respect to $\metricTopology{d}{X}$.
Fix $s$ such that $s$ is a Cauchy sequence in $X$ with respect to $d$.
Claim: For all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $k,l\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} k$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} l$ then $d_1((s(k),s(l))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $k,l\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} k$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} l$ then $d((s(k),s(l))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 342.
Claim: For all $k,l\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} k$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} l$ then $d_1((s(k),s(l))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $k$.
Fix $l$.
Assume $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $l\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} k$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} l$.
$s(k)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $s(l)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 158, Definition 342, Proposition 361.
Take $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $((s(k),s(l)),r)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Lemma 247.
Take $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $((s(k),s(l)),m)\class{latex-symbol-tip latex-symbol-id-in}{\in} d_1$ by Lemma 216.
We have $d((s(k),s(l))) = r$ and $d_1((s(k),s(l))) = m$ by Lemma 211, Lemma 248, Proposition 346.
Hence $r < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 342, Lemma 82.
Thus $m \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r$ by Lemma 220.
Therefore $m < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 266.
We have $d_1((s(k),s(l))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 82.
Hence $s$ is a Cauchy sequence in $X$ with respect to $d_1$ by Definition 342.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $s$ converges to $x$ in $X$ with respect to $\metricTopology{d_1}{X}$ by Definition 343, Theorem 107.
Hence $s$ converges to $x$ in $X$ with respect to $\metricTopology{d}{X}$ by Definition 159, Lemma 371.
Hence $X$ is complete with respect to $d$ by Definition 343.
LaTeX source
\begin{proof}
Let $d = \euclideanMetric{n}$.
Let $d_1 = \squareMetric{n}$.
$d$ is a metric on $X$ and $d_1$ is a metric on $X$
by \cref{euclidean_metric_is_metric,square_metric_is_metric}.
Show that for all $s$ if
$s$ is a Cauchy sequence in $X$ with respect to $d$
then there exists $x\in X$ such that
$s$ converges to $x$ in $X$ with respect to $\metricTopology{d}{X}$.
\begin{subproof}
Fix $s$ such that $s$ is a Cauchy sequence in $X$ with respect to $d$.
Show that for all $\epsilon\in\reals$ such that $0 < \epsilon$
there exists $N\in\naturalsPlus$ such that
for all $k,l\in\naturalsPlus$ if $N \leq k$ and $N \leq l$ then
$d_1((s(k),s(l))) < \epsilon$.
\begin{subproof}
Fix $\epsilon$ such that $\epsilon\in\reals$ and $0 < \epsilon$.
Take $N\in\naturalsPlus$ such that
for all $k,l\in\naturalsPlus$ if $N \leq k$ and $N \leq l$ then
$d((s(k),s(l))) < \epsilon$
by \cref{cauchy_sequence}.
Show that for all $k,l\in\naturalsPlus$ if $N \leq k$ and $N \leq l$ then
$d_1((s(k),s(l))) < \epsilon$.
\begin{subproof}
Fix $k$.
Fix $l$.
Assume $k\in\naturalsPlus$ and $l\in\naturalsPlus$.
Assume $N \leq k$ and $N \leq l$.
$s(k)\in X$ and $s(l)\in X$ by \cref{cauchy_sequence,sequence_in,funs_type_apply}.
Take $r\in\reals$ such that $((s(k),s(l)),r)\in d$ by \cref{euclidean_metric_value_exists}.
Take $m\in\reals$ such that $((s(k),s(l)),m)\in d_1$ by \cref{square_metric_value_exists}.
We have $d((s(k),s(l))) = r$ and $d_1((s(k),s(l))) = m$
by \cref{euclidean_metric_function,square_metric_function,function_apply_intro}.
Hence $r < \epsilon$ by \cref{cauchy_sequence,real_lt_subst_left}.
Thus $m \leq r$ by \cref{euclidean_square_metric_bounds}.
Therefore $m < \epsilon$ by \cref{real_leq_lt_trans}.
We have $d_1((s(k),s(l))) < \epsilon$ by \cref{real_lt_subst_left}.
\end{subproof}
\end{subproof}
Hence $s$ is a Cauchy sequence in $X$ with respect to $d_1$ by \cref{cauchy_sequence}.
Take $x\in X$ such that
$s$ converges to $x$ in $X$ with respect to $\metricTopology{d_1}{X}$
by \cref{euclidean_space_square_metric_complete,complete_metric_space}.
Hence $s$ converges to $x$ in $X$ with respect to $\metricTopology{d}{X}$
by \cref{square_metric_topology_equals_euclidean,converges_to}.
\end{subproof}
Hence $X$ is complete with respect to $d$ by \cref{complete_metric_space}.
\end{proof}
Assume $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}}{Y}$.
Then $f = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
LaTeX source
\begin{lemma}
\label{function_from_emptyset_is_empty}
Assume $f\in\funs{\emptyset}{Y}$.
Then $f = \emptyset$.
\end{lemma}
Proof
Follows by Axiom 2, Definition 1, Definition 12, Proposition 3, Proposition 11, Proposition 200, Proposition 355, Proposition 359.
LaTeX source
\begin{proof}
Follows by \cref{funs_is_relation,funs_elim,relation,dom_intro,emptyset,subseteq,emptyset_subseteq,subseteq_antisymmetric}.
\end{proof}
Assume $X$ is a function.
Assume $\dom{X} = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
Then $\productFamily{X} = \{\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}\}$.
LaTeX source
\begin{lemma}
\label{empty_indexed_product_singleton}
Assume $X$ is a function.
Assume $\dom{X} = \emptyset$.
Then $\productFamily{X} = \{\emptyset\}$.
\end{lemma}
Proof
$\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{X}$ by Axiom 2, Definition 167, Proposition 358, Proposition 369, Proposition 370.
For all $f$ if $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{X}$ then $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\{\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}\}$ by Definition 167, Lemma 664, Proposition 20, Proposition 359.
$\productFamily{X} = \{\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}\}$ by Definition 1, Proposition 3, Proposition 25.
LaTeX source
\begin{proof}
$\emptyset\in\productFamily{X}$
by \cref{codom_of_emptyset_can_be_anything,emptyset_is_function_on_emptyset,funs_intro,indexed_product,emptyset}.
For all $f$ if $f\in\productFamily{X}$ then $f\in\{\emptyset\}$
by \cref{indexed_product,funs_elim,function_from_emptyset_is_empty,singleton_intro}.
$\productFamily{X} = \{\emptyset\}$ by \cref{subseteq,singleton_subset_intro,subseteq_antisymmetric}.
\end{proof}
Assume $X$ is a function.
Assume $T$ is a function.
Assume $\dom{T} = \dom{X}$.
Suppose for all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ we have $\apply{T}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ is a topology on $\apply{X}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$.
Suppose $s$ is a sequence in $\productFamily{X}$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{X}$.
Then $s$ converges to $x$ in $\productFamily{X}$ with respect to $\productTopologyIndexed{T}{X}$ iff for all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ we have $\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s$ converges to $\apply{x}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ in $\apply{X}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ with respect to $\apply{T}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$.
LaTeX source
\begin{lemma}
\label{product_sequence_converges_iff_coordinatewise}
Assume $X$ is a function.
Assume $T$ is a function.
Assume $\dom{T} = \dom{X}$.
Suppose for all $\alpha\in\dom{X}$ we have $\apply{T}{\alpha}$ is a topology on $\apply{X}{\alpha}$.
Suppose $s$ is a sequence in $\productFamily{X}$.
Suppose $x\in\productFamily{X}$.
Then $s$ converges to $x$ in $\productFamily{X}$ with respect to $\productTopologyIndexed{T}{X}$ iff
for all $\alpha\in\dom{X}$ we have
$\piIndex{X}{\alpha}\circ s$ converges to $\apply{x}{\alpha}$ in $\apply{X}{\alpha}$ with respect to $\apply{T}{\alpha}$.
\end{lemma}
Proof
Let $T_0 = \productTopologyIndexed{T}{X}$.
Claim: If $s$ converges to $x$ in $\productFamily{X}$ with respect to $T_0$ then for all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ we have $\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s$ converges to $\apply{x}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ in $\apply{X}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ with respect to $\apply{T}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$.
Claim: If for all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ we have $\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s$ converges to $\apply{x}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ in $\apply{X}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ with respect to $\apply{T}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ then $s$ converges to $x$ in $\productFamily{X}$ with respect to $T_0$.
Assume for all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ we have $\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s$ converges to $\apply{x}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ in $\apply{X}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ with respect to $\apply{T}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$.
$\dom{X} = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2, Proposition 10.
$x = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Definition 1, Lemma 665, Proposition 21.
Claim: For all $U$ if $U$ is a neighborhood of $x$ in $\productFamily{X}$ with respect to $T_0$ then there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Follows by Axiom 2, Axiom 42, Definition 1, Definition 153, Definition 158, Lemma 665, Proposition 21, Proposition 361.
$s$ converges to $x$ in $\productFamily{X}$ with respect to $T_0$ by Definition 159.
Let $S = \productSubbasis{T}{X}$.
Let $B = \finiteIntersections{S}$.
$B$ is a basis for $T_0$ on $\productFamily{X}$ by Lemma 177.
Claim: For all $U$ if $U$ is a neighborhood of $x$ in $\productFamily{X}$ with respect to $T_0$ then there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Fix $U$ such that $U$ is a neighborhood of $x$ in $\productFamily{X}$ with respect to $T_0$.
We have $U$ is open in $\productFamily{X}$ with respect to $T_0$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 153.
Hence $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_0$ and $U\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\productFamily{X}}$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 115, Lemma 76, Lemma 177.
Take $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B$ such that $U = \unions{M}$ by Definition 115, Lemma 78.
Take $C\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Axiom 4.
Thus $C\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Definition 1.
Take $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} S$ such that $F$ is finite and inhabited and $C = \inters{F}$ by Definition 125.
Let $R = \{ w\class{latex-symbol-tip latex-symbol-id-in}{\in} F\class{latex-symbol-tip latex-symbol-id-times}{\times}\naturalsPlus \mid \text{for all $n\in\naturalsPlus$ if $\snd{w}\leq n$ then $s(n)\in\fst{w}$} \}$.
$R$ is a relation by Definition 1, Definition 12, Proposition 121.
Claim: For all $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $(A,N)\class{latex-symbol-tip latex-symbol-id-in}{\in} R$.
Fix $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
We have $A\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Definition 1.
Take $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in}\productSubbasisAt{T}{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}$ by Definition 172.
Take $V\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{T}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}$ such that $A = \preimg{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{V}$ by Definition 171.
Take $y\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ such that $(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}$ by Lemma 82, Proposition 32, Proposition 246.
Thus $\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Axiom 6, Definition 170, Lemma 82.
Therefore $V$ is a neighborhood of $\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}$ in $\apply{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}$ with respect to $\apply{T}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}$ by Definition 1, Definition 103, Definition 153.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $(\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s)(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Definition 159.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 6, Definition 158, Lemma 191, Proposition 246, Proposition 257, Proposition 348, Proposition 349, Proposition 356, Proposition 359, Proposition 382.
Hence $(A,N)\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Axiom 10, Axiom 11, Proposition 115.
Take $g$ such that $g$ is a function on $F$ and for all $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $A\mathrel{R}\apply{g}{A}$ by Axiom 54.
Let $D = \img{g}{F}$.
$D$ is finite by Axiom 54, Lemma 192.
Take $A_0$ such that $A_0\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
$D\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Lemma 323, Proposition 235, Proposition 348.
For all $r$ such that $r\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ we have $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 54, Definition 1, Proposition 114, Proposition 235, Proposition 345, Proposition 348.
Hence $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Axiom 41, Definition 1.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ such that $N$ is a maximum of $D$ by Lemma 47.
Thus $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Definition 1.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Axiom 4, Axiom 10, Axiom 11, Axiom 41, Axiom 54, Definition 1, Definition 73, Lemma 23, Lemma 82, Lemma 83, Proposition 31, Proposition 235, Proposition 348.
Follows by definition.
$s$ converges to $x$ in $\productFamily{X}$ with respect to $T_0$ by Definition 159.
LaTeX source
\begin{byCase}
\caseOf{$\dom{X}$ is not inhabited.}
$\dom{X} = \emptyset$ by \cref{emptyset,nonempty_inhabited}.
$x = \emptyset$ by \cref{empty_indexed_product_singleton,subseteq,singleton_elim}.
Show that for all $U$ if $U$ is a neighborhood of $x$ in $\productFamily{X}$ with respect to $T_0$ then
there exists $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in U$.
\begin{subproof}
Follows by \cref{neighborhood,real_one_in_naturals,sequence_in,funs_type_apply,empty_indexed_product_singleton,subseteq,singleton_elim,emptyset}.
\end{subproof}
$s$ converges to $x$ in $\productFamily{X}$ with respect to $T_0$ by \cref{converges_to}.
\caseOf{$\dom{X}$ is inhabited.}
Let $S = \productSubbasis{T}{X}$.
Let $B = \finiteIntersections{S}$.
$B$ is a basis for $T_0$ on $\productFamily{X}$ by \cref{product_subbasis_finite_intersections_basis}.
Show that for all $U$ if $U$ is a neighborhood of $x$ in $\productFamily{X}$ with respect to $T_0$ then
there exists $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in U$.
\begin{subproof}
Fix $U$ such that $U$ is a neighborhood of $x$ in $\productFamily{X}$ with respect to $T_0$.
We have $U$ is open in $\productFamily{X}$ with respect to $T_0$ and $x\in U$ by \cref{neighborhood}.
Hence $U\in T_0$ and $U\in\pow{\productFamily{X}}$
by \cref{product_subbasis_finite_intersections_basis,basis_for_topology,basis_topology_is_topology,open_in,topology_on,subseteq,pow_iff}.
Take $M\subseteq B$ such that $U = \unions{M}$ by \cref{basis_for_topology,basis_topology_unions}.
Take $C\in M$ such that $x\in C$ by \cref{unions_iff}.
Thus $C\in B$ by \cref{subseteq}.
Take $F\subseteq S$ such that $F$ is finite and inhabited and $C = \inters{F}$ by \cref{finite_intersections}.
Let $R = \{ w\in F\times\naturalsPlus \mid
\text{for all $n\in\naturalsPlus$ if $\snd{w}\leq n$ then $s(n)\in\fst{w}$} \}$.
$R$ is a relation by \cref{relation,subseteq,times_elem_is_tuple}.
Show that for all $A\in F$ there exists $N\in\naturalsPlus$ such that $(A,N)\in R$.
\begin{subproof}
Fix $A\in F$.
We have $A\in S$ by \cref{subseteq}.
Take $\beta\in\dom{X}$ such that $A\in\productSubbasisAt{T}{X}{\beta}$ by \cref{product_subbasis_union_indexed}.
Take $V\in\apply{T}{\beta}$ such that $A = \preimg{\piIndex{X}{\beta}}{V}$ by \cref{product_subbasis_indexed}.
Take $y\in V$ such that $(x,y)\in\piIndex{X}{\beta}$ by \cref{real_lt_subst_left,inters_destr,preimg_iff}.
Thus $\apply{x}{\beta}\in V$ by \cref{projection_map_indexed,pair_eq_iff,real_lt_subst_left}.
Therefore $V$ is a neighborhood of $\apply{x}{\beta}$ in $\apply{X}{\beta}$ with respect to $\apply{T}{\beta}$
by \cref{neighborhood,open_in,subseteq}.
Take $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then
$(\piIndex{X}{\beta}\circ s)(n)\in V$ by \cref{converges_to}.
For all $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in A$
by \cref{sequence_in,projection_map_indexed_function,funs_circ,funs_elim,funs_is_function,function_apply_elim,circ_iff,function_apply_iff,pair_eq_iff,preimg_iff}.
Hence $(A,N)\in R$ by \cref{times_tuple_intro,fst_eq,snd_eq}.
\end{subproof}
Take $g$ such that $g$ is a function on $F$ and for all $A\in F$ we have $A\mathrel{R}\apply{g}{A}$ by \cref{axiom_of_choice}.
Let $D = \img{g}{F}$.
$D$ is finite by \cref{finite_image_function,axiom_of_choice}.
Take $A_0$ such that $A_0\in F$.
$D\neq\emptyset$ by \cref{function_apply_elim,img_iff,inhabited_nonempty}.
For all $r$ such that $r\in D$ we have $r\in\naturalsPlus$
by \cref{img_iff,axiom_of_choice,function_apply_elim,function_rightunique,subseteq,times_tuple_elim}.
Hence $D\subseteq\reals$
by \cref{real_naturals_subset_reals,subseteq}.
Take $N\in D$ such that $N$ is a maximum of $D$ by \cref{finite_real_maximum}.
Thus $N\in\naturalsPlus$ by \cref{subseteq}.
For all $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in U$
by \cref{function_apply_elim,img_iff,subseteq,real_naturals_subset_reals,real_maximum,real_leq_trans,axiom_of_choice,fst_eq,snd_eq,inters_intro,real_lt_subst_right,unions_iff,real_lt_subst_left}.
Follows by definition.
\end{subproof}
$s$ converges to $x$ in $\productFamily{X}$ with respect to $T_0$ by \cref{converges_to}.
\end{byCase}
$s$ converges to $x$ in $\productFamily{X}$ with respect to $T_0$ iff for all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ we have $\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s$ converges to $\apply{x}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ in $\apply{X}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ with respect to $\apply{T}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$.
LaTeX source
\begin{proof}
Let $T_0 = \productTopologyIndexed{T}{X}$.
Show that if $s$ converges to $x$ in $\productFamily{X}$ with respect to $T_0$ then
for all $\alpha\in\dom{X}$ we have
$\piIndex{X}{\alpha}\circ s$ converges to $\apply{x}{\alpha}$ in $\apply{X}{\alpha}$ with respect to $\apply{T}{\alpha}$.
\begin{subproof}
Follows by \cref{product_subbasis_finite_intersections_basis,basis_for_topology,basis_topology_is_topology,projection_map_indexed_function,projection_map_indexed_continuous,subseteq,continuous_implies_sequential,funs_is_function,projection_map_indexed,function_apply_intro,converges_to}.
\end{subproof}
Show that if for all $\alpha\in\dom{X}$ we have
$\piIndex{X}{\alpha}\circ s$ converges to $\apply{x}{\alpha}$ in $\apply{X}{\alpha}$ with respect to $\apply{T}{\alpha}$
then $s$ converges to $x$ in $\productFamily{X}$ with respect to $T_0$.
\begin{subproof}
Assume for all $\alpha\in\dom{X}$ we have
$\piIndex{X}{\alpha}\circ s$ converges to $\apply{x}{\alpha}$ in $\apply{X}{\alpha}$ with respect to $\apply{T}{\alpha}$.
\begin{byCase}
\caseOf{$\dom{X}$ is not inhabited.}
$\dom{X} = \emptyset$ by \cref{emptyset,nonempty_inhabited}.
$x = \emptyset$ by \cref{empty_indexed_product_singleton,subseteq,singleton_elim}.
Show that for all $U$ if $U$ is a neighborhood of $x$ in $\productFamily{X}$ with respect to $T_0$ then
there exists $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in U$.
\begin{subproof}
Follows by \cref{neighborhood,real_one_in_naturals,sequence_in,funs_type_apply,empty_indexed_product_singleton,subseteq,singleton_elim,emptyset}.
\end{subproof}
$s$ converges to $x$ in $\productFamily{X}$ with respect to $T_0$ by \cref{converges_to}.
\caseOf{$\dom{X}$ is inhabited.}
Let $S = \productSubbasis{T}{X}$.
Let $B = \finiteIntersections{S}$.
$B$ is a basis for $T_0$ on $\productFamily{X}$ by \cref{product_subbasis_finite_intersections_basis}.
Show that for all $U$ if $U$ is a neighborhood of $x$ in $\productFamily{X}$ with respect to $T_0$ then
there exists $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in U$.
\begin{subproof}
Fix $U$ such that $U$ is a neighborhood of $x$ in $\productFamily{X}$ with respect to $T_0$.
We have $U$ is open in $\productFamily{X}$ with respect to $T_0$ and $x\in U$ by \cref{neighborhood}.
Hence $U\in T_0$ and $U\in\pow{\productFamily{X}}$
by \cref{product_subbasis_finite_intersections_basis,basis_for_topology,basis_topology_is_topology,open_in,topology_on,subseteq,pow_iff}.
Take $M\subseteq B$ such that $U = \unions{M}$ by \cref{basis_for_topology,basis_topology_unions}.
Take $C\in M$ such that $x\in C$ by \cref{unions_iff}.
Thus $C\in B$ by \cref{subseteq}.
Take $F\subseteq S$ such that $F$ is finite and inhabited and $C = \inters{F}$ by \cref{finite_intersections}.
Let $R = \{ w\in F\times\naturalsPlus \mid
\text{for all $n\in\naturalsPlus$ if $\snd{w}\leq n$ then $s(n)\in\fst{w}$} \}$.
$R$ is a relation by \cref{relation,subseteq,times_elem_is_tuple}.
Show that for all $A\in F$ there exists $N\in\naturalsPlus$ such that $(A,N)\in R$.
\begin{subproof}
Fix $A\in F$.
We have $A\in S$ by \cref{subseteq}.
Take $\beta\in\dom{X}$ such that $A\in\productSubbasisAt{T}{X}{\beta}$ by \cref{product_subbasis_union_indexed}.
Take $V\in\apply{T}{\beta}$ such that $A = \preimg{\piIndex{X}{\beta}}{V}$ by \cref{product_subbasis_indexed}.
Take $y\in V$ such that $(x,y)\in\piIndex{X}{\beta}$ by \cref{real_lt_subst_left,inters_destr,preimg_iff}.
Thus $\apply{x}{\beta}\in V$ by \cref{projection_map_indexed,pair_eq_iff,real_lt_subst_left}.
Therefore $V$ is a neighborhood of $\apply{x}{\beta}$ in $\apply{X}{\beta}$ with respect to $\apply{T}{\beta}$
by \cref{neighborhood,open_in,subseteq}.
Take $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then
$(\piIndex{X}{\beta}\circ s)(n)\in V$ by \cref{converges_to}.
For all $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in A$
by \cref{sequence_in,projection_map_indexed_function,funs_circ,funs_elim,funs_is_function,function_apply_elim,circ_iff,function_apply_iff,pair_eq_iff,preimg_iff}.
Hence $(A,N)\in R$ by \cref{times_tuple_intro,fst_eq,snd_eq}.
\end{subproof}
Take $g$ such that $g$ is a function on $F$ and for all $A\in F$ we have $A\mathrel{R}\apply{g}{A}$ by \cref{axiom_of_choice}.
Let $D = \img{g}{F}$.
$D$ is finite by \cref{finite_image_function,axiom_of_choice}.
Take $A_0$ such that $A_0\in F$.
$D\neq\emptyset$ by \cref{function_apply_elim,img_iff,inhabited_nonempty}.
For all $r$ such that $r\in D$ we have $r\in\naturalsPlus$
by \cref{img_iff,axiom_of_choice,function_apply_elim,function_rightunique,subseteq,times_tuple_elim}.
Hence $D\subseteq\reals$
by \cref{real_naturals_subset_reals,subseteq}.
Take $N\in D$ such that $N$ is a maximum of $D$ by \cref{finite_real_maximum}.
Thus $N\in\naturalsPlus$ by \cref{subseteq}.
For all $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in U$
by \cref{function_apply_elim,img_iff,subseteq,real_naturals_subset_reals,real_maximum,real_leq_trans,axiom_of_choice,fst_eq,snd_eq,inters_intro,real_lt_subst_right,unions_iff,real_lt_subst_left}.
Follows by definition.
\end{subproof}
$s$ converges to $x$ in $\productFamily{X}$ with respect to $T_0$ by \cref{converges_to}.
\end{byCase}
\end{subproof}
$s$ converges to $x$ in $\productFamily{X}$ with respect to $T_0$ iff
for all $\alpha\in\dom{X}$ we have
$\piIndex{X}{\alpha}\circ s$ converges to $\apply{x}{\alpha}$ in $\apply{X}{\alpha}$ with respect to $\apply{T}{\alpha}$.
\end{proof}
$\reals$ is complete with respect to $\standardMetricR$.
LaTeX source
\begin{lemma}
\label{reals_complete_standard_metric}
$\reals$ is complete with respect to $\standardMetricR$.
\end{lemma}
Proof
$\standardMetricR$ is a metric on $\reals$ by Lemma 198.
Claim: For all $s$ if $s$ is a Cauchy sequence in $\reals$ with respect to $\standardMetricR$ then there exist $t,x$ such that $t$ is a sequence in $\reals$ and $t$ is a subsequence of $s$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $t$ converges to $x$ in $\reals$ with respect to $\metricTopology{\standardMetricR}{\reals}$.
Fix $s$ such that $s$ is a Cauchy sequence in $\reals$ with respect to $\standardMetricR$.
$s$ is a sequence in $\reals$ by Definition 342.
$\ran{s}$ is bounded in $\reals$ with respect to $\standardMetricR$ by Lemma 198, Lemma 663.
Take $a,b$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b$ and $\ran{s}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\intervalclosed{a}{b}$ by Lemma 583.
Let $I = \intervalclosed{a}{b}$.
Let $T_I = \subspaceTopology{\standardTopologyR}{I}$.
$I$ is compact with respect to $T_I$ by Lemma 365.
$\standardTopologyR$ is a topology on $\reals$ by Definition 118, Lemma 76, Lemma 93.
$\metricTopology{\standardMetricR}{\reals} = \standardTopologyR$ by Lemma 200.
$\reals$ is metrizable with respect to $\standardTopologyR$ by Definition 185, Lemma 198.
$I\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1, Definition 75.
$I$ is a subspace of $\reals$ with respect to $\standardTopologyR$ by Definition 147.
$T_I$ is a topology on $I$ by Definition 147, Lemma 131.
$I$ is metrizable with respect to $T_I$ by Lemma 516.
Hence $I$ is sequentially compact with respect to $T_I$ by Theorem 72.
$s$ is a function and $\dom{s} = \naturalsPlus$ by Definition 158, Proposition 356, Proposition 359.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ by Definition 1, Proposition 209, Proposition 348.
$s\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\naturalsPlus}{I}$ by Proposition 358.
$s$ is a sequence in $I$ by Definition 158.
Take $t,x$ such that $t$ is a sequence in $I$ and $t$ is a subsequence of $s$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ and $t$ converges to $x$ in $I$ with respect to $T_I$ by Definition 260.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1.
$t$ is a sequence in $\reals$ by Definition 1, Definition 158, Proposition 360.
For all $U$ if $U$ is a neighborhood of $x$ in $\reals$ with respect to $\standardTopologyR$ then there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $t(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 5, Definition 103, Definition 146, Definition 147, Definition 153, Definition 159, Lemma 131, Proposition 61.
$t$ converges to $x$ in $\reals$ with respect to $\standardTopologyR$ by Definition 159.
$t$ converges to $x$ in $\reals$ with respect to $\metricTopology{\standardMetricR}{\reals}$ by Lemma 200.
Follows by definition.
$\reals$ is complete with respect to $\standardMetricR$ by Definition 343, Lemma 662.
LaTeX source
\begin{proof}
$\standardMetricR$ is a metric on $\reals$ by \cref{standard_metric_is_metric}.
Show that for all $s$ if
$s$ is a Cauchy sequence in $\reals$ with respect to $\standardMetricR$
then there exist $t,x$ such that
$t$ is a sequence in $\reals$ and
$t$ is a subsequence of $s$ and
$x\in\reals$ and
$t$ converges to $x$ in $\reals$ with respect to $\metricTopology{\standardMetricR}{\reals}$.
\begin{subproof}
Fix $s$ such that $s$ is a Cauchy sequence in $\reals$ with respect to $\standardMetricR$.
$s$ is a sequence in $\reals$ by \cref{cauchy_sequence}.
$\ran{s}$ is bounded in $\reals$ with respect to $\standardMetricR$
by \cref{standard_metric_is_metric,cauchy_sequence_bounded_range}.
Take $a,b$ such that
$a\in\reals$ and
$b\in\reals$ and
$a \leq b$ and
$\ran{s}\subseteq\intervalclosed{a}{b}$ by \cref{bounded_reals_subset_closed_interval}.
Let $I = \intervalclosed{a}{b}$.
Let $T_I = \subspaceTopology{\standardTopologyR}{I}$.
$I$ is compact with respect to $T_I$ by \cref{real_intervalclosed_compact_standard}.
$\standardTopologyR$ is a topology on $\reals$
by \cref{standard_basis_is_basis,basis_topology_is_topology,standard_topology_reals}.
$\metricTopology{\standardMetricR}{\reals} = \standardTopologyR$ by \cref{standard_metric_topology}.
$\reals$ is metrizable with respect to $\standardTopologyR$ by \cref{standard_metric_is_metric,metrizable}.
$I\subseteq\reals$ by \cref{intervalclosed,subseteq}.
$I$ is a subspace of $\reals$ with respect to $\standardTopologyR$ by \cref{subspace_of}.
$T_I$ is a topology on $I$ by \cref{subspace_of,subspace_topology_is_topology}.
$I$ is metrizable with respect to $T_I$ by \cref{subspace_metrizable}.
Hence $I$ is sequentially compact with respect to $T_I$
by \cref{metrizable_compact_iff_limit_point_compact_iff_sequentially_compact}.
$s$ is a function and $\dom{s} = \naturalsPlus$ by \cref{sequence_in,funs_is_function,funs_elim}.
For all $n\in\naturalsPlus$ we have $s(n)\in I$ by \cref{subseteq,function_apply_elim,ran_intro}.
$s\in\funs{\naturalsPlus}{I}$ by \cref{funs_intro}.
$s$ is a sequence in $I$ by \cref{sequence_in}.
Take $t,x$ such that
$t$ is a sequence in $I$ and
$t$ is a subsequence of $s$ and
$x\in I$ and
$t$ converges to $x$ in $I$ with respect to $T_I$ by \cref{sequentially_compact}.
$x\in\reals$ by \cref{subseteq}.
$t$ is a sequence in $\reals$ by \cref{sequence_in,funs_weaken_codom,subseteq}.
For all $U$ if $U$ is a neighborhood of $x$ in $\reals$ with respect to $\standardTopologyR$ then
there exists $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then $t(n)\in U$
by \cref{neighborhood,open_in,subspace_of,subspace_topology,subspace_topology_is_topology,inter_intro,converges_to,inter}.
$t$ converges to $x$ in $\reals$ with respect to $\standardTopologyR$ by \cref{converges_to}.
$t$ converges to $x$ in $\reals$ with respect to $\metricTopology{\standardMetricR}{\reals}$
by \cref{standard_metric_topology}.
Follows by definition.
\end{subproof}
$\reals$ is complete with respect to $\standardMetricR$ by \cref{cauchy_subsequence_completeness_criterion,complete_metric_space}.
\end{proof}
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{\naturalsPlus}$.
Suppose $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{\naturalsPlus}$.
Suppose $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Then $\apply{\boundedMetric{\standardMetricR}}{(x(i),y(i))} / i \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \apply{\omegaMetric}{(x,y)}$.
LaTeX source
\begin{lemma}
\label{omega_metric_coordinate_bounded_distance_leq}
Suppose $x\in\realsPower{\naturalsPlus}$.
Suppose $y\in\realsPower{\naturalsPlus}$.
Suppose $i\in\naturalsPlus$.
Then $\apply{\boundedMetric{\standardMetricR}}{(x(i),y(i))} / i \leq \apply{\omegaMetric}{(x,y)}$.
\end{lemma}
Proof
Let $A = \omegaMetricSet{x}{y}$.
$\omegaMetric$ is a function and $\dom{\omegaMetric} = \realsPower{\naturalsPlus}\class{latex-symbol-tip latex-symbol-id-times}{\times}\realsPower{\naturalsPlus}$ by Definition 179, Proposition 356, Proposition 359, Theorem 27.
$((x,y),\apply{\omegaMetric}{(x,y)})\class{latex-symbol-tip latex-symbol-id-in}{\in}\omegaMetric$ by Definition 1, Proposition 115, Proposition 348.
There exist $p,x_0,y_0,r$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{\naturalsPlus}\class{latex-symbol-tip latex-symbol-id-times}{\times}\realsPower{\naturalsPlus}$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{\naturalsPlus}$ and $y_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{\naturalsPlus}$ and $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((x,y),\apply{\omegaMetric}{(x,y)}) = (p,r)$ and $p = (x_0,y_0)$ and $\realSupremum{r}{\omegaMetricSet{x_0}{y_0}}$ by Definition 208.
We have $p = (x,y)$ and $r = \apply{\omegaMetric}{(x,y)}$ by Axiom 6.
$(x,y) = (x_0,y_0)$ by Axiom 6.
$x = x_0$ and $y = y_0$ by Axiom 6.
$\apply{\omegaMetric}{(x,y)}$ is an upper bound of $A$ by Definition 71, Definition 204, Lemma 83.
$\apply{\boundedMetric{\standardMetricR}}{(x(i),y(i))} / i\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 207.
Hence $\apply{\boundedMetric{\standardMetricR}}{(x(i),y(i))} / i \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \apply{\omegaMetric}{(x,y)}$ by Definition 66.
LaTeX source
\begin{proof}
Let $A = \omegaMetricSet{x}{y}$.
$\omegaMetric$ is a function and
$\dom{\omegaMetric} = \realsPower{\naturalsPlus}\times\realsPower{\naturalsPlus}$
by \cref{omega_metric_is_metric,metric_on,funs_is_function,funs_elim}.
$((x,y),\apply{\omegaMetric}{(x,y)})\in\omegaMetric$
by \cref{times_tuple_intro,subseteq,function_apply_elim}.
There exist $p,x_0,y_0,r$ such that
$p\in\realsPower{\naturalsPlus}\times\realsPower{\naturalsPlus}$ and
$x_0\in\realsPower{\naturalsPlus}$ and
$y_0\in\realsPower{\naturalsPlus}$ and
$r\in\reals$ and
$((x,y),\apply{\omegaMetric}{(x,y)}) = (p,r)$ and
$p = (x_0,y_0)$ and
$\realSupremum{r}{\omegaMetricSet{x_0}{y_0}}$ by \cref{omega_metric}.
We have $p = (x,y)$ and $r = \apply{\omegaMetric}{(x,y)}$ by \cref{pair_eq_iff}.
$(x,y) = (x_0,y_0)$ by \cref{pair_eq_iff}.
$x = x_0$ and $y = y_0$ by \cref{pair_eq_iff}.
$\apply{\omegaMetric}{(x,y)}$ is an upper bound of $A$
by \cref{real_supremum_pred,real_lt_subst_right,real_supremum}.
$\apply{\boundedMetric{\standardMetricR}}{(x(i),y(i))} / i\in A$ by \cref{omega_metric_set}.
Hence $\apply{\boundedMetric{\standardMetricR}}{(x(i),y(i))} / i \leq \apply{\omegaMetric}{(x,y)}$
by \cref{real_upper_bound}.
\end{proof}
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{\naturalsPlus}$.
Suppose $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{\naturalsPlus}$.
Suppose $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Suppose $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Suppose $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} < 1$.
Suppose $\apply{\omegaMetric}{(x,y)} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} / i$.
Then $\apply{\standardMetricR}{(x(i),y(i))} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
LaTeX source
\begin{lemma}
\label{omega_metric_small_implies_coordinate_small}
Suppose $x\in\realsPower{\naturalsPlus}$.
Suppose $y\in\realsPower{\naturalsPlus}$.
Suppose $i\in\naturalsPlus$.
Suppose $\epsilon\in\reals$.
Suppose $0 < \epsilon$.
Suppose $\epsilon < 1$.
Suppose $\apply{\omegaMetric}{(x,y)} < \epsilon / i$.
Then $\apply{\standardMetricR}{(x(i),y(i))} < \epsilon$.
\end{lemma}
Proof
Let $a = \apply{\boundedMetric{\standardMetricR}}{(x(i),y(i))}$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\naturalsPlus}{\reals}$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\naturalsPlus}{\reals}$ by Definition 166, Definition 191.
$x(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 361.
$\boundedMetric{\standardMetricR}$ is a metric on $\reals$ by Lemma 198, Theorem 21.
$\boundedMetric{\standardMetricR}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals}{\reals}$ by Definition 179.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 115, Proposition 359.
$0 < i$ by Lemma 89.
$i\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Definition 1.
$i\class{latex-symbol-tip latex-symbol-id-neq}{\neq} 0$ by Lemma 20.
$a / i\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} / i\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14, Axiom 22, Definition 65.
$a / i < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} / i$ by Definition 179, Lemma 266, Lemma 668, Proposition 115, Proposition 361, Theorem 27.
Hence $(a / i) \rmul i < (\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} / i) \rmul i$ by Axiom 38.
$a < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 19, Axiom 20, Axiom 21, Axiom 22, Definition 65, Lemma 82, Lemma 83.
$a < 1$ by Axiom 36, Axiom 41, Axiom 42, Definition 1.
$a = \apply{\standardMetricR}{(x(i),y(i))}$ by Lemma 198, Lemma 205, Proposition 115.
Hence $\apply{\standardMetricR}{(x(i),y(i))} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 82.
LaTeX source
\begin{proof}
Let $a = \apply{\boundedMetric{\standardMetricR}}{(x(i),y(i))}$.
$x\in\funs{\naturalsPlus}{\reals}$ and $y\in\funs{\naturalsPlus}{\reals}$ by \cref{reals_power,tuple_power}.
$x(i)\in\reals$ and $y(i)\in\reals$ by \cref{funs_type_apply}.
$\boundedMetric{\standardMetricR}$ is a metric on $\reals$ by \cref{bounded_metric_is_metric,standard_metric_is_metric}.
$\boundedMetric{\standardMetricR}\in\funs{\reals\times\reals}{\reals}$ by \cref{metric_on}.
$a\in\reals$ by \cref{funs_elim,times_tuple_intro}.
$0 < i$ by \cref{naturalsplus_positive_real}.
$i\in\reals$ by \cref{real_naturals_subset_reals,subseteq}.
$i\neq 0$ by \cref{real_pos_nonzero}.
$a / i\in\reals$ and $\epsilon / i\in\reals$ by \cref{real_div,real_mul_inverse,real_mul_closed}.
$a / i < \epsilon / i$
by \cref{omega_metric_coordinate_bounded_distance_leq,omega_metric_is_metric,metric_on,funs_type_apply,times_tuple_intro,real_leq_lt_trans}.
Hence $(a / i) \rmul i < (\epsilon / i) \rmul i$ by \cref{real_lt_mul_pos}.
$a < \epsilon$ by \cref{real_div,real_mul_assoc,real_mul_inverse,real_mul_ident,real_mul_comm,real_lt_subst_left,real_lt_subst_right}.
$a < 1$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_lt_trans}.
$a = \apply{\standardMetricR}{(x(i),y(i))}$
by \cref{bounded_metric_apply_value_lt_one,standard_metric_is_metric,times_tuple_intro}.
Hence $\apply{\standardMetricR}{(x(i),y(i))} < \epsilon$ by \cref{real_lt_subst_left}.
\end{proof}
Assume $s$ is a Cauchy sequence in $\realsPower{\naturalsPlus}$ with respect to $\omegaMetric$.
Suppose $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $X = \{(j,\reals) \mid j\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus\}$.
Then $\piIndex{X}{i}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s$ is a Cauchy sequence in $\reals$ with respect to $\standardMetricR$.
LaTeX source
\begin{lemma}
\label{omega_cauchy_coordinatewise}
Assume $s$ is a Cauchy sequence in $\realsPower{\naturalsPlus}$ with respect to $\omegaMetric$.
Suppose $i\in\naturalsPlus$.
Let $X = \{(j,\reals) \mid j\in\naturalsPlus\}$.
Then $\piIndex{X}{i}\circ s$ is a Cauchy sequence in $\reals$ with respect to $\standardMetricR$.
\end{lemma}
Proof
$s$ is a sequence in $\realsPower{\naturalsPlus}$ and $\omegaMetric$ is a metric on $\realsPower{\naturalsPlus}$ by Definition 342.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 42.
$\naturalsPlus$ is inhabited.
$\productFamily{X} = \realsPower{\naturalsPlus}$ by Lemma 209.
$s$ is a function and $\dom{s} = \naturalsPlus$ by Definition 158, Proposition 356, Proposition 359.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{X}$ by Definition 1, Definition 158, Lemma 209, Proposition 361.
$s\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\naturalsPlus}{\productFamily{X}}$ by Proposition 358.
$s$ is a sequence in $\productFamily{X}$ by Definition 158.
For all $j,y_1,y_2$ such that $(j,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $(j,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $y_1 = y_2$ by Axiom 6.
$X$ is a function by Definition 12, Definition 51.
$(i,\reals)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Axiom 6.
$i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ by Proposition 200.
$X(i) = \reals$ by Proposition 346.
$\piIndex{X}{i}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\productFamily{X}}{\apply{X}{i}}$ by Lemma 191.
$\piIndex{X}{i}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\productFamily{X}}{\reals}$ by Lemma 83.
$\piIndex{X}{i}$ is a function and $\dom{\piIndex{X}{i}} = \productFamily{X}$ by Proposition 356, Proposition 359.
$\ran{s}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\productFamily{X}$ by Proposition 363.
$\ran{s}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{\piIndex{X}{i}}$ by Definition 1, Proposition 359.
$\piIndex{X}{i}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s$ is a sequence in $\reals$ by Definition 158, Proposition 382.
$\standardMetricR$ is a metric on $\reals$ by Lemma 198.
Claim: For all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $\apply{\standardMetricR}{((\piIndex{X}{i}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s)(n),(\piIndex{X}{i}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s)(m))} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Assume $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
$i\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Definition 1.
$0 < i$ by Lemma 89.
$i\class{latex-symbol-tip latex-symbol-id-neq}{\neq} 0$ by Lemma 20.
$\inv{i}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 22.
$0 < \inv{i}$ by Proposition 463.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
Let $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} = 1 / (1 + 1)$.
$\class{latex-symbol-tip latex-symbol-id-eta}{\eta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ and $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} + \class{latex-symbol-tip latex-symbol-id-eta}{\eta} = 1$ by Axiom 41, Axiom 42, Definition 1, Lemma 275, Proposition 462.
$\class{latex-symbol-tip latex-symbol-id-eta}{\eta} < 1$ by Axiom 17, Axiom 37, Lemma 82.
$\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} / i\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14, Axiom 22, Definition 65.
$0 \rmul \inv{i} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} \rmul \inv{i}$ by Axiom 38.
$0 \rmul \inv{i} = 0$ and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} \rmul \inv{i} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} / i$ by Definition 65, Proposition 439.
$0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} / i$ by Lemma 82, Lemma 83.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $\apply{\omegaMetric}{(s(n),s(m))} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} / i$ by Definition 342.
For all $n,m$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ we have $\apply{\standardMetricR}{((\piIndex{X}{i}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s)(n),(\piIndex{X}{i}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s)(m))} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 1, Definition 158, Definition 170, Definition 342, Lemma 82, Lemma 83, Lemma 209, Lemma 669, Proposition 346, Proposition 361, Proposition 373.
Follows by definition.
$1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 34.
$\class{latex-symbol-tip latex-symbol-id-eta}{\eta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 544.
$\class{latex-symbol-tip latex-symbol-id-eta}{\eta} / i\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14, Axiom 22, Definition 65.
$0 \rmul \inv{i} < \class{latex-symbol-tip latex-symbol-id-eta}{\eta} \rmul \inv{i}$ by Axiom 38.
$0 \rmul \inv{i} = 0$ and $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} \rmul \inv{i} = \class{latex-symbol-tip latex-symbol-id-eta}{\eta} / i$ by Definition 65, Proposition 439.
$0 < \class{latex-symbol-tip latex-symbol-id-eta}{\eta} / i$ by Lemma 82, Lemma 83.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $\apply{\omegaMetric}{(s(n),s(m))} < \class{latex-symbol-tip latex-symbol-id-eta}{\eta} / i$ by Definition 342.
For all $n,m$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ we have $\apply{\standardMetricR}{((\piIndex{X}{i}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s)(n),(\piIndex{X}{i}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s)(m))} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 36, Definition 1, Definition 158, Definition 166, Definition 170, Definition 179, Definition 191, Definition 342, Lemma 82, Lemma 83, Lemma 198, Lemma 209, Lemma 669, Proposition 115, Proposition 346, Proposition 361, Proposition 373.
Follows by definition.
LaTeX source
\begin{byCase}
\caseOf{$\epsilon < 1$.}
$\epsilon / i\in\reals$ by \cref{real_div,real_mul_inverse,real_mul_closed}.
$0 \rmul \inv{i} < \epsilon \rmul \inv{i}$ by \cref{real_lt_mul_pos}.
$0 \rmul \inv{i} = 0$ and $\epsilon \rmul \inv{i} = \epsilon / i$ by \cref{real_mul_zero,real_div}.
$0 < \epsilon / i$ by \cref{real_lt_subst_left,real_lt_subst_right}.
Take $N\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$\apply{\omegaMetric}{(s(n),s(m))} < \epsilon / i$ by \cref{cauchy_sequence}.
For all $n,m$ such that $n\in\naturalsPlus$ and $m\in\naturalsPlus$ and $N \leq n$ and $N \leq m$ we have
$\apply{\standardMetricR}{((\piIndex{X}{i}\circ s)(n),(\piIndex{X}{i}\circ s)(m))} < \epsilon$
by \cref{cauchy_sequence,sequence_in,funs_type_apply,omega_metric_small_implies_coordinate_small,circ_apply,subseteq,projection_map_indexed,product_family_reals_power,function_apply_intro,real_lt_subst_left,real_lt_subst_right}.
Follows by definition.
\caseOf{it is wrong that $\epsilon < 1$.}
$1 \leq \epsilon$ by \cref{real_lt_trichotomy}.
$\eta < \epsilon$ by \cref{real_lt_leq_trans_local}.
$\eta / i\in\reals$ by \cref{real_div,real_mul_inverse,real_mul_closed}.
$0 \rmul \inv{i} < \eta \rmul \inv{i}$ by \cref{real_lt_mul_pos}.
$0 \rmul \inv{i} = 0$ and $\eta \rmul \inv{i} = \eta / i$ by \cref{real_mul_zero,real_div}.
$0 < \eta / i$ by \cref{real_lt_subst_left,real_lt_subst_right}.
Take $N\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$\apply{\omegaMetric}{(s(n),s(m))} < \eta / i$ by \cref{cauchy_sequence}.
For all $n,m$ such that $n\in\naturalsPlus$ and $m\in\naturalsPlus$ and $N \leq n$ and $N \leq m$ we have
$\apply{\standardMetricR}{((\piIndex{X}{i}\circ s)(n),(\piIndex{X}{i}\circ s)(m))} < \epsilon$
by \cref{cauchy_sequence,sequence_in,funs_type_apply,omega_metric_small_implies_coordinate_small,circ_apply,subseteq,projection_map_indexed,product_family_reals_power,function_apply_intro,reals_power,tuple_power,times_tuple_intro,metric_on,standard_metric_is_metric,real_lt_trans,real_lt_subst_left,real_lt_subst_right}.
Follows by definition.
\end{byCase}
$\piIndex{X}{i}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s$ is a Cauchy sequence in $\reals$ with respect to $\standardMetricR$ by Definition 342.
LaTeX source
\begin{proof}
$s$ is a sequence in $\realsPower{\naturalsPlus}$ and $\omegaMetric$ is a metric on $\realsPower{\naturalsPlus}$
by \cref{cauchy_sequence}.
$1\in\naturalsPlus$ by \cref{real_one_in_naturals}.
$\naturalsPlus$ is inhabited.
$\productFamily{X} = \realsPower{\naturalsPlus}$ by \cref{product_family_reals_power}.
$s$ is a function and $\dom{s} = \naturalsPlus$ by \cref{sequence_in,funs_is_function,funs_elim}.
For all $n\in\naturalsPlus$ we have $s(n)\in\productFamily{X}$
by \cref{funs_type_apply,sequence_in,product_family_reals_power,subseteq}.
$s\in\funs{\naturalsPlus}{\productFamily{X}}$ by \cref{funs_intro}.
$s$ is a sequence in $\productFamily{X}$ by \cref{sequence_in}.
For all $j,y_1,y_2$ such that $(j,y_1)\in X$ and $(j,y_2)\in X$ we have $y_1 = y_2$ by \cref{pair_eq_iff}.
$X$ is a function by \cref{relation,rightunique}.
$(i,\reals)\in X$ by \cref{pair_eq_iff}.
$i\in\dom{X}$ by \cref{dom_intro}.
$X(i) = \reals$ by \cref{function_apply_intro}.
$\piIndex{X}{i}\in\funs{\productFamily{X}}{\apply{X}{i}}$ by \cref{projection_map_indexed_function}.
$\piIndex{X}{i}\in\funs{\productFamily{X}}{\reals}$ by \cref{real_lt_subst_right}.
$\piIndex{X}{i}$ is a function and $\dom{\piIndex{X}{i}} = \productFamily{X}$
by \cref{funs_is_function,funs_elim}.
$\ran{s}\subseteq\productFamily{X}$ by \cref{funs_ran}.
$\ran{s}\subseteq\dom{\piIndex{X}{i}}$ by \cref{funs_elim,subseteq}.
$\piIndex{X}{i}\circ s$ is a sequence in $\reals$ by \cref{funs_circ,sequence_in}.
$\standardMetricR$ is a metric on $\reals$ by \cref{standard_metric_is_metric}.
Show that for all $\epsilon\in\reals$ such that $0 < \epsilon$
there exists $N\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$\apply{\standardMetricR}{((\piIndex{X}{i}\circ s)(n),(\piIndex{X}{i}\circ s)(m))} < \epsilon$.
\begin{subproof}
Fix $\epsilon\in\reals$.
Assume $0 < \epsilon$.
$i\in\reals$ by \cref{real_naturals_subset_reals,subseteq}.
$0 < i$ by \cref{naturalsplus_positive_real}.
$i\neq 0$ by \cref{real_pos_nonzero}.
$\inv{i}\in\reals$ by \cref{real_mul_inverse}.
$0 < \inv{i}$ by \cref{real_inv_pos}.
$0\in\reals$ by \cref{real_add_ident}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
Let $\eta = 1 / (1 + 1)$.
$\eta\in\reals$ and $0 < \eta$ and $\eta + \eta = 1$
by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_zero_lt_one,real_half_of_positive}.
$\eta < 1$ by \cref{real_lt_add,real_add_ident,real_lt_subst_left}.
\begin{byCase}
\caseOf{$\epsilon < 1$.}
$\epsilon / i\in\reals$ by \cref{real_div,real_mul_inverse,real_mul_closed}.
$0 \rmul \inv{i} < \epsilon \rmul \inv{i}$ by \cref{real_lt_mul_pos}.
$0 \rmul \inv{i} = 0$ and $\epsilon \rmul \inv{i} = \epsilon / i$ by \cref{real_mul_zero,real_div}.
$0 < \epsilon / i$ by \cref{real_lt_subst_left,real_lt_subst_right}.
Take $N\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$\apply{\omegaMetric}{(s(n),s(m))} < \epsilon / i$ by \cref{cauchy_sequence}.
For all $n,m$ such that $n\in\naturalsPlus$ and $m\in\naturalsPlus$ and $N \leq n$ and $N \leq m$ we have
$\apply{\standardMetricR}{((\piIndex{X}{i}\circ s)(n),(\piIndex{X}{i}\circ s)(m))} < \epsilon$
by \cref{cauchy_sequence,sequence_in,funs_type_apply,omega_metric_small_implies_coordinate_small,circ_apply,subseteq,projection_map_indexed,product_family_reals_power,function_apply_intro,real_lt_subst_left,real_lt_subst_right}.
Follows by definition.
\caseOf{it is wrong that $\epsilon < 1$.}
$1 \leq \epsilon$ by \cref{real_lt_trichotomy}.
$\eta < \epsilon$ by \cref{real_lt_leq_trans_local}.
$\eta / i\in\reals$ by \cref{real_div,real_mul_inverse,real_mul_closed}.
$0 \rmul \inv{i} < \eta \rmul \inv{i}$ by \cref{real_lt_mul_pos}.
$0 \rmul \inv{i} = 0$ and $\eta \rmul \inv{i} = \eta / i$ by \cref{real_mul_zero,real_div}.
$0 < \eta / i$ by \cref{real_lt_subst_left,real_lt_subst_right}.
Take $N\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$\apply{\omegaMetric}{(s(n),s(m))} < \eta / i$ by \cref{cauchy_sequence}.
For all $n,m$ such that $n\in\naturalsPlus$ and $m\in\naturalsPlus$ and $N \leq n$ and $N \leq m$ we have
$\apply{\standardMetricR}{((\piIndex{X}{i}\circ s)(n),(\piIndex{X}{i}\circ s)(m))} < \epsilon$
by \cref{cauchy_sequence,sequence_in,funs_type_apply,omega_metric_small_implies_coordinate_small,circ_apply,subseteq,projection_map_indexed,product_family_reals_power,function_apply_intro,reals_power,tuple_power,times_tuple_intro,metric_on,standard_metric_is_metric,real_lt_trans,real_lt_subst_left,real_lt_subst_right}.
Follows by definition.
\end{byCase}
\end{subproof}
$\piIndex{X}{i}\circ s$ is a Cauchy sequence in $\reals$ with respect to $\standardMetricR$
by \cref{cauchy_sequence}.
\end{proof}
$\realsPower{\naturalsPlus}$ is complete with respect to $\omegaMetric$.
LaTeX source
\begin{theorem}
\label{reals_omega_complete}
$\realsPower{\naturalsPlus}$ is complete with respect to $\omegaMetric$.
\end{theorem}
Proof
$\omegaMetric$ is a metric on $\realsPower{\naturalsPlus}$ by Theorem 27.
Claim: For all $s$ if $s$ is a Cauchy sequence in $\realsPower{\naturalsPlus}$ with respect to $\omegaMetric$ then there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{\naturalsPlus}$ such that $s$ converges to $x$ in $\realsPower{\naturalsPlus}$ with respect to $\metricTopology{\omegaMetric}{\realsPower{\naturalsPlus}}$.
Fix $s$ such that $s$ is a Cauchy sequence in $\realsPower{\naturalsPlus}$ with respect to $\omegaMetric$.
Let $X = \{(j,\reals) \mid j\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus\}$.
Let $T = \{(j,\standardTopologyR) \mid j\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus\}$.
Let $T_0 = \productTopologyIndexed{T}{X}$.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 42.
$\naturalsPlus$ is inhabited.
$\productFamily{X} = \realsPower{\naturalsPlus}$ by Lemma 209.
$s$ is a function and $\dom{s} = \naturalsPlus$ by Definition 158, Definition 342, Proposition 356, Proposition 359.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{X}$ by Definition 1, Definition 158, Definition 342, Lemma 209, Proposition 361.
$s\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\naturalsPlus}{\productFamily{X}}$ by Proposition 358.
$s$ is a sequence in $\productFamily{X}$ by Definition 158.
For all $j,y_1,y_2$ such that $(j,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $(j,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $y_1 = y_2$ by Axiom 6.
$X$ is a function by Definition 12, Definition 51.
$\dom{X} = \naturalsPlus$ by Axiom 6, Definition 1, Proposition 3, Proposition 199, Proposition 200.
For all $j,U_1,U_2$ such that $(j,U_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ and $(j,U_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ we have $U_1 = U_2$ by Axiom 6.
$T$ is a function by Definition 12, Definition 51.
$\dom{T} = \naturalsPlus$ by Axiom 6, Definition 1, Proposition 3, Proposition 199, Proposition 200.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ we have $\apply{T}{i}$ is a topology on $\apply{X}{i}$ by Definition 118, Lemma 76, Lemma 82, Lemma 83, Lemma 93, Proposition 346.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals \mid \text{$\piIndex{X}{\fst{w}}\circ s$ converges to $\snd{w}$ in $\reals$ with respect to $\standardTopologyR$}\}$.
$R$ is a relation by Definition 1, Definition 12, Proposition 121.
Claim: For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ there exists $a$ such that $i\mathrel{R} a$.
Follows by Axiom 10, Axiom 11, Definition 343, Lemma 200, Lemma 667, Lemma 670, Proposition 115.
Take $x$ such that $x$ is a function on $\naturalsPlus$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $i\mathrel{R}\apply{x}{i}$ by Axiom 54.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{X}$ by Axiom 54, Definition 1, Definition 12, Definition 166, Definition 191, Lemma 209, Proposition 114, Proposition 358.
Claim: For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ we have $\piIndex{X}{i}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s$ converges to $\apply{x}{i}$ in $\apply{X}{i}$ with respect to $\apply{T}{i}$.
Follows by Axiom 10, Axiom 11, Axiom 54, Definition 159, Lemma 82, Lemma 83, Proposition 346.
$s$ converges to $x$ in $\realsPower{\naturalsPlus}$ with respect to $\metricTopology{\omegaMetric}{\realsPower{\naturalsPlus}}$ by Lemma 209, Lemma 666, Theorem 28.
Follows by definition.
$\realsPower{\naturalsPlus}$ is complete with respect to $\omegaMetric$ by Definition 343.
LaTeX source
\begin{proof}
$\omegaMetric$ is a metric on $\realsPower{\naturalsPlus}$ by \cref{omega_metric_is_metric}.
Show that for all $s$ if $s$ is a Cauchy sequence in $\realsPower{\naturalsPlus}$ with respect to $\omegaMetric$
then there exists $x\in\realsPower{\naturalsPlus}$ such that
$s$ converges to $x$ in $\realsPower{\naturalsPlus}$ with respect to $\metricTopology{\omegaMetric}{\realsPower{\naturalsPlus}}$.
\begin{subproof}
Fix $s$ such that $s$ is a Cauchy sequence in $\realsPower{\naturalsPlus}$ with respect to $\omegaMetric$.
Let $X = \{(j,\reals) \mid j\in\naturalsPlus\}$.
Let $T = \{(j,\standardTopologyR) \mid j\in\naturalsPlus\}$.
Let $T_0 = \productTopologyIndexed{T}{X}$.
$1\in\naturalsPlus$ by \cref{real_one_in_naturals}.
$\naturalsPlus$ is inhabited.
$\productFamily{X} = \realsPower{\naturalsPlus}$ by \cref{product_family_reals_power}.
$s$ is a function and $\dom{s} = \naturalsPlus$ by \cref{cauchy_sequence,sequence_in,funs_is_function,funs_elim}.
For all $n\in\naturalsPlus$ we have $s(n)\in\productFamily{X}$
by \cref{cauchy_sequence,sequence_in,funs_type_apply,product_family_reals_power,subseteq}.
$s\in\funs{\naturalsPlus}{\productFamily{X}}$ by \cref{funs_intro}.
$s$ is a sequence in $\productFamily{X}$ by \cref{sequence_in}.
For all $j,y_1,y_2$ such that $(j,y_1)\in X$ and $(j,y_2)\in X$ we have $y_1 = y_2$ by \cref{pair_eq_iff}.
$X$ is a function by \cref{relation,rightunique}.
$\dom{X} = \naturalsPlus$ by \cref{dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
For all $j,U_1,U_2$ such that $(j,U_1)\in T$ and $(j,U_2)\in T$ we have $U_1 = U_2$ by \cref{pair_eq_iff}.
$T$ is a function by \cref{relation,rightunique}.
$\dom{T} = \naturalsPlus$ by \cref{dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
For all $i\in\dom{X}$ we have $\apply{T}{i}$ is a topology on $\apply{X}{i}$
by \cref{function_apply_intro,standard_basis_is_basis,standard_topology_reals,basis_topology_is_topology,real_lt_subst_left,real_lt_subst_right}.
Let $R = \{w\in\naturalsPlus\times\reals \mid
\text{$\piIndex{X}{\fst{w}}\circ s$ converges to $\snd{w}$ in $\reals$ with respect to $\standardTopologyR$}\}$.
$R$ is a relation by \cref{relation,subseteq,times_elem_is_tuple}.
Show that for all $i\in\naturalsPlus$ there exists $a$ such that $i\mathrel{R} a$.
\begin{subproof}
Follows by \cref{omega_cauchy_coordinatewise,reals_complete_standard_metric,complete_metric_space,standard_metric_topology,times_tuple_intro,fst_eq,snd_eq}.
\end{subproof}
Take $x$ such that $x$ is a function on $\naturalsPlus$ and for all $i\in\naturalsPlus$ we have $i\mathrel{R}\apply{x}{i}$
by \cref{axiom_of_choice}.
$x\in\productFamily{X}$ by \cref{axiom_of_choice,relation,subseteq,times_tuple_elim,funs_intro,reals_power,tuple_power,product_family_reals_power}.
Show that for all $i\in\dom{X}$ we have
$\piIndex{X}{i}\circ s$ converges to $\apply{x}{i}$ in $\apply{X}{i}$ with respect to $\apply{T}{i}$.
\begin{subproof}
Follows by \cref{axiom_of_choice,fst_eq,snd_eq,function_apply_intro,converges_to,real_lt_subst_left,real_lt_subst_right}.
\end{subproof}
$s$ converges to $x$ in $\realsPower{\naturalsPlus}$ with respect to $\metricTopology{\omegaMetric}{\realsPower{\naturalsPlus}}$
by \cref{product_sequence_converges_iff_coordinatewise,product_family_reals_power,omega_metric_product_topology}.
Follows by definition.
\end{subproof}
$\realsPower{\naturalsPlus}$ is complete with respect to $\omegaMetric$ by \cref{complete_metric_space}.
\end{proof}
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $J$ to $Y$ with respect to $d$ iff $d$ is a metric on $Y$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $\funs{J}{Y}$ and for all $f,g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{Y}$ there exists $A$ such that $A = \{r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J. ((r = d((\apply{f}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}},\apply{g}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}})) \class{latex-symbol-tip latex-symbol-id-land}{\land} d((\apply{f}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}},\apply{g}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}})) < 1) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (r = 1 \class{latex-symbol-tip latex-symbol-id-land}{\land} 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((\apply{f}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}},\apply{g}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}))))\}$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ is a supremum of $A$.
LaTeX source
\begin{definition}
\label{uniform_metric_on_function_space}
$\rho$ is the uniform metric on functions from $J$ to $Y$ with respect to $d$ iff
$d$ is a metric on $Y$ and
$\rho$ is a metric on $\funs{J}{Y}$ and
for all $f,g\in\funs{J}{Y}$ there exists $A$ such that
$A = \{r\in\reals \mid \exists \alpha\in J.
((r = d((\apply{f}{\alpha},\apply{g}{\alpha})) \land d((\apply{f}{\alpha},\apply{g}{\alpha})) < 1) \lor
(r = 1 \land 1 \leq d((\apply{f}{\alpha},\apply{g}{\alpha}))))\}$ and
$\rho((f,g))$ is a supremum of $A$.
\end{definition}
Assume $d$ is a metric on $Y$.
Suppose $Y$ is complete with respect to $d$.
Then $Y$ is complete with respect to $\boundedMetric{d}$.
LaTeX source
\begin{lemma}
\label{complete_bounded_metric}
Assume $d$ is a metric on $Y$.
Suppose $Y$ is complete with respect to $d$.
Then $Y$ is complete with respect to $\boundedMetric{d}$.
\end{lemma}
Proof
Let $e = \boundedMetric{d}$.
$e$ is a metric on $Y$ by Theorem 21.
Claim: For all $s$ if $s$ is a Cauchy sequence in $Y$ with respect to $e$ then $s$ is a Cauchy sequence in $Y$ with respect to $d$.
Fix $s$ such that $s$ is a Cauchy sequence in $Y$ with respect to $e$.
Claim: For all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ if $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ then there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $d((s(n),s(m))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $e((s(n),s(m))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 342.
Claim: For all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $d((s(n),s(m))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Follows by Axiom 36, Axiom 41, Axiom 42, Definition 1, Definition 158, Definition 179, Definition 342, Lemma 82, Lemma 205, Proposition 115, Proposition 361.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
$1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 34.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $e((s(n),s(m))) < 1$ by Definition 342, Proposition 462.
Claim: For all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $d((s(n),s(m))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Follows by Axiom 36, Definition 158, Definition 179, Definition 342, Lemma 82, Lemma 205, Proposition 115, Proposition 361.
LaTeX source
\begin{byCase}
\caseOf{$\epsilon < 1$.}
Take $N\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$e((s(n),s(m))) < \epsilon$ by \cref{cauchy_sequence}.
Show that for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$d((s(n),s(m))) < \epsilon$.
\begin{subproof}
Follows by \cref{cauchy_sequence,sequence_in,funs_type_apply,times_tuple_intro,metric_on,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_lt_trans,bounded_metric_apply_value_lt_one,real_lt_subst_left}.
\end{subproof}
\caseOf{it is wrong that $\epsilon < 1$.}
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
$1 \leq \epsilon$ by \cref{real_lt_trichotomy}.
Take $N\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$e((s(n),s(m))) < 1$ by \cref{real_zero_lt_one,cauchy_sequence}.
Show that for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$d((s(n),s(m))) < \epsilon$.
\begin{subproof}
Follows by \cref{cauchy_sequence,sequence_in,funs_type_apply,times_tuple_intro,bounded_metric_apply_value_lt_one,real_lt_subst_left,metric_on,real_lt_trans}.
\end{subproof}
\end{byCase}
$s$ is a Cauchy sequence in $Y$ with respect to $d$ by Definition 342.
Claim: For all $s$ if $s$ is a Cauchy sequence in $Y$ with respect to $e$ then there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ such that $s$ converges to $x$ in $Y$ with respect to $\metricTopology{e}{Y}$.
Follows by Definition 159, Definition 343, Theorem 22.
$Y$ is complete with respect to $\boundedMetric{d}$ by Definition 343.
LaTeX source
\begin{proof}
Let $e = \boundedMetric{d}$.
$e$ is a metric on $Y$ by \cref{bounded_metric_is_metric}.
Show that for all $s$ if
$s$ is a Cauchy sequence in $Y$ with respect to $e$
then $s$ is a Cauchy sequence in $Y$ with respect to $d$.
\begin{subproof}
Fix $s$ such that $s$ is a Cauchy sequence in $Y$ with respect to $e$.
Show that for all $\epsilon$ if $\epsilon\in\reals$ and $0 < \epsilon$ then
there exists $N\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$d((s(n),s(m))) < \epsilon$.
\begin{subproof}
Fix $\epsilon$ such that $\epsilon\in\reals$ and $0 < \epsilon$.
\begin{byCase}
\caseOf{$\epsilon < 1$.}
Take $N\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$e((s(n),s(m))) < \epsilon$ by \cref{cauchy_sequence}.
Show that for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$d((s(n),s(m))) < \epsilon$.
\begin{subproof}
Follows by \cref{cauchy_sequence,sequence_in,funs_type_apply,times_tuple_intro,metric_on,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_lt_trans,bounded_metric_apply_value_lt_one,real_lt_subst_left}.
\end{subproof}
\caseOf{it is wrong that $\epsilon < 1$.}
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
$1 \leq \epsilon$ by \cref{real_lt_trichotomy}.
Take $N\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$e((s(n),s(m))) < 1$ by \cref{real_zero_lt_one,cauchy_sequence}.
Show that for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$d((s(n),s(m))) < \epsilon$.
\begin{subproof}
Follows by \cref{cauchy_sequence,sequence_in,funs_type_apply,times_tuple_intro,bounded_metric_apply_value_lt_one,real_lt_subst_left,metric_on,real_lt_trans}.
\end{subproof}
\end{byCase}
\end{subproof}
$s$ is a Cauchy sequence in $Y$ with respect to $d$ by \cref{cauchy_sequence}.
\end{subproof}
Show that for all $s$ if
$s$ is a Cauchy sequence in $Y$ with respect to $e$
then there exists $x\in Y$ such that
$s$ converges to $x$ in $Y$ with respect to $\metricTopology{e}{Y}$.
\begin{subproof}
Follows by \cref{complete_metric_space,bounded_metric_topology,converges_to}.
\end{subproof}
$Y$ is complete with respect to $\boundedMetric{d}$ by \cref{complete_metric_space}.
\end{proof}
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $J$ to $Y$ with respect to $d$.
Suppose $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{Y}$.
Suppose $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{Y}$.
Suppose $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
Then $\apply{\boundedMetric{d}}{(f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$.
LaTeX source
\begin{lemma}
\label{uniform_function_metric_coordinate_leq}
Assume $\rho$ is the uniform metric on functions from $J$ to $Y$ with respect to $d$.
Suppose $f\in\funs{J}{Y}$.
Suppose $g\in\funs{J}{Y}$.
Suppose $\alpha\in J$.
Then $\apply{\boundedMetric{d}}{(f(\alpha),g(\alpha))} \leq \rho((f,g))$.
\end{lemma}
Proof
$d$ is a metric on $Y$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $\funs{J}{Y}$ by Definition 344.
Take $A$ such that $A = \{r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} \class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in} J. ((r = d((\apply{f}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}},\apply{g}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}})) \class{latex-symbol-tip latex-symbol-id-land}{\land} d((\apply{f}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}},\apply{g}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}})) < 1) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (r = 1 \class{latex-symbol-tip latex-symbol-id-land}{\land} 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((\apply{f}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}},\apply{g}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}))))\}$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ is a supremum of $A$ by Definition 344.
Let $r = \apply{\boundedMetric{d}}{(f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))}$.
$f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Proposition 361.
$(f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Proposition 115.
$\boundedMetric{d}$ is a metric on $Y$ by Theorem 21.
$\boundedMetric{d}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y}{\reals}$ by Definition 179.
$r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361, Theorem 21.
Claim: $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
$r = d((f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})))$ by Lemma 202.
$r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 344.
$r = 1$ by Lemma 203.
$1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})))$ by Axiom 34, Axiom 41, Axiom 42, Definition 1, Definition 179, Lemma 83, Lemma 231, Proposition 361.
$r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 344.
LaTeX source
\begin{byCase}
\caseOf{$d((f(\alpha),g(\alpha))) < 1$.}
$r = d((f(\alpha),g(\alpha)))$ by \cref{bounded_metric_apply_lt_one}.
$r\in A$ by \cref{uniform_metric_on_function_space}.
\caseOf{it is wrong that $d((f(\alpha),g(\alpha))) < 1$.}
$r = 1$ by \cref{bounded_metric_apply_geq_one}.
$1 \leq d((f(\alpha),g(\alpha)))$
by \cref{metric_on,funs_type_apply,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_lt_trichotomy,real_lt_imp_leq,real_lt_subst_right}.
$r\in A$ by \cref{uniform_metric_on_function_space}.
\end{byCase}
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ is an upper bound of $A$ by Definition 71.
$r \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ by Definition 66.
LaTeX source
\begin{proof}
$d$ is a metric on $Y$ and $\rho$ is a metric on $\funs{J}{Y}$ by \cref{uniform_metric_on_function_space}.
Take $A$ such that
$A = \{r\in\reals \mid \exists \beta\in J.
((r = d((\apply{f}{\beta},\apply{g}{\beta})) \land d((\apply{f}{\beta},\apply{g}{\beta})) < 1) \lor
(r = 1 \land 1 \leq d((\apply{f}{\beta},\apply{g}{\beta}))))\}$ and
$\rho((f,g))$ is a supremum of $A$ by \cref{uniform_metric_on_function_space}.
Let $r = \apply{\boundedMetric{d}}{(f(\alpha),g(\alpha))}$.
$f(\alpha)\in Y$ and $g(\alpha)\in Y$ by \cref{funs_type_apply}.
$(f(\alpha),g(\alpha))\in Y\times Y$ by \cref{times_tuple_intro}.
$\boundedMetric{d}$ is a metric on $Y$ by \cref{bounded_metric_is_metric}.
$\boundedMetric{d}\in\funs{Y\times Y}{\reals}$ by \cref{metric_on}.
$r\in\reals$ by \cref{bounded_metric_is_metric,metric_on,funs_type_apply}.
Show that $r\in A$.
\begin{subproof}
\begin{byCase}
\caseOf{$d((f(\alpha),g(\alpha))) < 1$.}
$r = d((f(\alpha),g(\alpha)))$ by \cref{bounded_metric_apply_lt_one}.
$r\in A$ by \cref{uniform_metric_on_function_space}.
\caseOf{it is wrong that $d((f(\alpha),g(\alpha))) < 1$.}
$r = 1$ by \cref{bounded_metric_apply_geq_one}.
$1 \leq d((f(\alpha),g(\alpha)))$
by \cref{metric_on,funs_type_apply,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_lt_trichotomy,real_lt_imp_leq,real_lt_subst_right}.
$r\in A$ by \cref{uniform_metric_on_function_space}.
\end{byCase}
\end{subproof}
$\rho((f,g))$ is an upper bound of $A$ by \cref{real_supremum}.
$r \leq \rho((f,g))$ by \cref{real_upper_bound}.
\end{proof}
Assume $d$ is a metric on $X$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Suppose $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Then $\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ is a neighborhood of $x$ in $X$ with respect to $\metricTopology{d}{X}$.
LaTeX source
\begin{lemma}
\label{metric_ball_neighborhood_metric_topology}
Assume $d$ is a metric on $X$.
Suppose $x\in X$.
Suppose $\epsilon\in\reals$.
Suppose $0 < \epsilon$.
Then $\metricBall{d}{X}{x}{\epsilon}$ is a neighborhood of $x$ in $X$ with respect to $\metricTopology{d}{X}$.
\end{lemma}
Proof
$\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBasis{d}{X}$ by Definition 1, Definition 180, Definition 181, Proposition 155.
$\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ is open in $X$ with respect to $\metricTopology{d}{X}$ by Definition 103, Definition 115, Definition 182, Lemma 76, Lemma 77, Lemma 194.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 176, Definition 179, Definition 180, Lemma 82.
$\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ is a neighborhood of $x$ in $X$ with respect to $\metricTopology{d}{X}$ by Definition 153.
LaTeX source
\begin{proof}
$\metricBall{d}{X}{x}{\epsilon}\in\metricBasis{d}{X}$ by \cref{metric_ball,subseteq,powerset_intro,metric_basis}.
$\metricBall{d}{X}{x}{\epsilon}$ is open in $X$ with respect to $\metricTopology{d}{X}$
by \cref{metric_basis_is_basis,basis_elem_open_in_generated,metric_topology,basis_for_topology,basis_topology_is_topology,open_in}.
$x\in\metricBall{d}{X}{x}{\epsilon}$ by \cref{metric_zero_characterization,metric_on,real_lt_subst_left,metric_ball}.
$\metricBall{d}{X}{x}{\epsilon}$ is a neighborhood of $x$ in $X$ with respect to $\metricTopology{d}{X}$
by \cref{neighborhood}.
\end{proof}
Assume $e$ is a metric on $Y$.
Suppose $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$.
Suppose $z\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$.
Suppose $t$ is a sequence in $Y$.
Suppose $t$ converges to $z$ in $Y$ with respect to $\metricTopology{e}{Y}$.
Suppose $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
Suppose there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $e((y,t(n))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
Then $e((y,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
LaTeX source
\begin{lemma}
\label{metric_limit_eventual_bound}
Assume $e$ is a metric on $Y$.
Suppose $y\in Y$.
Suppose $z\in Y$.
Suppose $t$ is a sequence in $Y$.
Suppose $t$ converges to $z$ in $Y$ with respect to $\metricTopology{e}{Y}$.
Suppose $\delta\in\reals$.
Suppose $0 < \delta$.
Suppose there exists $N\in\naturalsPlus$ such that
for all $n\in\naturalsPlus$ if $N \leq n$ then
$e((y,t(n))) < \delta$.
Then $e((y,z)) \leq \delta$.
\end{lemma}
Proof
Suppose not.
$e((y,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < e((y,z))$ by Axiom 34.
Let $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} = e((y,z)) - \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
$\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \neg{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}} < e((y,z)) + \neg{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ by Axiom 18, Axiom 37.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \neg{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}} = 0$ and $e((y,z)) + \neg{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}} = e((y,z)) - \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 17, Axiom 18, Definition 64.
$0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 82, Lemma 83.
Take $N_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N_0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $e((y,t(n))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by assumption.
$\metricBall{e}{Y}{z}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ is a neighborhood of $z$ in $Y$ with respect to $\metricTopology{e}{Y}$ by Lemma 673.
Take $N_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N_1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $t(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{e}{Y}{z}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 159.
Let $n = N_0 + N_1$.
$n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Lemma 433.
$N_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $N_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Definition 1.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
$0 < N_0$ and $0 < N_1$ by Lemma 89.
$0 + N_0 < N_1 + N_0$ by Axiom 37.
$0 + N_0 = N_0$ and $N_1 + N_0 = N_0 + N_1$ by Axiom 16, Axiom 17.
$N_0 < N_0 + N_1$ by Lemma 82, Lemma 83.
$N_0 < n$ by Lemma 83.
$N_0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ by Lemma 231.
$0 + N_1 < N_0 + N_1$ by Axiom 37.
$0 + N_1 = N_1$ by Axiom 17.
$N_1 < N_0 + N_1$ by Lemma 82, Lemma 83.
$N_1 < n$ by Lemma 83.
$N_1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ by Lemma 231.
$e((y,t(n))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $t(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{e}{Y}{z}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 1.
$t(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $e((z,t(n))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 180.
$e((t(n),z)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 177, Definition 179, Lemma 82.
$(y,z)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $(y,t(n))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $(t(n),z)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Proposition 115.
$e((y,t(n)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $e((t(n),z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
$e((y,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} e((y,t(n))) + e((t(n),z))$ by Definition 178, Definition 179.
$e((y,t(n))) + e((t(n),z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + e((t(n),z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$e((y,t(n))) + e((t(n),z)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + e((t(n),z))$ by Axiom 37.
$e((t(n),z)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 37.
$e((t(n),z)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + e((t(n),z))$ and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 16.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + e((t(n),z)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 82, Lemma 83.
$e((y,t(n))) + e((t(n),z)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 36.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} = \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + (e((y,z)) - \class{latex-symbol-tip latex-symbol-id-delta}{\delta})$ by Definition 64.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} = e((y,z))$ by Axiom 15, Axiom 16, Axiom 17, Axiom 18.
$e((y,t(n))) + e((t(n),z)) < e((y,z))$ by Lemma 83.
$e((y,z)) < e((y,z))$ by Lemma 266.
Contradiction by Axiom 39.
LaTeX source
\begin{proof}
Suppose not.
$e((y,z))\in\reals$ by \cref{times_tuple_intro,metric_on,funs_type_apply}.
$\delta < e((y,z))$ by \cref{real_lt_trichotomy}.
Let $\epsilon = e((y,z)) - \delta$.
$\epsilon\in\reals$ by \cref{real_sub,real_add_inverse,real_add_closed}.
$\delta + \neg{\delta} < e((y,z)) + \neg{\delta}$ by \cref{real_add_inverse,real_lt_add}.
$\delta + \neg{\delta} = 0$ and $e((y,z)) + \neg{\delta} = e((y,z)) - \delta$
by \cref{real_add_inverse,real_add_ident,real_sub}.
$0 < \epsilon$ by \cref{real_lt_subst_left,real_lt_subst_right}.
Take $N_0\in\naturalsPlus$ such that
for all $n\in\naturalsPlus$ if $N_0 \leq n$ then
$e((y,t(n))) < \delta$ by assumption.
$\metricBall{e}{Y}{z}{\epsilon}$ is a neighborhood of $z$ in $Y$ with respect to $\metricTopology{e}{Y}$
by \cref{metric_ball_neighborhood_metric_topology}.
Take $N_1\in\naturalsPlus$ such that
for all $n\in\naturalsPlus$ if $N_1 \leq n$ then
$t(n)\in\metricBall{e}{Y}{z}{\epsilon}$ by \cref{converges_to}.
Let $n = N_0 + N_1$.
$n\in\naturalsPlus$ by \cref{naturalsplus_add_closed}.
$N_0\in\reals$ and $N_1\in\reals$ and $n\in\reals$ by \cref{real_naturals_subset_reals,subseteq}.
$0\in\reals$ by \cref{real_add_ident}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
$0 < N_0$ and $0 < N_1$ by \cref{naturalsplus_positive_real}.
$0 + N_0 < N_1 + N_0$ by \cref{real_lt_add}.
$0 + N_0 = N_0$ and $N_1 + N_0 = N_0 + N_1$ by \cref{real_add_ident,real_add_comm}.
$N_0 < N_0 + N_1$ by \cref{real_lt_subst_left,real_lt_subst_right}.
$N_0 < n$ by \cref{real_lt_subst_right}.
$N_0 \leq n$ by \cref{real_lt_imp_leq}.
$0 + N_1 < N_0 + N_1$ by \cref{real_lt_add}.
$0 + N_1 = N_1$ by \cref{real_add_ident}.
$N_1 < N_0 + N_1$ by \cref{real_lt_subst_left,real_lt_subst_right}.
$N_1 < n$ by \cref{real_lt_subst_right}.
$N_1 \leq n$ by \cref{real_lt_imp_leq}.
$e((y,t(n))) < \delta$ and $t(n)\in\metricBall{e}{Y}{z}{\epsilon}$ by \cref{subseteq}.
$t(n)\in Y$ and $e((z,t(n))) < \epsilon$ by \cref{metric_ball}.
$e((t(n),z)) < \epsilon$ by \cref{metric_symmetric,metric_on,real_lt_subst_left}.
$(y,z)\in Y\times Y$ and $(y,t(n))\in Y\times Y$ and $(t(n),z)\in Y\times Y$ by \cref{times_tuple_intro}.
$e((y,t(n)))\in\reals$ and $e((t(n),z))\in\reals$ by \cref{metric_on,funs_type_apply}.
$e((y,z)) \leq e((y,t(n))) + e((t(n),z))$ by \cref{metric_on,metric_triangle_inequality}.
$e((y,t(n))) + e((t(n),z))\in\reals$ and $\delta + e((t(n),z))\in\reals$ and $\delta + \epsilon\in\reals$
by \cref{real_add_closed}.
$e((y,t(n))) + e((t(n),z)) < \delta + e((t(n),z))$ by \cref{real_lt_add}.
$e((t(n),z)) + \delta < \epsilon + \delta$ by \cref{real_lt_add}.
$e((t(n),z)) + \delta = \delta + e((t(n),z))$ and $\epsilon + \delta = \delta + \epsilon$ by \cref{real_add_comm}.
$\delta + e((t(n),z)) < \delta + \epsilon$ by \cref{real_lt_subst_left,real_lt_subst_right}.
$e((y,t(n))) + e((t(n),z)) < \delta + \epsilon$ by \cref{real_lt_trans}.
$\delta + \epsilon = \delta + (e((y,z)) - \delta)$ by \cref{real_sub}.
$\delta + \epsilon = e((y,z))$ by \cref{real_add_assoc,real_add_inverse,real_add_ident,real_add_comm}.
$e((y,t(n))) + e((t(n),z)) < e((y,z))$ by \cref{real_lt_subst_right}.
$e((y,z)) < e((y,z))$ by \cref{real_leq_lt_trans}.
Contradiction by \cref{real_lt_irreflexive}.
\end{proof}
Assume $d$ is a metric on $Y$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $J$ to $Y$ with respect to $d$.
Suppose $s$ is a sequence in $\funs{J}{Y}$.
Suppose $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{Y}$.
Suppose $s$ converges to $f$ in $\funs{J}{Y}$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{J}{Y}}$.
Then $s$ converges uniformly to $f$ from $J$ to $Y$ with respect to $\boundedMetric{d}$.
LaTeX source
\begin{lemma}
\label{uniform_metric_convergence_uniform}
Assume $d$ is a metric on $Y$.
Assume $\rho$ is the uniform metric on functions from $J$ to $Y$ with respect to $d$.
Suppose $s$ is a sequence in $\funs{J}{Y}$.
Suppose $f\in\funs{J}{Y}$.
Suppose $s$ converges to $f$ in $\funs{J}{Y}$ with respect to $\metricTopology{\rho}{\funs{J}{Y}}$.
Then $s$ converges uniformly to $f$ from $J$ to $Y$ with respect to $\boundedMetric{d}$.
\end{lemma}
Proof
Let $e = \boundedMetric{d}$.
$e$ is a metric on $Y$ by Theorem 21.
Claim: For all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ if $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ then there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then for all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $e((\apply{\apply{s}{n}}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}, f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Let $F = \funs{J}{Y}$.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((s(n),f)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 1, Definition 159, Definition 177, Definition 179, Definition 180, Definition 344, Lemma 82, Lemma 673.
Claim: For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then for all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $e((\apply{\apply{s}{n}}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}, f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Follows by Definition 158, Definition 179, Definition 344, Lemma 266, Lemma 672, Proposition 115, Proposition 361.
Follows by definition.
$s$ converges uniformly to $f$ from $J$ to $Y$ with respect to $e$ by Definition 216.
LaTeX source
\begin{proof}
Let $e = \boundedMetric{d}$.
$e$ is a metric on $Y$ by \cref{bounded_metric_is_metric}.
Show that for all $\epsilon$ if $\epsilon\in\reals$ and $0 < \epsilon$ then
there exists $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then
for all $\alpha\in J$ we have $e((\apply{\apply{s}{n}}{\alpha}, f(\alpha))) < \epsilon$.
\begin{subproof}
Fix $\epsilon$ such that $\epsilon\in\reals$ and $0 < \epsilon$.
Let $F = \funs{J}{Y}$.
Take $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then
$\rho((s(n),f)) < \epsilon$
by \cref{uniform_metric_on_function_space,metric_ball_neighborhood_metric_topology,converges_to,metric_ball,subseteq,metric_on,metric_symmetric,real_lt_subst_left}.
Show that for all $n\in\naturalsPlus$ if $N\leq n$ then
for all $\alpha\in J$ we have $e((\apply{\apply{s}{n}}{\alpha}, f(\alpha))) < \epsilon$.
\begin{subproof}
Follows by \cref{sequence_in,funs_type_apply,uniform_function_metric_coordinate_leq,times_tuple_intro,metric_on,uniform_metric_on_function_space,real_leq_lt_trans}.
\end{subproof}
Follows by definition.
\end{subproof}
$s$ converges uniformly to $f$ from $J$ to $Y$ with respect to $e$ by \cref{uniform_converges_to}.
\end{proof}
Assume $d$ is a metric on $Y$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $J$ to $Y$ with respect to $d$.
Suppose $s$ is a Cauchy sequence in $\funs{J}{Y}$ with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$.
Suppose $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
Let $t = \{(n,\apply{\apply{s}{n}}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}) \mid n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus\}$.
Then $t$ is a Cauchy sequence in $Y$ with respect to $\boundedMetric{d}$.
LaTeX source
\begin{lemma}
\label{uniform_metric_cauchy_coordinate}
Assume $d$ is a metric on $Y$.
Assume $\rho$ is the uniform metric on functions from $J$ to $Y$ with respect to $d$.
Suppose $s$ is a Cauchy sequence in $\funs{J}{Y}$ with respect to $\rho$.
Suppose $\alpha\in J$.
Let $t = \{(n,\apply{\apply{s}{n}}{\alpha}) \mid n\in\naturalsPlus\}$.
Then $t$ is a Cauchy sequence in $Y$ with respect to $\boundedMetric{d}$.
\end{lemma}
Proof
Let $e = \boundedMetric{d}$.
$e$ is a metric on $Y$ by Theorem 21.
For all $n,y_1,y_2$ such that $(n,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} t$ and $(n,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} t$ we have $y_1 = y_2$ by Axiom 6.
$t$ is a function by Definition 12, Definition 51.
$\dom{t} = \naturalsPlus$ by Axiom 6, Definition 1, Proposition 3, Proposition 199, Proposition 200.
For all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{t}$ we have $\apply{\apply{s}{n}}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 1, Definition 158, Definition 342, Proposition 361.
For all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{t}$ we have $(n,\apply{\apply{s}{n}}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}})\class{latex-symbol-tip latex-symbol-id-in}{\in} t$.
For all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{t}$ we have $t(n) = \apply{\apply{s}{n}}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ by Proposition 346.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{t}$ we have $t(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$.
$t$ is a sequence in $Y$ by Definition 158, Proposition 358.
Claim: For all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ if $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ then there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $e((t(n),t(m))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
$t$ is a Cauchy sequence in $Y$ with respect to $e$ by Definition 342.
LaTeX source
\begin{proof}
Let $e = \boundedMetric{d}$.
$e$ is a metric on $Y$ by \cref{bounded_metric_is_metric}.
For all $n,y_1,y_2$ such that $(n,y_1)\in t$ and $(n,y_2)\in t$ we have $y_1 = y_2$ by \cref{pair_eq_iff}.
$t$ is a function by \cref{relation,rightunique}.
$\dom{t} = \naturalsPlus$ by \cref{dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
For all $n$ such that $n\in\dom{t}$ we have $\apply{\apply{s}{n}}{\alpha}\in Y$
by \cref{subseteq,cauchy_sequence,sequence_in,funs_type_apply}.
For all $n$ such that $n\in\dom{t}$ we have $(n,\apply{\apply{s}{n}}{\alpha})\in t$.
For all $n$ such that $n\in\dom{t}$ we have $t(n) = \apply{\apply{s}{n}}{\alpha}$ by \cref{function_apply_intro}.
For all $n\in\dom{t}$ we have $t(n)\in Y$.
$t$ is a sequence in $Y$ by \cref{funs_intro,sequence_in}.
Show that for all $\epsilon$ if $\epsilon\in\reals$ and $0 < \epsilon$ then
there exists $N\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$e((t(n),t(m))) < \epsilon$.
\begin{subproof}
Follows by \cref{cauchy_sequence,sequence_in,funs_type_apply,uniform_function_metric_coordinate_leq,uniform_metric_on_function_space,metric_on,times_tuple_intro,real_leq_lt_trans,function_apply_intro,real_lt_subst_left,real_lt_subst_right}.
\end{subproof}
$t$ is a Cauchy sequence in $Y$ with respect to $e$ by \cref{cauchy_sequence}.
\end{proof}
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $J$ to $Y$ with respect to $d$.
Suppose $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{Y}$.
Suppose $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{Y}$.
Suppose $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose for all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\apply{\boundedMetric{d}}{(f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
Then $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
LaTeX source
\begin{lemma}
\label{uniform_metric_leq_from_coordinate_bounds}
Assume $\rho$ is the uniform metric on functions from $J$ to $Y$ with respect to $d$.
Suppose $f\in\funs{J}{Y}$.
Suppose $g\in\funs{J}{Y}$.
Suppose $\delta\in\reals$.
Suppose for all $\alpha\in J$ we have
$\apply{\boundedMetric{d}}{(f(\alpha),g(\alpha))} \leq \delta$.
Then $\rho((f,g)) \leq \delta$.
\end{lemma}
Proof
Let $e = \boundedMetric{d}$.
$d$ is a metric on $Y$ by Definition 344.
$e$ is a metric on $Y$ by Theorem 21.
Take $A$ such that $A = \{r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J. ((r = d((\apply{f}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}},\apply{g}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}})) \class{latex-symbol-tip latex-symbol-id-land}{\land} d((\apply{f}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}},\apply{g}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}})) < 1) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (r = 1 \class{latex-symbol-tip latex-symbol-id-land}{\land} 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((\apply{f}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}},\apply{g}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}))))\}$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ is a supremum of $A$ by Definition 344.
Claim: For all $r$ if $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ then $r \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
Fix $r$.
Assume $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Take $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $(r = d((\apply{f}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}},\apply{g}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}})) \class{latex-symbol-tip latex-symbol-id-land}{\land} d((\apply{f}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}},\apply{g}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}})) < 1) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (r = 1 \class{latex-symbol-tip latex-symbol-id-land}{\land} 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((\apply{f}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}},\apply{g}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}})))$ by Definition 344.
$f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Proposition 361.
Let $p = (f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))$.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Proposition 115.
Claim: $e((f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))) = r$.
It is wrong that $d(p) < 1$ by Axiom 39, Definition 179, Lemma 266, Proposition 361.
$e\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y}{\reals}$ by Definition 179.
$e(p) = 1$ by Lemma 203.
$e((f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))) = r$ by Lemma 83.
LaTeX source
\begin{byCase}
\caseOf{$r = d((\apply{f}{\alpha},\apply{g}{\alpha})) \land d((\apply{f}{\alpha},\apply{g}{\alpha})) < 1$.}
$e(p) = d(p)$ by \cref{bounded_metric_apply_below_one}.
$e((f(\alpha),g(\alpha))) = r$ by \cref{real_lt_subst_right}.
\caseOf{$r = 1 \land 1 \leq d((\apply{f}{\alpha},\apply{g}{\alpha}))$.}
It is wrong that $d(p) < 1$ by \cref{real_leq_lt_trans,metric_on,funs_type_apply,real_lt_irreflexive}.
$e\in\funs{Y\times Y}{\reals}$ by \cref{metric_on}.
$e(p) = 1$ by \cref{bounded_metric_apply_geq_one}.
$e((f(\alpha),g(\alpha))) = r$ by \cref{real_lt_subst_right}.
\end{byCase}
$e((f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by assumption.
$r \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1, Definition 344.
For all $r$ if $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ then $r\mathrel{\realOrderRel}\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ or $r = \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ is an upper bound of $A$ in $\reals$ with respect to $\realOrderRel$ by Definition 228.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ is an upper bound of $A$ by Lemma 324.
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 71.
LaTeX source
\begin{proof}
Let $e = \boundedMetric{d}$.
$d$ is a metric on $Y$ by \cref{uniform_metric_on_function_space}.
$e$ is a metric on $Y$ by \cref{bounded_metric_is_metric}.
Take $A$ such that
$A = \{r\in\reals \mid \exists \alpha\in J.
((r = d((\apply{f}{\alpha},\apply{g}{\alpha})) \land d((\apply{f}{\alpha},\apply{g}{\alpha})) < 1) \lor
(r = 1 \land 1 \leq d((\apply{f}{\alpha},\apply{g}{\alpha}))))\}$ and
$\rho((f,g))$ is a supremum of $A$ by \cref{uniform_metric_on_function_space}.
Show that for all $r$ if $r\in A$ then $r \leq \delta$.
\begin{subproof}
Fix $r$.
Assume $r\in A$.
Take $\alpha\in J$ such that
$(r = d((\apply{f}{\alpha},\apply{g}{\alpha})) \land d((\apply{f}{\alpha},\apply{g}{\alpha})) < 1) \lor
(r = 1 \land 1 \leq d((\apply{f}{\alpha},\apply{g}{\alpha})))$ by \cref{uniform_metric_on_function_space}.
$f(\alpha)\in Y$ and $g(\alpha)\in Y$ by \cref{funs_type_apply}.
Let $p = (f(\alpha),g(\alpha))$.
$p\in Y\times Y$ by \cref{times_tuple_intro}.
Show that $e((f(\alpha),g(\alpha))) = r$.
\begin{subproof}
\begin{byCase}
\caseOf{$r = d((\apply{f}{\alpha},\apply{g}{\alpha})) \land d((\apply{f}{\alpha},\apply{g}{\alpha})) < 1$.}
$e(p) = d(p)$ by \cref{bounded_metric_apply_below_one}.
$e((f(\alpha),g(\alpha))) = r$ by \cref{real_lt_subst_right}.
\caseOf{$r = 1 \land 1 \leq d((\apply{f}{\alpha},\apply{g}{\alpha}))$.}
It is wrong that $d(p) < 1$ by \cref{real_leq_lt_trans,metric_on,funs_type_apply,real_lt_irreflexive}.
$e\in\funs{Y\times Y}{\reals}$ by \cref{metric_on}.
$e(p) = 1$ by \cref{bounded_metric_apply_geq_one}.
$e((f(\alpha),g(\alpha))) = r$ by \cref{real_lt_subst_right}.
\end{byCase}
\end{subproof}
$e((f(\alpha),g(\alpha))) \leq \delta$ by assumption.
$r \leq \delta$.
\end{subproof}
$A\subseteq\reals$ by \cref{uniform_metric_on_function_space,subseteq}.
For all $r$ if $r\in A$ then $r\mathrel{\realOrderRel}\delta$ or $r = \delta$.
$\delta$ is an upper bound of $A$ in $\reals$ with respect to $\realOrderRel$ by \cref{upper_bound_rel}.
$\delta$ is an upper bound of $A$ by \cref{real_order_upper_bound_is_real_upper_bound}.
$\rho((f,g)) \leq \delta$ by \cref{real_supremum}.
\end{proof}
Assume $d$ is a metric on $Y$.
Assume $Y$ is complete with respect to $d$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $J$ to $Y$ with respect to $d$.
Then $\funs{J}{Y}$ is complete with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$.
LaTeX source
\begin{theorem}
\label{uniform_function_space_complete}
Assume $d$ is a metric on $Y$.
Assume $Y$ is complete with respect to $d$.
Assume $\rho$ is the uniform metric on functions from $J$ to $Y$ with respect to $d$.
Then $\funs{J}{Y}$ is complete with respect to $\rho$.
\end{theorem}
Proof
Let $e = \boundedMetric{d}$.
Let $F = \funs{J}{Y}$.
$e$ is a metric on $Y$ by Theorem 21.
$Y$ is complete with respect to $e$ by Lemma 671.
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $F$ by Definition 344.
Claim: For all $s$ if $s$ is a Cauchy sequence in $F$ with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ then there exists $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ such that $s$ converges to $f$ in $F$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$.
Fix $s$ such that $s$ is a Cauchy sequence in $F$ with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} J\class{latex-symbol-tip latex-symbol-id-times}{\times} Y \mid \text{there exists $t$ such that $t$ is a sequence in $Y$ and for all $n\in\naturalsPlus$ we have $t(n) = \apply{\apply{s}{n}}{\fst{w}}$ and $t$ converges to $\snd{w}$ in $Y$ with respect to $\metricTopology{e}{Y}$}\}$.
$R$ is a relation by Definition 1, Definition 12, Proposition 121.
Claim: For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ there exists $y$ such that $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\mathrel{R} y$.
Fix $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
Let $t = \{(n,\apply{\apply{s}{n}}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}) \mid n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus\}$.
$t$ is a Cauchy sequence in $Y$ with respect to $e$ by Lemma 676.
$t$ is a sequence in $Y$ by Definition 342.
Take $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ such that $t$ converges to $y$ in $Y$ with respect to $\metricTopology{e}{Y}$ by Definition 343.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $t(n) = \apply{\apply{s}{n}}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ by Definition 158, Definition 342, Proposition 346, Proposition 356, Proposition 359.
$\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\mathrel{R} y$ by Axiom 10, Axiom 11, Definition 12, Proposition 115.
Follows by definition.
Take $f$ such that $f$ is a function on $J$ and for all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\mathrel{R}\apply{f}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ by Axiom 54.
$f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Axiom 54, Definition 1, Definition 12, Proposition 114, Proposition 358.
Claim: For all $U$ if $U$ is a neighborhood of $f$ in $F$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ then there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Fix $U$ such that $U$ is a neighborhood of $f$ in $F$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$.
$U$ is open in $F$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ and $f\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 153.
Take $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ and $\metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}{f}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 1, Definition 101, Definition 103, Lemma 195, Proposition 156.
Let $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} / (1 + 1)$.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 275.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17.
$0 + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 37.
$0 + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 17.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 82, Lemma 83.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((s(n),s(m))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 342.
Claim: For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Fix $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
$s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Definition 158, Definition 342, Proposition 361.
Claim: For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $e((\apply{\apply{s}{n}}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}},f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
Fix $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
$\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\mathrel{R} f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})$ by Axiom 54.
Take $t$ such that $t$ is a sequence in $Y$ and for all $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $t(m) = \apply{\apply{s}{m}}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ and $t$ converges to $f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})$ in $Y$ with respect to $\metricTopology{e}{Y}$ by Axiom 10, Axiom 11, Definition 12.
Claim: For all $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $e((\apply{\apply{s}{n}}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}},t(m))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
$e((\apply{\apply{s}{n}}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}},f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 674, Proposition 361.
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((s(n),f)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 179, Lemma 266, Lemma 677, Proposition 115, Proposition 361.
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,s(n))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 177, Definition 179, Lemma 82, Proposition 115.
$s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}{f}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 180.
$s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 1.
Follows by definition.
$s$ converges to $f$ in $F$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ by Definition 159, Definition 342.
Follows by definition.
$F$ is complete with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ by Definition 343.
LaTeX source
\begin{proof}
Let $e = \boundedMetric{d}$.
Let $F = \funs{J}{Y}$.
$e$ is a metric on $Y$ by \cref{bounded_metric_is_metric}.
$Y$ is complete with respect to $e$ by \cref{complete_bounded_metric}.
$\rho$ is a metric on $F$ by \cref{uniform_metric_on_function_space}.
Show that for all $s$ if $s$ is a Cauchy sequence in $F$ with respect to $\rho$
then there exists $f\in F$ such that
$s$ converges to $f$ in $F$ with respect to $\metricTopology{\rho}{F}$.
\begin{subproof}
Fix $s$ such that $s$ is a Cauchy sequence in $F$ with respect to $\rho$.
Let $R = \{w\in J\times Y \mid
\text{there exists $t$ such that
$t$ is a sequence in $Y$ and
for all $n\in\naturalsPlus$ we have $t(n) = \apply{\apply{s}{n}}{\fst{w}}$ and
$t$ converges to $\snd{w}$ in $Y$ with respect to $\metricTopology{e}{Y}$}\}$.
$R$ is a relation by \cref{relation,subseteq,times_elem_is_tuple}.
Show that for all $\alpha\in J$ there exists $y$ such that $\alpha\mathrel{R} y$.
\begin{subproof}
Fix $\alpha\in J$.
Let $t = \{(n,\apply{\apply{s}{n}}{\alpha}) \mid n\in\naturalsPlus\}$.
$t$ is a Cauchy sequence in $Y$ with respect to $e$ by \cref{uniform_metric_cauchy_coordinate}.
$t$ is a sequence in $Y$ by \cref{cauchy_sequence}.
Take $y\in Y$ such that
$t$ converges to $y$ in $Y$ with respect to $\metricTopology{e}{Y}$
by \cref{complete_metric_space}.
For all $n\in\naturalsPlus$ we have $t(n) = \apply{\apply{s}{n}}{\alpha}$
by \cref{function_apply_intro,cauchy_sequence,sequence_in,funs_is_function,funs_elim}.
$\alpha\mathrel{R} y$ by \cref{fst_eq,snd_eq,relation,times_tuple_intro}.
Follows by definition.
\end{subproof}
Take $f$ such that
$f$ is a function on $J$ and
for all $\alpha\in J$ we have $\alpha\mathrel{R}\apply{f}{\alpha}$ by \cref{axiom_of_choice}.
$f\in F$ by \cref{axiom_of_choice,relation,subseteq,times_tuple_elim,funs_intro}.
Show that for all $U$ if $U$ is a neighborhood of $f$ in $F$ with respect to $\metricTopology{\rho}{F}$ then
there exists $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in U$.
\begin{subproof}
Fix $U$ such that $U$ is a neighborhood of $f$ in $F$ with respect to $\metricTopology{\rho}{F}$.
$U$ is open in $F$ with respect to $\metricTopology{\rho}{F}$ and $f\in U$ by \cref{neighborhood}.
Take $\epsilon\in\reals$ such that $0 < \epsilon$ and $\metricBall{\rho}{F}{f}{\epsilon}\subseteq U$
by \cref{open_in,topology_on,subseteq,powerset_elim,metric_open_iff}.
Let $\delta = \epsilon / (1 + 1)$.
$\delta\in\reals$ and $0 < \delta$ and $\delta + \delta = \epsilon$ by \cref{real_half_of_positive}.
$0\in\reals$ by \cref{real_add_ident}.
$0 + \delta < \delta + \delta$ by \cref{real_lt_add}.
$0 + \delta = \delta$ and $\delta + \delta = \epsilon$ by \cref{real_add_ident}.
$\delta < \epsilon$ by \cref{real_lt_subst_left,real_lt_subst_right}.
Take $N\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$\rho((s(n),s(m))) < \delta$ by \cref{cauchy_sequence}.
Show that for all $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in U$.
\begin{subproof}
Fix $n\in\naturalsPlus$.
Assume $N\leq n$.
$s(n)\in F$ by \cref{cauchy_sequence,sequence_in,funs_type_apply}.
Show that for all $\alpha\in J$ we have $e((\apply{\apply{s}{n}}{\alpha},f(\alpha))) \leq \delta$.
\begin{subproof}
Fix $\alpha\in J$.
$\alpha\mathrel{R} f(\alpha)$ by \cref{axiom_of_choice}.
Take $t$ such that
$t$ is a sequence in $Y$ and
for all $m\in\naturalsPlus$ we have $t(m) = \apply{\apply{s}{m}}{\alpha}$ and
$t$ converges to $f(\alpha)$ in $Y$ with respect to $\metricTopology{e}{Y}$ by
\cref{fst_eq,snd_eq,relation}.
Show that for all $m\in\naturalsPlus$ if $N \leq m$ then
$e((\apply{\apply{s}{n}}{\alpha},t(m))) < \delta$.
\begin{subproof}
Follows by \cref{cauchy_sequence,sequence_in,funs_type_apply,uniform_function_metric_coordinate_leq,metric_on,times_tuple_intro,real_leq_lt_trans,function_apply_intro,real_lt_subst_right}.
\end{subproof}
$e((\apply{\apply{s}{n}}{\alpha},f(\alpha))) \leq \delta$
by \cref{metric_limit_eventual_bound,funs_type_apply}.
\end{subproof}
$\rho((s(n),f)) < \epsilon$
by \cref{uniform_metric_leq_from_coordinate_bounds,metric_on,funs_type_apply,times_tuple_intro,real_leq_lt_trans}.
$\rho((f,s(n))) < \epsilon$ by \cref{metric_on,metric_symmetric,real_lt_subst_left,times_tuple_intro}.
$s(n)\in\metricBall{\rho}{F}{f}{\epsilon}$ by \cref{metric_ball}.
$s(n)\in U$ by \cref{subseteq}.
\end{subproof}
Follows by definition.
\end{subproof}
$s$ converges to $f$ in $F$ with respect to $\metricTopology{\rho}{F}$ by \cref{cauchy_sequence,converges_to}.
Follows by definition.
\end{subproof}
$F$ is complete with respect to $\rho$ by \cref{complete_metric_space}.
\end{proof}
$C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ iff $C = \{f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y} \mid \text{$f$ is continuous from $X$ to $Y$ with respect to $T$ and $U$}\}$.
LaTeX source
\begin{definition}
\label{continuous_function_set}
$C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ iff
$C = \{f\in\funs{X}{Y} \mid \text{$f$ is continuous from $X$ to $Y$ with respect to $T$ and $U$}\}$.
\end{definition}
$B$ is the set of bounded functions from $X$ to $Y$ with respect to $d$ iff $B = \{f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y} \mid \text{$\img{f}{X}$ is bounded in $Y$ with respect to $d$}\}$.
LaTeX source
\begin{definition}
\label{bounded_function_set}
$B$ is the set of bounded functions from $X$ to $Y$ with respect to $d$ iff
$B = \{f\in\funs{X}{Y} \mid \text{$\img{f}{X}$ is bounded in $Y$ with respect to $d$}\}$.
\end{definition}
$A$ is the distance set of $f$ and $g$ on $X$ with respect to $d$ iff $A = \{d((\apply{f}{x},\apply{g}{x})) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\}$.
LaTeX source
\begin{definition}
\label{function_distance_set}
$A$ is the distance set of $f$ and $g$ on $X$ with respect to $d$ iff
$A = \{d((\apply{f}{x},\apply{g}{x})) \mid x\in X\}$.
\end{definition}
Assume $d$ is a metric on $Y$.
Suppose $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$.
Suppose $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$.
Assume $\img{g}{X}$ is bounded in $Y$ with respect to $d$.
Suppose $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((g(x),f(x))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
Then $\img{f}{X}$ is bounded in $Y$ with respect to $d$.
LaTeX source
\begin{lemma}
\label{pointwise_close_to_bounded_function_bounded}
Assume $d$ is a metric on $Y$.
Suppose $f\in\funs{X}{Y}$.
Suppose $g\in\funs{X}{Y}$.
Assume $\img{g}{X}$ is bounded in $Y$ with respect to $d$.
Suppose $\delta\in\reals$.
Suppose for all $x\in X$ we have $d((g(x),f(x))) \leq \delta$.
Then $\img{f}{X}$ is bounded in $Y$ with respect to $d$.
\end{lemma}
Proof
Take $M\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that for all $z_1,z_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{g}{X}$ we have $d((z_1,z_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ by Definition 187.
Claim: For all $y_1,y_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{f}{X}$ we have $d((y_1,y_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + (M + \class{latex-symbol-tip latex-symbol-id-delta}{\delta})$.
Fix $y_1$.
Fix $y_2$ such that $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{f}{X}$ and $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{f}{X}$.
Take $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $(x_1,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} f$ by Proposition 235.
Take $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $(x_2,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} f$ by Proposition 235.
$f(x_1) = y_1$ and $f(x_2) = y_2$ by Proposition 346, Proposition 356.
$d((g(x_1),y_1)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $d((g(x_2),y_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1, Lemma 543.
$g(x_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $g(x_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Proposition 361.
$(g(x_1),y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $(g(x_2),y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $(y_1,g(x_1))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $(g(x_1),y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $(g(x_1),g(x_2))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $(y_1,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Proposition 115.
$d((y_1,g(x_1))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 177, Definition 179, Lemma 542.
$g(x_1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{g}{X}$ and $g(x_2)\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{g}{X}$ by Proposition 61, Proposition 356, Proposition 359, Proposition 364.
$d((g(x_1),g(x_2))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ by Definition 187.
$d((y_1,y_2))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((y_1,g(x_1)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((g(x_1),y_2))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((g(x_1),g(x_2)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((g(x_2),y_2))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
$d((y_1,y_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((y_1,g(x_1))) + d((g(x_1),y_2))$ by Definition 178, Definition 179.
$d((g(x_1),y_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((g(x_1),g(x_2))) + d((g(x_2),y_2))$ by Definition 178, Definition 179.
$M + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + (M + \class{latex-symbol-tip latex-symbol-id-delta}{\delta})\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$d((y_1,g(x_1))) + d((g(x_1),y_2))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((g(x_1),g(x_2))) + d((g(x_2),y_2))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((y_1,g(x_1))) + (d((g(x_1),g(x_2))) + d((g(x_2),y_2)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((y_1,g(x_1))) + (M + \class{latex-symbol-tip latex-symbol-id-delta}{\delta})\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $M + d((g(x_2),y_2))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$d((g(x_1),y_2)) + d((y_1,g(x_1))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (d((g(x_1),g(x_2))) + d((g(x_2),y_2))) + d((y_1,g(x_1)))$ by Lemma 24.
$d((y_1,g(x_1))) + d((g(x_1),y_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((y_1,g(x_1))) + (d((g(x_1),g(x_2))) + d((g(x_2),y_2)))$ by Axiom 16.
$d((g(x_1),g(x_2))) + d((g(x_2),y_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M + d((g(x_2),y_2))$ by Lemma 24.
$d((g(x_2),y_2)) + M \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + M$ by Lemma 24.
$M + d((g(x_2),y_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 16.
$d((g(x_1),g(x_2))) + d((g(x_2),y_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 23.
$(d((g(x_1),g(x_2))) + d((g(x_2),y_2))) + d((y_1,g(x_1))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (M + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}) + d((y_1,g(x_1)))$ by Lemma 24.
$d((y_1,g(x_1))) + (d((g(x_1),g(x_2))) + d((g(x_2),y_2))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((y_1,g(x_1))) + (M + \class{latex-symbol-tip latex-symbol-id-delta}{\delta})$ by Axiom 16.
$d((y_1,g(x_1))) + (M + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + (M + \class{latex-symbol-tip latex-symbol-id-delta}{\delta})$ by Lemma 24.
$d((y_1,g(x_1))) + (d((g(x_1),g(x_2))) + d((g(x_2),y_2))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + (M + \class{latex-symbol-tip latex-symbol-id-delta}{\delta})$ by Lemma 23.
$d((y_1,y_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + (M + \class{latex-symbol-tip latex-symbol-id-delta}{\delta})$ by Lemma 23.
$\img{f}{X}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\ran{f}$ and $\ran{f}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ by Definition 1, Proposition 237, Proposition 284, Proposition 357.
$\img{f}{X}$ is bounded in $Y$ with respect to $d$ by Axiom 13, Definition 187, Proposition 6.
LaTeX source
\begin{proof}
Take $M\in\reals$ such that for all $z_1,z_2\in\img{g}{X}$ we have $d((z_1,z_2)) \leq M$
by \cref{metric_bounded}.
Show that for all $y_1,y_2\in\img{f}{X}$ we have $d((y_1,y_2)) \leq \delta + (M + \delta)$.
\begin{subproof}
Fix $y_1$.
Fix $y_2$ such that $y_1\in\img{f}{X}$ and $y_2\in\img{f}{X}$.
Take $x_1\in X$ such that $(x_1,y_1)\in f$ by \cref{img_iff}.
Take $x_2\in X$ such that $(x_2,y_2)\in f$ by \cref{img_iff}.
$f(x_1) = y_1$ and $f(x_2) = y_2$ by \cref{function_apply_intro,funs_is_function}.
$d((g(x_1),y_1)) \leq \delta$ and $d((g(x_2),y_2)) \leq \delta$
by \cref{subseteq,real_leq_subst_right_local}.
$g(x_1)\in Y$ and $g(x_2)\in Y$ and $y_1\in Y$ and $y_2\in Y$ by \cref{funs_type_apply}.
$(g(x_1),y_1)\in Y\times Y$ and $(g(x_2),y_2)\in Y\times Y$ and
$(y_1,g(x_1))\in Y\times Y$ and $(g(x_1),y_2)\in Y\times Y$ and
$(g(x_1),g(x_2))\in Y\times Y$ and $(y_1,y_2)\in Y\times Y$
by \cref{times_tuple_intro}.
$d((y_1,g(x_1))) \leq \delta$ by \cref{metric_on,metric_symmetric,real_leq_subst_left_local}.
$g(x_1)\in\img{g}{X}$ and $g(x_2)\in\img{g}{X}$ by \cref{funs_is_function,funs_elim,inter_intro,img_of_function_intro}.
$d((g(x_1),g(x_2))) \leq M$ by \cref{metric_bounded}.
$d((y_1,y_2))\in\reals$ and $d((y_1,g(x_1)))\in\reals$ and
$d((g(x_1),y_2))\in\reals$ and $d((g(x_1),g(x_2)))\in\reals$ and
$d((g(x_2),y_2))\in\reals$ by \cref{metric_on,funs_type_apply}.
$d((y_1,y_2)) \leq d((y_1,g(x_1))) + d((g(x_1),y_2))$
by \cref{metric_on,metric_triangle_inequality}.
$d((g(x_1),y_2)) \leq d((g(x_1),g(x_2))) + d((g(x_2),y_2))$
by \cref{metric_on,metric_triangle_inequality}.
$M + \delta\in\reals$ and $\delta + (M + \delta)\in\reals$ by \cref{real_add_closed}.
$d((y_1,g(x_1))) + d((g(x_1),y_2))\in\reals$ and
$d((g(x_1),g(x_2))) + d((g(x_2),y_2))\in\reals$ and
$d((y_1,g(x_1))) + (d((g(x_1),g(x_2))) + d((g(x_2),y_2)))\in\reals$ and
$d((y_1,g(x_1))) + (M + \delta)\in\reals$ and
$M + d((g(x_2),y_2))\in\reals$ by \cref{real_add_closed}.
$d((g(x_1),y_2)) + d((y_1,g(x_1))) \leq
(d((g(x_1),g(x_2))) + d((g(x_2),y_2))) + d((y_1,g(x_1)))$
by \cref{real_leq_add}.
$d((y_1,g(x_1))) + d((g(x_1),y_2)) \leq
d((y_1,g(x_1))) + (d((g(x_1),g(x_2))) + d((g(x_2),y_2)))$
by \cref{real_add_comm}.
$d((g(x_1),g(x_2))) + d((g(x_2),y_2)) \leq M + d((g(x_2),y_2))$
by \cref{real_leq_add}.
$d((g(x_2),y_2)) + M \leq \delta + M$ by \cref{real_leq_add}.
$M + d((g(x_2),y_2)) \leq M + \delta$ by \cref{real_add_comm}.
$d((g(x_1),g(x_2))) + d((g(x_2),y_2)) \leq M + \delta$ by \cref{real_leq_trans}.
$(d((g(x_1),g(x_2))) + d((g(x_2),y_2))) + d((y_1,g(x_1))) \leq
(M + \delta) + d((y_1,g(x_1)))$ by \cref{real_leq_add}.
$d((y_1,g(x_1))) + (d((g(x_1),g(x_2))) + d((g(x_2),y_2))) \leq
d((y_1,g(x_1))) + (M + \delta)$ by \cref{real_add_comm}.
$d((y_1,g(x_1))) + (M + \delta) \leq \delta + (M + \delta)$ by \cref{real_leq_add}.
$d((y_1,g(x_1))) + (d((g(x_1),g(x_2))) + d((g(x_2),y_2))) \leq
\delta + (M + \delta)$ by \cref{real_leq_trans}.
$d((y_1,y_2)) \leq \delta + (M + \delta)$ by \cref{real_leq_trans}.
\end{subproof}
$\img{f}{X}\subseteq\ran{f}$ and $\ran{f}\subseteq Y$ by \cref{img_subseteq_ran,funs_subseteq_rels,subseteq,rels_ran_subseteq}.
$\img{f}{X}$ is bounded in $Y$ with respect to $d$ by \cref{metric_bounded,subseteq_transitive,real_add_closed}.
\end{proof}
Assume $T$ is a topology on $X$.
Assume $d$ is a metric on $Y$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Then $C$ is closed in $\funs{X}{Y}$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{X}{Y}}$.
LaTeX source
\begin{theorem}
\label{continuous_function_space_closed_uniform}
Assume $T$ is a topology on $X$.
Assume $d$ is a metric on $Y$.
Assume $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Then $C$ is closed in $\funs{X}{Y}$ with respect to $\metricTopology{\rho}{\funs{X}{Y}}$.
\end{theorem}
Proof
Let $F = \funs{X}{Y}$.
Let $e = \boundedMetric{d}$.
$e$ is a metric on $Y$ by Theorem 21.
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $F$ by Definition 344.
$\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ is a topology on $F$ by Definition 115, Definition 182, Lemma 76, Lemma 194.
$F$ is metrizable with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ by Definition 185.
$C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} F$ by Definition 1, Definition 345.
Claim: For all $f$ if $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{C}{F}{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}}$ then $f\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.
$\closure{C}{F}{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Definition 1.
$C$ is closed in $F$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ by Definition 1, Lemma 144, Lemma 146, Proposition 3.
LaTeX source
\begin{proof}
Let $F = \funs{X}{Y}$.
Let $e = \boundedMetric{d}$.
$e$ is a metric on $Y$ by \cref{bounded_metric_is_metric}.
$\rho$ is a metric on $F$ by \cref{uniform_metric_on_function_space}.
$\metricTopology{\rho}{F}$ is a topology on $F$
by \cref{metric_basis_is_basis,basis_topology_is_topology,metric_topology,basis_for_topology}.
$F$ is metrizable with respect to $\metricTopology{\rho}{F}$ by \cref{metrizable}.
$C\subseteq F$ by \cref{continuous_function_set,subseteq}.
Show that for all $f$ if $f\in\closure{C}{F}{\metricTopology{\rho}{F}}$ then $f\in C$.
\begin{subproof}
Follows by \cref{closure,subseteq,closure_implies_sequence_metrizable,sequence_in,funs_weaken_codom,uniform_metric_convergence_uniform,bounded_metric_topology,funs_type_apply,continuous_function_set,continuous_eq_codomain,uniform_limit_theorem}.
\end{subproof}
$\closure{C}{F}{\metricTopology{\rho}{F}}\subseteq C$ by \cref{subseteq}.
$C$ is closed in $F$ with respect to $\metricTopology{\rho}{F}$ by
\cref{subseteq,subseteq_closure,subseteq_antisymmetric,closure_closed_in}.
\end{proof}
Assume $d$ is a metric on $Y$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $B$ is the set of bounded functions from $X$ to $Y$ with respect to $d$.
Then $B$ is closed in $\funs{X}{Y}$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{X}{Y}}$.
LaTeX source
\begin{theorem}
\label{bounded_function_space_closed_uniform}
Assume $d$ is a metric on $Y$.
Assume $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $B$ is the set of bounded functions from $X$ to $Y$ with respect to $d$.
Then $B$ is closed in $\funs{X}{Y}$ with respect to $\metricTopology{\rho}{\funs{X}{Y}}$.
\end{theorem}
Proof
Let $F = \funs{X}{Y}$.
Let $e = \boundedMetric{d}$.
$e$ is a metric on $Y$ by Theorem 21.
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $F$ by Definition 344.
$\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ is a topology on $F$ by Definition 115, Definition 182, Lemma 76, Lemma 194.
$F$ is metrizable with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ by Definition 185.
$B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} F$ by Definition 1, Definition 346.
Claim: For all $f$ if $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{B}{F}{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}}$ then $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Fix $f$.
Assume $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{B}{F}{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}}$.
$f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Definition 1, Definition 151.
Take $s$ such that $s$ is a sequence in $B$ and $s$ converges to $f$ in $F$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ by Lemma 273.
$s$ converges uniformly to $f$ from $X$ to $Y$ with respect to $e$ by Definition 158, Lemma 675, Proposition 360.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $e((\apply{\apply{s}{n}}{x}, f(x))) < 1$ by Axiom 41, Axiom 42, Definition 1, Definition 216, Proposition 462.
$\apply{s}{N}\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Definition 1, Definition 158, Proposition 361.
$\img{\apply{s}{N}}{X}$ is bounded in $Y$ with respect to $d$ by Definition 158, Definition 346, Proposition 361.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((\apply{\apply{s}{N}}{x}, f(x))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ by Axiom 41, Axiom 42, Definition 1, Lemma 82, Lemma 205, Lemma 231, Proposition 115, Proposition 361.
$\img{f}{X}$ is bounded in $Y$ with respect to $d$ by Lemma 678.
$f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Definition 346.
$\closure{B}{F}{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B$ by Definition 1.
$B$ is closed in $F$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ by Definition 1, Lemma 144, Lemma 146, Proposition 3.
LaTeX source
\begin{proof}
Let $F = \funs{X}{Y}$.
Let $e = \boundedMetric{d}$.
$e$ is a metric on $Y$ by \cref{bounded_metric_is_metric}.
$\rho$ is a metric on $F$ by \cref{uniform_metric_on_function_space}.
$\metricTopology{\rho}{F}$ is a topology on $F$
by \cref{metric_basis_is_basis,basis_topology_is_topology,metric_topology,basis_for_topology}.
$F$ is metrizable with respect to $\metricTopology{\rho}{F}$ by \cref{metrizable}.
$B\subseteq F$ by \cref{bounded_function_set,subseteq}.
Show that for all $f$ if $f\in\closure{B}{F}{\metricTopology{\rho}{F}}$ then $f\in B$.
\begin{subproof}
Fix $f$.
Assume $f\in\closure{B}{F}{\metricTopology{\rho}{F}}$.
$f\in F$ by \cref{closure,subseteq}.
Take $s$ such that
$s$ is a sequence in $B$ and
$s$ converges to $f$ in $F$ with respect to $\metricTopology{\rho}{F}$
by \cref{closure_implies_sequence_metrizable}.
$s$ converges uniformly to $f$ from $X$ to $Y$ with respect to $e$
by \cref{sequence_in,funs_weaken_codom,uniform_metric_convergence_uniform}.
Take $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then
for all $x\in X$ we have $e((\apply{\apply{s}{n}}{x}, f(x))) < 1$
by \cref{uniform_converges_to,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_zero_lt_one}.
$\apply{s}{N}\in F$ by \cref{sequence_in,funs_type_apply,subseteq}.
$\img{\apply{s}{N}}{X}$ is bounded in $Y$ with respect to $d$
by \cref{sequence_in,funs_type_apply,bounded_function_set}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
For all $x\in X$ we have $d((\apply{\apply{s}{N}}{x}, f(x))) \leq 1$
by \cref{subseteq,funs_type_apply,times_tuple_intro,bounded_metric_apply_value_lt_one,real_lt_subst_left,real_lt_imp_leq,real_naturals_subset_reals,real_one_in_naturals}.
$\img{f}{X}$ is bounded in $Y$ with respect to $d$
by \cref{pointwise_close_to_bounded_function_bounded}.
$f\in B$ by \cref{bounded_function_set}.
\end{subproof}
$\closure{B}{F}{\metricTopology{\rho}{F}}\subseteq B$ by \cref{subseteq}.
$B$ is closed in $F$ with respect to $\metricTopology{\rho}{F}$ by
\cref{subseteq,subseteq_closure,subseteq_antisymmetric,closure_closed_in}.
\end{proof}
Assume $d$ is a metric on $X$.
Assume $X$ is complete with respect to $d$.
Assume $A$ is closed in $X$ with respect to $\metricTopology{d}{X}$.
Let $e = \restrl{d}{A\class{latex-symbol-tip latex-symbol-id-times}{\times} A}$.
Then $A$ is complete with respect to $e$.
LaTeX source
\begin{lemma}
\label{closed_subset_complete_restricted_metric}
Assume $d$ is a metric on $X$.
Assume $X$ is complete with respect to $d$.
Assume $A$ is closed in $X$ with respect to $\metricTopology{d}{X}$.
Let $e = \restrl{d}{A\times A}$.
Then $A$ is complete with respect to $e$.
\end{lemma}
Proof
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 1, Definition 149.
$d\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} X}{\reals}$ and $d$ is a function and $d$ is a relation and $\dom{d} = X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Definition 179, Proposition 355, Proposition 359.
$A\class{latex-symbol-tip latex-symbol-id-times}{\times} A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Proposition 6, Proposition 143, Proposition 144.
$e$ is a function by Proposition 383.
$\dom{e} = A\class{latex-symbol-tip latex-symbol-id-times}{\times} A$ by Axiom 6, Definition 1, Proposition 3, Proposition 61, Proposition 269, Corollary 3.
For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{e}$ we have $e(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 6, Definition 1, Proposition 62, Proposition 361, Proposition 384, Corollary 3.
$e\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{A\class{latex-symbol-tip latex-symbol-id-times}{\times} A}{\reals}$ by Proposition 358.
Claim: $e$ is nonnegative on $A$.
Follows by Axiom 6, Definition 1, Definition 175, Definition 179, Proposition 115, Proposition 359, Proposition 384.
Claim: $e$ is zero-characterized on $A$.
Follows by Axiom 6, Definition 1, Definition 176, Definition 179, Proposition 115, Proposition 359, Proposition 384.
Claim: $e$ is symmetric on $A$.
Follows by Axiom 6, Definition 1, Definition 177, Definition 179, Proposition 115, Proposition 359, Proposition 384.
Claim: $e$ satisfies the triangle inequality on $A$.
Follows by Axiom 6, Definition 1, Definition 178, Definition 179, Proposition 115, Proposition 359, Proposition 384.
$e$ is a metric on $A$ by Definition 179.
Claim: For all $s$ if $s$ is a Cauchy sequence in $A$ with respect to $e$ then there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $s$ converges to $x$ in $A$ with respect to $\metricTopology{e}{A}$.
Fix $s$ such that $s$ is a Cauchy sequence in $A$ with respect to $e$.
$s$ is a sequence in $A$ by Definition 342.
For all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $e((s(n),s(m))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 342.
$s$ is a sequence in $X$ by Definition 1, Definition 158, Definition 342, Proposition 360.
For all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $d((s(n),s(m))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 1, Definition 158, Definition 342, Lemma 82, Proposition 115, Proposition 361, Proposition 384.
$s$ is a Cauchy sequence in $X$ with respect to $d$ by Definition 342.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $s$ converges to $x$ in $X$ with respect to $\metricTopology{d}{X}$ by Definition 343.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 1, Definition 115, Definition 182, Lemma 76, Lemma 147, Lemma 194, Lemma 272, Proposition 2.
Claim: For all $U$ if $U$ is a neighborhood of $x$ in $A$ with respect to $\metricTopology{e}{A}$ then there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Fix $U$ such that $U$ is a neighborhood of $x$ in $A$ with respect to $\metricTopology{e}{A}$.
Take $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ and $\metricBall{e}{A}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 1, Definition 101, Definition 103, Definition 153, Lemma 195, Proposition 156.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 159, Lemma 673.
Claim: For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Follows by Definition 1, Definition 158, Definition 180, Lemma 82, Proposition 115, Proposition 361, Proposition 384.
$s$ converges to $x$ in $A$ with respect to $\metricTopology{e}{A}$ by Definition 159.
Follows by definition.
$A$ is complete with respect to $e$ by Definition 343.
LaTeX source
\begin{proof}
$A\subseteq X$ by \cref{closed_in,subseteq}.
$d\in\funs{X\times X}{\reals}$ and $d$ is a function and $d$ is a relation and $\dom{d} = X\times X$
by \cref{metric_on,funs_elim,funs_is_relation}.
$A\times A\subseteq X\times X$
by \cref{times_subseteq_left,times_subseteq_right,subseteq_transitive}.
$e$ is a function by \cref{restrl_of_function_is_function}.
$\dom{e} = A\times A$ by \cref{dom_of_restrl_eq_inter,pair_eq_iff,subseteq,inter_intro,restrl_dom,subseteq_antisymmetric}.
For all $p\in\dom{e}$ we have $e(p)\in\reals$
by \cref{inter_elim_left,dom_of_restrl_eq_inter,funs_type_apply,restrl_of_function_apply,subseteq,pair_eq_iff}.
$e\in\funs{A\times A}{\reals}$ by \cref{funs_intro}.
Show that $e$ is nonnegative on $A$.
\begin{subproof}
Follows by \cref{subseteq,times_tuple_intro,funs_elim,restrl_of_function_apply,metric_on,metric_nonnegative,pair_eq_iff}.
\end{subproof}
Show that $e$ is zero-characterized on $A$.
\begin{subproof}
Follows by \cref{subseteq,times_tuple_intro,funs_elim,restrl_of_function_apply,metric_on,metric_zero_characterization,pair_eq_iff}.
\end{subproof}
Show that $e$ is symmetric on $A$.
\begin{subproof}
Follows by \cref{subseteq,times_tuple_intro,funs_elim,restrl_of_function_apply,metric_on,metric_symmetric,pair_eq_iff}.
\end{subproof}
Show that $e$ satisfies the triangle inequality on $A$.
\begin{subproof}
Follows by \cref{subseteq,times_tuple_intro,funs_elim,restrl_of_function_apply,metric_on,metric_triangle_inequality,pair_eq_iff}.
\end{subproof}
$e$ is a metric on $A$ by \cref{metric_on}.
Show that for all $s$ if
$s$ is a Cauchy sequence in $A$ with respect to $e$
then there exists $x\in A$ such that
$s$ converges to $x$ in $A$ with respect to $\metricTopology{e}{A}$.
\begin{subproof}
Fix $s$ such that $s$ is a Cauchy sequence in $A$ with respect to $e$.
$s$ is a sequence in $A$ by \cref{cauchy_sequence}.
For all $\epsilon\in\reals$ such that $0 < \epsilon$ there exists $N\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$e((s(n),s(m))) < \epsilon$ by \cref{cauchy_sequence}.
$s$ is a sequence in $X$ by \cref{cauchy_sequence,sequence_in,funs_weaken_codom,subseteq}.
For all $\epsilon\in\reals$ such that $0 < \epsilon$ there exists $N\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$d((s(n),s(m))) < \epsilon$
by \cref{cauchy_sequence,sequence_in,funs_type_apply,times_tuple_intro,restrl_of_function_apply,subseteq,real_lt_subst_left}.
$s$ is a Cauchy sequence in $X$ with respect to $d$ by \cref{cauchy_sequence}.
Take $x\in X$ such that
$s$ converges to $x$ in $X$ with respect to $\metricTopology{d}{X}$
by \cref{complete_metric_space}.
$x\in A$ by \cref{metric_basis_is_basis,basis_topology_is_topology,metric_topology,basis_for_topology,sequence_implies_closure,closure_subseteq_closed,subseteq_refl,subseteq}.
Show that for all $U$ if $U$ is a neighborhood of $x$ in $A$ with respect to $\metricTopology{e}{A}$ then
there exists $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in U$.
\begin{subproof}
Fix $U$ such that $U$ is a neighborhood of $x$ in $A$ with respect to $\metricTopology{e}{A}$.
Take $\epsilon\in\reals$ such that $0 < \epsilon$ and $\metricBall{e}{A}{x}{\epsilon}\subseteq U$
by \cref{neighborhood,open_in,topology_on,subseteq,powerset_elim,metric_open_iff}.
Take $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then
$s(n)\in\metricBall{d}{X}{x}{\epsilon}$ by \cref{converges_to,metric_ball_neighborhood_metric_topology}.
Show that for all $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in U$.
\begin{subproof}
Follows by \cref{sequence_in,metric_ball,funs_type_apply,times_tuple_intro,restrl_of_function_apply,subseteq,real_lt_subst_left}.
\end{subproof}
\end{subproof}
$s$ converges to $x$ in $A$ with respect to $\metricTopology{e}{A}$ by \cref{converges_to}.
Follows by definition.
\end{subproof}
$A$ is complete with respect to $e$ by \cref{complete_metric_space}.
\end{proof}
Assume $T$ is a topology on $X$.
Assume $d$ is a metric on $Y$.
Assume $Y$ is complete with respect to $d$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Then $C$ is complete with respect to $\restrl{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{C\class{latex-symbol-tip latex-symbol-id-times}{\times} C}$.
LaTeX source
\begin{theorem}
\label{continuous_function_space_complete_uniform}
Assume $T$ is a topology on $X$.
Assume $d$ is a metric on $Y$.
Assume $Y$ is complete with respect to $d$.
Assume $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Then $C$ is complete with respect to $\restrl{\rho}{C\times C}$.
\end{theorem}
Proof
Follows by Definition 344, Lemma 679, Theorem 110, Theorem 111.
LaTeX source
\begin{proof}
Follows by \cref{uniform_metric_on_function_space,continuous_function_space_closed_uniform,uniform_function_space_complete,closed_subset_complete_restricted_metric}.
\end{proof}
Assume $d$ is a metric on $Y$.
Assume $Y$ is complete with respect to $d$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $B$ is the set of bounded functions from $X$ to $Y$ with respect to $d$.
Then $B$ is complete with respect to $\restrl{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{B\class{latex-symbol-tip latex-symbol-id-times}{\times} B}$.
LaTeX source
\begin{theorem}
\label{bounded_function_space_complete_uniform}
Assume $d$ is a metric on $Y$.
Assume $Y$ is complete with respect to $d$.
Assume $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $B$ is the set of bounded functions from $X$ to $Y$ with respect to $d$.
Then $B$ is complete with respect to $\restrl{\rho}{B\times B}$.
\end{theorem}
Proof
Follows by Definition 344, Lemma 679, Theorem 110, Theorem 112.
LaTeX source
\begin{proof}
Follows by \cref{uniform_metric_on_function_space,bounded_function_space_closed_uniform,uniform_function_space_complete,closed_subset_complete_restricted_metric}.
\end{proof}
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the sup metric on $B$ with respect to $X$ and $Y$ and $d$ iff $d$ is a metric on $Y$ and $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\funs{X}{Y}$ and for all $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ there exists $M\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that for all $x_1,x_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((\apply{f}{x_1},\apply{f}{x_2})) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $B$ and for all $f,g\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ there exists $A$ such that $A$ is the distance set of $f$ and $g$ on $X$ with respect to $d$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ is a supremum of $A$.
LaTeX source
\begin{definition}
\label{sup_metric_on_bounded_function_space}
$\rho$ is the sup metric on $B$ with respect to $X$ and $Y$ and $d$ iff
$d$ is a metric on $Y$ and
$B\subseteq\funs{X}{Y}$ and
for all $f\in B$ there exists $M\in\reals$ such that
for all $x_1,x_2\in X$ we have $d((\apply{f}{x_1},\apply{f}{x_2})) \leq M$ and
$\rho$ is a metric on $B$ and
for all $f,g\in B$ there exists $A$ such that
$A$ is the distance set of $f$ and $g$ on $X$ with respect to $d$ and
$\rho((f,g))$ is a supremum of $A$.
\end{definition}
$h$ is an isometric embedding from $X$ to $Y$ with respect to $d_X$ and $d_Y$ iff $d_X$ is a metric on $X$ and $d_Y$ is a metric on $Y$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ and for all $a,b\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d_Y((h(a),h(b))) = d_X((a,b))$.
LaTeX source
\begin{definition}
\label{isometric_embedding}
$h$ is an isometric embedding from $X$ to $Y$ with respect to $d_X$ and $d_Y$ iff
$d_X$ is a metric on $X$ and
$d_Y$ is a metric on $Y$ and
$h\in\funs{X}{Y}$ and
for all $a,b\in X$ we have $d_Y((h(a),h(b))) = d_X((a,b))$.
\end{definition}
Assume $X$ is inhabited.
Assume $B$ is the set of bounded functions from $X$ to $\reals$ with respect to $\standardMetricR$.
Suppose $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Suppose $g\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Then there exist $A, p$ such that $A$ is the distance set of $f$ and $g$ on $X$ with respect to $\standardMetricR$ and $p$ is a supremum of $A$.
LaTeX source
\begin{lemma}
\label{bounded_reals_distance_set_has_supremum}
Assume $X$ is inhabited.
Assume $B$ is the set of bounded functions from $X$ to $\reals$ with respect to $\standardMetricR$.
Suppose $f\in B$.
Suppose $g\in B$.
Then there exist $A, p$ such that
$A$ is the distance set of $f$ and $g$ on $X$ with respect to $\standardMetricR$ and
$p$ is a supremum of $A$.
\end{lemma}
Proof
$\standardMetricR$ is a metric on $\reals$ by Lemma 198.
$f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{\reals}$ and $\img{f}{X}$ is bounded in $\reals$ with respect to $\standardMetricR$ by Definition 346.
$g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{\reals}$ and $\img{g}{X}$ is bounded in $\reals$ with respect to $\standardMetricR$ by Definition 346.
Take $x_0$ such that $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $A = \{\apply{\standardMetricR}{(f(x),g(x))} \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\}$.
$A$ is the distance set of $f$ and $g$ on $X$ with respect to $\standardMetricR$ by Definition 347.
For all $r$ such that $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 6, Definition 179, Definition 347, Lemma 198, Proposition 115, Proposition 361.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1.
$f$ is a function and $\dom{f} = X$ and $g$ is a function and $\dom{g} = X$ by Proposition 356, Proposition 359.
$x_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{f}\inter X$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}\inter X$ by Proposition 61, Proposition 359.
$f(x_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{f}{X}$ and $g(x_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{g}{X}$ by Proposition 364.
Take $M_f\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that for all $u,v\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{f}{X}$ we have $\apply{\standardMetricR}{(u,v)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_f$ by Definition 187.
Take $M_g\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that for all $u,v\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{g}{X}$ we have $\apply{\standardMetricR}{(u,v)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_g$ by Definition 187.
$f(x_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $g(x_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 361.
Let $c = \apply{\standardMetricR}{(f(x_0),g(x_0))}$.
$A\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Definition 347, Lemma 323, Proposition 10, Proposition 115, Proposition 361.
Let $M = M_f + (c + M_g)$.
$c + M_g\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $M\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Definition 179, Lemma 198, Proposition 361.
Claim: For all $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $r \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$.
Fix $r$ such that $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $r = \apply{\standardMetricR}{(f(x),g(x))}$ by Definition 347.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{f}\inter X$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}\inter X$ by Proposition 61.
$f(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{f}{X}$ and $f(x_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{f}{X}$ and $g(x_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{g}{X}$ and $g(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{g}{X}$ by Proposition 364.
Let $u = \apply{\standardMetricR}{(f(x),f(x_0))}$.
Let $v = \apply{\standardMetricR}{(f(x_0),g(x))}$.
Let $w = \apply{\standardMetricR}{(g(x_0),g(x))}$.
$u \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_f$ and $w \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_g$ by Definition 187.
$f(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $f(x_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $g(x_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $g(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 361.
$(f(x),f(x_0))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ and $(f(x_0),g(x))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ and $(g(x_0),g(x))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ and $(f(x),g(x))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ by Proposition 115.
$u\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $v\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $w\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\apply{\standardMetricR}{(f(x),g(x))}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Lemma 198, Proposition 361.
$\apply{\standardMetricR}{(f(x),g(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} u + v$ by Definition 178, Definition 179, Lemma 198.
$v \class{latex-symbol-tip latex-symbol-id-leq}{\leq} c + w$ by Definition 178, Definition 179, Lemma 198.
$c + w\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$v + u \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (c + w) + u$ by Lemma 24.
$u + v \class{latex-symbol-tip latex-symbol-id-leq}{\leq} u + (c + w)$ by Axiom 16.
$u + (c + w) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_f + (c + w)$ by Lemma 24.
$w + c \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_g + c$ by Lemma 24.
$c + w \class{latex-symbol-tip latex-symbol-id-leq}{\leq} c + M_g$ by Axiom 16.
$(c + w) + M_f \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (c + M_g) + M_f$ by Lemma 24.
$M_f + (c + w) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_f + (c + M_g)$ by Axiom 16.
$u + (c + w)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $M_f + (c + w)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $M_f + (c + M_g)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$u + (c + w) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M_f + (c + M_g)$ by Lemma 23.
$u + (c + w) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$.
$u + v\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$u + v \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ by Lemma 23.
$\apply{\standardMetricR}{(f(x),g(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ by Lemma 23.
$r \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ by Axiom 6.
$A$ is bounded above by Definition 66, Definition 67.
Take $p$ such that $p$ is a supremum of $A$ by Axiom 40.
Follows by definition.
LaTeX source
\begin{proof}
$\standardMetricR$ is a metric on $\reals$ by \cref{standard_metric_is_metric}.
$f\in\funs{X}{\reals}$ and $\img{f}{X}$ is bounded in $\reals$ with respect to $\standardMetricR$
by \cref{bounded_function_set}.
$g\in\funs{X}{\reals}$ and $\img{g}{X}$ is bounded in $\reals$ with respect to $\standardMetricR$
by \cref{bounded_function_set}.
Take $x_0$ such that $x_0\in X$.
Let $A = \{\apply{\standardMetricR}{(f(x),g(x))} \mid x\in X\}$.
$A$ is the distance set of $f$ and $g$ on $X$ with respect to $\standardMetricR$
by \cref{function_distance_set}.
For all $r$ such that $r\in A$ we have $r\in\reals$
by \cref{function_distance_set,funs_type_apply,times_tuple_intro,standard_metric_is_metric,metric_on,pair_eq_iff}.
$A\subseteq\reals$ by \cref{subseteq}.
$f$ is a function and $\dom{f} = X$ and $g$ is a function and $\dom{g} = X$
by \cref{funs_is_function,funs_elim}.
$x_0\in\dom{f}\inter X$ and $x_0\in\dom{g}\inter X$ by \cref{funs_elim,inter_intro}.
$f(x_0)\in\img{f}{X}$ and $g(x_0)\in\img{g}{X}$ by \cref{img_of_function_intro}.
Take $M_f\in\reals$ such that for all $u,v\in\img{f}{X}$ we have $\apply{\standardMetricR}{(u,v)} \leq M_f$
by \cref{metric_bounded}.
Take $M_g\in\reals$ such that for all $u,v\in\img{g}{X}$ we have $\apply{\standardMetricR}{(u,v)} \leq M_g$
by \cref{metric_bounded}.
$f(x_0)\in\reals$ and $g(x_0)\in\reals$ by \cref{funs_type_apply}.
Let $c = \apply{\standardMetricR}{(f(x_0),g(x_0))}$.
$A\neq\emptyset$
by \cref{funs_type_apply,times_tuple_intro,function_distance_set,inhabited_nonempty,nonempty_inhabited}.
Let $M = M_f + (c + M_g)$.
$c + M_g\in\reals$ and $M\in\reals$
by \cref{standard_metric_is_metric,metric_on,funs_type_apply,real_add_closed}.
Show that for all $r\in A$ we have $r \leq M$.
\begin{subproof}
Fix $r$ such that $r\in A$.
Take $x\in X$ such that $r = \apply{\standardMetricR}{(f(x),g(x))}$ by \cref{function_distance_set}.
$x\in\dom{f}\inter X$ and $x\in\dom{g}\inter X$ by \cref{inter_intro}.
$f(x)\in\img{f}{X}$ and $f(x_0)\in\img{f}{X}$ and
$g(x_0)\in\img{g}{X}$ and $g(x)\in\img{g}{X}$ by \cref{img_of_function_intro}.
Let $u = \apply{\standardMetricR}{(f(x),f(x_0))}$.
Let $v = \apply{\standardMetricR}{(f(x_0),g(x))}$.
Let $w = \apply{\standardMetricR}{(g(x_0),g(x))}$.
$u \leq M_f$ and $w \leq M_g$ by \cref{metric_bounded}.
$f(x)\in\reals$ and $f(x_0)\in\reals$ and $g(x_0)\in\reals$ and $g(x)\in\reals$
by \cref{funs_type_apply}.
$(f(x),f(x_0))\in\reals\times\reals$ and
$(f(x_0),g(x))\in\reals\times\reals$ and
$(g(x_0),g(x))\in\reals\times\reals$ and
$(f(x),g(x))\in\reals\times\reals$ by \cref{times_tuple_intro}.
$u\in\reals$ and $v\in\reals$ and $w\in\reals$ and
$\apply{\standardMetricR}{(f(x),g(x))}\in\reals$ by \cref{standard_metric_is_metric,metric_on,funs_type_apply}.
$\apply{\standardMetricR}{(f(x),g(x))} \leq u + v$
by \cref{standard_metric_is_metric,metric_on,metric_triangle_inequality}.
$v \leq c + w$
by \cref{standard_metric_is_metric,metric_on,metric_triangle_inequality}.
$c + w\in\reals$ by \cref{real_add_closed}.
$v + u \leq (c + w) + u$ by \cref{real_leq_add}.
$u + v \leq u + (c + w)$ by \cref{real_add_comm}.
$u + (c + w) \leq M_f + (c + w)$
by \cref{real_leq_add}.
$w + c \leq M_g + c$ by \cref{real_leq_add}.
$c + w \leq c + M_g$ by \cref{real_add_comm}.
$(c + w) + M_f \leq (c + M_g) + M_f$ by \cref{real_leq_add}.
$M_f + (c + w) \leq M_f + (c + M_g)$ by \cref{real_add_comm}.
$u + (c + w)\in\reals$ and $M_f + (c + w)\in\reals$ and $M_f + (c + M_g)\in\reals$
by \cref{real_add_closed}.
$u + (c + w) \leq M_f + (c + M_g)$
by \cref{real_leq_trans}.
$u + (c + w) \leq M$.
$u + v\in\reals$ by \cref{real_add_closed}.
$u + v \leq M$
by \cref{real_leq_trans}.
$\apply{\standardMetricR}{(f(x),g(x))} \leq M$ by \cref{real_leq_trans}.
$r \leq M$ by \cref{pair_eq_iff}.
\end{subproof}
$A$ is bounded above by \cref{real_upper_bound,real_bounded_above}.
Take $p$ such that $p$ is a supremum of $A$ by \cref{real_completeness_axiom}.
Follows by definition.
\end{proof}
Assume $X$ is inhabited.
Assume $B$ is the set of bounded functions from $X$ to $\reals$ with respect to $\standardMetricR$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the sup metric on $B$ with respect to $X$ and $\reals$ and $\standardMetricR$.
Suppose $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Suppose $g\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then $\apply{\standardMetricR}{(f(x),g(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$.
LaTeX source
\begin{lemma}
\label{sup_metric_coordinate_leq}
Assume $X$ is inhabited.
Assume $B$ is the set of bounded functions from $X$ to $\reals$ with respect to $\standardMetricR$.
Assume $\rho$ is the sup metric on $B$ with respect to $X$ and $\reals$ and $\standardMetricR$.
Suppose $f\in B$.
Suppose $g\in B$.
Suppose $x\in X$.
Then $\apply{\standardMetricR}{(f(x),g(x))} \leq \rho((f,g))$.
\end{lemma}
Proof
Take $A$ such that $A$ is the distance set of $f$ and $g$ on $X$ with respect to $\standardMetricR$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ is a supremum of $A$ by Definition 348.
$\apply{\standardMetricR}{(f(x),g(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ by Definition 66, Definition 71, Definition 179, Definition 346, Definition 347, Definition 348, Lemma 198, Proposition 115, Proposition 361.
LaTeX source
\begin{proof}
Take $A$ such that
$A$ is the distance set of $f$ and $g$ on $X$ with respect to $\standardMetricR$ and
$\rho((f,g))$ is a supremum of $A$ by \cref{sup_metric_on_bounded_function_space}.
$\apply{\standardMetricR}{(f(x),g(x))} \leq \rho((f,g))$
by \cref{sup_metric_on_bounded_function_space,bounded_function_set,funs_type_apply,times_tuple_intro,function_distance_set,standard_metric_is_metric,metric_on,real_supremum,real_upper_bound}.
\end{proof}
Assume $X$ is inhabited.
Assume $B$ is the set of bounded functions from $X$ to $\reals$ with respect to $\standardMetricR$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the sup metric on $B$ with respect to $X$ and $\reals$ and $\standardMetricR$.
Suppose $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Suppose $g\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Suppose $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $\apply{\standardMetricR}{(f(x),g(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
Then $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
LaTeX source
\begin{lemma}
\label{sup_metric_leq_from_coordinate_bounds}
Assume $X$ is inhabited.
Assume $B$ is the set of bounded functions from $X$ to $\reals$ with respect to $\standardMetricR$.
Assume $\rho$ is the sup metric on $B$ with respect to $X$ and $\reals$ and $\standardMetricR$.
Suppose $f\in B$.
Suppose $g\in B$.
Suppose $\delta\in\reals$.
Suppose for all $x\in X$ we have $\apply{\standardMetricR}{(f(x),g(x))} \leq \delta$.
Then $\rho((f,g)) \leq \delta$.
\end{lemma}
Proof
Take $A$ such that $A$ is the distance set of $f$ and $g$ on $X$ with respect to $\standardMetricR$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ is a supremum of $A$ by Definition 348.
For all $r$ such that $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 6, Definition 179, Definition 346, Definition 347, Lemma 198, Proposition 115, Proposition 361.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ is an upper bound of $A$ by Axiom 6, Definition 66, Definition 347.
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 71.
LaTeX source
\begin{proof}
Take $A$ such that
$A$ is the distance set of $f$ and $g$ on $X$ with respect to $\standardMetricR$ and
$\rho((f,g))$ is a supremum of $A$ by \cref{sup_metric_on_bounded_function_space}.
For all $r$ such that $r\in A$ we have $r\in\reals$
by \cref{function_distance_set,bounded_function_set,funs_type_apply,times_tuple_intro,standard_metric_is_metric,metric_on,pair_eq_iff}.
$A\subseteq\reals$ by \cref{subseteq}.
$\delta$ is an upper bound of $A$ by \cref{function_distance_set,pair_eq_iff,real_upper_bound}.
$\rho((f,g)) \leq \delta$ by \cref{real_supremum}.
\end{proof}
Assume $X$ is inhabited.
Assume $B$ is the set of bounded functions from $X$ to $\reals$ with respect to $\standardMetricR$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the sup metric on $B$ with respect to $X$ and $\reals$ and $\standardMetricR$.
Suppose $s$ is a Cauchy sequence in $B$ with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $t = \{(n,\apply{\apply{s}{n}}{x}) \mid n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus\}$.
Then $t$ is a Cauchy sequence in $\reals$ with respect to $\standardMetricR$.
LaTeX source
\begin{lemma}
\label{sup_metric_cauchy_coordinate}
Assume $X$ is inhabited.
Assume $B$ is the set of bounded functions from $X$ to $\reals$ with respect to $\standardMetricR$.
Assume $\rho$ is the sup metric on $B$ with respect to $X$ and $\reals$ and $\standardMetricR$.
Suppose $s$ is a Cauchy sequence in $B$ with respect to $\rho$.
Suppose $x\in X$.
Let $t = \{(n,\apply{\apply{s}{n}}{x}) \mid n\in\naturalsPlus\}$.
Then $t$ is a Cauchy sequence in $\reals$ with respect to $\standardMetricR$.
\end{lemma}
Proof
$t$ is a function by Axiom 6, Definition 12, Definition 51.
$\dom{t} = \naturalsPlus$ by Axiom 6, Definition 1, Proposition 3, Proposition 199, Proposition 200.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{t}$ we have $t(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1, Definition 158, Definition 342, Definition 346, Proposition 346, Proposition 361.
$t$ is a sequence in $\reals$ by Definition 158, Proposition 358.
Claim: For all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ if $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ then there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $\apply{\standardMetricR}{(t(n),t(m))} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
$t$ is a Cauchy sequence in $\reals$ with respect to $\standardMetricR$ by Definition 342, Lemma 198.
LaTeX source
\begin{proof}
$t$ is a function by \cref{pair_eq_iff,relation,rightunique}.
$\dom{t} = \naturalsPlus$ by \cref{dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
For all $n\in\dom{t}$ we have $t(n)\in\reals$
by \cref{subseteq,cauchy_sequence,sequence_in,funs_type_apply,bounded_function_set,function_apply_intro}.
$t$ is a sequence in $\reals$ by \cref{funs_intro,sequence_in}.
Show that for all $\epsilon$ if $\epsilon\in\reals$ and $0 < \epsilon$ then
there exists $N\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$\apply{\standardMetricR}{(t(n),t(m))} < \epsilon$.
\begin{subproof}
Follows by \cref{cauchy_sequence,sequence_in,funs_type_apply,sup_metric_coordinate_leq,sup_metric_on_bounded_function_space,metric_on,times_tuple_intro,bounded_function_set,subseteq,standard_metric_is_metric,real_leq_lt_trans,function_apply_intro,real_lt_subst_left,real_lt_subst_right}.
\end{subproof}
$t$ is a Cauchy sequence in $\reals$ with respect to $\standardMetricR$ by \cref{standard_metric_is_metric,cauchy_sequence}.
\end{proof}
Assume $X$ is inhabited.
Assume $B$ is the set of bounded functions from $X$ to $\reals$ with respect to $\standardMetricR$.
Then there exists $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the sup metric on $B$ with respect to $X$ and $\reals$ and $\standardMetricR$ and $B$ is complete with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$.
LaTeX source
\begin{lemma}
\label{bounded_reals_function_space_complete_sup}
Assume $X$ is inhabited.
Assume $B$ is the set of bounded functions from $X$ to $\reals$ with respect to $\standardMetricR$.
Then there exists $\rho$ such that
$\rho$ is the sup metric on $B$ with respect to $X$ and $\reals$ and $\standardMetricR$ and
$B$ is complete with respect to $\rho$.
\end{lemma}
Proof
$\standardMetricR$ is a metric on $\reals$ by Lemma 198.
$B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\funs{X}{\reals}$ by Definition 1, Definition 346.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in}(B\class{latex-symbol-tip latex-symbol-id-times}{\times} B)\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals \mid \text{there exists $A$ such that $A$ is the distance set of $\fst{\fst{w}}$ and $\snd{\fst{w}}$ on $X$ with respect to $\standardMetricR$ and $\snd{w}$ is a supremum of $A$}\}$.
$R$ is a relation by Definition 1, Definition 12, Proposition 121.
For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} B\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ there exists $r$ such that $p\mathrel{R} r$ by Axiom 10, Axiom 11, Definition 7, Definition 12, Definition 66, Definition 71, Lemma 680, Proposition 115.
Take $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a function on $B\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ and for all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} B\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ we have $p\mathrel{R}\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p)$ by Axiom 54.
For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} B\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ we have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 54, Definition 1, Definition 12, Proposition 114.
Hence $\dom{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}} = B\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ by Axiom 54.
Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{B\class{latex-symbol-tip latex-symbol-id-times}{\times} B}{\reals}$ by Proposition 358.
For all $f,g$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ we have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$ by Axiom 10, Axiom 11, Axiom 17, Axiom 54, Definition 12, Definition 66, Definition 71, Definition 175, Definition 179, Definition 346, Definition 347, Lemma 23, Lemma 198, Proposition 115, Proposition 361.
Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is nonnegative on $B$ by Definition 175.
Claim: For all $f,g$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ we have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) = 0$ iff $f = g$.
Fix $f$.
Fix $g$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Claim: If $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) = 0$ then $f = g$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) = 0$.
We have $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{\reals}$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{\reals}$ by Definition 346.
$f$ is a function and $\dom{f} = X$ and $g$ is a function and $\dom{g} = X$ by Proposition 356, Proposition 359.
Let $p = (f,g)$.
Hence $(p,\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p))\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Axiom 54, Definition 12, Proposition 115.
Take $A$ such that $A$ is the distance set of $\fst{p}$ and $\snd{p}$ on $X$ with respect to $\standardMetricR$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p)$ is a supremum of $A$ by Axiom 10, Axiom 11, Definition 12.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $f(x) = g(x)$ by Axiom 10, Axiom 11, Axiom 17, Definition 66, Definition 71, Definition 175, Definition 176, Definition 179, Definition 347, Lemma 25, Lemma 198, Proposition 115, Proposition 361.
Therefore $f = g$ by Lemma 438.
Claim: If $f = g$ then $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) = 0$.
Assume $f = g$.
We have $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{\reals}$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{\reals}$ by Definition 346.
$f$ is a function and $\dom{f} = X$ and $g$ is a function and $\dom{g} = X$ by Proposition 356, Proposition 359.
Let $p = (f,g)$.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in} B\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ by Proposition 115.
Hence $(p,\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p))\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Axiom 54, Definition 12.
Take $A$ such that $A$ is the distance set of $\fst{p}$ and $\snd{p}$ on $X$ with respect to $\standardMetricR$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p)$ is a supremum of $A$ by Axiom 10, Axiom 11, Definition 12.
Claim: $0$ is an upper bound of $A$.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Axiom 10, Axiom 11, Definition 1, Definition 179, Definition 346, Definition 347, Lemma 198, Proposition 115, Proposition 361.
Claim: For all $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $r < 0$ or $r = 0$.
Fix $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $\apply{\standardMetricR}{(\apply{f}{x},\apply{g}{x})} = r$ by Axiom 10, Axiom 11, Definition 347.
$\apply{f}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\apply{g}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1, Proposition 361.
$\apply{f}{x} = \apply{g}{x}$ by Lemma 82.
$\apply{\standardMetricR}{(\apply{f}{x},\apply{g}{x})} = 0$ by Definition 176, Definition 179, Lemma 83, Lemma 198, Proposition 115.
Hence $r = 0$ by Lemma 82.
Thus $0$ is an upper bound of $A$ by Definition 66.
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p) < 0$ or $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p) = 0$ by Definition 71.
$0 < \class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p)$ or $0 = \class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p)$ by Definition 175, Lemma 82, Proposition 115.
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 361.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p) = 0$ by Axiom 17, Lemma 25.
Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) = 0$ by Lemma 82.
Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is zero-characterized on $B$ by Definition 176.
Claim: For all $f,g$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ we have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) = \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,f))$.
Fix $f$.
Fix $g$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Let $p = (f,g)$.
Let $q = (g,f)$.
We have $(p,\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p))\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ and $(q,\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(q))\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Axiom 54, Definition 12, Proposition 115.
Take $A$ such that $A$ is the distance set of $\fst{p}$ and $\snd{p}$ on $X$ with respect to $\standardMetricR$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p)$ is a supremum of $A$ by Axiom 10, Axiom 11, Definition 12.
Take $C$ such that $C$ is the distance set of $\fst{q}$ and $\snd{q}$ on $X$ with respect to $\standardMetricR$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(q)$ is a supremum of $C$ by Axiom 10, Axiom 11, Definition 12.
For all $r$ if $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ then $r\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Axiom 6, Axiom 10, Axiom 11, Definition 177, Definition 179, Definition 346, Definition 347, Lemma 198, Proposition 115, Proposition 361.
Thus $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Definition 1.
For all $r$ if $r\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ then $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 6, Axiom 10, Axiom 11, Definition 177, Definition 179, Definition 346, Definition 347, Lemma 198, Proposition 115, Proposition 361.
Hence $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Definition 1.
Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) = \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,f))$ by Proposition 3, Proposition 467.
Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is symmetric on $B$ by Definition 177.
Claim: For all $f,g,h$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ we have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,h))$.
Fix $f$.
Fix $g$.
Fix $h$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Let $p = (f,h)$.
Let $q = (f,g)$.
Let $s = (g,h)$.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in} B\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ and $q\class{latex-symbol-tip latex-symbol-id-in}{\in} B\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ and $s\class{latex-symbol-tip latex-symbol-id-in}{\in} B\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ by Proposition 115.
Hence $(p,\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p))\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ and $(q,\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(q))\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ and $(s,\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(s))\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Axiom 54, Definition 12.
Take $A$ such that $A$ is the distance set of $\fst{p}$ and $\snd{p}$ on $X$ with respect to $\standardMetricR$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p)$ is a supremum of $A$ by Axiom 10, Axiom 11, Definition 12.
Take $C$ such that $C$ is the distance set of $\fst{q}$ and $\snd{q}$ on $X$ with respect to $\standardMetricR$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(q)$ is a supremum of $C$ by Axiom 10, Axiom 11, Definition 12.
Take $D$ such that $D$ is the distance set of $\fst{s}$ and $\snd{s}$ on $X$ with respect to $\standardMetricR$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(s)$ is a supremum of $D$ by Axiom 10, Axiom 11, Definition 12.
For all $r$ if $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ then $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Hence $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1.
Claim: For all $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $r \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))$.
Fix $r$ such that $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $r = \apply{\standardMetricR}{(f(x),h(x))}$ by Axiom 10, Axiom 11, Definition 347.
We have $f(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $g(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $h(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 346, Proposition 361.
We have $\apply{\standardMetricR}{(f(x),g(x))}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\apply{\standardMetricR}{(g(x),h(x))}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\apply{\standardMetricR}{(f(x),h(x))}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Lemma 198, Proposition 115, Proposition 361.
Thus $\apply{\standardMetricR}{(f(x),h(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \apply{\standardMetricR}{(f(x),g(x))} + \apply{\standardMetricR}{(g(x),h(x))}$ by Definition 178, Definition 179, Lemma 198.
$\apply{\standardMetricR}{(f(x),g(x))}\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ and $\apply{\standardMetricR}{(g(x),h(x))}\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Axiom 10, Axiom 11, Definition 347.
Therefore $\apply{\standardMetricR}{(f(x),g(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ and $\apply{\standardMetricR}{(g(x),h(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))$ by Definition 66, Definition 71.
$\apply{\standardMetricR}{(f(x),g(x))} + \apply{\standardMetricR}{(g(x),h(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \apply{\standardMetricR}{(g(x),h(x))}$ by Lemma 24.
$\apply{\standardMetricR}{(g(x),h(x))} + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ by Lemma 24.
Thus $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \apply{\standardMetricR}{(g(x),h(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))$ by Axiom 16.
We have $\apply{\standardMetricR}{(f(x),g(x))} + \apply{\standardMetricR}{(g(x),h(x))}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \apply{\standardMetricR}{(g(x),h(x))}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
Therefore $\apply{\standardMetricR}{(f(x),g(x))} + \apply{\standardMetricR}{(g(x),h(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))$ by Lemma 23.
Thus $\apply{\standardMetricR}{(f(x),h(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))$ by Lemma 23.
Therefore $r \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))$ by Axiom 6.
Thus $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))$ is an upper bound of $A$ by Axiom 13, Definition 66, Proposition 115, Proposition 361.
Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,h)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))$ by Definition 71.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,h))$.
Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ satisfies the triangle inequality on $B$ by Definition 178.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $B$ by Definition 179.
For all $f,g\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ there exists $A$ such that $A$ is the distance set of $f$ and $g$ on $X$ with respect to $\standardMetricR$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ is a supremum of $A$ by Axiom 10, Axiom 11, Axiom 54, Definition 12, Proposition 115, Proposition 437.
For all $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ there exists $M\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that for all $x_1,x_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $\apply{\standardMetricR}{(f(x_1),f(x_2))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ by Definition 1, Definition 187, Definition 346, Proposition 61, Proposition 356, Proposition 359, Proposition 364.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the sup metric on $B$ with respect to $X$ and $\reals$ and $\standardMetricR$ by Definition 348.
Claim: For all $s$ if $s$ is a Cauchy sequence in $B$ with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ then there exists $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $s$ converges to $f$ in $B$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{B}$.
Fix $s$ such that $s$ is a Cauchy sequence in $B$ with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$.
Let $Q = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals \mid \text{there exists $t$ such that $t$ is a sequence in $\reals$ and for all $n\in\naturalsPlus$ we have $t(n) = \apply{\apply{s}{n}}{\fst{w}}$ and $t$ converges to $\snd{w}$ in $\reals$ with respect to $\metricTopology{\standardMetricR}{\reals}$}\}$.
$Q$ is a relation by Definition 1, Definition 12, Proposition 121.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $y$ such that $x\mathrel{Q} y$.
Fix $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $t = \{(n,\apply{\apply{s}{n}}{x}) \mid n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus\}$.
$t$ is a Cauchy sequence in $\reals$ with respect to $\standardMetricR$ by Lemma 683.
Take $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $t$ converges to $y$ in $\reals$ with respect to $\metricTopology{\standardMetricR}{\reals}$ by Definition 343, Lemma 667.
Therefore $x\mathrel{Q} y$ by Axiom 10, Axiom 11, Definition 12, Definition 158, Definition 342, Proposition 115, Proposition 346, Proposition 356, Proposition 359.
Take $f$ such that $f$ is a function on $X$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $x\mathrel{Q}\apply{f}{x}$ by Axiom 54.
Hence $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{\reals}$ by Axiom 54, Definition 1, Definition 12, Proposition 114, Proposition 358.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((s(n),s(m))) < 1$ by Axiom 41, Axiom 42, Definition 1, Definition 342, Proposition 462.
We have $\apply{s}{N}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{\reals}$ and $\img{\apply{s}{N}}{X}$ is bounded in $\reals$ with respect to $\standardMetricR$ by Definition 158, Definition 342, Definition 346, Proposition 361.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < 1$ by Axiom 41, Axiom 42, Definition 1, Proposition 462.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $\apply{\standardMetricR}{(\apply{\apply{s}{N}}{x},f(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$.
Fix $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Take $t$ such that $t$ is a sequence in $\reals$ and for all $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $t(m) = \apply{\apply{s}{m}}{x}$ and $t$ converges to $f(x)$ in $\reals$ with respect to $\metricTopology{\standardMetricR}{\reals}$ by Axiom 10, Axiom 11, Axiom 54, Definition 12.
For all $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $\apply{\standardMetricR}{(\apply{\apply{s}{N}}{x},t(m))} < 1$ by Axiom 41, Axiom 42, Definition 1, Definition 158, Definition 179, Definition 342, Definition 346, Lemma 83, Lemma 198, Lemma 266, Lemma 681, Proposition 115, Proposition 346, Proposition 361, Proposition 462.
Therefore $\apply{\standardMetricR}{(\apply{\apply{s}{N}}{x},f(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ by Axiom 41, Axiom 42, Definition 1, Definition 346, Lemma 198, Lemma 674, Proposition 361, Proposition 462.
Thus $\img{f}{X}$ is bounded in $\reals$ with respect to $\standardMetricR$ by Lemma 198, Lemma 678.
Therefore $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Definition 346.
Claim: For all $U$ if $U$ is a neighborhood of $f$ in $B$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{B}$ then there exists $K\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $K\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Fix $U$ such that $U$ is a neighborhood of $f$ in $B$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{B}$.
Take $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ and $\metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{B}{f}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 1, Definition 101, Definition 103, Definition 153, Lemma 195, Proposition 156.
Let $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} / (1 + 1)$.
We have $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 275.
Hence $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 17, Axiom 37, Lemma 82, Lemma 83, Lemma 275.
Take $K\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $K \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $K \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((s(n),s(m))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 342.
Claim: For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $K\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Fix $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $K\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
We have $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Definition 158, Definition 342, Proposition 361.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $\apply{\standardMetricR}{(\apply{\apply{s}{n}}{x},f(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
Fix $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Take $t$ such that $t$ is a sequence in $\reals$ and for all $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $t(m) = \apply{\apply{s}{m}}{x}$ and $t$ converges to $f(x)$ in $\reals$ with respect to $\metricTopology{\standardMetricR}{\reals}$ by Axiom 10, Axiom 11, Axiom 54, Definition 12.
For all $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $K \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $\apply{\standardMetricR}{(\apply{\apply{s}{n}}{x},\apply{\apply{s}{m}}{x})} < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1, Definition 158, Definition 179, Definition 342, Definition 346, Lemma 198, Lemma 266, Lemma 681, Proposition 115, Proposition 361.
Thus for all $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $K \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $\apply{\standardMetricR}{(\apply{\apply{s}{n}}{x},t(m))} < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 83, Proposition 346.
Therefore $\apply{\standardMetricR}{(\apply{\apply{s}{n}}{x},f(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1, Definition 346, Lemma 198, Lemma 674, Proposition 361.
Thus $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((s(n),f)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 682.
Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((s(n),f)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 179, Lemma 266, Proposition 115, Proposition 361.
Hence $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 1, Definition 177, Definition 179, Definition 180, Lemma 82, Proposition 115.
Hence $K\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $K\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Hence $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $s$ converges to $f$ in $B$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{B}$ by Definition 159, Definition 342.
Hence $B$ is complete with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ by Definition 343.
Claim: $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the sup metric on $B$ with respect to $X$ and $\reals$ and $\standardMetricR$ and $B$ is complete with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$.
Trivial.
LaTeX source
\begin{proof}
$\standardMetricR$ is a metric on $\reals$ by \cref{standard_metric_is_metric}.
$B\subseteq\funs{X}{\reals}$ by \cref{bounded_function_set,subseteq}.
Let $R = \{w\in(B\times B)\times\reals \mid
\text{there exists $A$ such that
$A$ is the distance set of $\fst{\fst{w}}$ and $\snd{\fst{w}}$ on $X$ with respect to $\standardMetricR$ and
$\snd{w}$ is a supremum of $A$}\}$.
$R$ is a relation by \cref{relation,subseteq,times_elem_is_tuple}.
For all $p\in B\times B$ there exists $r$ such that $p\mathrel{R} r$
by \cref{times,bounded_reals_distance_set_has_supremum,real_supremum,real_upper_bound,times_tuple_intro,fst_eq,snd_eq,relation}.
Take $\rho$ such that
$\rho$ is a function on $B\times B$ and
for all $p\in B\times B$ we have $p\mathrel{R}\rho(p)$ by \cref{axiom_of_choice}.
For all $p\in B\times B$ we have $\rho(p)\in\reals$
by \cref{axiom_of_choice,relation,subseteq,times_tuple_elim}.
Hence $\dom{\rho} = B\times B$ by \cref{axiom_of_choice}.
Therefore $\rho\in\funs{B\times B}{\reals}$ by \cref{funs_intro}.
For all $f,g$ such that $f\in B$ and $g\in B$ we have $\rho((f,g)) \geq 0$
by \cref{times_tuple_intro,axiom_of_choice,relation,fst_eq,snd_eq,bounded_function_set,funs_type_apply,function_distance_set,standard_metric_is_metric,metric_on,real_supremum,real_upper_bound,metric_nonnegative,real_add_ident,real_leq_trans}.
Therefore $\rho$ is nonnegative on $B$ by \cref{metric_nonnegative}.
Show that for all $f,g$ such that $f\in B$ and $g\in B$ we have $\rho((f,g)) = 0$ iff $f = g$.
\begin{subproof}
Fix $f$.
Fix $g$ such that $f\in B$ and $g\in B$.
Show that if $\rho((f,g)) = 0$ then $f = g$.
\begin{subproof}
Assume $\rho((f,g)) = 0$.
We have $f\in\funs{X}{\reals}$ and $g\in\funs{X}{\reals}$ by \cref{bounded_function_set}.
$f$ is a function and $\dom{f} = X$ and $g$ is a function and $\dom{g} = X$
by \cref{funs_is_function,funs_elim}.
Let $p = (f,g)$.
Hence $(p,\rho(p))\in R$ by \cref{times_tuple_intro,axiom_of_choice,relation}.
Take $A$ such that
$A$ is the distance set of $\fst{p}$ and $\snd{p}$ on $X$ with respect to $\standardMetricR$ and
$\rho(p)$ is a supremum of $A$ by \cref{fst_eq,snd_eq,relation}.
For all $x\in X$ we have $f(x) = g(x)$
by \cref{fst_eq,snd_eq,function_distance_set,real_supremum,real_upper_bound,funs_type_apply,times_tuple_intro,standard_metric_is_metric,metric_on,metric_nonnegative,real_add_ident,real_leq_antisym,metric_zero_characterization}.
Therefore $f = g$ by \cref{functions_eq_iff}.
\end{subproof}
Show that if $f = g$ then $\rho((f,g)) = 0$.
\begin{subproof}
Assume $f = g$.
We have $f\in\funs{X}{\reals}$ and $g\in\funs{X}{\reals}$ by \cref{bounded_function_set}.
$f$ is a function and $\dom{f} = X$ and $g$ is a function and $\dom{g} = X$
by \cref{funs_is_function,funs_elim}.
Let $p = (f,g)$.
$p\in B\times B$ by \cref{times_tuple_intro}.
Hence $(p,\rho(p))\in R$ by \cref{axiom_of_choice,relation}.
Take $A$ such that
$A$ is the distance set of $\fst{p}$ and $\snd{p}$ on $X$ with respect to $\standardMetricR$ and
$\rho(p)$ is a supremum of $A$ by \cref{fst_eq,snd_eq,relation}.
Show that $0$ is an upper bound of $A$.
\begin{subproof}
$0\in\reals$ by \cref{real_add_ident}.
$A\subseteq\reals$
by \cref{function_distance_set,fst_eq,snd_eq,bounded_function_set,funs_type_apply,standard_metric_is_metric,metric_on,subseteq,times_tuple_intro}.
Show that for all $r\in A$ we have $r < 0$ or $r = 0$.
\begin{subproof}
Fix $r\in A$.
Take $x\in X$ such that $\apply{\standardMetricR}{(\apply{f}{x},\apply{g}{x})} = r$
by \cref{function_distance_set,fst_eq,snd_eq}.
$\apply{f}{x}\in\reals$ and $\apply{g}{x}\in\reals$ by \cref{funs_type_apply,subseteq}.
$\apply{f}{x} = \apply{g}{x}$ by \cref{real_lt_subst_left}.
$\apply{\standardMetricR}{(\apply{f}{x},\apply{g}{x})} = 0$
by \cref{standard_metric_is_metric,metric_on,metric_zero_characterization,times_tuple_intro,real_lt_subst_right}.
Hence $r = 0$ by \cref{real_lt_subst_left}.
\end{subproof}
Thus $0$ is an upper bound of $A$ by \cref{real_upper_bound}.
\end{subproof}
$\rho(p) < 0$ or $\rho(p) = 0$ by \cref{real_supremum}.
$0 < \rho(p)$ or $0 = \rho(p)$
by \cref{metric_nonnegative,real_lt_subst_left,times_tuple_intro}.
$\rho(p)\in\reals$ by \cref{funs_type_apply}.
Hence $\rho(p) = 0$ by \cref{real_add_ident,real_leq_antisym}.
Therefore $\rho((f,g)) = 0$ by \cref{real_lt_subst_left}.
\end{subproof}
\end{subproof}
Therefore $\rho$ is zero-characterized on $B$ by \cref{metric_zero_characterization}.
Show that for all $f,g$ such that $f\in B$ and $g\in B$ we have $\rho((f,g)) = \rho((g,f))$.
\begin{subproof}
Fix $f$.
Fix $g$ such that $f\in B$ and $g\in B$.
Let $p = (f,g)$.
Let $q = (g,f)$.
We have $(p,\rho(p))\in R$ and $(q,\rho(q))\in R$
by \cref{times_tuple_intro,axiom_of_choice,relation}.
Take $A$ such that
$A$ is the distance set of $\fst{p}$ and $\snd{p}$ on $X$ with respect to $\standardMetricR$ and
$\rho(p)$ is a supremum of $A$ by \cref{fst_eq,snd_eq,relation}.
Take $C$ such that
$C$ is the distance set of $\fst{q}$ and $\snd{q}$ on $X$ with respect to $\standardMetricR$ and
$\rho(q)$ is a supremum of $C$ by \cref{fst_eq,snd_eq,relation}.
For all $r$ if $r\in A$ then $r\in C$
by \cref{fst_eq,snd_eq,function_distance_set,bounded_function_set,funs_type_apply,standard_metric_is_metric,metric_on,metric_symmetric,times_tuple_intro,pair_eq_iff}.
Thus $A\subseteq C$ by \cref{subseteq}.
For all $r$ if $r\in C$ then $r\in A$
by \cref{fst_eq,snd_eq,function_distance_set,bounded_function_set,funs_type_apply,standard_metric_is_metric,metric_on,metric_symmetric,times_tuple_intro,pair_eq_iff}.
Hence $C\subseteq A$ by \cref{subseteq}.
Therefore $\rho((f,g)) = \rho((g,f))$ by \cref{subseteq_antisymmetric,real_supremum_unique}.
\end{subproof}
Therefore $\rho$ is symmetric on $B$ by \cref{metric_symmetric}.
Show that for all $f,g,h$ such that $f\in B$ and $g\in B$ and $h\in B$ we have
$\rho((f,g)) + \rho((g,h)) \geq \rho((f,h))$.
\begin{subproof}
Fix $f$.
Fix $g$.
Fix $h$ such that $f\in B$ and $g\in B$ and $h\in B$.
Let $p = (f,h)$.
Let $q = (f,g)$.
Let $s = (g,h)$.
$p\in B\times B$ and $q\in B\times B$ and $s\in B\times B$ by \cref{times_tuple_intro}.
Hence $(p,\rho(p))\in R$ and $(q,\rho(q))\in R$ and $(s,\rho(s))\in R$
by \cref{axiom_of_choice,relation}.
Take $A$ such that
$A$ is the distance set of $\fst{p}$ and $\snd{p}$ on $X$ with respect to $\standardMetricR$ and
$\rho(p)$ is a supremum of $A$ by \cref{fst_eq,snd_eq,relation}.
Take $C$ such that
$C$ is the distance set of $\fst{q}$ and $\snd{q}$ on $X$ with respect to $\standardMetricR$ and
$\rho(q)$ is a supremum of $C$ by \cref{fst_eq,snd_eq,relation}.
Take $D$ such that
$D$ is the distance set of $\fst{s}$ and $\snd{s}$ on $X$ with respect to $\standardMetricR$ and
$\rho(s)$ is a supremum of $D$ by \cref{fst_eq,snd_eq,relation}.
For all $r$ if $r\in A$ then $r\in\reals$.
Hence $A\subseteq\reals$ by \cref{subseteq}.
Show that for all $r\in A$ we have $r \leq \rho((f,g)) + \rho((g,h))$.
\begin{subproof}
Fix $r$ such that $r\in A$.
Take $x\in X$ such that $r = \apply{\standardMetricR}{(f(x),h(x))}$ by \cref{fst_eq,snd_eq,function_distance_set}.
We have $f(x)\in\reals$ and $g(x)\in\reals$ and $h(x)\in\reals$
by \cref{bounded_function_set,funs_type_apply}.
We have $\apply{\standardMetricR}{(f(x),g(x))}\in\reals$ and
$\apply{\standardMetricR}{(g(x),h(x))}\in\reals$ and
$\apply{\standardMetricR}{(f(x),h(x))}\in\reals$ by \cref{standard_metric_is_metric,metric_on,funs_type_apply,times_tuple_intro}.
Thus $\apply{\standardMetricR}{(f(x),h(x))} \leq
\apply{\standardMetricR}{(f(x),g(x))} + \apply{\standardMetricR}{(g(x),h(x))}$
by \cref{standard_metric_is_metric,metric_on,metric_triangle_inequality}.
$\apply{\standardMetricR}{(f(x),g(x))}\in C$ and
$\apply{\standardMetricR}{(g(x),h(x))}\in D$ by \cref{fst_eq,snd_eq,function_distance_set}.
Therefore $\apply{\standardMetricR}{(f(x),g(x))} \leq \rho((f,g))$ and
$\apply{\standardMetricR}{(g(x),h(x))} \leq \rho((g,h))$
by \cref{real_supremum,real_upper_bound}.
$\apply{\standardMetricR}{(f(x),g(x))} + \apply{\standardMetricR}{(g(x),h(x))} \leq
\rho((f,g)) + \apply{\standardMetricR}{(g(x),h(x))}$ by \cref{real_leq_add}.
$\apply{\standardMetricR}{(g(x),h(x))} + \rho((f,g)) \leq
\rho((g,h)) + \rho((f,g))$ by \cref{real_leq_add}.
Thus $\rho((f,g)) + \apply{\standardMetricR}{(g(x),h(x))} \leq
\rho((f,g)) + \rho((g,h))$ by \cref{real_add_comm}.
We have $\apply{\standardMetricR}{(f(x),g(x))} + \apply{\standardMetricR}{(g(x),h(x))}\in\reals$ and
$\rho((f,g)) + \apply{\standardMetricR}{(g(x),h(x))}\in\reals$ and
$\rho((f,g)) + \rho((g,h))\in\reals$ by \cref{real_add_closed}.
Therefore $\apply{\standardMetricR}{(f(x),g(x))} + \apply{\standardMetricR}{(g(x),h(x))} \leq
\rho((f,g)) + \rho((g,h))$ by \cref{real_leq_trans}.
Thus $\apply{\standardMetricR}{(f(x),h(x))} \leq \rho((f,g)) + \rho((g,h))$
by \cref{real_leq_trans}.
Therefore $r \leq \rho((f,g)) + \rho((g,h))$ by \cref{pair_eq_iff}.
\end{subproof}
Thus $\rho((f,g)) + \rho((g,h))$ is an upper bound of $A$ by \cref{times_tuple_intro,funs_type_apply,real_upper_bound,real_add_closed}.
Therefore $\rho((f,h)) \leq \rho((f,g)) + \rho((g,h))$ by \cref{real_supremum}.
Hence $\rho((f,g)) + \rho((g,h)) \geq \rho((f,h))$.
\end{subproof}
Therefore $\rho$ satisfies the triangle inequality on $B$ by \cref{metric_triangle_inequality}.
Hence $\rho$ is a metric on $B$ by \cref{metric_on}.
For all $f,g\in B$ there exists $A$ such that
$A$ is the distance set of $f$ and $g$ on $X$ with respect to $\standardMetricR$ and
$\rho((f,g))$ is a supremum of $A$
by \cref{times_tuple_intro,axiom_of_choice,relation,fst_eq,snd_eq,real_add_eq_subst}.
For all $f\in B$ there exists $M\in\reals$ such that
for all $x_1,x_2\in X$ we have $\apply{\standardMetricR}{(f(x_1),f(x_2))} \leq M$
by \cref{subseteq,bounded_function_set,funs_is_function,funs_elim,inter_intro,img_of_function_intro,metric_bounded}.
Hence $\rho$ is the sup metric on $B$ with respect to $X$ and $\reals$ and $\standardMetricR$
by \cref{sup_metric_on_bounded_function_space}.
Show that for all $s$ if
$s$ is a Cauchy sequence in $B$ with respect to $\rho$
then there exists $f\in B$ such that
$s$ converges to $f$ in $B$ with respect to $\metricTopology{\rho}{B}$.
\begin{subproof}
Fix $s$ such that $s$ is a Cauchy sequence in $B$ with respect to $\rho$.
Let $Q = \{w\in X\times\reals \mid
\text{there exists $t$ such that
$t$ is a sequence in $\reals$ and
for all $n\in\naturalsPlus$ we have $t(n) = \apply{\apply{s}{n}}{\fst{w}}$ and
$t$ converges to $\snd{w}$ in $\reals$ with respect to $\metricTopology{\standardMetricR}{\reals}$}\}$.
$Q$ is a relation by \cref{relation,subseteq,times_elem_is_tuple}.
Show that for all $x\in X$ there exists $y$ such that $x\mathrel{Q} y$.
\begin{subproof}
Fix $x\in X$.
Let $t = \{(n,\apply{\apply{s}{n}}{x}) \mid n\in\naturalsPlus\}$.
$t$ is a Cauchy sequence in $\reals$ with respect to $\standardMetricR$
by \cref{sup_metric_cauchy_coordinate}.
Take $y\in\reals$ such that
$t$ converges to $y$ in $\reals$ with respect to $\metricTopology{\standardMetricR}{\reals}$
by \cref{reals_complete_standard_metric,complete_metric_space}.
Therefore $x\mathrel{Q} y$
by \cref{times_tuple_intro,fst_eq,snd_eq,relation,function_apply_intro,cauchy_sequence,sequence_in,funs_is_function,funs_elim}.
\end{subproof}
Take $f$ such that
$f$ is a function on $X$ and
for all $x\in X$ we have $x\mathrel{Q}\apply{f}{x}$ by \cref{axiom_of_choice}.
Hence $f\in\funs{X}{\reals}$ by \cref{axiom_of_choice,relation,subseteq,times_tuple_elim,funs_intro}.
Take $N\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$\rho((s(n),s(m))) < 1$
by \cref{real_zero_lt_one,real_naturals_subset_reals,real_one_in_naturals,subseteq,cauchy_sequence}.
We have $\apply{s}{N}\in\funs{X}{\reals}$ and
$\img{\apply{s}{N}}{X}$ is bounded in $\reals$ with respect to $\standardMetricR$
by \cref{sequence_in,cauchy_sequence,funs_type_apply,bounded_function_set}.
$1\in\reals$ and $0 < 1$
by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_zero_lt_one}.
Show that for all $x\in X$ we have $\apply{\standardMetricR}{(\apply{\apply{s}{N}}{x},f(x))} \leq 1$.
\begin{subproof}
Fix $x\in X$.
Take $t$ such that
$t$ is a sequence in $\reals$ and
for all $m\in\naturalsPlus$ we have $t(m) = \apply{\apply{s}{m}}{x}$ and
$t$ converges to $f(x)$ in $\reals$ with respect to $\metricTopology{\standardMetricR}{\reals}$
by \cref{axiom_of_choice,fst_eq,snd_eq,relation}.
For all $m\in\naturalsPlus$ if $N \leq m$ then
$\apply{\standardMetricR}{(\apply{\apply{s}{N}}{x},t(m))} < 1$
by \cref{cauchy_sequence,sequence_in,funs_type_apply,sup_metric_coordinate_leq,metric_on,times_tuple_intro,bounded_function_set,subseteq,standard_metric_is_metric,real_naturals_subset_reals,real_one_in_naturals,real_zero_lt_one,real_leq_lt_trans,function_apply_intro,real_lt_subst_right}.
Therefore $\apply{\standardMetricR}{(\apply{\apply{s}{N}}{x},f(x))} \leq 1$
by \cref{bounded_function_set,subseteq,funs_type_apply,standard_metric_is_metric,real_naturals_subset_reals,real_one_in_naturals,real_zero_lt_one,metric_limit_eventual_bound}.
\end{subproof}
Thus $\img{f}{X}$ is bounded in $\reals$ with respect to $\standardMetricR$
by \cref{pointwise_close_to_bounded_function_bounded,standard_metric_is_metric}.
Therefore $f\in B$ by \cref{bounded_function_set}.
Show that for all $U$ if $U$ is a neighborhood of $f$ in $B$ with respect to $\metricTopology{\rho}{B}$ then
there exists $K\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $K\leq n$ then $s(n)\in U$.
\begin{subproof}
Fix $U$ such that $U$ is a neighborhood of $f$ in $B$ with respect to $\metricTopology{\rho}{B}$.
Take $\epsilon\in\reals$ such that $0 < \epsilon$ and $\metricBall{\rho}{B}{f}{\epsilon}\subseteq U$
by \cref{neighborhood,open_in,topology_on,subseteq,powerset_elim,metric_open_iff}.
Let $\delta = \epsilon / (1 + 1)$.
We have $\delta\in\reals$ and $0 < \delta$ and $\delta + \delta = \epsilon$ by \cref{real_half_of_positive}.
Hence $\delta < \epsilon$ by \cref{real_half_of_positive,real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right}.
Take $K\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $K \leq n$ and $K \leq m$ then
$\rho((s(n),s(m))) < \delta$ by \cref{cauchy_sequence}.
Show that for all $n\in\naturalsPlus$ if $K\leq n$ then $s(n)\in U$.
\begin{subproof}
Fix $n\in\naturalsPlus$.
Assume $K\leq n$.
We have $s(n)\in B$ by \cref{cauchy_sequence,sequence_in,funs_type_apply}.
Show that for all $x\in X$ we have $\apply{\standardMetricR}{(\apply{\apply{s}{n}}{x},f(x))} \leq \delta$.
\begin{subproof}
Fix $x\in X$.
Take $t$ such that
$t$ is a sequence in $\reals$ and
for all $m\in\naturalsPlus$ we have $t(m) = \apply{\apply{s}{m}}{x}$ and
$t$ converges to $f(x)$ in $\reals$ with respect to $\metricTopology{\standardMetricR}{\reals}$
by \cref{axiom_of_choice,fst_eq,snd_eq,relation}.
For all $m\in\naturalsPlus$ if $K \leq m$ then
$\apply{\standardMetricR}{(\apply{\apply{s}{n}}{x},\apply{\apply{s}{m}}{x})} < \delta$
by \cref{cauchy_sequence,sequence_in,funs_type_apply,sup_metric_coordinate_leq,metric_on,times_tuple_intro,bounded_function_set,subseteq,standard_metric_is_metric,real_leq_lt_trans}.
Thus for all $m\in\naturalsPlus$ if $K \leq m$ then
$\apply{\standardMetricR}{(\apply{\apply{s}{n}}{x},t(m))} < \delta$
by \cref{function_apply_intro,real_lt_subst_right}.
Therefore $\apply{\standardMetricR}{(\apply{\apply{s}{n}}{x},f(x))} \leq \delta$
by \cref{bounded_function_set,subseteq,funs_type_apply,standard_metric_is_metric,metric_limit_eventual_bound}.
\end{subproof}
Thus $\rho((s(n),f)) \leq \delta$ by \cref{sup_metric_leq_from_coordinate_bounds}.
Therefore $\rho((s(n),f)) < \epsilon$ by \cref{times_tuple_intro,metric_on,funs_type_apply,real_leq_lt_trans}.
Hence $s(n)\in U$
by \cref{metric_on,metric_symmetric,real_lt_subst_left,times_tuple_intro,metric_ball,subseteq}.
\end{subproof}
Hence $K\in\naturalsPlus$ and
for all $n\in\naturalsPlus$ if $K\leq n$ then $s(n)\in U$.
\end{subproof}
Hence $f\in B$ and
$s$ converges to $f$ in $B$ with respect to $\metricTopology{\rho}{B}$
by \cref{cauchy_sequence,converges_to}.
\end{subproof}
Hence $B$ is complete with respect to $\rho$ by \cref{complete_metric_space}.
Show that $\rho$ is the sup metric on $B$ with respect to $X$ and $\reals$ and $\standardMetricR$ and
$B$ is complete with respect to $\rho$.
\begin{subproof}
Trivial.
\end{subproof}
\end{proof}
$f$ is the Frechet distance-difference function of $a$ with basepoint $x_0$ in $X$ with respect to $d$ iff $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $f = \{(x, d((x,a)) - d((x,x_0))) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\}$.
LaTeX source
\begin{definition}
\label{frechet_distance_difference_function}
$f$ is the Frechet distance-difference function of $a$ with basepoint $x_0$ in $X$ with respect to $d$ iff
$a\in X$ and
$x_0\in X$ and
$f = \{(x, d((x,a)) - d((x,x_0))) \mid x\in X\}$.
\end{definition}
Assume $d$ is a metric on $X$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Suppose $b\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then $\apply{\standardMetricR}{(d((x,a)),d((x,b)))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((a,b))$.
LaTeX source
\begin{lemma}
\label{metric_point_distance_difference_bound}
Assume $d$ is a metric on $X$.
Suppose $x\in X$.
Suppose $a\in X$.
Suppose $b\in X$.
Then $\apply{\standardMetricR}{(d((x,a)),d((x,b)))} \leq d((a,b))$.
\end{lemma}
Proof
Let $p = d((x,a))$.
Let $q = d((x,b))$.
Let $r = d((a,b))$.
$(x,a)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(x,b)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(a,b)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Proposition 115.
Hence $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $q\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
Thus $d((b,a)) = r$ by Definition 177, Definition 179, Proposition 115.
Therefore $p \class{latex-symbol-tip latex-symbol-id-leq}{\leq} q + r$ by Definition 178, Definition 179, Proposition 115.
Thus $q \class{latex-symbol-tip latex-symbol-id-leq}{\leq} p + r$ by Definition 178, Definition 179, Proposition 115.
$\neg{q}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\neg{p}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 18.
We have $q + r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $p + r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $p + \neg{q}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $q + \neg{p}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $(q + r) + \neg{q}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $(p + r) + \neg{p}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18.
Hence $p + \neg{q} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (q + r) + \neg{q}$ by Lemma 24.
Therefore $q + \neg{p} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (p + r) + \neg{p}$ by Lemma 24.
Thus $(q + r) + \neg{q} = r$ and $(p + r) + \neg{p} = r$ by Axiom 15, Axiom 16, Axiom 17, Axiom 18.
Therefore $p - q \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r$ and $q - p \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r$ and $p - q\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 64.
Hence $\abs{(p - q)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r$ by Lemma 14, Lemma 82, Proposition 484.
Thus $\apply{\standardMetricR}{(p,q)} = \abs{(p - q)}$ by Lemma 274, Proposition 115.
Therefore $\apply{\standardMetricR}{(d((x,a)),d((x,b)))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((a,b))$.
LaTeX source
\begin{proof}
Let $p = d((x,a))$.
Let $q = d((x,b))$.
Let $r = d((a,b))$.
$(x,a)\in X\times X$ and $(x,b)\in X\times X$ and $(a,b)\in X\times X$ by \cref{times_tuple_intro}.
Hence $p\in\reals$ and $q\in\reals$ and $r\in\reals$ by \cref{metric_on,funs_type_apply}.
Thus $d((b,a)) = r$ by \cref{metric_on,metric_symmetric,times_tuple_intro}.
Therefore $p \leq q + r$ by \cref{metric_on,metric_triangle_inequality,times_tuple_intro}.
Thus $q \leq p + r$ by \cref{metric_on,metric_triangle_inequality,times_tuple_intro}.
$\neg{q}\in\reals$ and $\neg{p}\in\reals$ by \cref{real_add_inverse}.
We have $q + r\in\reals$ and $p + r\in\reals$ and $p + \neg{q}\in\reals$ and $q + \neg{p}\in\reals$ and
$(q + r) + \neg{q}\in\reals$ and
$(p + r) + \neg{p}\in\reals$ by \cref{real_add_inverse,real_add_closed}.
Hence $p + \neg{q} \leq (q + r) + \neg{q}$ by \cref{real_leq_add}.
Therefore $q + \neg{p} \leq (p + r) + \neg{p}$ by \cref{real_leq_add}.
Thus $(q + r) + \neg{q} = r$ and $(p + r) + \neg{p} = r$
by \cref{real_add_ident,real_add_assoc,real_add_comm,real_add_inverse}.
Therefore $p - q \leq r$ and $q - p \leq r$ and $p - q\in\reals$ by \cref{real_sub}.
Hence $\abs{(p - q)} \leq r$ by \cref{real_sub_swap_neg,real_lt_subst_left,real_abs_leq_if_pm_leq}.
Thus $\apply{\standardMetricR}{(p,q)} = \abs{(p - q)}$ by \cref{times_tuple_intro,standard_metric_value}.
Therefore $\apply{\standardMetricR}{(d((x,a)),d((x,b)))} \leq d((a,b))$.
\end{proof}
Assume $d$ is a metric on $X$.
Suppose $f$ is the Frechet distance-difference function of $a$ with basepoint $x_0$ in $X$ with respect to $d$.
Assume $B$ is the set of bounded functions from $X$ to $\reals$ with respect to $\standardMetricR$.
Then $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
LaTeX source
\begin{lemma}
\label{frechet_distance_difference_function_bounded}
Assume $d$ is a metric on $X$.
Suppose $f$ is the Frechet distance-difference function of $a$ with basepoint $x_0$ in $X$ with respect to $d$.
Assume $B$ is the set of bounded functions from $X$ to $\reals$ with respect to $\standardMetricR$.
Then $f\in B$.
\end{lemma}
Proof
We have $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $f = \{(x, d((x,a)) - d((x,x_0))) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\}$ by Definition 350.
Hence $f$ is a function by Axiom 6, Definition 12, Definition 51.
Thus $\dom{f} = X$ by Axiom 6, Definition 1, Definition 350, Proposition 3, Proposition 199, Proposition 200.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{f}$ we have $f(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 1, Definition 64, Definition 179, Definition 350, Proposition 115, Proposition 346, Proposition 361.
Therefore $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{\reals}$ by Proposition 358.
Let $M = d((a,x_0))$.
Hence $M\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
Claim: For all $y_1,y_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{f}{X}$ we have $\apply{\standardMetricR}{(y_1,y_2)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M + M$.
Fix $y_1$.
Fix $y_2$ such that $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{f}{X}$ and $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{f}{X}$.
Take $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $(x_1,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} f$ by Proposition 235.
Take $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $(x_2,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} f$ by Proposition 235.
Hence $y_1 = f(x_1)$ and $y_2 = f(x_2)$ by Proposition 346.
Thus $f(x_1) = d((x_1,a)) - d((x_1,x_0))$ and $f(x_2) = d((x_2,a)) - d((x_2,x_0))$ by Definition 350, Proposition 346.
$(x_1,a)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(x_1,x_0)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(x_2,a)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(x_2,x_0)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Proposition 115.
We have $d((x_1,a))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((x_1,x_0))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((x_2,a))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((x_2,x_0))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
Therefore $f(x_1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $f(x_2)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17.
Thus $\apply{\standardMetricR}{(f(x_1),0)} = \abs{f(x_1)}$ and $\apply{\standardMetricR}{(f(x_2),0)} = \abs{f(x_2)}$ by Axiom 16, Axiom 17, Definition 64, Lemma 83, Lemma 84, Lemma 274, Proposition 115.
Therefore $\apply{\standardMetricR}{(f(x_1),0)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ and $\apply{\standardMetricR}{(f(x_2),0)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ by Definition 350, Lemma 83, Lemma 274, Lemma 685, Proposition 115, Proposition 346.
We have $\apply{\standardMetricR}{(y_1,0)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\apply{\standardMetricR}{(0,y_2)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\apply{\standardMetricR}{(y_1,y_2)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Lemma 198, Proposition 115, Proposition 361.
Thus $\apply{\standardMetricR}{(0,y_2)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ by Definition 177, Definition 179, Lemma 83, Lemma 198, Proposition 115.
Therefore $\apply{\standardMetricR}{(y_1,y_2)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \apply{\standardMetricR}{(y_1,0)} + \apply{\standardMetricR}{(0,y_2)}$ by Definition 178, Definition 179, Lemma 198.
$\apply{\standardMetricR}{(y_1,0)} + \apply{\standardMetricR}{(0,y_2)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M + \apply{\standardMetricR}{(0,y_2)}$ by Lemma 24.
We have $\apply{\standardMetricR}{(0,y_2)} + M \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M + M$ by Lemma 24.
Thus $M + \apply{\standardMetricR}{(0,y_2)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M + M$ by Axiom 16.
$\apply{\standardMetricR}{(y_1,0)} + \apply{\standardMetricR}{(0,y_2)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $M + \apply{\standardMetricR}{(0,y_2)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $M + M\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
Therefore $\apply{\standardMetricR}{(y_1,0)} + \apply{\standardMetricR}{(0,y_2)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M + M$ by Lemma 23.
Hence $\apply{\standardMetricR}{(y_1,y_2)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M + M$ by Lemma 23.
Hence $\img{f}{X}$ is bounded in $\reals$ with respect to $\standardMetricR$ by Axiom 13, Definition 1, Definition 187, Lemma 198, Proposition 6, Proposition 237, Proposition 284, Proposition 357.
Thus $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Definition 346.
LaTeX source
\begin{proof}
We have $a\in X$ and $x_0\in X$ and
$f = \{(x, d((x,a)) - d((x,x_0))) \mid x\in X\}$ by \cref{frechet_distance_difference_function}.
Hence $f$ is a function by \cref{pair_eq_iff,relation,rightunique}.
Thus $\dom{f} = X$ by \cref{dom_intro,dom_iff,pair_eq_iff,frechet_distance_difference_function,subseteq,subseteq_antisymmetric}.
For all $x\in\dom{f}$ we have $f(x)\in\reals$
by \cref{subseteq,times_tuple_intro,metric_on,funs_type_apply,real_sub,real_add_inverse,real_add_closed,frechet_distance_difference_function,function_apply_intro}.
Therefore $f\in\funs{X}{\reals}$ by \cref{funs_intro}.
Let $M = d((a,x_0))$.
Hence $M\in\reals$ by \cref{times_tuple_intro,metric_on,funs_type_apply}.
Show that for all $y_1,y_2\in\img{f}{X}$ we have $\apply{\standardMetricR}{(y_1,y_2)} \leq M + M$.
\begin{subproof}
Fix $y_1$.
Fix $y_2$ such that $y_1\in\img{f}{X}$ and $y_2\in\img{f}{X}$.
Take $x_1\in X$ such that $(x_1,y_1)\in f$ by \cref{img_iff}.
Take $x_2\in X$ such that $(x_2,y_2)\in f$ by \cref{img_iff}.
Hence $y_1 = f(x_1)$ and $y_2 = f(x_2)$ by \cref{function_apply_intro}.
Thus $f(x_1) = d((x_1,a)) - d((x_1,x_0))$ and
$f(x_2) = d((x_2,a)) - d((x_2,x_0))$ by \cref{frechet_distance_difference_function,function_apply_intro}.
$(x_1,a)\in X\times X$ and $(x_1,x_0)\in X\times X$ and
$(x_2,a)\in X\times X$ and $(x_2,x_0)\in X\times X$ by \cref{times_tuple_intro}.
We have $d((x_1,a))\in\reals$ and $d((x_1,x_0))\in\reals$ and
$d((x_2,a))\in\reals$ and $d((x_2,x_0))\in\reals$ by \cref{metric_on,funs_type_apply}.
Therefore $f(x_1)\in\reals$ and $f(x_2)\in\reals$ by \cref{real_sub,real_add_inverse,real_add_closed}.
$0\in\reals$ by \cref{real_add_ident}.
Thus $\apply{\standardMetricR}{(f(x_1),0)} = \abs{f(x_1)}$ and
$\apply{\standardMetricR}{(f(x_2),0)} = \abs{f(x_2)}$
by \cref{real_add_ident,times_tuple_intro,standard_metric_value,real_sub,real_neg_zero,real_add_comm,real_lt_subst_right}.
Therefore $\apply{\standardMetricR}{(f(x_1),0)} \leq M$ and
$\apply{\standardMetricR}{(f(x_2),0)} \leq M$
by \cref{metric_point_distance_difference_bound,times_tuple_intro,standard_metric_value,real_lt_subst_right,frechet_distance_difference_function,function_apply_intro}.
We have $\apply{\standardMetricR}{(y_1,0)}\in\reals$ and
$\apply{\standardMetricR}{(0,y_2)}\in\reals$ and
$\apply{\standardMetricR}{(y_1,y_2)}\in\reals$
by \cref{times_tuple_intro,standard_metric_is_metric,metric_on,funs_type_apply}.
Thus $\apply{\standardMetricR}{(0,y_2)} \leq M$
by \cref{standard_metric_is_metric,metric_on,metric_symmetric,times_tuple_intro,real_lt_subst_right}.
Therefore $\apply{\standardMetricR}{(y_1,y_2)} \leq
\apply{\standardMetricR}{(y_1,0)} + \apply{\standardMetricR}{(0,y_2)}$
by \cref{standard_metric_is_metric,metric_on,metric_triangle_inequality}.
$\apply{\standardMetricR}{(y_1,0)} + \apply{\standardMetricR}{(0,y_2)} \leq
M + \apply{\standardMetricR}{(0,y_2)}$ by \cref{real_leq_add}.
We have $\apply{\standardMetricR}{(0,y_2)} + M \leq M + M$ by \cref{real_leq_add}.
Thus $M + \apply{\standardMetricR}{(0,y_2)} \leq M + M$ by \cref{real_add_comm}.
$\apply{\standardMetricR}{(y_1,0)} + \apply{\standardMetricR}{(0,y_2)}\in\reals$ and
$M + \apply{\standardMetricR}{(0,y_2)}\in\reals$ and $M + M\in\reals$ by \cref{real_add_closed}.
Therefore $\apply{\standardMetricR}{(y_1,0)} + \apply{\standardMetricR}{(0,y_2)} \leq M + M$
by \cref{real_leq_trans}.
Hence $\apply{\standardMetricR}{(y_1,y_2)} \leq M + M$ by \cref{real_leq_trans}.
\end{subproof}
Hence $\img{f}{X}$ is bounded in $\reals$ with respect to $\standardMetricR$
by \cref{real_add_closed,img_subseteq_ran,funs_subseteq_rels,subseteq,rels_ran_subseteq,subseteq_transitive,standard_metric_is_metric,metric_bounded}.
Thus $f\in B$ by \cref{bounded_function_set}.
\end{proof}
Assume $d$ is a metric on $X$.
Suppose $f$ is the Frechet distance-difference function of $a$ with basepoint $x_0$ in $X$ with respect to $d$.
Suppose $g$ is the Frechet distance-difference function of $b$ with basepoint $x_0$ in $X$ with respect to $d$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then $\apply{\standardMetricR}{(f(x),g(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((a,b))$.
LaTeX source
\begin{lemma}
\label{frechet_distance_difference_pointwise_bound}
Assume $d$ is a metric on $X$.
Suppose $f$ is the Frechet distance-difference function of $a$ with basepoint $x_0$ in $X$ with respect to $d$.
Suppose $g$ is the Frechet distance-difference function of $b$ with basepoint $x_0$ in $X$ with respect to $d$.
Suppose $x\in X$.
Then $\apply{\standardMetricR}{(f(x),g(x))} \leq d((a,b))$.
\end{lemma}
Proof
Let $B = \{u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{\reals} \mid \text{$\img{u}{X}$ is bounded in $\reals$ with respect to $\standardMetricR$}\}$.
We have $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 350.
Thus $f(x) = d((x,a)) - d((x,x_0))$ and $g(x) = d((x,b)) - d((x,x_0))$ by Definition 1, Definition 346, Definition 350, Lemma 686, Proposition 346, Proposition 356.
$(x,a)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(x,b)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(x,x_0)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Proposition 115.
We have $d((x,a))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((x,b))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((x,x_0))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
Therefore $f(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $g(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64.
Thus $\apply{\standardMetricR}{(f(x),g(x))} = \apply{\standardMetricR}{(d((x,a)),d((x,b)))}$ by Definition 64, Lemma 14, Lemma 82, Lemma 83, Lemma 249, Lemma 274, Proposition 115.
Hence $\apply{\standardMetricR}{(f(x),g(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((a,b))$ by Lemma 685.
LaTeX source
\begin{proof}
Let $B = \{u\in\funs{X}{\reals} \mid \text{$\img{u}{X}$ is bounded in $\reals$ with respect to $\standardMetricR$}\}$.
We have $a\in X$ and $b\in X$ and $x_0\in X$ by \cref{frechet_distance_difference_function}.
Thus $f(x) = d((x,a)) - d((x,x_0))$ and $g(x) = d((x,b)) - d((x,x_0))$
by \cref{frechet_distance_difference_function,frechet_distance_difference_function_bounded,bounded_function_set,subseteq,funs_is_function,function_apply_intro}.
$(x,a)\in X\times X$ and $(x,b)\in X\times X$ and $(x,x_0)\in X\times X$ by \cref{times_tuple_intro}.
We have $d((x,a))\in\reals$ and $d((x,b))\in\reals$ and $d((x,x_0))\in\reals$ by \cref{metric_on,funs_type_apply}.
Therefore $f(x)\in\reals$ and $g(x)\in\reals$ by \cref{real_sub,real_add_inverse,real_add_closed}.
Thus $\apply{\standardMetricR}{(f(x),g(x))} = \apply{\standardMetricR}{(d((x,a)),d((x,b)))}$
by \cref{times_tuple_intro,standard_metric_value,real_sub,real_sub_swap_neg,real_lt_subst_left,real_lt_subst_right,real_sub_add_chain}.
Hence $\apply{\standardMetricR}{(f(x),g(x))} \leq d((a,b))$ by \cref{metric_point_distance_difference_bound}.
\end{proof}
Assume $d$ is a metric on $X$.
Suppose $f$ is the Frechet distance-difference function of $a$ with basepoint $x_0$ in $X$ with respect to $d$.
Suppose $g$ is the Frechet distance-difference function of $b$ with basepoint $x_0$ in $X$ with respect to $d$.
Then $\apply{\standardMetricR}{(f(a),g(a))} = d((a,b))$.
LaTeX source
\begin{lemma}
\label{frechet_distance_difference_realizes_distance}
Assume $d$ is a metric on $X$.
Suppose $f$ is the Frechet distance-difference function of $a$ with basepoint $x_0$ in $X$ with respect to $d$.
Suppose $g$ is the Frechet distance-difference function of $b$ with basepoint $x_0$ in $X$ with respect to $d$.
Then $\apply{\standardMetricR}{(f(a),g(a))} = d((a,b))$.
\end{lemma}
Proof
Let $B = \{u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{\reals} \mid \text{$\img{u}{X}$ is bounded in $\reals$ with respect to $\standardMetricR$}\}$.
We have $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 350.
Thus $f(a) = d((a,a)) - d((a,x_0))$ and $g(a) = d((a,b)) - d((a,x_0))$ by Definition 1, Definition 346, Definition 350, Lemma 686, Proposition 346, Proposition 356.
$(a,a)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(a,b)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(a,x_0)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Proposition 115.
We have $d((a,a))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((a,b))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((a,x_0))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
Therefore $f(a)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $g(a)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64.
Thus $f(a) - g(a) = 0 - d((a,b))$ by Definition 64, Definition 176, Definition 179, Lemma 14, Lemma 82, Lemma 83, Lemma 249, Proposition 115.
Therefore $\apply{\standardMetricR}{(f(a),g(a))} = \apply{\standardMetricR}{(0,d((a,b)))}$ by Axiom 17, Lemma 83, Lemma 274, Proposition 115.
Thus $\apply{\standardMetricR}{(0,d((a,b)))} = d((a,b))$ by Axiom 16, Axiom 17, Axiom 47, Definition 64, Definition 175, Definition 177, Definition 179, Lemma 83, Lemma 84, Lemma 198, Lemma 274, Proposition 115.
Hence $\apply{\standardMetricR}{(f(a),g(a))} = d((a,b))$.
LaTeX source
\begin{proof}
Let $B = \{u\in\funs{X}{\reals} \mid \text{$\img{u}{X}$ is bounded in $\reals$ with respect to $\standardMetricR$}\}$.
We have $a\in X$ and $b\in X$ and $x_0\in X$ by \cref{frechet_distance_difference_function}.
Thus $f(a) = d((a,a)) - d((a,x_0))$ and $g(a) = d((a,b)) - d((a,x_0))$
by \cref{frechet_distance_difference_function,frechet_distance_difference_function_bounded,bounded_function_set,subseteq,funs_is_function,function_apply_intro}.
$(a,a)\in X\times X$ and $(a,b)\in X\times X$ and $(a,x_0)\in X\times X$ by \cref{times_tuple_intro}.
We have $d((a,a))\in\reals$ and $d((a,b))\in\reals$ and $d((a,x_0))\in\reals$ by \cref{metric_on,funs_type_apply}.
Therefore $f(a)\in\reals$ and $g(a)\in\reals$ by \cref{real_sub,real_add_inverse,real_add_closed}.
Thus $f(a) - g(a) = 0 - d((a,b))$
by \cref{metric_on,metric_zero_characterization,times_tuple_intro,real_sub,real_sub_swap_neg,real_lt_subst_left,real_lt_subst_right,real_sub_add_chain}.
Therefore $\apply{\standardMetricR}{(f(a),g(a))} = \apply{\standardMetricR}{(0,d((a,b)))}$
by \cref{times_tuple_intro,real_add_ident,standard_metric_value,real_lt_subst_right}.
Thus $\apply{\standardMetricR}{(0,d((a,b)))} = d((a,b))$
by \cref{standard_metric_is_metric,metric_on,metric_symmetric,times_tuple_intro,real_add_ident,standard_metric_value,metric_nonnegative,real_sub,real_neg_zero,real_add_comm,real_lt_subst_right,real_abs_nonneg}.
Hence $\apply{\standardMetricR}{(f(a),g(a))} = d((a,b))$.
\end{proof}
Assume $d$ is a metric on $X$.
Then there exist $Y, D, h$ such that $D$ is a metric on $Y$ and $Y$ is complete with respect to $D$ and $h$ is an isometric embedding from $X$ to $Y$ with respect to $d$ and $D$.
LaTeX source
\begin{theorem}
\label{metric_space_isometric_embedding_into_complete}
Assume $d$ is a metric on $X$.
Then there exist $Y, D, h$ such that
$D$ is a metric on $Y$ and
$Y$ is complete with respect to $D$ and
$h$ is an isometric embedding from $X$ to $Y$ with respect to $d$ and $D$.
\end{theorem}
Proof
Let $Y = \reals$.
Let $D = \standardMetricR$.
Let $h = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
$D$ is a metric on $Y$ by Lemma 198.
$Y$ is complete with respect to $D$ by Lemma 667.
Hence $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ by Proposition 358, Proposition 369, Proposition 370.
For all $a,b$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $D((h(a),h(b))) = d((a,b))$.
Claim: $D$ is a metric on $Y$ and $Y$ is complete with respect to $D$ and $h$ is an isometric embedding from $X$ to $Y$ with respect to $d$ and $D$.
Follows by Definition 349.
Take $x_0$ such that $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Proposition 10.
Let $B = \{u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{\reals} \mid \text{$\img{u}{X}$ is bounded in $\reals$ with respect to $\standardMetricR$}\}$.
We have $B$ is the set of bounded functions from $X$ to $\reals$ with respect to $\standardMetricR$ by Definition 346.
Take $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the sup metric on $B$ with respect to $X$ and $\reals$ and $\standardMetricR$ and $B$ is complete with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ by Lemma 684.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $B$ by Definition 343.
Let $Q = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} B \mid \text{$\snd{w}$ is the Frechet distance-difference function of $\fst{w}$ with basepoint $x_0$ in $X$ with respect to $d$}\}$.
$Q$ is a relation by Definition 1, Definition 12, Proposition 121.
Claim: For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $y$ such that $a\mathrel{Q} y$.
Fix $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $f = \{(x, d((x,a)) - d((x,x_0))) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\}$.
Therefore $a\mathrel{Q} f$ by Axiom 10, Axiom 11, Definition 12, Definition 350, Lemma 686, Proposition 115.
Take $h$ such that $h$ is a function on $X$ and for all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $a\mathrel{Q}\apply{h}{a}$ by Axiom 54.
Hence $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{B}$ by Axiom 54, Definition 1, Definition 12, Proposition 114, Proposition 358.
Claim: For all $a,b\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((h(a),h(b))) = d((a,b))$.
Fix $a$.
Fix $b$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
We have $h(a)$ is the Frechet distance-difference function of $a$ with basepoint $x_0$ in $X$ with respect to $d$ and $h(b)$ is the Frechet distance-difference function of $b$ with basepoint $x_0$ in $X$ with respect to $d$ by Axiom 10, Axiom 11, Axiom 54, Definition 12.
Thus $d((a,b))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $\apply{\standardMetricR}{(\apply{\apply{h}{a}}{x},\apply{\apply{h}{b}}{x})} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((a,b))$ by Lemma 687.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((h(a),h(b))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((a,b))$ by Lemma 682, Lemma 686.
We have $d((a,b)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((h(a),h(b)))$ by Definition 179, Lemma 82, Lemma 681, Lemma 686, Lemma 688, Proposition 115, Proposition 361.
Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((h(a),h(b))) = d((a,b))$ by Definition 179, Definition 343, Lemma 25, Proposition 115, Proposition 361.
Claim: $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $B$ and $B$ is complete with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ and $h$ is an isometric embedding from $X$ to $B$ with respect to $d$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$.
Follows by Definition 349.
LaTeX source
\begin{byCase}
\caseOf{$X = \emptyset$.}
Let $Y = \reals$.
Let $D = \standardMetricR$.
Let $h = \emptyset$.
$D$ is a metric on $Y$ by \cref{standard_metric_is_metric}.
$Y$ is complete with respect to $D$ by \cref{reals_complete_standard_metric}.
Hence $h\in\funs{X}{Y}$ by \cref{codom_of_emptyset_can_be_anything,emptyset_is_function_on_emptyset,funs_intro}.
For all $a,b$ such that $a\in X$ and $b\in X$ we have $D((h(a),h(b))) = d((a,b))$.
Show that $D$ is a metric on $Y$ and
$Y$ is complete with respect to $D$ and
$h$ is an isometric embedding from $X$ to $Y$ with respect to $d$ and $D$.
\begin{subproof}
Follows by \cref{isometric_embedding}.
\end{subproof}
\caseOf{$X \neq \emptyset$.}
Take $x_0$ such that $x_0\in X$ by \cref{nonempty_inhabited}.
Let $B = \{u\in\funs{X}{\reals} \mid \text{$\img{u}{X}$ is bounded in $\reals$ with respect to $\standardMetricR$}\}$.
We have $B$ is the set of bounded functions from $X$ to $\reals$ with respect to $\standardMetricR$ by \cref{bounded_function_set}.
Take $\rho$ such that
$\rho$ is the sup metric on $B$ with respect to $X$ and $\reals$ and $\standardMetricR$ and
$B$ is complete with respect to $\rho$ by \cref{bounded_reals_function_space_complete_sup}.
Hence $\rho$ is a metric on $B$ by \cref{complete_metric_space}.
Let $Q = \{w\in X\times B \mid
\text{$\snd{w}$ is the Frechet distance-difference function of $\fst{w}$ with basepoint $x_0$ in $X$ with respect to $d$}\}$.
$Q$ is a relation by \cref{relation,subseteq,times_elem_is_tuple}.
Show that for all $a\in X$ there exists $y$ such that $a\mathrel{Q} y$.
\begin{subproof}
Fix $a\in X$.
Let $f = \{(x, d((x,a)) - d((x,x_0))) \mid x\in X\}$.
Therefore $a\mathrel{Q} f$
by \cref{frechet_distance_difference_function,frechet_distance_difference_function_bounded,times_tuple_intro,fst_eq,snd_eq,relation}.
\end{subproof}
Take $h$ such that
$h$ is a function on $X$ and
for all $a\in X$ we have $a\mathrel{Q}\apply{h}{a}$ by \cref{axiom_of_choice}.
Hence $h\in\funs{X}{B}$ by \cref{axiom_of_choice,relation,subseteq,times_tuple_elim,funs_intro}.
Show that for all $a,b\in X$ we have $\rho((h(a),h(b))) = d((a,b))$.
\begin{subproof}
Fix $a$.
Fix $b$ such that $a\in X$ and $b\in X$.
We have $h(a)$ is the Frechet distance-difference function of $a$ with basepoint $x_0$ in $X$ with respect to $d$ and
$h(b)$ is the Frechet distance-difference function of $b$ with basepoint $x_0$ in $X$ with respect to $d$
by \cref{axiom_of_choice,relation,fst_eq,snd_eq}.
Thus $d((a,b))\in\reals$ by \cref{times_tuple_intro,metric_on,funs_type_apply}.
For all $x\in X$ we have
$\apply{\standardMetricR}{(\apply{\apply{h}{a}}{x},\apply{\apply{h}{b}}{x})} \leq d((a,b))$
by \cref{frechet_distance_difference_pointwise_bound}.
Hence $\rho((h(a),h(b))) \leq d((a,b))$
by \cref{frechet_distance_difference_function_bounded,sup_metric_leq_from_coordinate_bounds}.
We have $d((a,b)) \leq \rho((h(a),h(b)))$
by \cref{frechet_distance_difference_realizes_distance,frechet_distance_difference_function_bounded,sup_metric_coordinate_leq,times_tuple_intro,metric_on,funs_type_apply,real_lt_subst_left}.
Therefore $\rho((h(a),h(b))) = d((a,b))$ by \cref{complete_metric_space,times_tuple_intro,metric_on,funs_type_apply,real_leq_antisym}.
\end{subproof}
Show that $\rho$ is a metric on $B$ and
$B$ is complete with respect to $\rho$ and
$h$ is an isometric embedding from $X$ to $B$ with respect to $d$ and $\rho$.
\begin{subproof}
Follows by \cref{isometric_embedding}.
\end{subproof}
\end{byCase}
LaTeX source
\begin{proof}
\begin{byCase}
\caseOf{$X = \emptyset$.}
Let $Y = \reals$.
Let $D = \standardMetricR$.
Let $h = \emptyset$.
$D$ is a metric on $Y$ by \cref{standard_metric_is_metric}.
$Y$ is complete with respect to $D$ by \cref{reals_complete_standard_metric}.
Hence $h\in\funs{X}{Y}$ by \cref{codom_of_emptyset_can_be_anything,emptyset_is_function_on_emptyset,funs_intro}.
For all $a,b$ such that $a\in X$ and $b\in X$ we have $D((h(a),h(b))) = d((a,b))$.
Show that $D$ is a metric on $Y$ and
$Y$ is complete with respect to $D$ and
$h$ is an isometric embedding from $X$ to $Y$ with respect to $d$ and $D$.
\begin{subproof}
Follows by \cref{isometric_embedding}.
\end{subproof}
\caseOf{$X \neq \emptyset$.}
Take $x_0$ such that $x_0\in X$ by \cref{nonempty_inhabited}.
Let $B = \{u\in\funs{X}{\reals} \mid \text{$\img{u}{X}$ is bounded in $\reals$ with respect to $\standardMetricR$}\}$.
We have $B$ is the set of bounded functions from $X$ to $\reals$ with respect to $\standardMetricR$ by \cref{bounded_function_set}.
Take $\rho$ such that
$\rho$ is the sup metric on $B$ with respect to $X$ and $\reals$ and $\standardMetricR$ and
$B$ is complete with respect to $\rho$ by \cref{bounded_reals_function_space_complete_sup}.
Hence $\rho$ is a metric on $B$ by \cref{complete_metric_space}.
Let $Q = \{w\in X\times B \mid
\text{$\snd{w}$ is the Frechet distance-difference function of $\fst{w}$ with basepoint $x_0$ in $X$ with respect to $d$}\}$.
$Q$ is a relation by \cref{relation,subseteq,times_elem_is_tuple}.
Show that for all $a\in X$ there exists $y$ such that $a\mathrel{Q} y$.
\begin{subproof}
Fix $a\in X$.
Let $f = \{(x, d((x,a)) - d((x,x_0))) \mid x\in X\}$.
Therefore $a\mathrel{Q} f$
by \cref{frechet_distance_difference_function,frechet_distance_difference_function_bounded,times_tuple_intro,fst_eq,snd_eq,relation}.
\end{subproof}
Take $h$ such that
$h$ is a function on $X$ and
for all $a\in X$ we have $a\mathrel{Q}\apply{h}{a}$ by \cref{axiom_of_choice}.
Hence $h\in\funs{X}{B}$ by \cref{axiom_of_choice,relation,subseteq,times_tuple_elim,funs_intro}.
Show that for all $a,b\in X$ we have $\rho((h(a),h(b))) = d((a,b))$.
\begin{subproof}
Fix $a$.
Fix $b$ such that $a\in X$ and $b\in X$.
We have $h(a)$ is the Frechet distance-difference function of $a$ with basepoint $x_0$ in $X$ with respect to $d$ and
$h(b)$ is the Frechet distance-difference function of $b$ with basepoint $x_0$ in $X$ with respect to $d$
by \cref{axiom_of_choice,relation,fst_eq,snd_eq}.
Thus $d((a,b))\in\reals$ by \cref{times_tuple_intro,metric_on,funs_type_apply}.
For all $x\in X$ we have
$\apply{\standardMetricR}{(\apply{\apply{h}{a}}{x},\apply{\apply{h}{b}}{x})} \leq d((a,b))$
by \cref{frechet_distance_difference_pointwise_bound}.
Hence $\rho((h(a),h(b))) \leq d((a,b))$
by \cref{frechet_distance_difference_function_bounded,sup_metric_leq_from_coordinate_bounds}.
We have $d((a,b)) \leq \rho((h(a),h(b)))$
by \cref{frechet_distance_difference_realizes_distance,frechet_distance_difference_function_bounded,sup_metric_coordinate_leq,times_tuple_intro,metric_on,funs_type_apply,real_lt_subst_left}.
Therefore $\rho((h(a),h(b))) = d((a,b))$ by \cref{complete_metric_space,times_tuple_intro,metric_on,funs_type_apply,real_leq_antisym}.
\end{subproof}
Show that $\rho$ is a metric on $B$ and
$B$ is complete with respect to $\rho$ and
$h$ is an isometric embedding from $X$ to $B$ with respect to $d$ and $\rho$.
\begin{subproof}
Follows by \cref{isometric_embedding}.
\end{subproof}
\end{byCase}
\end{proof}
$Z$ is a completion of $X$ with respect to $d$ iff there exist $Y, D, h$ such that $D$ is a metric on $Y$ and $Y$ is complete with respect to $D$ and $h$ is an isometric embedding from $X$ to $Y$ with respect to $d$ and $D$ and $Z = \closure{\img{h}{X}}{Y}{\metricTopology{D}{Y}}$.
LaTeX source
\begin{definition}
\label{completion_of_metric_space}
$Z$ is a completion of $X$ with respect to $d$ iff
there exist $Y, D, h$ such that
$D$ is a metric on $Y$ and
$Y$ is complete with respect to $D$ and
$h$ is an isometric embedding from $X$ to $Y$ with respect to $d$ and $D$ and
$Z = \closure{\img{h}{X}}{Y}{\metricTopology{D}{Y}}$.
\end{definition}