Topology (Munkres)
§20 The Metric Topology
$d$ is nonnegative on $X$ iff for all $x,y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$.
LaTeX source
\begin{definition}
\label{metric_nonnegative}
$d$ is nonnegative on $X$ iff
for all $x,y\in X$ we have $d((x,y)) \geq 0$.
\end{definition}
$d$ is zero-characterized on $X$ iff for all $x,y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) = 0$ iff $x = y$.
LaTeX source
\begin{definition}
\label{metric_zero_characterization}
$d$ is zero-characterized on $X$ iff
for all $x,y\in X$ we have $d((x,y)) = 0$ iff $x = y$.
\end{definition}
$d$ is symmetric on $X$ iff for all $x,y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) = d((y,x))$.
LaTeX source
\begin{definition}
\label{metric_symmetric}
$d$ is symmetric on $X$ iff
for all $x,y\in X$ we have $d((x,y)) = d((y,x))$.
\end{definition}
$d$ satisfies the triangle inequality on $X$ iff for all $x,y,z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) + d((y,z)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} d((x,z))$.
LaTeX source
\begin{definition}
\label{metric_triangle_inequality}
$d$ satisfies the triangle inequality on $X$ iff
for all $x,y,z\in X$ we have $d((x,y)) + d((y,z)) \geq d((x,z))$.
\end{definition}
$d$ is a metric on $X$ iff $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 nonnegative on $X$ and $d$ is zero-characterized on $X$ and $d$ is symmetric on $X$ and $d$ satisfies the triangle inequality on $X$.
LaTeX source
\begin{definition}
\label{metric_on}
$d$ is a metric on $X$ iff
$d\in\funs{X\times X}{\reals}$ and
$d$ is nonnegative on $X$ and
$d$ is zero-characterized on $X$ and
$d$ is symmetric on $X$ and
$d$ satisfies the triangle inequality on $X$.
\end{definition}
$\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}} = \{y\class{latex-symbol-tip latex-symbol-id-in}{\in} X \mid d((x,y)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\}$.
LaTeX source
\begin{definition}
\label{metric_ball}
$\metricBall{d}{X}{x}{\epsilon} = \{y\in X \mid d((x,y)) < \epsilon\}$.
\end{definition}
$\metricBasis{d}{X} = \{B\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{X} \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} x\class{latex-symbol-tip latex-symbol-id-in}{\in} X. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals. 0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} \class{latex-symbol-tip latex-symbol-id-land}{\land} B = \metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\}$.
LaTeX source
\begin{definition}
\label{metric_basis}
$\metricBasis{d}{X} = \{B\in\pow{X} \mid \exists x\in X. \exists \epsilon\in\reals. 0 < \epsilon \land B = \metricBall{d}{X}{x}{\epsilon}\}$.
\end{definition}
$\metricTopology{d}{X} = \basisTopology{\metricBasis{d}{X}}{X}$.
LaTeX source
\begin{definition}
\label{metric_topology}
$\metricTopology{d}{X} = \basisTopology{\metricBasis{d}{X}}{X}$.
\end{definition}
Assume $d$ is a metric on $X$.
Then $\metricBasis{d}{X}$ is a basis on $X$.
LaTeX source
\begin{lemma}
\label{metric_basis_is_basis}
Assume $d$ is a metric on $X$.
Then $\metricBasis{d}{X}$ is a basis on $X$.
\end{lemma}
Proof
Let $B = \metricBasis{d}{X}$.
Claim: $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\pow{X}$.
Follows by Definition 1, Definition 180, Definition 181, Proposition 155.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $B_1\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$.
Claim: For all $B_1,B_2,x$ such that $B_1\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1\inter B_2$ there exists $B_3\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ and $B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_1\inter B_2$.
Fix $B_1$.
Fix $B_2$.
Fix $x$ such that $B_1\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1\inter B_2$.
Take $x_1,\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_1$ such that $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_1$ and $B_1 = \metricBall{d}{X}{x_1}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_1}$ by Definition 181.
Take $x_2,\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_2$ such that $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_2$ and $B_2 = \metricBall{d}{X}{x_2}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_2}$ by Definition 181.
Thus $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $d((x_1,x)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_1$ and $d((x_2,x)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_2$ by Definition 180, Proposition 62, Proposition 63.
$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((x_1,x))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((x_2,x))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
Let $r_1 = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_1 - d((x_1,x))$.
Let $r_2 = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_2 - d((x_2,x))$.
$0 < r_1$ and $0 < r_2$ by Definition 179, Lemma 26, Proposition 115, Proposition 361.
$r_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $r_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64.
Let $A = \{r_1, r_2\}$.
$A$ is finite and $A\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2, Lemma 40, Proposition 16.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1, Definition 64, Proposition 18.
Take $m\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $m$ is a minimum of $A$ by Lemma 49.
Thus $0 < m$ by Proposition 18.
Let $B_3 = \metricBall{d}{X}{x}{m}$.
Hence $B_3\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ by Definition 1, Definition 176, Definition 179, Definition 180, Definition 181, Lemma 82, Proposition 155.
Claim: For all $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ we have $z\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1\inter B_2$.
Fix $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$.
Thus $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $d((x,z)) < m$ by Definition 180.
$d((x,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((x_1,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((x_2,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
$r_1 + d((x_1,x)) = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_1$ and $r_2 + d((x_2,x)) = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_2$ by Axiom 15, Axiom 16, Axiom 17, Axiom 18, Definition 64.
$d((x,z)) < r_1$ by Axiom 13, Axiom 36, Definition 1, Definition 64, Definition 74, Lemma 81, Lemma 83, Proposition 16, Proposition 115, Proposition 361.
$d((x,z)) + d((x_1,x)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_1$ by Axiom 13, Axiom 15, Axiom 16, Axiom 17, Axiom 18, Axiom 37, Definition 64, Lemma 83, Proposition 115, Proposition 361.
$d((x_1,x)) + d((x,z)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_1$ by Axiom 16, Lemma 82, Proposition 115, Proposition 361.
$d((x_1,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x_1,x)) + d((x,z))$ by Definition 178, Definition 179.
Hence $d((x_1,z)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_1$ by Axiom 13, Axiom 36, Lemma 81, Lemma 82, Proposition 115, Proposition 361.
$z\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ by Definition 180.
$d((x,z)) < r_2$ by Axiom 13, Axiom 18, Axiom 36, Definition 1, Definition 64, Definition 74, Lemma 81, Lemma 83, Proposition 17, Proposition 115, Proposition 361.
$d((x,z)) + d((x_2,x)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_2$ by Axiom 13, Axiom 15, Axiom 16, Axiom 17, Axiom 18, Axiom 37, Definition 64, Lemma 83, Proposition 115, Proposition 361.
$d((x_2,x)) + d((x,z)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_2$ by Axiom 16, Lemma 82, Proposition 115, Proposition 361.
$d((x_2,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x_2,x)) + d((x,z))$ by Definition 178, Definition 179.
Hence $d((x_2,z)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_2$ by Axiom 13, Axiom 36, Lemma 81, Lemma 82, Proposition 115, Proposition 361.
$z\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ by Definition 180.
Therefore $z\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1\inter B_2$ by Proposition 61.
Hence $B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_1\inter B_2$ by Definition 1.
Therefore $B$ is a basis on $X$ by Definition 113.
LaTeX source
\begin{proof}
Let $B = \metricBasis{d}{X}$.
Show that $B\subseteq\pow{X}$.
\begin{subproof}
Follows by \cref{metric_basis,metric_ball,subseteq,powerset_intro}.
\end{subproof}
Show that for all $x$ such that $x\in X$ there exists $B_1\in B$ such that $x\in B_1$.
\begin{subproof}
Follows by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_zero_lt_one,metric_on,metric_zero_characterization,real_lt_subst_left,metric_ball,powerset_intro,metric_basis}.
\end{subproof}
Show that for all $B_1,B_2,x$ such that $B_1\in B$ and $B_2\in B$ and $x\in B_1\inter B_2$
there exists $B_3\in B$ such that $x\in B_3$ and $B_3\subseteq B_1\inter B_2$.
\begin{subproof}
Fix $B_1$.
Fix $B_2$.
Fix $x$ such that $B_1\in B$ and $B_2\in B$ and $x\in B_1\inter B_2$.
Take $x_1,\epsilon_1$ such that $x_1\in X$ and $\epsilon_1\in\reals$ and $0 < \epsilon_1$ and $B_1 = \metricBall{d}{X}{x_1}{\epsilon_1}$
by \cref{metric_basis}.
Take $x_2,\epsilon_2$ such that $x_2\in X$ and $\epsilon_2\in\reals$ and $0 < \epsilon_2$ and $B_2 = \metricBall{d}{X}{x_2}{\epsilon_2}$
by \cref{metric_basis}.
Thus $x\in X$ and $d((x_1,x)) < \epsilon_1$ and $d((x_2,x)) < \epsilon_2$
by \cref{inter_elim_left,inter_elim_right,metric_ball}.
$d\in\funs{X\times X}{\reals}$ and $d((x_1,x))\in\reals$ and $d((x_2,x))\in\reals$
by \cref{metric_on,times_tuple_intro,funs_type_apply}.
Let $r_1 = \epsilon_1 - d((x_1,x))$.
Let $r_2 = \epsilon_2 - d((x_2,x))$.
$0 < r_1$ and $0 < r_2$ by \cref{metric_on,times_tuple_intro,funs_type_apply,real_lt_imp_pos_diff}.
$r_1\in\reals$ and $r_2\in\reals$ by \cref{real_sub,real_add_inverse,real_add_closed}.
Let $A = \{r_1, r_2\}$.
$A$ is finite and $A\neq\emptyset$ by \cref{pair_is_finite,upair_intro_left,emptyset}.
$A\subseteq\reals$ by \cref{upair_elim,real_sub,subseteq}.
Take $m\in A$ such that $m$ is a minimum of $A$ by \cref{finite_real_minimum}.
Thus $0 < m$ by \cref{upair_elim}.
Let $B_3 = \metricBall{d}{X}{x}{m}$.
Hence $B_3\in B$ and $x\in B_3$ by
\cref{subseteq,metric_ball,powerset_intro,metric_basis,metric_on,metric_zero_characterization,real_lt_subst_left}.
Show that for all $z$ such that $z\in B_3$ we have $z\in B_1\inter B_2$.
\begin{subproof}
Fix $z$ such that $z\in B_3$.
Thus $z\in X$ and $d((x,z)) < m$ by \cref{metric_ball}.
$d((x,z))\in\reals$ and $d((x_1,z))\in\reals$ and $d((x_2,z))\in\reals$
by \cref{metric_on,times_tuple_intro,funs_type_apply}.
$r_1 + d((x_1,x)) = \epsilon_1$ and $r_2 + d((x_2,x)) = \epsilon_2$
by \cref{real_sub,real_add_assoc,real_add_inverse,real_add_comm,real_add_ident}.
$d((x,z)) < r_1$ by
\cref{real_minimum,upair_intro_left,times_tuple_intro,funs_type_apply,subseteq,real_sub,real_add_closed,real_leq_split,real_lt_trans,real_lt_subst_right}.
$d((x,z)) + d((x_1,x)) < \epsilon_1$ by
\cref{times_tuple_intro,funs_type_apply,real_sub,real_add_closed,real_lt_add,real_add_inverse,real_add_assoc,real_add_comm,real_add_ident,real_lt_subst_right}.
$d((x_1,x)) + d((x,z)) < \epsilon_1$ by
\cref{funs_type_apply,times_tuple_intro,real_add_comm,real_lt_subst_left}.
$d((x_1,z)) \leq d((x_1,x)) + d((x,z))$ by \cref{metric_on,metric_triangle_inequality}.
Hence $d((x_1,z)) < \epsilon_1$ by
\cref{times_tuple_intro,funs_type_apply,real_add_closed,real_leq_split,real_lt_trans,real_lt_subst_left}.
$z\in B_1$ by \cref{metric_ball}.
$d((x,z)) < r_2$ by
\cref{real_minimum,upair_intro_right,times_tuple_intro,funs_type_apply,subseteq,real_sub,real_add_inverse,real_add_closed,real_leq_split,real_lt_trans,real_lt_subst_right}.
$d((x,z)) + d((x_2,x)) < \epsilon_2$ by
\cref{times_tuple_intro,funs_type_apply,real_sub,real_add_inverse,real_add_closed,real_lt_add,real_add_assoc,real_add_comm,real_add_ident,real_lt_subst_right}.
$d((x_2,x)) + d((x,z)) < \epsilon_2$ by
\cref{funs_type_apply,times_tuple_intro,real_add_comm,real_lt_subst_left}.
$d((x_2,z)) \leq d((x_2,x)) + d((x,z))$ by \cref{metric_on,metric_triangle_inequality}.
Hence $d((x_2,z)) < \epsilon_2$ by
\cref{times_tuple_intro,funs_type_apply,real_add_closed,real_leq_split,real_lt_trans,real_lt_subst_left}.
$z\in B_2$ by \cref{metric_ball}.
Therefore $z\in B_1\inter B_2$ by \cref{inter_intro}.
\end{subproof}
Hence $B_3\subseteq B_1\inter B_2$ by \cref{subseteq}.
\end{subproof}
Therefore $B$ is a basis on $X$ by \cref{basis_on}.
\end{proof}
Assume $d$ is a metric on $X$.
Let $T = \metricTopology{d}{X}$.
Then for all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ we have $U$ is open in $X$ with respect to $T$ iff for all $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ there exists $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\metricBall{d}{X}{y}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.
LaTeX source
\begin{lemma}
\label{metric_open_iff}
Assume $d$ is a metric on $X$.
Let $T = \metricTopology{d}{X}$.
Then for all $U$ such that $U\subseteq X$ we have
$U$ is open in $X$ with respect to $T$ iff
for all $y\in U$ there exists $\delta\in\reals$ such that $0 < \delta$ and $\metricBall{d}{X}{y}{\delta}\subseteq U$.
\end{lemma}
Proof
Let $B = \metricBasis{d}{X}$.
$T = \basisTopology{B}{X}$ by Definition 182.
Fix $U$ such that $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Claim: If $U$ is open in $X$ with respect to $T$ then for all $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ there exists $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\metricBall{d}{X}{y}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.
Assume $U$ is open in $X$ with respect to $T$.
Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
There exists $B_1\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ and $B_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 103, Definition 114.
Take $x,\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $\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}$ and $B_1 = \metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 181.
Thus $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $d((x,y)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 180.
$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((x,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
Let $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} - d((x,y))$.
$0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 179, Lemma 26, Proposition 115, Proposition 361.
Claim: For all $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X}{y}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ we have $z\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$.
Fix $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X}{y}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$.
Thus $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $d((y,z)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 180.
$d((x,y)) + d((y,z)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 13, Axiom 15, Axiom 16, Axiom 17, Axiom 18, Axiom 37, Definition 64, Lemma 82, Lemma 83, Proposition 115, Proposition 361.
$d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x,y)) + d((y,z))$ by Definition 178, Definition 179.
Hence $d((x,z)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 13, Axiom 36, Lemma 81, Lemma 82, Proposition 115, Proposition 361.
Therefore $z\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ by Definition 180.
Therefore $\metricBall{d}{X}{y}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 1, Proposition 6.
Claim: If for all $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ there exists $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\metricBall{d}{X}{y}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ then for all $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ there exists $B_1\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ and $B_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.
Follows by Definition 1, Definition 176, Definition 179, Definition 180, Definition 181, Lemma 82, Proposition 155.
Claim: If for all $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ there exists $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\metricBall{d}{X}{y}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ then $U$ is open in $X$ with respect to $T$.
Follows by Definition 103, Definition 114, Lemma 76, Lemma 194, Proposition 155.
LaTeX source
\begin{proof}
Let $B = \metricBasis{d}{X}$.
$T = \basisTopology{B}{X}$ by \cref{metric_topology}.
Fix $U$ such that $U\subseteq X$.
Show that if $U$ is open in $X$ with respect to $T$ then
for all $y\in U$ there exists $\delta\in\reals$ such that $0 < \delta$ and $\metricBall{d}{X}{y}{\delta}\subseteq U$.
\begin{subproof}
Assume $U$ is open in $X$ with respect to $T$.
Fix $y$ such that $y\in U$.
There exists $B_1\in B$ such that $y\in B_1$ and $B_1\subseteq U$ by \cref{open_in,topology_generated_by_basis}.
Take $x,\epsilon$ such that $x\in X$ and $\epsilon\in\reals$ and $0 < \epsilon$ and
$B_1 = \metricBall{d}{X}{x}{\epsilon}$ by \cref{metric_basis}.
Thus $y\in X$ and $d((x,y)) < \epsilon$ by \cref{metric_ball}.
$d\in\funs{X\times X}{\reals}$ and $d((x,y))\in\reals$
by \cref{metric_on,times_tuple_intro,funs_type_apply}.
Let $\delta = \epsilon - d((x,y))$.
$0 < \delta$ by \cref{metric_on,times_tuple_intro,funs_type_apply,real_lt_imp_pos_diff}.
Show that for all $z$ such that $z\in\metricBall{d}{X}{y}{\delta}$ we have $z\in B_1$.
\begin{subproof}
Fix $z$ such that $z\in\metricBall{d}{X}{y}{\delta}$.
Thus $z\in X$ and $d((y,z)) < \delta$ by \cref{metric_ball}.
$d((x,y)) + d((y,z)) < \epsilon$ by
\cref{times_tuple_intro,funs_type_apply,real_sub,real_add_inverse,real_add_closed,real_lt_subst_right,real_lt_add,real_add_assoc,real_add_comm,real_add_ident,real_lt_subst_left}.
$d((x,z)) \leq d((x,y)) + d((y,z))$ by \cref{metric_on,metric_triangle_inequality}.
Hence $d((x,z)) < \epsilon$ by
\cref{times_tuple_intro,funs_type_apply,real_add_closed,real_leq_split,real_lt_trans,real_lt_subst_left}.
Therefore $z\in B_1$ by \cref{metric_ball}.
\end{subproof}
Therefore $\metricBall{d}{X}{y}{\delta}\subseteq U$ by \cref{subseteq,subseteq_transitive}.
\end{subproof}
Show that if for all $y\in U$ there exists $\delta\in\reals$ such that $0 < \delta$ and $\metricBall{d}{X}{y}{\delta}\subseteq U$
then for all $y\in U$ there exists $B_1\in B$ such that $y\in B_1$ and $B_1\subseteq U$.
\begin{subproof}
Follows by \cref{subseteq,metric_on,metric_zero_characterization,real_lt_subst_left,metric_ball,powerset_intro,metric_basis}.
\end{subproof}
Show that if for all $y\in U$ there exists $\delta\in\reals$ such that $0 < \delta$ and $\metricBall{d}{X}{y}{\delta}\subseteq U$
then $U$ is open in $X$ with respect to $T$.
\begin{subproof}
Follows by \cref{metric_basis_is_basis,basis_topology_is_topology,powerset_intro,topology_generated_by_basis,open_in}.
\end{subproof}
\end{proof}
$\discreteMetric{X} = \{w \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} z\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals. w = (p,z) \class{latex-symbol-tip latex-symbol-id-land}{\land} ((\fst{p} = \snd{p} \class{latex-symbol-tip latex-symbol-id-land}{\land} z = 0) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (\fst{p}\class{latex-symbol-tip latex-symbol-id-neq}{\neq} \snd{p} \class{latex-symbol-tip latex-symbol-id-land}{\land} z = 1))\}$.
LaTeX source
\begin{definition}
\label{discrete_metric}
$\discreteMetric{X} = \{w \mid \exists p\in X\times X. \exists z\in\reals.
w = (p,z) \land
((\fst{p} = \snd{p} \land z = 0) \lor (\fst{p}\neq \snd{p} \land z = 1))\}$.
\end{definition}
$\discreteMetric{X}$ is a metric on $X$.
LaTeX source
\begin{lemma}
\label{discrete_metric_is_metric}
$\discreteMetric{X}$ is a metric on $X$.
\end{lemma}
Proof
Let $d = \discreteMetric{X}$.
For all $p,z_1,z_2$ such that $(p,z_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ and $(p,z_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ we have $z_1 = z_2$ by Axiom 6, Definition 183.
Hence $d$ is right-unique by Definition 51.
$d$ is a relation by Definition 12, Definition 183.
$d$ is a function.
For all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ we have $d(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 6, Definition 183, Proposition 199, Proposition 346.
Hence $d$ is a function to $\reals$.
$\dom{d}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Axiom 6, Definition 1, Definition 183, Proposition 199.
For all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ we have $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ by Axiom 17, Axiom 41, Axiom 42, Definition 1, Definition 183, Proposition 200.
Therefore $d\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} X}{\reals}$ by Definition 1, Proposition 3, Proposition 358.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$.
Follows by Axiom 10, Axiom 11, Axiom 17, Axiom 41, Axiom 42, Definition 1, Definition 183, Lemma 83, Proposition 115, Proposition 346, Proposition 359, Proposition 462.
Hence $d$ is nonnegative on $X$ by Definition 175.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) = 0$ iff $x = y$.
Follows by Axiom 10, Axiom 11, Axiom 17, Axiom 39, Axiom 41, Axiom 42, Definition 1, Definition 183, Lemma 83, Proposition 115, Proposition 346, Proposition 359, Proposition 462.
Therefore $d$ is zero-characterized on $X$ by Definition 176.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) = d((y,x))$.
Follows by Axiom 10, Axiom 11, Axiom 17, Axiom 41, Axiom 42, Definition 1, Definition 183, Proposition 115, Proposition 346, Proposition 359.
Hence $d$ is symmetric on $X$ by Definition 177.
Claim: For all $x,y,z$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) + d((y,z)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} d((x,z))$.
Fix $x$.
Fix $y$.
Fix $z$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
$d((x,z)) = 0$ by Axiom 10, Axiom 11, Axiom 17, Definition 183, Proposition 115, Proposition 346, Proposition 359.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17.
We have $d((x,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((y,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 115, Proposition 361.
Therefore $d((x,y)) + d((y,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
We have $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x,y))$ and $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((y,z))$ by Definition 175.
Thus $0 + d((y,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x,y)) + d((y,z))$ by Lemma 24.
Hence $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x,y)) + d((y,z))$ by Axiom 17, Lemma 23.
$d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 0$.
Therefore $d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x,y)) + d((y,z))$ by Lemma 23.
Hence $d((x,y)) + d((y,z)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} d((x,z))$.
We have $d((x,z)) = 1$ by Axiom 10, Axiom 11, Axiom 41, Axiom 42, Definition 1, Definition 183, Proposition 115, Proposition 346, Proposition 359.
Claim: $d((x,y)) + d((y,z)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 1$.
$d((y,z)) = 1$ by Axiom 10, Axiom 11, Axiom 41, Axiom 42, Definition 1, Definition 183, Proposition 115, Proposition 346, Proposition 359.
$d((x,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 115, Proposition 361.
Hence $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x,y))$ by Definition 175.
Therefore $d((x,y)) + d((y,z)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 1$ by Axiom 16, Axiom 17, Axiom 41, Axiom 42, Definition 1, Lemma 23, Lemma 24.
$d((x,y)) = 1$ by Axiom 10, Axiom 11, Axiom 41, Axiom 42, Definition 1, Definition 183, Proposition 115, Proposition 346, Proposition 359.
$d((y,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 115, Proposition 361.
Hence $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((y,z))$ by Definition 175.
Therefore $d((x,y)) + d((y,z)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 1$ by Axiom 16, Axiom 17, Axiom 41, Axiom 42, Definition 1, Lemma 23, Lemma 24.
LaTeX source
\begin{byCase}
\caseOf{$x = y$.}
$d((y,z)) = 1$ by
\cref{times_tuple_intro,real_naturals_subset_reals,real_one_in_naturals,subseteq,fst_eq,snd_eq,discrete_metric,function_apply_intro,funs_elim}.
$d((x,y))\in\reals$ by \cref{funs_type_apply,times_tuple_intro}.
Hence $0 \leq d((x,y))$ by \cref{metric_nonnegative}.
Therefore $d((x,y)) + d((y,z)) \geq 1$ by
\cref{real_add_ident,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_leq_add,real_add_comm,real_leq_trans}.
\caseOf{$x \neq y$.}
$d((x,y)) = 1$ by
\cref{times_tuple_intro,real_naturals_subset_reals,real_one_in_naturals,subseteq,fst_eq,snd_eq,discrete_metric,function_apply_intro,funs_elim}.
$d((y,z))\in\reals$ by \cref{funs_type_apply,times_tuple_intro}.
Hence $0 \leq d((y,z))$ by \cref{metric_nonnegative}.
Therefore $d((x,y)) + d((y,z)) \geq 1$ by
\cref{real_add_ident,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_leq_add,real_add_comm,real_leq_trans}.
\end{byCase}
Hence $1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x,y)) + d((y,z))$.
$d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$.
Therefore $d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x,y)) + d((y,z))$ by Lemma 23.
Hence $d((x,y)) + d((y,z)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} d((x,z))$.
LaTeX source
\begin{byCase}
\caseOf{$x = z$.}
$d((x,z)) = 0$ by \cref{times_tuple_intro,real_add_ident,fst_eq,snd_eq,discrete_metric,function_apply_intro,funs_elim}.
$0\in\reals$ by \cref{real_add_ident}.
We have $d((x,y))\in\reals$ and $d((y,z))\in\reals$ by \cref{funs_type_apply,times_tuple_intro}.
Therefore $d((x,y)) + d((y,z))\in\reals$ by \cref{real_add_closed}.
We have $0 \leq d((x,y))$ and $0 \leq d((y,z))$ by \cref{metric_nonnegative}.
Thus $0 + d((y,z)) \leq d((x,y)) + d((y,z))$ by \cref{real_leq_add}.
Hence $0 \leq d((x,y)) + d((y,z))$ by \cref{real_add_ident,real_leq_trans}.
$d((x,z)) \leq 0$.
Therefore $d((x,z)) \leq d((x,y)) + d((y,z))$ by \cref{real_leq_trans}.
Hence $d((x,y)) + d((y,z)) \geq d((x,z))$.
\caseOf{$x \neq z$.}
We have $d((x,z)) = 1$ by
\cref{times_tuple_intro,real_naturals_subset_reals,real_one_in_naturals,subseteq,fst_eq,snd_eq,discrete_metric,function_apply_intro,funs_elim}.
Show that $d((x,y)) + d((y,z)) \geq 1$.
\begin{subproof}
\begin{byCase}
\caseOf{$x = y$.}
$d((y,z)) = 1$ by
\cref{times_tuple_intro,real_naturals_subset_reals,real_one_in_naturals,subseteq,fst_eq,snd_eq,discrete_metric,function_apply_intro,funs_elim}.
$d((x,y))\in\reals$ by \cref{funs_type_apply,times_tuple_intro}.
Hence $0 \leq d((x,y))$ by \cref{metric_nonnegative}.
Therefore $d((x,y)) + d((y,z)) \geq 1$ by
\cref{real_add_ident,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_leq_add,real_add_comm,real_leq_trans}.
\caseOf{$x \neq y$.}
$d((x,y)) = 1$ by
\cref{times_tuple_intro,real_naturals_subset_reals,real_one_in_naturals,subseteq,fst_eq,snd_eq,discrete_metric,function_apply_intro,funs_elim}.
$d((y,z))\in\reals$ by \cref{funs_type_apply,times_tuple_intro}.
Hence $0 \leq d((y,z))$ by \cref{metric_nonnegative}.
Therefore $d((x,y)) + d((y,z)) \geq 1$ by
\cref{real_add_ident,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_leq_add,real_add_comm,real_leq_trans}.
\end{byCase}
\end{subproof}
Hence $1 \leq d((x,y)) + d((y,z))$.
$d((x,z)) \leq 1$.
Therefore $d((x,z)) \leq d((x,y)) + d((y,z))$ by \cref{real_leq_trans}.
Hence $d((x,y)) + d((y,z)) \geq d((x,z))$.
\end{byCase}
Hence $d$ is a metric on $X$ by Definition 178, Definition 179.
LaTeX source
\begin{proof}
Let $d = \discreteMetric{X}$.
For all $p,z_1,z_2$ such that $(p,z_1)\in d$ and $(p,z_2)\in d$ we have $z_1 = z_2$
by \cref{discrete_metric,pair_eq_iff}.
Hence $d$ is right-unique by \cref{rightunique}.
$d$ is a relation by \cref{discrete_metric,relation}.
$d$ is a function.
For all $p$ such that $p\in\dom{d}$ we have $d(p)\in\reals$
by \cref{dom_iff,discrete_metric,pair_eq_iff,function_apply_intro}.
Hence $d$ is a function to $\reals$.
$\dom{d}\subseteq X\times X$ by \cref{dom_iff,discrete_metric,pair_eq_iff,subseteq}.
For all $p$ such that $p\in X\times X$ we have $p\in\dom{d}$
by \cref{real_add_ident,real_naturals_subset_reals,real_one_in_naturals,subseteq,discrete_metric,dom_intro}.
Therefore $d\in\funs{X\times X}{\reals}$ by \cref{subseteq,subseteq_antisymmetric,funs_intro}.
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have $d((x,y)) \geq 0$.
\begin{subproof}
Follows by \cref{times_tuple_intro,real_add_ident,real_naturals_subset_reals,real_one_in_naturals,subseteq,fst_eq,snd_eq,discrete_metric,function_apply_intro,funs_elim,real_zero_lt_one,real_lt_subst_right}.
\end{subproof}
Hence $d$ is nonnegative on $X$ by \cref{metric_nonnegative}.
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have $d((x,y)) = 0$ iff $x = y$.
\begin{subproof}
Follows by \cref{times_tuple_intro,real_add_ident,real_naturals_subset_reals,real_one_in_naturals,subseteq,fst_eq,snd_eq,discrete_metric,function_apply_intro,funs_elim,real_zero_lt_one,real_lt_subst_right,real_lt_irreflexive}.
\end{subproof}
Therefore $d$ is zero-characterized on $X$ by \cref{metric_zero_characterization}.
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have $d((x,y)) = d((y,x))$.
\begin{subproof}
Follows by \cref{times_tuple_intro,real_add_ident,real_naturals_subset_reals,real_one_in_naturals,subseteq,fst_eq,snd_eq,discrete_metric,function_apply_intro,funs_elim}.
\end{subproof}
Hence $d$ is symmetric on $X$ by \cref{metric_symmetric}.
Show that for all $x,y,z$ such that $x\in X$ and $y\in X$ and $z\in X$ we have
$d((x,y)) + d((y,z)) \geq d((x,z))$.
\begin{subproof}
Fix $x$.
Fix $y$.
Fix $z$ such that $x\in X$ and $y\in X$ and $z\in X$.
\begin{byCase}
\caseOf{$x = z$.}
$d((x,z)) = 0$ by \cref{times_tuple_intro,real_add_ident,fst_eq,snd_eq,discrete_metric,function_apply_intro,funs_elim}.
$0\in\reals$ by \cref{real_add_ident}.
We have $d((x,y))\in\reals$ and $d((y,z))\in\reals$ by \cref{funs_type_apply,times_tuple_intro}.
Therefore $d((x,y)) + d((y,z))\in\reals$ by \cref{real_add_closed}.
We have $0 \leq d((x,y))$ and $0 \leq d((y,z))$ by \cref{metric_nonnegative}.
Thus $0 + d((y,z)) \leq d((x,y)) + d((y,z))$ by \cref{real_leq_add}.
Hence $0 \leq d((x,y)) + d((y,z))$ by \cref{real_add_ident,real_leq_trans}.
$d((x,z)) \leq 0$.
Therefore $d((x,z)) \leq d((x,y)) + d((y,z))$ by \cref{real_leq_trans}.
Hence $d((x,y)) + d((y,z)) \geq d((x,z))$.
\caseOf{$x \neq z$.}
We have $d((x,z)) = 1$ by
\cref{times_tuple_intro,real_naturals_subset_reals,real_one_in_naturals,subseteq,fst_eq,snd_eq,discrete_metric,function_apply_intro,funs_elim}.
Show that $d((x,y)) + d((y,z)) \geq 1$.
\begin{subproof}
\begin{byCase}
\caseOf{$x = y$.}
$d((y,z)) = 1$ by
\cref{times_tuple_intro,real_naturals_subset_reals,real_one_in_naturals,subseteq,fst_eq,snd_eq,discrete_metric,function_apply_intro,funs_elim}.
$d((x,y))\in\reals$ by \cref{funs_type_apply,times_tuple_intro}.
Hence $0 \leq d((x,y))$ by \cref{metric_nonnegative}.
Therefore $d((x,y)) + d((y,z)) \geq 1$ by
\cref{real_add_ident,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_leq_add,real_add_comm,real_leq_trans}.
\caseOf{$x \neq y$.}
$d((x,y)) = 1$ by
\cref{times_tuple_intro,real_naturals_subset_reals,real_one_in_naturals,subseteq,fst_eq,snd_eq,discrete_metric,function_apply_intro,funs_elim}.
$d((y,z))\in\reals$ by \cref{funs_type_apply,times_tuple_intro}.
Hence $0 \leq d((y,z))$ by \cref{metric_nonnegative}.
Therefore $d((x,y)) + d((y,z)) \geq 1$ by
\cref{real_add_ident,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_leq_add,real_add_comm,real_leq_trans}.
\end{byCase}
\end{subproof}
Hence $1 \leq d((x,y)) + d((y,z))$.
$d((x,z)) \leq 1$.
Therefore $d((x,z)) \leq d((x,y)) + d((y,z))$ by \cref{real_leq_trans}.
Hence $d((x,y)) + d((y,z)) \geq d((x,z))$.
\end{byCase}
\end{subproof}
Hence $d$ is a metric on $X$ by \cref{metric_triangle_inequality,metric_on}.
\end{proof}
$\metricTopology{\discreteMetric{X}}{X} = \discrete{X}$.
LaTeX source
\begin{lemma}
\label{discrete_metric_topology}
$\metricTopology{\discreteMetric{X}}{X} = \discrete{X}$.
\end{lemma}
Proof
Let $d = \discreteMetric{X}$.
Let $T = \metricTopology{d}{X}$.
$d$ is a metric on $X$ by Lemma 196.
Thus $\metricBasis{d}{X}$ is a basis on $X$ and $T$ is a topology on $X$ by Definition 101, Definition 182, Lemma 76, Lemma 194.
Claim: $T\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\discrete{X}$.
Follows by Definition 101, Definition 104, Definition 182, Lemma 76, Lemma 194.
Claim: For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in}\discrete{X}$ we have $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$.
Fix $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in}\discrete{X}$.
$U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 104, Proposition 156.
$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 $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ we have $\metricBall{d}{X}{y}{1}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.
For all $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ there exists $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\metricBall{d}{X}{y}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.
Hence $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 103, Definition 104, Lemma 195, Proposition 156.
Therefore $T = \discrete{X}$ by Definition 1, Proposition 3.
LaTeX source
\begin{proof}
Let $d = \discreteMetric{X}$.
Let $T = \metricTopology{d}{X}$.
$d$ is a metric on $X$ by \cref{discrete_metric_is_metric}.
Thus $\metricBasis{d}{X}$ is a basis on $X$ and $T$ is a topology on $X$
by \cref{metric_basis_is_basis,basis_topology_is_topology,metric_topology,topology_on}.
Show that $T\subseteq\discrete{X}$.
\begin{subproof}
Follows by \cref{metric_basis_is_basis,basis_topology_is_topology,metric_topology,topology_on,discrete_topology}.
\end{subproof}
Show that for all $U$ such that $U\in\discrete{X}$ we have $U\in T$.
\begin{subproof}
Fix $U$ such that $U\in\discrete{X}$.
$U\subseteq X$ by \cref{discrete_topology,powerset_elim}.
$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 $y$ such that $y\in U$ we have $\metricBall{d}{X}{y}{1}\subseteq U$.
\begin{subproof}
Follows by \cref{metric_ball,subseteq,times_tuple_intro,fst_eq,snd_eq,discrete_metric,function_apply_intro,funs_elim,metric_on,real_lt_subst_right,real_lt_irreflexive}.
\end{subproof}
For all $y\in U$ there exists $\delta\in\reals$ such that
$0 < \delta$ and $\metricBall{d}{X}{y}{\delta}\subseteq U$.
Hence $U\in T$ by \cref{discrete_topology,powerset_elim,metric_open_iff,open_in}.
\end{subproof}
Therefore $T = \discrete{X}$ by \cref{subseteq,subseteq_antisymmetric}.
\end{proof}
$\standardMetricR = \{w \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} p\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} z\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals. w = (p,z) \class{latex-symbol-tip latex-symbol-id-land}{\land} z = \abs{\fst{p} - \snd{p}}\}$.
LaTeX source
\begin{definition}
\label{standard_metric_r}
$\standardMetricR = \{w \mid \exists p\in\reals\times\reals. \exists z\in\reals.
w = (p,z) \land z = \abs{\fst{p} - \snd{p}}\}$.
\end{definition}
$\standardMetricR$ is a metric on $\reals$.
LaTeX source
\begin{lemma}
\label{standard_metric_is_metric}
$\standardMetricR$ is a metric on $\reals$.
\end{lemma}
Proof
Let $d = \standardMetricR$.
For all $p,z_1,z_2$ such that $(p,z_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ and $(p,z_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ we have $z_1 = z_2$ by Axiom 6, Definition 184.
Hence $d$ is right-unique by Definition 51.
$d$ is a relation by Definition 12, Definition 184.
$d$ is a function.
For all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ we have $d(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 6, Definition 184, Proposition 199, Proposition 346.
Hence $d$ is a function to $\reals$.
Claim: $\dom{d}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$.
Follows by Axiom 6, Definition 1, Definition 184, Proposition 199.
Claim: $\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{d}$.
Follows by Axiom 10, Axiom 11, Axiom 13, Axiom 18, Definition 1, Definition 64, Definition 184, Lemma 34, Proposition 121, Proposition 200.
Hence $d\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals}{\reals}$ by Definition 1, Proposition 3, Proposition 358.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ we have $d((x,y)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$.
Follows by Axiom 10, Axiom 11, Axiom 13, Axiom 18, Definition 64, Definition 184, Lemma 34, Proposition 115, Proposition 346, Proposition 359, Proposition 480.
Hence $d$ is nonnegative on $\reals$ by Definition 175.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ we have $d((x,y)) = 0$ iff $x = y$.
Therefore $d$ is zero-characterized on $\reals$ by Definition 176.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ we have $d((x,y)) = d((y,x))$.
Follows by Axiom 10, Axiom 11, Axiom 13, Axiom 18, Definition 64, Definition 184, Lemma 34, Proposition 115, Proposition 346, Proposition 359, Proposition 482.
Hence $d$ is symmetric on $\reals$ by Definition 177.
Claim: For all $x,y,z$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ we have $d((x,y)) + d((y,z)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} d((x,z))$.
Fix $x$.
Fix $y$.
Fix $z$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
$\neg{y}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\neg{z}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 18.
$x - y = x + \neg{y}$ by Definition 64.
$y - z = y + \neg{z}$ by Definition 64.
$x - z = x + \neg{z}$ by Definition 64.
$\abs{(x - y)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\abs{(y - z)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\abs{(x - z)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64, Lemma 34.
Let $p_1 = (x,y)$.
Let $p_2 = (y,z)$.
Let $p_3 = (x,z)$.
$p_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ and $p_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ and $p_3\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ by Proposition 115.
$\fst{p_1} = x$ and $\snd{p_1} = y$ and $\fst{p_2} = y$ and $\snd{p_2} = z$ and $\fst{p_3} = x$ and $\snd{p_3} = z$ by Axiom 10, Axiom 11.
$\fst{p_1} - \snd{p_1} = x - y$.
$\fst{p_2} - \snd{p_2} = y - z$.
$\fst{p_3} - \snd{p_3} = x - z$.
$\fst{p_1} - \snd{p_1}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
$\fst{p_2} - \snd{p_2}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
$\fst{p_3} - \snd{p_3}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Let $z_1 = \abs{\fst{p_1} - \snd{p_1}}$.
Let $z_2 = \abs{\fst{p_2} - \snd{p_2}}$.
Let $z_3 = \abs{\fst{p_3} - \snd{p_3}}$.
$z_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $z_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $z_3\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 10, Axiom 11, Axiom 13, Axiom 18, Definition 64, Lemma 34.
Let $w_1 = (p_1,z_1)$.
Let $w_2 = (p_2,z_2)$.
Let $w_3 = (p_3,z_3)$.
$w_1\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ and $w_2\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ and $w_3\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Definition 184.
$d((x,y)) = \abs{(x - y)}$ and $d((y,z)) = \abs{(y - z)}$ and $d((x,z)) = \abs{(x - z)}$ by Axiom 10, Axiom 11, Proposition 346, Proposition 359.
$x - y = x + \neg{y}$ and $y - z = y + \neg{z}$ and $(x - y) + (y - z) = (x + \neg{y}) + (y + \neg{z})$ by Definition 64.
$(x + \neg{y}) + (y + \neg{z}) = x + (\neg{y} + (y + \neg{z}))$ and $\neg{y} + (y + \neg{z}) = (\neg{y} + y) + \neg{z}$ by Axiom 15.
$\neg{y} + y = y + \neg{y}$ by Axiom 16.
$y + \neg{y} = 0$ by Axiom 18.
$\neg{y} + (y + \neg{z}) = 0 + \neg{z}$.
$0 + \neg{z} = \neg{z}$ by Axiom 17.
$(x - y) + (y - z) = x + \neg{z}$.
$x + \neg{z} = x - z$ by Definition 64.
$\abs{((x - y) + (y - z))} = \abs{(x - z)}$.
Hence $d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \abs{(x - y)} + \abs{(y - z)}$ by Proposition 493.
Therefore $d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x,y)) + d((y,z))$.
Hence $d((x,y)) + d((y,z)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} d((x,z))$.
Hence $d$ is a metric on $\reals$ by Definition 178, Definition 179.
LaTeX source
\begin{proof}
Let $d = \standardMetricR$.
For all $p,z_1,z_2$ such that $(p,z_1)\in d$ and $(p,z_2)\in d$ we have $z_1 = z_2$
by \cref{standard_metric_r,pair_eq_iff}.
Hence $d$ is right-unique by \cref{rightunique}.
$d$ is a relation by \cref{standard_metric_r,relation}.
$d$ is a function.
For all $p$ such that $p\in\dom{d}$ we have $d(p)\in\reals$
by \cref{dom_iff,standard_metric_r,pair_eq_iff,function_apply_intro}.
Hence $d$ is a function to $\reals$.
Show that $\dom{d}\subseteq\reals\times\reals$.
\begin{subproof}
Follows by \cref{dom_iff,standard_metric_r,pair_eq_iff,subseteq}.
\end{subproof}
Show that $\reals\times\reals\subseteq\dom{d}$.
\begin{subproof}
Follows by \cref{standard_metric_r,dom_intro,times_elem_is_tuple,fst_eq,snd_eq,real_sub,real_add_inverse,real_add_closed,real_abs_in_reals,subseteq}.
\end{subproof}
Hence $d\in\funs{\reals\times\reals}{\reals}$ by \cref{subseteq,subseteq_antisymmetric,funs_intro}.
Show that for all $x,y$ such that $x\in\reals$ and $y\in\reals$ we have $d((x,y)) \geq 0$.
\begin{subproof}
Follows by \cref{times_tuple_intro,standard_metric_r,function_apply_intro,funs_elim,fst_eq,snd_eq,real_sub,real_add_inverse,real_add_closed,real_abs_in_reals,real_abs_nonnegative}.
\end{subproof}
Hence $d$ is nonnegative on $\reals$ by \cref{metric_nonnegative}.
Show that for all $x,y$ such that $x\in\reals$ and $y\in\reals$ we have $d((x,y)) = 0$ iff $x = y$.
\begin{subproof}
Follows by \cref{times_tuple_intro,standard_metric_r,function_apply_intro,funs_elim,fst_eq,snd_eq,real_sub,real_add_inverse,real_add_closed,real_abs_in_reals,real_abs_eq_zero,real_add_cancel,real_add_ident,real_abs_nonneg}.
\end{subproof}
Therefore $d$ is zero-characterized on $\reals$ by \cref{metric_zero_characterization}.
Show that for all $x,y$ such that $x\in\reals$ and $y\in\reals$ we have $d((x,y)) = d((y,x))$.
\begin{subproof}
Follows by \cref{times_tuple_intro,standard_metric_r,function_apply_intro,funs_elim,fst_eq,snd_eq,real_sub,real_add_inverse,real_add_closed,real_abs_in_reals,real_abs_sub_swap}.
\end{subproof}
Hence $d$ is symmetric on $\reals$ by \cref{metric_symmetric}.
Show that for all $x,y,z$ such that $x\in\reals$ and $y\in\reals$ and $z\in\reals$ we have
$d((x,y)) + d((y,z)) \geq d((x,z))$.
\begin{subproof}
Fix $x$.
Fix $y$.
Fix $z$ such that $x\in\reals$ and $y\in\reals$ and $z\in\reals$.
$\neg{y}\in\reals$ and $\neg{z}\in\reals$ by \cref{real_add_inverse}.
$x - y = x + \neg{y}$ by \cref{real_sub}.
$y - z = y + \neg{z}$ by \cref{real_sub}.
$x - z = x + \neg{z}$ by \cref{real_sub}.
$\abs{(x - y)}\in\reals$ and $\abs{(y - z)}\in\reals$ and $\abs{(x - z)}\in\reals$
by \cref{real_sub,real_add_inverse,real_add_closed,real_abs_in_reals}.
Let $p_1 = (x,y)$.
Let $p_2 = (y,z)$.
Let $p_3 = (x,z)$.
$p_1\in\reals\times\reals$ and $p_2\in\reals\times\reals$ and $p_3\in\reals\times\reals$
by \cref{times_tuple_intro}.
$\fst{p_1} = x$ and $\snd{p_1} = y$ and $\fst{p_2} = y$ and $\snd{p_2} = z$ and
$\fst{p_3} = x$ and $\snd{p_3} = z$ by \cref{fst_eq,snd_eq}.
$\fst{p_1} - \snd{p_1} = x - y$.
$\fst{p_2} - \snd{p_2} = y - z$.
$\fst{p_3} - \snd{p_3} = x - z$.
$\fst{p_1} - \snd{p_1}\in\reals$.
$\fst{p_2} - \snd{p_2}\in\reals$.
$\fst{p_3} - \snd{p_3}\in\reals$.
Let $z_1 = \abs{\fst{p_1} - \snd{p_1}}$.
Let $z_2 = \abs{\fst{p_2} - \snd{p_2}}$.
Let $z_3 = \abs{\fst{p_3} - \snd{p_3}}$.
$z_1\in\reals$ and $z_2\in\reals$ and $z_3\in\reals$
by \cref{fst_eq,snd_eq,real_sub,real_add_inverse,real_add_closed,real_abs_in_reals}.
Let $w_1 = (p_1,z_1)$.
Let $w_2 = (p_2,z_2)$.
Let $w_3 = (p_3,z_3)$.
$w_1\in d$ and $w_2\in d$ and $w_3\in d$ by \cref{standard_metric_r}.
$d((x,y)) = \abs{(x - y)}$ and $d((y,z)) = \abs{(y - z)}$ and $d((x,z)) = \abs{(x - z)}$
by \cref{function_apply_intro,funs_elim,fst_eq,snd_eq}.
$x - y = x + \neg{y}$ and $y - z = y + \neg{z}$ and
$(x - y) + (y - z) = (x + \neg{y}) + (y + \neg{z})$ by \cref{real_sub}.
$(x + \neg{y}) + (y + \neg{z}) = x + (\neg{y} + (y + \neg{z}))$ and
$\neg{y} + (y + \neg{z}) = (\neg{y} + y) + \neg{z}$ by \cref{real_add_assoc}.
$\neg{y} + y = y + \neg{y}$ by \cref{real_add_comm}.
$y + \neg{y} = 0$ by \cref{real_add_inverse}.
$\neg{y} + (y + \neg{z}) = 0 + \neg{z}$.
$0 + \neg{z} = \neg{z}$ by \cref{real_add_ident}.
$(x - y) + (y - z) = x + \neg{z}$.
$x + \neg{z} = x - z$ by \cref{real_sub}.
$\abs{((x - y) + (y - z))} = \abs{(x - z)}$.
Hence $d((x,z)) \leq \abs{(x - y)} + \abs{(y - z)}$ by \cref{real_triangle_inequality}.
Therefore $d((x,z)) \leq d((x,y)) + d((y,z))$.
Hence $d((x,y)) + d((y,z)) \geq d((x,z))$.
\end{subproof}
Hence $d$ is a metric on $\reals$ by \cref{metric_triangle_inequality,metric_on}.
\end{proof}
Assume $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d = \standardMetricR$.
Then $d((x,y)) = \abs{(x - y)}$.
LaTeX source
\begin{lemma}
\label{standard_metric_apply}
Assume $x\in\reals$ and $y\in\reals$ and $d = \standardMetricR$.
Then $d((x,y)) = \abs{(x - y)}$.
\end{lemma}
Proof
$d((x,y)) = \abs{(x - y)}$ by Axiom 10, Axiom 11, Axiom 13, Axiom 18, Definition 64, Definition 179, Definition 184, Lemma 34, Lemma 198, Proposition 115, Proposition 346, Proposition 359.
LaTeX source
\begin{proof}
$d((x,y)) = \abs{(x - y)}$ by
\cref{fst_eq,snd_eq,real_sub,real_add_inverse,real_add_closed,real_abs_in_reals,times_tuple_intro,standard_metric_r,standard_metric_is_metric,metric_on,function_apply_intro,funs_elim}.
\end{proof}
$\metricTopology{\standardMetricR}{\reals} = \standardTopologyR$.
LaTeX source
\begin{lemma}
\label{standard_metric_topology}
$\metricTopology{\standardMetricR}{\reals} = \standardTopologyR$.
\end{lemma}
Proof
Let $d = \standardMetricR$.
Let $T = \metricTopology{d}{\reals}$.
Let $T_1 = \standardTopologyR$.
Let $B = \metricBasis{d}{\reals}$.
Let $B_1 = \standardBasisR$.
$d$ is a metric on $\reals$ by Lemma 198.
Hence $B$ is a basis for $T$ on $\reals$ by Definition 115, Definition 182, Lemma 194.
$B_1$ is a basis for $T_1$ on $\reals$ by Definition 115, Definition 118, Lemma 93.
Claim: For all $x,B_2$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ there exists $B_3\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ and $B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$.
Fix $x$.
Fix $B_2$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$.
Take $a,b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $a < b$ and $B_2 = \intervalopen{a}{b}$ by Definition 117.
$a < x$ and $x < b$ by Definition 76.
Let $r_1 = x - a$.
Let $r_2 = b - x$.
$0 < r_1$ and $0 < r_2$ by Lemma 26.
Let $A = \{r_1, r_2\}$.
$A$ is finite and $A\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2, Lemma 40, Proposition 16.
For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1.
Take $m\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $m$ is a minimum of $A$ by Lemma 49.
$0 < m$ by Lemma 83, Proposition 18.
Let $B_3 = \metricBall{d}{\reals}{x}{m}$.
Hence $B_3\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ by Definition 1, Definition 176, Definition 179, Definition 180, Definition 181, Lemma 82, Proposition 155.
Claim: For all $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ we have $z\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$.
Fix $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$.
$z\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((x,z)) < m$ by Definition 180.
$\abs{(x - z)} < m$ by Lemma 82, Lemma 199.
$x - z\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64.
$\abs{(x - z)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64, Lemma 34.
$r_1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 16.
$m < r_1$ or $m = r_1$ by Definition 1, Definition 74, Lemma 81.
$\abs{(x - z)} < r_1$ by Axiom 36, Lemma 83.
$x - z \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \abs{(x - z)}$ by Proposition 486.
$x - z < \abs{(x - z)}$ or $x - z = \abs{(x - z)}$ by Lemma 81.
$x - z < r_1$ by Axiom 36, Lemma 82.
$x - z < x - a$ by Lemma 83.
$x - a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Definition 64.
$\neg{(x - a)} < \neg{(x - z)}$ by Proposition 465.
$\neg{(x - a)} = a - x$ and $\neg{(x - z)} = z - x$ by Lemma 14.
$a - x < z - x$ by Lemma 82, Lemma 83.
$\neg{x}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 18.
$a - x = a + \neg{x}$ and $z - x = z + \neg{x}$ by Definition 64.
$a - x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$z - x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$(a - x) + x < (z - x) + x$ by Axiom 37.
$\neg{x} + x = 0$ by Axiom 16, Axiom 18.
$(a - x) + x = a + 0$ and $(z - x) + x = z + 0$ by Axiom 15, Proposition 437.
$a + 0 = a$ and $z + 0 = z$ by Axiom 16, Axiom 17.
$(a - x) + x = a$ and $(z - x) + x = z$.
$a < z$.
$r_2\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 17.
$m < r_2$ or $m = r_2$ by Definition 1, Definition 74, Lemma 81.
$\abs{(x - z)} < r_2$ by Axiom 36, Lemma 83.
$\neg{(x - z)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 18.
$\neg{(x - z)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \abs{(x - z)}$ by Proposition 487.
$\neg{(x - z)} < \abs{(x - z)}$ or $\neg{(x - z)} = \abs{(x - z)}$ by Lemma 81.
$\neg{(x - z)} < r_2$ by Axiom 36, Lemma 82.
$\neg{(x - z)} = z - x$ by Lemma 14.
$z - x < r_2$ by Lemma 82.
$z - x < b - x$ by Lemma 83.
$z - x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $b - x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Definition 64.
$(z - x) + x < (b - x) + x$ by Axiom 37.
$z - x = z + \neg{x}$ and $b - x = b + \neg{x}$ by Definition 64.
$\neg{x} + x = 0$ by Axiom 16, Axiom 18.
$(z - x) + x = z + 0$ and $(b - x) + x = b + 0$ by Axiom 15, Proposition 437.
$z + 0 = z$ and $b + 0 = b$ by Axiom 16, Axiom 17.
$(z - x) + x = z$ and $(b - x) + x = b$.
$z < b$.
$z\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ by Definition 76.
Therefore $B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$ by Definition 1.
Hence $T$ is finer than $T_1$ on $\reals$ by Lemma 80.
Claim: For all $x,B_2$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ there exists $B_3\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ and $B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$.
Fix $x$.
Fix $B_2$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$.
Take $x_0,\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 $B_2 = \metricBall{d}{\reals}{x_0}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 181.
$d((x_0,x)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 180.
$d\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.
$d((x_0,x))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 115, Proposition 361.
$\neg{d((x_0,x))}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 18.
Let $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} - d((x_0,x))$.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\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-delta}{\delta}$ by Lemma 26.
$\neg{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 18.
$x - \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = x + \neg{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ by Definition 64.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17.
$\neg{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}} < \neg{0}$ by Proposition 465.
$\neg{0} = 0$ by Axiom 17, Proposition 435.
$\neg{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}} < 0$ by Lemma 83.
$\neg{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}} + x < 0 + x$ by Axiom 37.
$x + \neg{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}} < 0 + x$ by Axiom 16, Lemma 82.
$x - \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < 0 + x$ by Definition 64, Lemma 82.
$0 + x = x$ by Axiom 17.
$x - \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < x$ by Lemma 83.
$0 + x < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + x$ by Axiom 37.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + x = x + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 16.
$x < x + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 82, Lemma 83.
Let $B_3 = \intervalopen{x - \class{latex-symbol-tip latex-symbol-id-delta}{\delta}}{x + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$.
We have $x - \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $x + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64.
Therefore $x - \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < x + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 36.
Hence $B_3\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ by Definition 117, Lemma 87, Proposition 155.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ by Definition 76.
Claim: For all $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ we have $z\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$.
Fix $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$.
$x - \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < z$ and $z < x + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 76.
$x - z\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $z - x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64.
$\neg{x}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 18.
$z + \neg{x} < (x + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}) + \neg{x}$ by Axiom 37.
$z + \neg{x} = z - x$ by Definition 64.
$(x + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}) + \neg{x} = x + (\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \neg{x})$ by Axiom 15.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \neg{x} = \neg{x} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 16.
$x + (\neg{x} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}) = (x + \neg{x}) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 15.
$x + \neg{x} = 0$ by Axiom 18.
$(x + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}) + \neg{x} = 0 + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 15, Axiom 16, Axiom 18.
$0 + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 17.
$z - x < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 82, Lemma 83.
$(x - \class{latex-symbol-tip latex-symbol-id-delta}{\delta}) + \neg{x} < z + \neg{x}$ by Axiom 37.
$(x - \class{latex-symbol-tip latex-symbol-id-delta}{\delta}) + \neg{x} = \neg{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ by Axiom 15, Axiom 16, Axiom 17, Axiom 18, Definition 64.
$\neg{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}} < z - x$ by Lemma 82, Lemma 83.
$\neg{(z - x)} < \neg{(\neg{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}})}$ by Proposition 465.
$\neg{(z - x)} = x - z$ by Lemma 14.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \neg{(\neg{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}})}$ by Proposition 441.
$x - z < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 82, Lemma 83.
$x - z \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\neg{(x - z)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
$\abs{(x - z)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Proposition 484.
$\abs{(x - z)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Lemma 34.
$\abs{(x - z)} < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
$d((x,z)) = \abs{(x - z)}$ by Lemma 199.
$d((x,z)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
$d((x_0,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x_0,x)) + d((x,z))$ by Definition 178, Definition 179.
$d((x_0,x)) + d((x,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((x_0,x)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Proposition 361.
$d((x,z)) + d((x_0,x)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + d((x_0,x))$ by Axiom 37.
$d((x,z)) + d((x_0,x)) = d((x_0,x)) + d((x,z))$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + d((x_0,x)) = d((x_0,x)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 16.
$d((x_0,x)) + d((x,z)) < d((x_0,x)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 82, Lemma 83.
$(x_0,z)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ by Proposition 115.
$d((x_0,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 361.
$d((x_0,z)) < d((x_0,x)) + d((x,z))$ or $d((x_0,z)) = d((x_0,x)) + d((x,z))$ by Lemma 81, Proposition 115, Proposition 361.
$d((x_0,z)) < d((x_0,x)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 36, Lemma 82.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} + \neg{d((x_0,x))}$ by Definition 64.
$d((x_0,x)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + d((x_0,x))$ by Axiom 16.
$d((x_0,x)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = (\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} + \neg{d((x_0,x))}) + d((x_0,x))$ by Proposition 437.
$(\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} + \neg{d((x_0,x))}) + d((x_0,x)) = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} + (\neg{d((x_0,x))} + d((x_0,x)))$ by Axiom 15.
$\neg{d((x_0,x))} + d((x_0,x)) = 0$ by Axiom 16, Axiom 18.
$d((x_0,x)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} + 0$ by Proposition 437.
$\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} + 0 = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 16, Axiom 17.
$d((x_0,x)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
$d((x_0,z)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 83.
$z\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ by Definition 180.
Therefore $B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$ by Definition 1.
Hence $T_1$ is finer than $T$ on $\reals$ by Lemma 80.
Therefore $T = T_1$ by Definition 108, Proposition 3.
LaTeX source
\begin{proof}
Let $d = \standardMetricR$.
Let $T = \metricTopology{d}{\reals}$.
Let $T_1 = \standardTopologyR$.
Let $B = \metricBasis{d}{\reals}$.
Let $B_1 = \standardBasisR$.
$d$ is a metric on $\reals$ by \cref{standard_metric_is_metric}.
Hence $B$ is a basis for $T$ on $\reals$ by \cref{metric_basis_is_basis,basis_for_topology,metric_topology}.
$B_1$ is a basis for $T_1$ on $\reals$ by \cref{standard_basis_is_basis,basis_for_topology,standard_topology_reals}.
Show that for all $x,B_2$ such that $x\in\reals$ and $B_2\in B_1$ and $x\in B_2$
there exists $B_3\in B$ such that $x\in B_3$ and $B_3\subseteq B_2$.
\begin{subproof}
Fix $x$.
Fix $B_2$ such that $x\in\reals$ and $B_2\in B_1$ and $x\in B_2$.
Take $a,b\in\reals$ such that $a < b$ and $B_2 = \intervalopen{a}{b}$ by \cref{standard_basis_reals}.
$a < x$ and $x < b$ by \cref{intervalopen}.
Let $r_1 = x - a$.
Let $r_2 = b - x$.
$0 < r_1$ and $0 < r_2$ by \cref{real_lt_imp_pos_diff}.
Let $A = \{r_1, r_2\}$.
$A$ is finite and $A\neq\emptyset$ by \cref{pair_is_finite,upair_intro_left,emptyset}.
For all $y$ such that $y\in A$ we have $y\in\reals$.
$A\subseteq\reals$ by \cref{subseteq}.
Take $m\in A$ such that $m$ is a minimum of $A$ by \cref{finite_real_minimum}.
$0 < m$ by \cref{upair_elim,real_lt_subst_right}.
Let $B_3 = \metricBall{d}{\reals}{x}{m}$.
Hence $B_3\in B$ and $x\in B_3$ by
\cref{metric_ball,subseteq,powerset_intro,metric_basis,metric_on,metric_zero_characterization,real_lt_subst_left}.
Show that for all $z$ such that $z\in B_3$ we have $z\in B_2$.
\begin{subproof}
Fix $z$ such that $z\in B_3$.
$z\in\reals$ and $d((x,z)) < m$ by \cref{metric_ball}.
$\abs{(x - z)} < m$ by \cref{standard_metric_apply,real_lt_subst_left}.
$x - z\in\reals$ by \cref{real_sub,real_add_inverse,real_add_closed}.
$\abs{(x - z)}\in\reals$ by \cref{real_sub,real_add_inverse,real_add_closed,real_abs_in_reals}.
$r_1\in A$ by \cref{upair_intro_left}.
$m < r_1$ or $m = r_1$ by \cref{real_minimum,subseteq,real_leq_split}.
$\abs{(x - z)} < r_1$ by \cref{real_lt_subst_right,real_lt_trans}.
$x - z \leq \abs{(x - z)}$ by \cref{real_leq_abs}.
$x - z < \abs{(x - z)}$ or $x - z = \abs{(x - z)}$ by \cref{real_leq_split}.
$x - z < r_1$ by \cref{real_lt_subst_left,real_lt_trans}.
$x - z < x - a$ by \cref{real_lt_subst_right}.
$x - a\in\reals$ by \cref{real_sub,real_add_closed}.
$\neg{(x - a)} < \neg{(x - z)}$ by \cref{real_lt_neg}.
$\neg{(x - a)} = a - x$ and $\neg{(x - z)} = z - x$ by \cref{real_sub_swap_neg}.
$a - x < z - x$ by \cref{real_lt_subst_left,real_lt_subst_right}.
$\neg{x}\in\reals$ by \cref{real_add_inverse}.
$a - x = a + \neg{x}$ and $z - x = z + \neg{x}$ by \cref{real_sub}.
$a - x\in\reals$ by \cref{real_add_closed}.
$z - x\in\reals$ by \cref{real_add_closed}.
$(a - x) + x < (z - x) + x$ by \cref{real_lt_add}.
$\neg{x} + x = 0$ by \cref{real_add_comm,real_add_inverse}.
$(a - x) + x = a + 0$ and $(z - x) + x = z + 0$
by \cref{real_add_assoc,real_add_eq_subst}.
$a + 0 = a$ and $z + 0 = z$ by \cref{real_add_ident,real_add_comm}.
$(a - x) + x = a$ and $(z - x) + x = z$.
$a < z$.
$r_2\in A$ by \cref{upair_intro_right}.
$m < r_2$ or $m = r_2$ by \cref{real_minimum,subseteq,real_leq_split}.
$\abs{(x - z)} < r_2$ by \cref{real_lt_subst_right,real_lt_trans}.
$\neg{(x - z)}\in\reals$ by \cref{real_add_inverse}.
$\neg{(x - z)} \leq \abs{(x - z)}$ by \cref{real_neg_leq_abs}.
$\neg{(x - z)} < \abs{(x - z)}$ or $\neg{(x - z)} = \abs{(x - z)}$ by \cref{real_leq_split}.
$\neg{(x - z)} < r_2$ by \cref{real_lt_subst_left,real_lt_trans}.
$\neg{(x - z)} = z - x$ by \cref{real_sub_swap_neg}.
$z - x < r_2$ by \cref{real_lt_subst_left}.
$z - x < b - x$ by \cref{real_lt_subst_right}.
$z - x\in\reals$ and $b - x\in\reals$ by \cref{real_sub,real_add_closed}.
$(z - x) + x < (b - x) + x$ by \cref{real_lt_add}.
$z - x = z + \neg{x}$ and $b - x = b + \neg{x}$ by \cref{real_sub}.
$\neg{x} + x = 0$ by \cref{real_add_comm,real_add_inverse}.
$(z - x) + x = z + 0$ and $(b - x) + x = b + 0$
by \cref{real_add_assoc,real_add_eq_subst}.
$z + 0 = z$ and $b + 0 = b$ by \cref{real_add_ident,real_add_comm}.
$(z - x) + x = z$ and $(b - x) + x = b$.
$z < b$.
$z\in B_2$ by \cref{intervalopen}.
\end{subproof}
Therefore $B_3\subseteq B_2$ by \cref{subseteq}.
\end{subproof}
Hence $T$ is finer than $T_1$ on $\reals$ by \cref{basis_finer_criterion}.
Show that for all $x,B_2$ such that $x\in\reals$ and $B_2\in B$ and $x\in B_2$
there exists $B_3\in B_1$ such that $x\in B_3$ and $B_3\subseteq B_2$.
\begin{subproof}
Fix $x$.
Fix $B_2$ such that $x\in\reals$ and $B_2\in B$ and $x\in B_2$.
Take $x_0,\epsilon\in\reals$ such that $0 < \epsilon$ and $B_2 = \metricBall{d}{\reals}{x_0}{\epsilon}$
by \cref{metric_basis}.
$d((x_0,x)) < \epsilon$ by \cref{metric_ball}.
$d\in\funs{\reals\times\reals}{\reals}$ by \cref{metric_on}.
$d((x_0,x))\in\reals$ by \cref{times_tuple_intro,funs_type_apply}.
$\neg{d((x_0,x))}\in\reals$ by \cref{real_add_inverse}.
Let $\delta = \epsilon - d((x_0,x))$.
$\delta\in\reals$ by \cref{real_sub,real_add_inverse,real_add_closed}.
$0 < \delta$ by \cref{real_lt_imp_pos_diff}.
$\neg{\delta}\in\reals$ by \cref{real_add_inverse}.
$x - \delta = x + \neg{\delta}$ by \cref{real_sub}.
$0\in\reals$ by \cref{real_add_ident}.
$\neg{\delta} < \neg{0}$ by \cref{real_lt_neg}.
$\neg{0} = 0$ by \cref{real_add_inverse_unique,real_add_ident}.
$\neg{\delta} < 0$ by \cref{real_lt_subst_right}.
$\neg{\delta} + x < 0 + x$ by \cref{real_lt_add}.
$x + \neg{\delta} < 0 + x$ by \cref{real_add_comm,real_lt_subst_left}.
$x - \delta < 0 + x$ by \cref{real_lt_subst_left,real_sub}.
$0 + x = x$ by \cref{real_add_ident}.
$x - \delta < x$ by \cref{real_lt_subst_right}.
$0 + x < \delta + x$ by \cref{real_lt_add}.
$\delta + x = x + \delta$ by \cref{real_add_comm}.
$x < x + \delta$ by \cref{real_lt_subst_left,real_lt_subst_right}.
Let $B_3 = \intervalopen{x - \delta}{x + \delta}$.
We have $x - \delta\in\reals$ and $x + \delta\in\reals$ by \cref{real_sub,real_add_inverse,real_add_closed}.
Therefore $x - \delta < x + \delta$ by \cref{real_lt_trans}.
Hence $B_3\in B_1$ by \cref{intervalopen_subset_reals,powerset_intro,standard_basis_reals}.
$x\in B_3$ by \cref{intervalopen}.
Show that for all $z$ such that $z\in B_3$ we have $z\in B_2$.
\begin{subproof}
Fix $z$ such that $z\in B_3$.
$x - \delta < z$ and $z < x + \delta$ and $z\in\reals$ by \cref{intervalopen}.
$x - z\in\reals$ and $z - x\in\reals$ by \cref{real_sub,real_add_inverse,real_add_closed}.
$\neg{x}\in\reals$ by \cref{real_add_inverse}.
$z + \neg{x} < (x + \delta) + \neg{x}$ by \cref{real_lt_add}.
$z + \neg{x} = z - x$ by \cref{real_sub}.
$(x + \delta) + \neg{x} = x + (\delta + \neg{x})$ by \cref{real_add_assoc}.
$\delta + \neg{x} = \neg{x} + \delta$ by \cref{real_add_comm}.
$x + (\neg{x} + \delta) = (x + \neg{x}) + \delta$ by \cref{real_add_assoc}.
$x + \neg{x} = 0$ by \cref{real_add_inverse}.
$(x + \delta) + \neg{x} = 0 + \delta$ by \cref{real_add_assoc,real_add_comm,real_add_inverse}.
$0 + \delta = \delta$ by \cref{real_add_ident}.
$z - x < \delta$ by \cref{real_lt_subst_left,real_lt_subst_right}.
$(x - \delta) + \neg{x} < z + \neg{x}$ by \cref{real_lt_add}.
$(x - \delta) + \neg{x} = \neg{\delta}$ by \cref{real_sub,real_add_assoc,real_add_inverse,real_add_comm,real_add_ident}.
$\neg{\delta} < z - x$ by \cref{real_lt_subst_left,real_lt_subst_right}.
$\neg{(z - x)} < \neg{(\neg{\delta})}$ by \cref{real_lt_neg}.
$\neg{(z - x)} = x - z$ by \cref{real_sub_swap_neg}.
$\delta = \neg{(\neg{\delta})}$ by \cref{real_neg_neg}.
$x - z < \delta$ by \cref{real_lt_subst_left,real_lt_subst_right}.
$x - z \leq \delta$ and $\neg{(x - z)} \leq \delta$.
$\abs{(x - z)} \leq \delta$ by \cref{real_abs_leq_if_pm_leq}.
$\abs{(x - z)}\in\reals$ by \cref{real_abs_in_reals}.
$\abs{(x - z)} < \delta$.
$d((x,z)) = \abs{(x - z)}$ by \cref{standard_metric_apply}.
$d((x,z)) < \delta$.
$d((x_0,z)) \leq d((x_0,x)) + d((x,z))$ by \cref{metric_on,metric_triangle_inequality}.
$d((x_0,x)) + d((x,z))\in\reals$ and $d((x_0,x)) + \delta\in\reals$
by \cref{funs_type_apply,real_add_closed}.
$d((x,z)) + d((x_0,x)) < \delta + d((x_0,x))$ by \cref{real_lt_add}.
$d((x,z)) + d((x_0,x)) = d((x_0,x)) + d((x,z))$ and
$\delta + d((x_0,x)) = d((x_0,x)) + \delta$ by \cref{real_add_comm}.
$d((x_0,x)) + d((x,z)) < d((x_0,x)) + \delta$
by \cref{real_lt_subst_left,real_lt_subst_right}.
$(x_0,z)\in\reals\times\reals$ by \cref{times_tuple_intro}.
$d((x_0,z))\in\reals$ by \cref{funs_type_apply}.
$d((x_0,z)) < d((x_0,x)) + d((x,z))$ or
$d((x_0,z)) = d((x_0,x)) + d((x,z))$
by \cref{times_tuple_intro,funs_type_apply,real_leq_split}.
$d((x_0,z)) < d((x_0,x)) + \delta$ by \cref{real_lt_subst_left,real_lt_trans}.
$\delta = \epsilon + \neg{d((x_0,x))}$ by \cref{real_sub}.
$d((x_0,x)) + \delta = \delta + d((x_0,x))$ by \cref{real_add_comm}.
$d((x_0,x)) + \delta = (\epsilon + \neg{d((x_0,x))}) + d((x_0,x))$
by \cref{real_add_eq_subst}.
$(\epsilon + \neg{d((x_0,x))}) + d((x_0,x)) =
\epsilon + (\neg{d((x_0,x))} + d((x_0,x)))$ by \cref{real_add_assoc}.
$\neg{d((x_0,x))} + d((x_0,x)) = 0$ by \cref{real_add_comm,real_add_inverse}.
$d((x_0,x)) + \delta = \epsilon + 0$ by \cref{real_add_eq_subst}.
$\epsilon + 0 = \epsilon$ by \cref{real_add_ident,real_add_comm}.
$d((x_0,x)) + \delta = \epsilon$.
$d((x_0,z)) < \epsilon$ by \cref{real_lt_subst_right}.
$z\in B_2$ by \cref{metric_ball}.
\end{subproof}
Therefore $B_3\subseteq B_2$ by \cref{subseteq}.
\end{subproof}
Hence $T_1$ is finer than $T$ on $\reals$ by \cref{basis_finer_criterion}.
Therefore $T = T_1$ by \cref{finer_topology,subseteq_antisymmetric}.
\end{proof}
$X$ is metrizable with respect to $T$ iff $T$ is a topology on $X$ and there exists $d$ such that $d$ is a metric on $X$ and $T = \metricTopology{d}{X}$.
LaTeX source
\begin{definition}
\label{metrizable}
$X$ is metrizable with respect to $T$ iff
$T$ is a topology on $X$ and
there exists $d$ such that $d$ is a metric on $X$ and $T = \metricTopology{d}{X}$.
\end{definition}
$X$ is a metric space with metric $d$ and topology $T$ iff $d$ is a metric on $X$ and $T = \metricTopology{d}{X}$.
LaTeX source
\begin{definition}
\label{metric_space}
$X$ is a metric space with metric $d$ and topology $T$ iff
$d$ is a metric on $X$ and $T = \metricTopology{d}{X}$.
\end{definition}
$A$ is bounded in $X$ with respect to $d$ iff $d$ is a metric on $X$ and $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and there exists $M\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} A$ we have $d((a_1,a_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$.
LaTeX source
\begin{definition}
\label{metric_bounded}
$A$ is bounded in $X$ with respect to $d$ iff
$d$ is a metric on $X$ and
$A\subseteq X$ and
there exists $M\in\reals$ such that for all $a_1,a_2\in A$ we have $d((a_1,a_2)) \leq M$.
\end{definition}
$\metricDistanceSet{A}{d} = \{d((a_1,a_2)) \mid a_1\class{latex-symbol-tip latex-symbol-id-in}{\in} A, a_2\class{latex-symbol-tip latex-symbol-id-in}{\in} A\}$.
LaTeX source
\begin{definition}
\label{metric_distance_set}
$\metricDistanceSet{A}{d} = \{d((a_1,a_2)) \mid a_1\in A, a_2\in A\}$.
\end{definition}
$r$ is a diameter of $A$ in $X$ with respect to $d$ iff $A$ is bounded in $X$ with respect to $d$ and $A\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ and $r$ is a supremum of $\metricDistanceSet{A}{d}$.
LaTeX source
\begin{definition}
\label{metric_diameter}
$r$ is a diameter of $A$ in $X$ with respect to $d$ iff
$A$ is bounded in $X$ with respect to $d$ and
$A\neq\emptyset$ and
$r$ is a supremum of $\metricDistanceSet{A}{d}$.
\end{definition}
$\boundedMetric{d} = \{w \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} z\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals. w = (p,z) \class{latex-symbol-tip latex-symbol-id-land}{\land} ((z = d(p) \class{latex-symbol-tip latex-symbol-id-land}{\land} d(p) < 1) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (z = 1 \class{latex-symbol-tip latex-symbol-id-land}{\land} 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d(p)))\}$.
LaTeX source
\begin{definition}
\label{bounded_metric}
$\boundedMetric{d} = \{w \mid \exists p\in\dom{d}. \exists z\in\reals.
w = (p,z) \land ((z = d(p) \land d(p) < 1) \lor (z = 1 \land 1 \leq d(p)))\}$.
\end{definition}
Assume $d$ is a metric on $X$ and $e = \boundedMetric{d}$ and $e\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} X}{\reals}$ and $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$.
Then $e(p) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$.
LaTeX source
\begin{lemma}
\label{bounded_metric_leq_one}
Assume $d$ is a metric on $X$ and $e = \boundedMetric{d}$ and $e\in\funs{X\times X}{\reals}$ and $p\in X\times X$.
Then $e(p) \leq 1$.
\end{lemma}
Proof
$p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ and $d(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1, Definition 179, Proposition 359, Proposition 361.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
Let $w = (p,d(p))$.
$w\class{latex-symbol-tip latex-symbol-id-in}{\in} e$ by Definition 190.
Thus $e(p) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ by Lemma 82, Proposition 346, Proposition 359.
We have $1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d(p)$.
Let $w = (p,1)$.
$w\class{latex-symbol-tip latex-symbol-id-in}{\in} e$ by Definition 190.
Thus $e(p) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ by Proposition 346, Proposition 359.
LaTeX source
\begin{byCase}
\caseOf{$d(p) < 1$.}
Let $w = (p,d(p))$.
$w\in e$ by \cref{bounded_metric}.
Thus $e(p) \leq 1$ by \cref{function_apply_intro,funs_elim,real_lt_subst_left}.
\caseOf{it is wrong that $d(p) < 1$.}
We have $1 \leq d(p)$.
Let $w = (p,1)$.
$w\in e$ by \cref{bounded_metric}.
Thus $e(p) \leq 1$ by \cref{function_apply_intro,funs_elim}.
\end{byCase}
LaTeX source
\begin{proof}
$p\in\dom{d}$ and $d(p)\in\reals$ by \cref{metric_on,funs_elim,subseteq,funs_type_apply}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
\begin{byCase}
\caseOf{$d(p) < 1$.}
Let $w = (p,d(p))$.
$w\in e$ by \cref{bounded_metric}.
Thus $e(p) \leq 1$ by \cref{function_apply_intro,funs_elim,real_lt_subst_left}.
\caseOf{it is wrong that $d(p) < 1$.}
We have $1 \leq d(p)$.
Let $w = (p,1)$.
$w\in e$ by \cref{bounded_metric}.
Thus $e(p) \leq 1$ by \cref{function_apply_intro,funs_elim}.
\end{byCase}
\end{proof}
Assume $d$ is a metric on $X$ and $e = \boundedMetric{d}$ and $e\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} X}{\reals}$ and $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $d(p) < 1$.
Then $e(p) = d(p)$.
LaTeX source
\begin{lemma}
\label{bounded_metric_apply_lt_one}
Assume $d$ is a metric on $X$ and $e = \boundedMetric{d}$ and $e\in\funs{X\times X}{\reals}$ and $p\in X\times X$ and $d(p) < 1$.
Then $e(p) = d(p)$.
\end{lemma}
Proof
$e(p) = d(p)$ by Definition 1, Definition 179, Definition 190, Proposition 346, Proposition 359, Proposition 361.
LaTeX source
\begin{proof}
$e(p) = d(p)$ by \cref{metric_on,funs_elim,subseteq,funs_type_apply,bounded_metric,function_apply_intro}.
\end{proof}
Assume $d$ is a metric on $X$ and $e = \boundedMetric{d}$ and $e\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} X}{\reals}$ and $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and it is wrong that $d(p) < 1$.
Then $e(p) = 1$.
LaTeX source
\begin{lemma}
\label{bounded_metric_apply_geq_one}
Assume $d$ is a metric on $X$ and $e = \boundedMetric{d}$ and $e\in\funs{X\times X}{\reals}$ and $p\in X\times X$ and it is wrong that $d(p) < 1$.
Then $e(p) = 1$.
\end{lemma}
Proof
$p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ and $d(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1, Definition 179, Proposition 359, 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} d(p)$ by Axiom 34.
Hence $e(p) = 1$ by Definition 1, Definition 179, Definition 190, Proposition 346, Proposition 359.
LaTeX source
\begin{proof}
$p\in\dom{d}$ and $d(p)\in\reals$ by \cref{metric_on,funs_elim,subseteq,funs_type_apply}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
$1 \leq d(p)$ by \cref{real_lt_trichotomy}.
Hence $e(p) = 1$ by \cref{metric_on,funs_elim,subseteq,bounded_metric,function_apply_intro}.
\end{proof}
Assume $d$ is a metric on $X$.
Then $\boundedMetric{d}$ is a metric on $X$.
LaTeX source
\begin{theorem}
\label{bounded_metric_is_metric}
Assume $d$ is a metric on $X$.
Then $\boundedMetric{d}$ is a metric on $X$.
\end{theorem}
Proof
Let $e = \boundedMetric{d}$.
Claim: $e\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} X}{\reals}$.
Claim: For all $p,z_1,z_2$ such that $(p,z_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} e$ and $(p,z_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} e$ we have $z_1 = z_2$.
Fix $p$.
Fix $z_1$.
Fix $z_2$ such that $(p,z_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} e$ and $(p,z_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} e$.
Take $p_1, w_1$ such that $p_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ and $w_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $(p,z_1) = (p_1,w_1)$ and $((w_1 = d(p_1) \class{latex-symbol-tip latex-symbol-id-land}{\land} d(p_1) < 1) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (w_1 = 1 \class{latex-symbol-tip latex-symbol-id-land}{\land} 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d(p_1)))$ by Definition 190.
Take $p_2, w_2$ such that $p_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ and $w_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $(p,z_2) = (p_2,w_2)$ and $((w_2 = d(p_2) \class{latex-symbol-tip latex-symbol-id-land}{\land} d(p_2) < 1) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (w_2 = 1 \class{latex-symbol-tip latex-symbol-id-land}{\land} 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d(p_2)))$ by Definition 190.
Hence $((z_1 = d(p) \class{latex-symbol-tip latex-symbol-id-land}{\land} d(p) < 1) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (z_1 = 1 \class{latex-symbol-tip latex-symbol-id-land}{\land} 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d(p)))$ and $((z_2 = d(p) \class{latex-symbol-tip latex-symbol-id-land}{\land} d(p) < 1) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (z_2 = 1 \class{latex-symbol-tip latex-symbol-id-land}{\land} 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d(p)))$ by Axiom 6, Definition 190.
$d(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 6, Definition 179, Proposition 359.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
We have $z_1 = z_2$.
We have $z_1 = z_2$.
LaTeX source
\begin{byCase}
\caseOf{$d(p) < 1$.}
We have $z_1 = z_2$.
\caseOf{it is wrong that $d(p) < 1$.}
We have $z_1 = z_2$.
\end{byCase}
Hence $e$ is a function by Definition 12, Definition 51, Definition 190.
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 190, Proposition 199, Proposition 346.
Hence $e$ is a function to $\reals$.
Claim: $\dom{e}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$.
Follows by Axiom 6, Definition 1, Definition 179, Definition 190, Proposition 199, Proposition 359.
Claim: $X\class{latex-symbol-tip latex-symbol-id-times}{\times} X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{e}$.
Follows by Axiom 34, Axiom 41, Axiom 42, Definition 1, Definition 179, Definition 190, Proposition 200, Proposition 359, Proposition 361.
Hence $e\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} X}{\reals}$ by Definition 1, Proposition 3, Proposition 358.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $e((x,y)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$.
Fix $x$.
Fix $y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $p = (x,y)$.
$p\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 $e(p) = d(p)$ by Lemma 202.
Hence $e((x,y)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$ by Definition 175, Definition 179.
We have $e(p) = 1$ by Lemma 203.
Hence $e((x,y)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$ by Axiom 41, Axiom 42, Definition 1, Lemma 82, Proposition 462.
LaTeX source
\begin{byCase}
\caseOf{$d(p) < 1$.}
We have $e(p) = d(p)$ by \cref{bounded_metric_apply_lt_one}.
Hence $e((x,y)) \geq 0$ by \cref{metric_on,metric_nonnegative}.
\caseOf{it is wrong that $d(p) < 1$.}
We have $e(p) = 1$ by \cref{bounded_metric_apply_geq_one}.
Hence $e((x,y)) \geq 0$ by
\cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_zero_lt_one,real_lt_subst_left}.
\end{byCase}
Hence $e$ is nonnegative on $X$ by Definition 175.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $e((x,y)) = 0$ iff $x = y$.
Fix $x$.
Fix $y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Claim: If $e((x,y)) = 0$ then $x = y$.
Suppose not.
$e((x,y)) = 0$ and $x \class{latex-symbol-tip latex-symbol-id-neq}{\neq} y$.
Let $p = (x,y)$.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Proposition 115.
Hence $e(p) = 0$.
$e(p) = d(p)$ by Lemma 202.
Hence $d(p) = 0$.
Therefore $x = y$ by Definition 176, Definition 179.
$e(p) = 1$ by Lemma 203.
Hence $0 = 1$.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
Contradiction by Axiom 39, Lemma 83, Proposition 462.
LaTeX source
\begin{byCase}
\caseOf{$d(p) < 1$.}
$e(p) = d(p)$ by \cref{bounded_metric_apply_lt_one}.
Hence $d(p) = 0$.
Therefore $x = y$ by \cref{metric_on,metric_zero_characterization}.
\caseOf{it is wrong that $d(p) < 1$.}
$e(p) = 1$ by \cref{bounded_metric_apply_geq_one}.
Hence $0 = 1$.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
Contradiction by \cref{real_zero_lt_one,real_lt_subst_right,real_lt_irreflexive}.
\end{byCase}
Claim: If $x = y$ then $e((x,y)) = 0$.
Therefore $e$ is zero-characterized on $X$ by Definition 176.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $e((x,y)) = e((y,x))$.
Fix $x$.
Fix $y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $p_1 = (x,y)$.
Let $p_2 = (y,x)$.
$d((x,y)) = d((y,x))$ by Definition 177, Definition 179, Proposition 115.
$p_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $p_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $d(p_1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d(p_2)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
LaTeX source
\begin{byCase}
\caseOf{$d(p_1) < 1$.}
We have $d(p_2) < 1$ by \cref{real_lt_subst_left}.
$e(p_1) = d(p_1)$ by \cref{bounded_metric_apply_lt_one}.
$e(p_2) = d(p_2)$ by \cref{bounded_metric_apply_lt_one}.
Therefore $e((x,y)) = e((y,x))$.
\caseOf{it is wrong that $d(p_1) < 1$.}
$1 \leq d(p_1)$.
$1 \leq d(p_2)$ by \cref{real_lt_subst_left}.
$e(p_1) = 1$ by \cref{bounded_metric_apply_geq_one}.
$e(p_2) = 1$ by \cref{bounded_metric_apply_geq_one}.
Therefore $e((x,y)) = e((y,x))$.
\end{byCase}
Hence $e$ is symmetric on $X$ by Definition 177.
Claim: For all $x,y,z$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $e((x,y)) + e((y,z)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} e((x,z))$.
Fix $x$.
Fix $y$.
Fix $z$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $p_1 = (x,y)$.
Let $p_2 = (y,z)$.
Let $p_3 = (x,z)$.
$p_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $p_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $p_3\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Proposition 115.
$d(p_1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d(p_2)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d(p_3)\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.
$d(p_3) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d(p_1) + d(p_2)$ by Definition 178, Definition 179.
$e(p_1) = d(p_1)$ by Lemma 202.
$e(p_2) = d(p_2)$ by Lemma 202.
$e(p_3) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d(p_3)$ by Axiom 34, Lemma 202, Lemma 203.
We have $e(p_3)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 359, Proposition 361.
$d(p_1) + d(p_2)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
Therefore $e(p_3) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d(p_1) + d(p_2)$ by Lemma 23.
$e(p_1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $e(p_2)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 359.
Hence $e(p_1) + e(p_2) = d(p_1) + e(p_2)$ and $d(p_1) + e(p_2) = d(p_1) + d(p_2)$ by Proposition 437.
Therefore $e(p_1) + e(p_2) = d(p_1) + d(p_2)$.
$d(p_1) + d(p_2) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} e(p_1) + e(p_2)$.
Hence $e(p_3) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} e(p_1) + e(p_2)$ by Lemma 23.
$1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d(p_2)$.
$e(p_1) = d(p_1)$ by Lemma 202.
$e(p_2) = 1$ by Lemma 203.
We have $e(p_3) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ by Lemma 201.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} e(p_1)$ by Definition 175.
$e(p_1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $e(p_2)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $e(p_3)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $e(p_1) + e(p_2)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Proposition 361.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17, Axiom 41, Axiom 42, Definition 1.
$0 + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} e(p_1) + 1$ by Lemma 24.
$0 + 1 = 1$ and $e(p_1) + 1 = 1 + e(p_1)$ by Axiom 16, Axiom 17.
Therefore $1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} e(p_1) + e(p_2)$ and $e(p_3) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} e(p_1) + e(p_2)$ by Lemma 23.
LaTeX source
\begin{byCase}
\caseOf{$d(p_2) < 1$.}
$e(p_1) = d(p_1)$ by \cref{bounded_metric_apply_lt_one}.
$e(p_2) = d(p_2)$ by \cref{bounded_metric_apply_lt_one}.
$e(p_3) \leq d(p_3)$ by
\cref{bounded_metric_apply_lt_one,bounded_metric_apply_geq_one,real_lt_trichotomy}.
We have $e(p_3)\in\reals$ by \cref{funs_elim,funs_type_apply}.
$d(p_1) + d(p_2)\in\reals$ by \cref{real_add_closed}.
Therefore $e(p_3) \leq d(p_1) + d(p_2)$ by \cref{real_leq_trans}.
$e(p_1)\in\reals$ and $e(p_2)\in\reals$ by \cref{funs_elim}.
Hence $e(p_1) + e(p_2) = d(p_1) + e(p_2)$ and
$d(p_1) + e(p_2) = d(p_1) + d(p_2)$ by \cref{real_add_eq_subst}.
Therefore $e(p_1) + e(p_2) = d(p_1) + d(p_2)$.
$d(p_1) + d(p_2) \leq e(p_1) + e(p_2)$.
Hence $e(p_3) \leq e(p_1) + e(p_2)$ by \cref{real_leq_trans}.
\caseOf{it is wrong that $d(p_2) < 1$.}
$1 \leq d(p_2)$.
$e(p_1) = d(p_1)$ by \cref{bounded_metric_apply_lt_one}.
$e(p_2) = 1$ by \cref{bounded_metric_apply_geq_one}.
We have $e(p_3) \leq 1$ by \cref{bounded_metric_leq_one}.
$0 \leq e(p_1)$ by \cref{metric_nonnegative}.
$e(p_1)\in\reals$ and $e(p_2)\in\reals$ and $e(p_3)\in\reals$ and
$e(p_1) + e(p_2)\in\reals$ by \cref{funs_type_apply,real_add_closed}.
$0\in\reals$ and $1\in\reals$ by \cref{real_add_ident,real_naturals_subset_reals,real_one_in_naturals,subseteq}.
$0 + 1 \leq e(p_1) + 1$ by \cref{real_leq_add}.
$0 + 1 = 1$ and $e(p_1) + 1 = 1 + e(p_1)$ by \cref{real_add_ident,real_add_comm}.
Therefore $1 \leq e(p_1) + e(p_2)$ and $e(p_3) \leq e(p_1) + e(p_2)$ by \cref{real_leq_trans}.
\end{byCase}
$1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d(p_1)$.
$e(p_1) = 1$ by Lemma 203.
We have $e(p_3) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ by Lemma 201.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} e(p_2)$ by Definition 175.
$e(p_1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $e(p_2)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $e(p_3)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $e(p_1) + e(p_2)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Proposition 361.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17, Axiom 41, Axiom 42, Definition 1.
$0 + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} e(p_2) + 1$ by Lemma 24.
$0 + 1 = 1$ and $e(p_2) + 1 = 1 + e(p_2)$ by Axiom 16, Axiom 17.
Therefore $1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} e(p_1) + e(p_2)$ and $e(p_3) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} e(p_1) + e(p_2)$ by Lemma 23.
LaTeX source
\begin{byCase}
\caseOf{$d(p_1) < 1$.}
\begin{byCase}
\caseOf{$d(p_2) < 1$.}
$e(p_1) = d(p_1)$ by \cref{bounded_metric_apply_lt_one}.
$e(p_2) = d(p_2)$ by \cref{bounded_metric_apply_lt_one}.
$e(p_3) \leq d(p_3)$ by
\cref{bounded_metric_apply_lt_one,bounded_metric_apply_geq_one,real_lt_trichotomy}.
We have $e(p_3)\in\reals$ by \cref{funs_elim,funs_type_apply}.
$d(p_1) + d(p_2)\in\reals$ by \cref{real_add_closed}.
Therefore $e(p_3) \leq d(p_1) + d(p_2)$ by \cref{real_leq_trans}.
$e(p_1)\in\reals$ and $e(p_2)\in\reals$ by \cref{funs_elim}.
Hence $e(p_1) + e(p_2) = d(p_1) + e(p_2)$ and
$d(p_1) + e(p_2) = d(p_1) + d(p_2)$ by \cref{real_add_eq_subst}.
Therefore $e(p_1) + e(p_2) = d(p_1) + d(p_2)$.
$d(p_1) + d(p_2) \leq e(p_1) + e(p_2)$.
Hence $e(p_3) \leq e(p_1) + e(p_2)$ by \cref{real_leq_trans}.
\caseOf{it is wrong that $d(p_2) < 1$.}
$1 \leq d(p_2)$.
$e(p_1) = d(p_1)$ by \cref{bounded_metric_apply_lt_one}.
$e(p_2) = 1$ by \cref{bounded_metric_apply_geq_one}.
We have $e(p_3) \leq 1$ by \cref{bounded_metric_leq_one}.
$0 \leq e(p_1)$ by \cref{metric_nonnegative}.
$e(p_1)\in\reals$ and $e(p_2)\in\reals$ and $e(p_3)\in\reals$ and
$e(p_1) + e(p_2)\in\reals$ by \cref{funs_type_apply,real_add_closed}.
$0\in\reals$ and $1\in\reals$ by \cref{real_add_ident,real_naturals_subset_reals,real_one_in_naturals,subseteq}.
$0 + 1 \leq e(p_1) + 1$ by \cref{real_leq_add}.
$0 + 1 = 1$ and $e(p_1) + 1 = 1 + e(p_1)$ by \cref{real_add_ident,real_add_comm}.
Therefore $1 \leq e(p_1) + e(p_2)$ and $e(p_3) \leq e(p_1) + e(p_2)$ by \cref{real_leq_trans}.
\end{byCase}
\caseOf{it is wrong that $d(p_1) < 1$.}
$1 \leq d(p_1)$.
$e(p_1) = 1$ by \cref{bounded_metric_apply_geq_one}.
We have $e(p_3) \leq 1$ by \cref{bounded_metric_leq_one}.
$0 \leq e(p_2)$ by \cref{metric_nonnegative}.
$e(p_1)\in\reals$ and $e(p_2)\in\reals$ and $e(p_3)\in\reals$ and
$e(p_1) + e(p_2)\in\reals$ by \cref{funs_type_apply,real_add_closed}.
$0\in\reals$ and $1\in\reals$ by \cref{real_add_ident,real_naturals_subset_reals,real_one_in_naturals,subseteq}.
$0 + 1 \leq e(p_2) + 1$ by \cref{real_leq_add}.
$0 + 1 = 1$ and $e(p_2) + 1 = 1 + e(p_2)$ by \cref{real_add_ident,real_add_comm}.
Therefore $1 \leq e(p_1) + e(p_2)$ and $e(p_3) \leq e(p_1) + e(p_2)$ by \cref{real_leq_trans}.
\end{byCase}
Hence $e$ is a metric on $X$ by Definition 178, Definition 179.
LaTeX source
\begin{proof}
Let $e = \boundedMetric{d}$.
Show that $e\in\funs{X\times X}{\reals}$.
\begin{subproof}
Show that for all $p,z_1,z_2$ such that $(p,z_1)\in e$ and $(p,z_2)\in e$ we have $z_1 = z_2$.
\begin{subproof}
Fix $p$.
Fix $z_1$.
Fix $z_2$ such that $(p,z_1)\in e$ and $(p,z_2)\in e$.
Take $p_1, w_1$ such that
$p_1\in\dom{d}$ and $w_1\in\reals$ and
$(p,z_1) = (p_1,w_1)$ and
$((w_1 = d(p_1) \land d(p_1) < 1) \lor (w_1 = 1 \land 1 \leq d(p_1)))$
by \cref{bounded_metric}.
Take $p_2, w_2$ such that
$p_2\in\dom{d}$ and $w_2\in\reals$ and
$(p,z_2) = (p_2,w_2)$ and
$((w_2 = d(p_2) \land d(p_2) < 1) \lor (w_2 = 1 \land 1 \leq d(p_2)))$
by \cref{bounded_metric}.
Hence $((z_1 = d(p) \land d(p) < 1) \lor (z_1 = 1 \land 1 \leq d(p)))$
and $((z_2 = d(p) \land d(p) < 1) \lor (z_2 = 1 \land 1 \leq d(p)))$
by \cref{bounded_metric,pair_eq_iff}.
$d(p)\in\reals$ by \cref{pair_eq_iff,metric_on,funs_elim}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
\begin{byCase}
\caseOf{$d(p) < 1$.}
We have $z_1 = z_2$.
\caseOf{it is wrong that $d(p) < 1$.}
We have $z_1 = z_2$.
\end{byCase}
\end{subproof}
Hence $e$ is a function by \cref{bounded_metric,relation,rightunique}.
For all $p\in\dom{e}$ we have $e(p)\in\reals$
by \cref{dom_iff,bounded_metric,pair_eq_iff,function_apply_intro}.
Hence $e$ is a function to $\reals$.
Show that $\dom{e}\subseteq X\times X$.
\begin{subproof}
Follows by \cref{dom_iff,bounded_metric,pair_eq_iff,metric_on,funs_elim,subseteq}.
\end{subproof}
Show that $X\times X\subseteq\dom{e}$.
\begin{subproof}
Follows by \cref{metric_on,funs_elim,subseteq,funs_type_apply,real_naturals_subset_reals,real_one_in_naturals,bounded_metric,dom_intro,real_lt_trichotomy}.
\end{subproof}
Hence $e\in\funs{X\times X}{\reals}$ by \cref{subseteq,subseteq_antisymmetric,funs_intro}.
\end{subproof}
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have $e((x,y)) \geq 0$.
\begin{subproof}
Fix $x$.
Fix $y$ such that $x\in X$ and $y\in X$.
Let $p = (x,y)$.
$p\in X\times X$ by \cref{times_tuple_intro}.
\begin{byCase}
\caseOf{$d(p) < 1$.}
We have $e(p) = d(p)$ by \cref{bounded_metric_apply_lt_one}.
Hence $e((x,y)) \geq 0$ by \cref{metric_on,metric_nonnegative}.
\caseOf{it is wrong that $d(p) < 1$.}
We have $e(p) = 1$ by \cref{bounded_metric_apply_geq_one}.
Hence $e((x,y)) \geq 0$ by
\cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_zero_lt_one,real_lt_subst_left}.
\end{byCase}
\end{subproof}
Hence $e$ is nonnegative on $X$ by \cref{metric_nonnegative}.
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have $e((x,y)) = 0$ iff $x = y$.
\begin{subproof}
Fix $x$.
Fix $y$ such that $x\in X$ and $y\in X$.
Show that if $e((x,y)) = 0$ then $x = y$.
\begin{subproof}
Suppose not.
$e((x,y)) = 0$ and $x \neq y$.
Let $p = (x,y)$.
$p\in X\times X$ by \cref{times_tuple_intro}.
Hence $e(p) = 0$.
\begin{byCase}
\caseOf{$d(p) < 1$.}
$e(p) = d(p)$ by \cref{bounded_metric_apply_lt_one}.
Hence $d(p) = 0$.
Therefore $x = y$ by \cref{metric_on,metric_zero_characterization}.
\caseOf{it is wrong that $d(p) < 1$.}
$e(p) = 1$ by \cref{bounded_metric_apply_geq_one}.
Hence $0 = 1$.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
Contradiction by \cref{real_zero_lt_one,real_lt_subst_right,real_lt_irreflexive}.
\end{byCase}
\end{subproof}
Show that if $x = y$ then $e((x,y)) = 0$.
\begin{subproof}
Follows by \cref{times_tuple_intro,metric_on,metric_zero_characterization,real_zero_lt_one,real_lt_subst_left,funs_elim,subseteq,funs_type_apply,bounded_metric,function_apply_intro}.
\end{subproof}
\end{subproof}
Therefore $e$ is zero-characterized on $X$ by \cref{metric_zero_characterization}.
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have $e((x,y)) = e((y,x))$.
\begin{subproof}
Fix $x$.
Fix $y$ such that $x\in X$ and $y\in X$.
Let $p_1 = (x,y)$.
Let $p_2 = (y,x)$.
$d((x,y)) = d((y,x))$ by \cref{times_tuple_intro,metric_on,metric_symmetric}.
$p_1\in X\times X$ and $p_2\in X\times X$ and $d(p_1)\in\reals$ and $d(p_2)\in\reals$
by \cref{times_tuple_intro,metric_on,funs_type_apply}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
\begin{byCase}
\caseOf{$d(p_1) < 1$.}
We have $d(p_2) < 1$ by \cref{real_lt_subst_left}.
$e(p_1) = d(p_1)$ by \cref{bounded_metric_apply_lt_one}.
$e(p_2) = d(p_2)$ by \cref{bounded_metric_apply_lt_one}.
Therefore $e((x,y)) = e((y,x))$.
\caseOf{it is wrong that $d(p_1) < 1$.}
$1 \leq d(p_1)$.
$1 \leq d(p_2)$ by \cref{real_lt_subst_left}.
$e(p_1) = 1$ by \cref{bounded_metric_apply_geq_one}.
$e(p_2) = 1$ by \cref{bounded_metric_apply_geq_one}.
Therefore $e((x,y)) = e((y,x))$.
\end{byCase}
\end{subproof}
Hence $e$ is symmetric on $X$ by \cref{metric_symmetric}.
Show that for all $x,y,z$ such that $x\in X$ and $y\in X$ and $z\in X$ we have
$e((x,y)) + e((y,z)) \geq e((x,z))$.
\begin{subproof}
Fix $x$.
Fix $y$.
Fix $z$ such that $x\in X$ and $y\in X$ and $z\in X$.
Let $p_1 = (x,y)$.
Let $p_2 = (y,z)$.
Let $p_3 = (x,z)$.
$p_1\in X\times X$ and $p_2\in X\times X$ and $p_3\in X\times X$ by \cref{times_tuple_intro}.
$d(p_1)\in\reals$ and $d(p_2)\in\reals$ and $d(p_3)\in\reals$ by \cref{metric_on,funs_type_apply}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
$d(p_3) \leq d(p_1) + d(p_2)$ by \cref{metric_on,metric_triangle_inequality}.
\begin{byCase}
\caseOf{$d(p_1) < 1$.}
\begin{byCase}
\caseOf{$d(p_2) < 1$.}
$e(p_1) = d(p_1)$ by \cref{bounded_metric_apply_lt_one}.
$e(p_2) = d(p_2)$ by \cref{bounded_metric_apply_lt_one}.
$e(p_3) \leq d(p_3)$ by
\cref{bounded_metric_apply_lt_one,bounded_metric_apply_geq_one,real_lt_trichotomy}.
We have $e(p_3)\in\reals$ by \cref{funs_elim,funs_type_apply}.
$d(p_1) + d(p_2)\in\reals$ by \cref{real_add_closed}.
Therefore $e(p_3) \leq d(p_1) + d(p_2)$ by \cref{real_leq_trans}.
$e(p_1)\in\reals$ and $e(p_2)\in\reals$ by \cref{funs_elim}.
Hence $e(p_1) + e(p_2) = d(p_1) + e(p_2)$ and
$d(p_1) + e(p_2) = d(p_1) + d(p_2)$ by \cref{real_add_eq_subst}.
Therefore $e(p_1) + e(p_2) = d(p_1) + d(p_2)$.
$d(p_1) + d(p_2) \leq e(p_1) + e(p_2)$.
Hence $e(p_3) \leq e(p_1) + e(p_2)$ by \cref{real_leq_trans}.
\caseOf{it is wrong that $d(p_2) < 1$.}
$1 \leq d(p_2)$.
$e(p_1) = d(p_1)$ by \cref{bounded_metric_apply_lt_one}.
$e(p_2) = 1$ by \cref{bounded_metric_apply_geq_one}.
We have $e(p_3) \leq 1$ by \cref{bounded_metric_leq_one}.
$0 \leq e(p_1)$ by \cref{metric_nonnegative}.
$e(p_1)\in\reals$ and $e(p_2)\in\reals$ and $e(p_3)\in\reals$ and
$e(p_1) + e(p_2)\in\reals$ by \cref{funs_type_apply,real_add_closed}.
$0\in\reals$ and $1\in\reals$ by \cref{real_add_ident,real_naturals_subset_reals,real_one_in_naturals,subseteq}.
$0 + 1 \leq e(p_1) + 1$ by \cref{real_leq_add}.
$0 + 1 = 1$ and $e(p_1) + 1 = 1 + e(p_1)$ by \cref{real_add_ident,real_add_comm}.
Therefore $1 \leq e(p_1) + e(p_2)$ and $e(p_3) \leq e(p_1) + e(p_2)$ by \cref{real_leq_trans}.
\end{byCase}
\caseOf{it is wrong that $d(p_1) < 1$.}
$1 \leq d(p_1)$.
$e(p_1) = 1$ by \cref{bounded_metric_apply_geq_one}.
We have $e(p_3) \leq 1$ by \cref{bounded_metric_leq_one}.
$0 \leq e(p_2)$ by \cref{metric_nonnegative}.
$e(p_1)\in\reals$ and $e(p_2)\in\reals$ and $e(p_3)\in\reals$ and
$e(p_1) + e(p_2)\in\reals$ by \cref{funs_type_apply,real_add_closed}.
$0\in\reals$ and $1\in\reals$ by \cref{real_add_ident,real_naturals_subset_reals,real_one_in_naturals,subseteq}.
$0 + 1 \leq e(p_2) + 1$ by \cref{real_leq_add}.
$0 + 1 = 1$ and $e(p_2) + 1 = 1 + e(p_2)$ by \cref{real_add_ident,real_add_comm}.
Therefore $1 \leq e(p_1) + e(p_2)$ and $e(p_3) \leq e(p_1) + e(p_2)$ by \cref{real_leq_trans}.
\end{byCase}
\end{subproof}
Hence $e$ is a metric on $X$ by \cref{metric_triangle_inequality,metric_on}.
\end{proof}
Assume $d$ is a metric on $X$.
Let $e = \boundedMetric{d}$.
Suppose $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$.
Suppose $d(p) < 1$.
Then $e(p) = d(p)$.
LaTeX source
\begin{lemma}
\label{bounded_metric_apply_below_one}
Assume $d$ is a metric on $X$.
Let $e = \boundedMetric{d}$.
Suppose $p\in X\times X$.
Suppose $d(p) < 1$.
Then $e(p) = d(p)$.
\end{lemma}
Proof
$e(p) = d(p)$ by Definition 1, Definition 179, Definition 190, Proposition 346, Proposition 359, Proposition 361, Theorem 21.
LaTeX source
\begin{proof}
$e(p) = d(p)$ by \cref{bounded_metric,bounded_metric_is_metric,metric_on,funs_elim,subseteq,funs_type_apply,function_apply_intro}.
\end{proof}
Assume $d$ is a metric on $X$.
Let $e = \boundedMetric{d}$.
Suppose $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$.
Suppose $e(p) < 1$.
Then $e(p) = d(p)$.
LaTeX source
\begin{lemma}
\label{bounded_metric_apply_value_lt_one}
Assume $d$ is a metric on $X$.
Let $e = \boundedMetric{d}$.
Suppose $p\in X\times X$.
Suppose $e(p) < 1$.
Then $e(p) = d(p)$.
\end{lemma}
Proof
$(e(p) = d(p) \class{latex-symbol-tip latex-symbol-id-land}{\land} d(p) < 1) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (e(p) = 1 \class{latex-symbol-tip latex-symbol-id-land}{\land} 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d(p))$ by Axiom 6, Definition 1, Definition 179, Definition 190, Proposition 349, Proposition 359, Theorem 21.
Therefore $e(p) = d(p)$.
LaTeX source
\begin{proof}
$(e(p) = d(p) \land d(p) < 1) \lor (e(p) = 1 \land 1 \leq d(p))$
by \cref{bounded_metric_is_metric,metric_on,funs_elim,subseteq,function_apply_iff,bounded_metric,pair_eq_iff}.
Therefore $e(p) = d(p)$.
\end{proof}
Assume $d$ is a metric on $X$.
Then $\metricTopology{\boundedMetric{d}}{X} = \metricTopology{d}{X}$.
LaTeX source
\begin{theorem}
\label{bounded_metric_topology}
Assume $d$ is a metric on $X$.
Then $\metricTopology{\boundedMetric{d}}{X} = \metricTopology{d}{X}$.
\end{theorem}
Proof
Let $e = \boundedMetric{d}$.
$e$ is a metric on $X$ by Theorem 21.
Let $T = \metricTopology{d}{X}$.
Let $T_1 = \metricTopology{e}{X}$.
Claim: For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ we have $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$.
Fix $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$.
Hence $U$ is open in $X$ with respect to $T_1$ and $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 1, Definition 101, Definition 103, Definition 115, Definition 182, Lemma 76, Lemma 194, Proposition 156.
Claim: For all $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ there exists $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\metricBall{d}{X}{y}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.
Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
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}{X}{y}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Lemma 195.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
Let $A = \{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon},1\}$.
$A$ is finite by Lemma 40.
$\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 16, Proposition 17.
Hence $A\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2, Proposition 16.
Therefore $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1, Proposition 18.
Take $m\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $m$ is a minimum of $A$ by Lemma 49.
Hence $0 < m$ by Lemma 83, Proposition 18, Proposition 462.
Claim: $\metricBall{d}{X}{y}{m}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.
Follows by Axiom 36, Definition 1, Definition 74, Definition 179, Definition 180, Lemma 81, Lemma 82, Lemma 83, Lemma 204, Proposition 115, Proposition 361.
Hence $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 103, Lemma 195.
Hence $T_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T$ by Definition 1.
Claim: For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ we have $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$.
Fix $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$.
Hence $U$ is open in $X$ with respect to $T$ and $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 1, Definition 101, Definition 103, Definition 115, Definition 182, Lemma 76, Lemma 194, Proposition 156.
Claim: For all $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ there exists $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\metricBall{e}{X}{y}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.
Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
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}{y}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Lemma 195.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
Let $A = \{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon},1\}$.
$A$ is finite by Lemma 40.
$\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 16, Proposition 17.
Hence $A\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2, Proposition 16.
Therefore $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1, Proposition 18.
Take $m\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $m$ is a minimum of $A$ by Lemma 49.
Hence $0 < m$ by Lemma 83, Proposition 18, Proposition 462.
For all $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{e}{X}{y}{m}$ we have $z\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Axiom 36, Definition 1, Definition 74, Definition 179, Definition 180, Lemma 81, Lemma 82, Lemma 83, Lemma 205, Proposition 115, Proposition 359, Proposition 361.
Therefore $\metricBall{e}{X}{y}{m}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 1.
Hence $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ by Definition 103, Lemma 195.
Therefore $T_1 = T$ by Definition 1, Proposition 3.
LaTeX source
\begin{proof}
Let $e = \boundedMetric{d}$.
$e$ is a metric on $X$ by \cref{bounded_metric_is_metric}.
Let $T = \metricTopology{d}{X}$.
Let $T_1 = \metricTopology{e}{X}$.
Show that for all $U$ such that $U\in T_1$ we have $U\in T$.
\begin{subproof}
Fix $U$ such that $U\in T_1$.
Hence $U$ is open in $X$ with respect to $T_1$ and $U\subseteq X$
by \cref{metric_basis_is_basis,metric_topology,basis_topology_is_topology,basis_for_topology,open_in,topology_on,subseteq,powerset_elim}.
Show that for all $y\in U$ there exists $\delta\in\reals$ such that $0 < \delta$ and $\metricBall{d}{X}{y}{\delta}\subseteq U$.
\begin{subproof}
Fix $y$ such that $y\in U$.
Take $\epsilon\in\reals$ such that $0 < \epsilon$ and $\metricBall{e}{X}{y}{\epsilon}\subseteq U$
by \cref{metric_open_iff}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
Let $A = \{\epsilon,1\}$.
$A$ is finite by \cref{pair_is_finite}.
$\epsilon\in A$ and $1\in A$ by \cref{upair_intro_left,upair_intro_right}.
Hence $A\neq\emptyset$ by \cref{upair_intro_left,emptyset}.
Therefore $A\subseteq\reals$ by \cref{upair_elim,subseteq}.
Take $m\in A$ such that $m$ is a minimum of $A$ by \cref{finite_real_minimum}.
Hence $0 < m$ by \cref{upair_elim,real_zero_lt_one,real_lt_subst_right}.
Show that $\metricBall{d}{X}{y}{m}\subseteq U$.
\begin{subproof}
Follows by \cref{metric_ball,subseteq,times_tuple_intro,metric_on,funs_type_apply,real_lt_subst_left,real_minimum,real_leq_split,real_lt_subst_right,real_lt_trans,bounded_metric_apply_below_one}.
\end{subproof}
\end{subproof}
Hence $U\in T$ by \cref{metric_open_iff,open_in}.
\end{subproof}
Hence $T_1\subseteq T$ by \cref{subseteq}.
Show that for all $U$ such that $U\in T$ we have $U\in T_1$.
\begin{subproof}
Fix $U$ such that $U\in T$.
Hence $U$ is open in $X$ with respect to $T$ and $U\subseteq X$
by \cref{metric_basis_is_basis,metric_topology,basis_topology_is_topology,basis_for_topology,open_in,topology_on,subseteq,powerset_elim}.
Show that for all $y\in U$ there exists $\delta\in\reals$ such that $0 < \delta$ and $\metricBall{e}{X}{y}{\delta}\subseteq U$.
\begin{subproof}
Fix $y$ such that $y\in U$.
Take $\epsilon\in\reals$ such that $0 < \epsilon$ and $\metricBall{d}{X}{y}{\epsilon}\subseteq U$
by \cref{metric_open_iff}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
Let $A = \{\epsilon,1\}$.
$A$ is finite by \cref{pair_is_finite}.
$\epsilon\in A$ and $1\in A$ by \cref{upair_intro_left,upair_intro_right}.
Hence $A\neq\emptyset$ by \cref{upair_intro_left,emptyset}.
Therefore $A\subseteq\reals$ by \cref{upair_elim,subseteq}.
Take $m\in A$ such that $m$ is a minimum of $A$ by \cref{finite_real_minimum}.
Hence $0 < m$ by \cref{upair_elim,real_zero_lt_one,real_lt_subst_right}.
For all $z$ such that $z\in\metricBall{e}{X}{y}{m}$ we have $z\in U$
by \cref{metric_ball,subseteq,times_tuple_intro,metric_on,funs_elim,funs_type_apply,real_lt_subst_left,real_minimum,real_leq_split,real_lt_subst_right,real_lt_trans,bounded_metric_apply_value_lt_one}.
Therefore $\metricBall{e}{X}{y}{m}\subseteq U$ by \cref{subseteq}.
\end{subproof}
Hence $U\in T_1$ by \cref{metric_open_iff,open_in}.
\end{subproof}
Therefore $T_1 = T$ by \cref{subseteq,subseteq_antisymmetric}.
\end{proof}
$\realsPower{J} = \tuplePower{\reals}{J}$.
LaTeX source
\begin{definition}
\label{reals_power}
$\realsPower{J} = \tuplePower{\reals}{J}$.
\end{definition}
$r$ is a euclidean norm of $x$ with respect to $n$ iff $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{\initialSegment{n}}$ and $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and there exists $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ such that for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $a(i) = \exp{x(i)}{1+1}$ and there exists $s$ such that $s$ is the sum of $a$ and $r = \sqrt{s}$.
LaTeX source
\begin{definition}
\label{euclidean_norm}
$r$ is a euclidean norm of $x$ with respect to $n$ iff
$x\in\realsPower{\initialSegment{n}}$ and
$r\in\reals$ and
there exists $a\in\funs{\initialSegment{n}}{\reals}$ such that
for all $i\in\initialSegment{n}$ we have $a(i) = \exp{x(i)}{1+1}$ and
there exists $s$ such that $s$ is the sum of $a$ and $r = \sqrt{s}$.
\end{definition}
$\sumFiniteSequence{a}{s}$ iff there exists $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ and there exists $t\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ such that $t(1) = a(1)$ and $s = t(n)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ we have $t(k + 1) = t(k) + a(k + 1)$.
LaTeX source
\begin{definition}
\label{sum_finite_sequence_pred}
$\sumFiniteSequence{a}{s}$ iff
there exists $n\in\naturalsPlus$ such that
$a\in\funs{\initialSegment{n}}{\reals}$ and
there exists $t\in\funs{\initialSegment{n}}{\reals}$ such that
$t(1) = a(1)$ and
$s = t(n)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n$ we have
$t(k + 1) = t(k) + a(k + 1)$.
\end{definition}
Suppose $\sumFiniteSequence{a}{s_1}$.
Suppose $\sumFiniteSequence{a}{s_2}$.
Then $s_1 = s_2$.
LaTeX source
\begin{lemma}
\label{sum_finite_sequence_unique}
Suppose $\sumFiniteSequence{a}{s_1}$.
Suppose $\sumFiniteSequence{a}{s_2}$.
Then $s_1 = s_2$.
\end{lemma}
Proof
Take $n_1$ such that $n_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_1}}{\reals}$ and there exists $t_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_1}}{\reals}$ such that $t_1(1) = a(1)$ and $s_1 = t_1(n_1)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_1$ we have $t_1(k + 1) = t_1(k) + a(k + 1)$ by Definition 193.
Take $n_2$ such that $n_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_2}}{\reals}$ and there exists $t_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_2}}{\reals}$ such that $t_2(1) = a(1)$ and $s_2 = t_2(n_2)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_2$ we have $t_2(k + 1) = t_2(k) + a(k + 1)$ by Definition 193.
Take $t_1$ such that $t_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_1}}{\reals}$ and $t_1(1) = a(1)$ and $s_1 = t_1(n_1)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_1$ we have $t_1(k + 1) = t_1(k) + a(k + 1)$.
Take $t_2$ such that $t_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_2}}{\reals}$ and $t_2(1) = a(1)$ and $s_2 = t_2(n_2)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_2$ we have $t_2(k + 1) = t_2(k) + a(k + 1)$.
Hence $n_1 = n_2$ by Axiom 41, Definition 1, Definition 84, Lemma 25, Proposition 3, Proposition 359.
Let $n = n_1$.
We have $t_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ and $t_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$.
Let $A = \{k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \text{if $k \leq n$ then $t_1(k) = t_2(k)$}\}$.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1.
Hence $1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 42, Axiom 43.
Claim: For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Follows by Axiom 13, Axiom 16, Axiom 17, Axiom 37, Axiom 41, Axiom 42, Axiom 45, Definition 1, Definition 84, Lemma 23, Lemma 82, Proposition 361, Proposition 437, Proposition 462.
Therefore for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 445.
For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have if $k \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $t_1(k) = t_2(k)$.
We have $\dom{t_1} = \initialSegment{n}$ and $\dom{t_2} = \initialSegment{n}$ and $t_1$ is a function and $t_2$ is a function by Proposition 359.
Claim: $t_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} t_2$.
Follows by Definition 1, Definition 84, Proposition 350.
Claim: $t_2\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} t_1$.
Follows by Definition 1, Definition 84, Proposition 350.
Hence $t_1 = t_2$ by Proposition 3.
Therefore $s_1 = s_2$.
LaTeX source
\begin{proof}
Take $n_1$ such that $n_1\in\naturalsPlus$ and $a\in\funs{\initialSegment{n_1}}{\reals}$ and
there exists $t_1\in\funs{\initialSegment{n_1}}{\reals}$ such that
$t_1(1) = a(1)$ and
$s_1 = t_1(n_1)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n_1$ we have $t_1(k + 1) = t_1(k) + a(k + 1)$
by \cref{sum_finite_sequence_pred}.
Take $n_2$ such that $n_2\in\naturalsPlus$ and $a\in\funs{\initialSegment{n_2}}{\reals}$ and
there exists $t_2\in\funs{\initialSegment{n_2}}{\reals}$ such that
$t_2(1) = a(1)$ and
$s_2 = t_2(n_2)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n_2$ we have $t_2(k + 1) = t_2(k) + a(k + 1)$
by \cref{sum_finite_sequence_pred}.
Take $t_1$ such that $t_1\in\funs{\initialSegment{n_1}}{\reals}$ and
$t_1(1) = a(1)$ and
$s_1 = t_1(n_1)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n_1$ we have $t_1(k + 1) = t_1(k) + a(k + 1)$.
Take $t_2$ such that $t_2\in\funs{\initialSegment{n_2}}{\reals}$ and
$t_2(1) = a(1)$ and
$s_2 = t_2(n_2)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n_2$ we have $t_2(k + 1) = t_2(k) + a(k + 1)$.
Hence $n_1 = n_2$
by \cref{funs_elim,subseteq_antisymmetric,subseteq,initial_segment_naturalsplus,real_naturals_subset_reals,real_leq_antisym}.
Let $n = n_1$.
We have $t_1\in\funs{\initialSegment{n}}{\reals}$ and $t_2\in\funs{\initialSegment{n}}{\reals}$.
Let $A = \{k\in\naturalsPlus \mid \text{if $k \leq n$ then $t_1(k) = t_2(k)$}\}$.
$A\subseteq\naturalsPlus$ by \cref{subseteq}.
Hence $1\in A$ by \cref{real_one_in_naturals,real_one_leq_naturalsplus}.
Show that for all $k\in A$ we have $k + 1\in A$.
\begin{subproof}
Follows by \cref{subseteq,real_naturals_subset_reals,real_add_ident,real_one_in_naturals,real_zero_lt_one,real_lt_add,real_add_comm,real_lt_subst_left,real_add_closed,real_leq_trans,initial_segment_naturalsplus,real_naturals_closed_succ,funs_type_apply,real_add_eq_subst}.
\end{subproof}
Therefore for all $k\in\naturalsPlus$ we have $k\in A$ by \cref{real_naturals_induction}.
For all $k\in\naturalsPlus$ we have if $k \leq n$ then $t_1(k) = t_2(k)$.
We have $\dom{t_1} = \initialSegment{n}$ and $\dom{t_2} = \initialSegment{n}$ and
$t_1$ is a function and $t_2$ is a function by \cref{funs_elim}.
Show that $t_1\subseteq t_2$.
\begin{subproof}
Follows by \cref{subseteq,initial_segment_naturalsplus,fun_subseteq}.
\end{subproof}
Show that $t_2\subseteq t_1$.
\begin{subproof}
Follows by \cref{subseteq,initial_segment_naturalsplus,fun_subseteq}.
\end{subproof}
Hence $t_1 = t_2$ by \cref{subseteq_antisymmetric}.
Therefore $s_1 = s_2$.
\end{proof}
$\coordSquareSequence{n}{p} = \{w \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}. w = (i, \exp{\apply{\fst{p}}{i} - \apply{\snd{p}}{i}}{1+1})\}$.
LaTeX source
\begin{definition}
\label{coord_square_sequence}
$\coordSquareSequence{n}{p} = \{w \mid \exists i\in\initialSegment{n}.
w = (i, \exp{\apply{\fst{p}}{i} - \apply{\snd{p}}{i}}{1+1})\}$.
\end{definition}
$\euclideanMetric{n} = \{w \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} p\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{\initialSegment{n}}\class{latex-symbol-tip latex-symbol-id-times}{\times}\realsPower{\initialSegment{n}}. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals. w = (p,r) \class{latex-symbol-tip latex-symbol-id-land}{\land} \sumFiniteSequence{\coordSquareSequence{n}{p}}{s} \class{latex-symbol-tip latex-symbol-id-land}{\land} r = \sqrt{s}\}$.
LaTeX source
\begin{definition}
\label{euclidean_metric}
$\euclideanMetric{n} = \{w \mid \exists p\in\realsPower{\initialSegment{n}}\times\realsPower{\initialSegment{n}}. \exists r\in\reals.
\exists s\in\reals.
w = (p,r) \land
\sumFiniteSequence{\coordSquareSequence{n}{p}}{s} \land
r = \sqrt{s}\}$.
\end{definition}
$\coordDiffSet{n}{x}{y} = \{\abs{x(i) - y(i)} \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\}$.
LaTeX source
\begin{definition}
\label{coord_diff_set}
$\coordDiffSet{n}{x}{y} = \{\abs{x(i) - y(i)} \mid i\in\initialSegment{n}\}$.
\end{definition}
$\squareMetric{n} = \{w \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} p\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{\initialSegment{n}}\class{latex-symbol-tip latex-symbol-id-times}{\times}\realsPower{\initialSegment{n}}. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} x\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{\initialSegment{n}}. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} y\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{\initialSegment{n}}. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals. w = (p,r) \class{latex-symbol-tip latex-symbol-id-land}{\land} p = (x,y) \class{latex-symbol-tip latex-symbol-id-land}{\land} r\class{latex-symbol-tip latex-symbol-id-in}{\in}\coordDiffSet{n}{x}{y} \class{latex-symbol-tip latex-symbol-id-land}{\land} (\class{latex-symbol-tip latex-symbol-id-forall}{\forall} t\class{latex-symbol-tip latex-symbol-id-in}{\in}\coordDiffSet{n}{x}{y}. t \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r)\}$.
LaTeX source
\begin{definition}
\label{square_metric}
$\squareMetric{n} = \{w \mid \exists p\in\realsPower{\initialSegment{n}}\times\realsPower{\initialSegment{n}}.
\exists x\in\realsPower{\initialSegment{n}}. \exists y\in\realsPower{\initialSegment{n}}. \exists r\in\reals.
w = (p,r) \land p = (x,y) \land
r\in\coordDiffSet{n}{x}{y} \land
(\forall t\in\coordDiffSet{n}{x}{y}. t \leq r)\}$.
\end{definition}
Suppose $d$ is a metric on $X$.
Suppose $d_1$ is a metric on $X$.
Let $T = \metricTopology{d}{X}$.
Let $T_1 = \metricTopology{d_1}{X}$.
Then $T_1$ is finer than $T$ on $X$ iff for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have 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 $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\metricBall{d_1}{X}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
LaTeX source
\begin{lemma}
\label{metric_topology_finer_iff}
Suppose $d$ is a metric on $X$.
Suppose $d_1$ is a metric on $X$.
Let $T = \metricTopology{d}{X}$.
Let $T_1 = \metricTopology{d_1}{X}$.
Then $T_1$ is finer than $T$ on $X$ iff
for all $x\in X$ we have
for all $\epsilon\in\reals$ such that $0 < \epsilon$ there exists $\delta\in\reals$
such that $0 < \delta$ and
$\metricBall{d_1}{X}{x}{\delta} \subseteq \metricBall{d}{X}{x}{\epsilon}$.
\end{lemma}
Proof
Claim: If $T_1$ is finer than $T$ on $X$ then for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have 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 $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\metricBall{d_1}{X}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
Claim: If for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have 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 $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\metricBall{d_1}{X}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ then $T_1$ is finer than $T$ on $X$.
Assume that for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have 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 $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\metricBall{d_1}{X}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
$T$ is a topology on $X$ and $T_1$ is a topology on $X$ by Definition 182, Lemma 76, Lemma 194.
Claim: For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ we have $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$.
Fix $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T$.
Hence $U$ is open in $X$ with respect to $T$ and $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 1, Definition 101, Definition 103, Proposition 156.
Claim: For all $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ there exists $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\metricBall{d_1}{X}{y}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.
Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
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}{y}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Lemma 195.
Take $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\metricBall{d_1}{X}{y}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \metricBall{d}{X}{y}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
Claim: $\metricBall{d_1}{X}{y}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.
Follows by Proposition 6.
Hence $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ by Definition 103, Lemma 195.
Therefore $T_1$ is finer than $T$ on $X$ by Definition 1, Definition 108.
LaTeX source
\begin{proof}
Show that if $T_1$ is finer than $T$ on $X$ then
for all $x\in X$ we have
for all $\epsilon\in\reals$ such that $0 < \epsilon$ there exists $\delta\in\reals$
such that $0 < \delta$ and
$\metricBall{d_1}{X}{x}{\delta} \subseteq \metricBall{d}{X}{x}{\epsilon}$.
\begin{subproof}
Follows by \cref{metric_ball,subseteq,powerset_intro,metric_basis,metric_basis_is_basis,basis_elem_open_in_generated,basis_for_topology,metric_topology,finer_topology,basis_topology_is_topology,open_in,metric_zero_characterization,real_lt_subst_left,metric_on,metric_open_iff}.
\end{subproof}
Show that if
for all $x\in X$ we have
for all $\epsilon\in\reals$ such that $0 < \epsilon$ there exists $\delta\in\reals$
such that $0 < \delta$ and
$\metricBall{d_1}{X}{x}{\delta} \subseteq \metricBall{d}{X}{x}{\epsilon}$
then $T_1$ is finer than $T$ on $X$.
\begin{subproof}
Assume that for all $x\in X$ we have
for all $\epsilon\in\reals$ such that $0 < \epsilon$ there exists $\delta\in\reals$
such that $0 < \delta$ and
$\metricBall{d_1}{X}{x}{\delta} \subseteq \metricBall{d}{X}{x}{\epsilon}$.
$T$ is a topology on $X$ and $T_1$ is a topology on $X$
by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology}.
Show that for all $U$ such that $U\in T$ we have $U\in T_1$.
\begin{subproof}
Fix $U$ such that $U\in T$.
Hence $U$ is open in $X$ with respect to $T$ and $U\subseteq X$
by \cref{open_in,topology_on,subseteq,powerset_elim}.
Show that for all $y\in U$ there exists $\delta\in\reals$ such that $0 < \delta$ and
$\metricBall{d_1}{X}{y}{\delta}\subseteq U$.
\begin{subproof}
Fix $y$ such that $y\in U$.
Take $\epsilon\in\reals$ such that $0 < \epsilon$ and
$\metricBall{d}{X}{y}{\epsilon}\subseteq U$
by \cref{metric_open_iff}.
Take $\delta\in\reals$ such that $0 < \delta$ and
$\metricBall{d_1}{X}{y}{\delta}\subseteq \metricBall{d}{X}{y}{\epsilon}$.
Show that $\metricBall{d_1}{X}{y}{\delta}\subseteq U$.
\begin{subproof}
Follows by \cref{subseteq_transitive}.
\end{subproof}
\end{subproof}
Hence $U\in T_1$ by \cref{metric_open_iff,open_in}.
\end{subproof}
Therefore $T_1$ is finer than $T$ on $X$ by \cref{subseteq,finer_topology}.
\end{subproof}
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Then $\initialSegment{n}$ is finite.
LaTeX source
\begin{lemma}
\label{initial_segment_finite}
Suppose $n\in\naturalsPlus$.
Then $\initialSegment{n}$ is finite.
\end{lemma}
Proof
Let $A = \{n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \text{$\initialSegment{n}$ is finite}\}$.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1.
Let $B = \initialSegment{1}$.
We have for all $k$ such that $k\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ we have $k = 1$.
Hence $B$ is finite by Definition 1, Lemma 40, Lemma 44, Proposition 16.
Therefore $1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Claim: For all $m\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $m + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Fix $m$ such that $m\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
We have $\initialSegment{m}$ is finite.
$m + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 45, Definition 1.
Let $C = \initialSegment{m + 1}$.
For all $k$ such that $k\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $k\class{latex-symbol-tip latex-symbol-id-in}{\in} \initialSegment{m}\union\{m + 1,m + 1\}$.
Hence $C$ is finite by Definition 1, Lemma 40, Lemma 44, Lemma 45.
Therefore $m + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Therefore $\initialSegment{n}$ is finite by Definition 1, Proposition 445.
LaTeX source
\begin{proof}
Let $A = \{n\in\naturalsPlus \mid \text{$\initialSegment{n}$ is finite}\}$.
$A\subseteq\naturalsPlus$ by \cref{subseteq}.
Let $B = \initialSegment{1}$.
We have for all $k$ such that $k\in B$ we have $k = 1$.
Hence $B$ is finite by \cref{upair_intro_left,subseteq,pair_is_finite,subseteq_finite_is_finite}.
Therefore $1\in A$.
Show that for all $m\in A$ we have $m + 1\in A$.
\begin{subproof}
Fix $m$ such that $m\in A$.
We have $\initialSegment{m}$ is finite.
$m + 1\in\naturalsPlus$ by \cref{subseteq,real_naturals_closed_succ}.
Let $C = \initialSegment{m + 1}$.
For all $k$ such that $k\in C$ we have $k\in \initialSegment{m}\union\{m + 1,m + 1\}$.
Hence $C$ is finite by \cref{subseteq,pair_is_finite,union_of_finite_is_finite,subseteq_finite_is_finite}.
Therefore $m + 1\in A$.
\end{subproof}
Therefore $\initialSegment{n}$ is finite by \cref{real_naturals_induction,subseteq}.
\end{proof}
Suppose $J$ is inhabited.
Let $X = \{(i,\reals) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in} J\}$.
Then $\productFamily{X} = \realsPower{J}$.
LaTeX source
\begin{lemma}
\label{product_family_reals_power}
Suppose $J$ is inhabited.
Let $X = \{(i,\reals) \mid i\in J\}$.
Then $\productFamily{X} = \realsPower{J}$.
\end{lemma}
Proof
Claim: For all $i,y_1,y_2$ such that $(i,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $(i,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $y_1 = y_2$.
Trivial.
Hence $X$ is a function on $J$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
Claim: For all $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{\ran{X}}$ we have $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Follows by Axiom 4, Axiom 6, Proposition 208.
Claim: For all $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ we have $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{\ran{X}}$.
Follows by Axiom 4, Proposition 209.
Hence $\unions{\ran{X}} = \reals$ by Definition 1, Proposition 3.
Claim: $\productFamily{X}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\realsPower{J}$.
Claim: $\realsPower{J}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\productFamily{X}$.
Therefore $\productFamily{X} = \realsPower{J}$ by Definition 1, Proposition 3.
LaTeX source
\begin{proof}
Show that for all $i,y_1,y_2$ such that $(i,y_1)\in X$ and $(i,y_2)\in X$ we have $y_1 = y_2$.
\begin{subproof}
Trivial.
\end{subproof}
Hence $X$ is a function on $J$
by \cref{relation,rightunique,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
Show that for all $z$ such that $z\in\unions{\ran{X}}$ we have $z\in\reals$.
\begin{subproof}
Follows by \cref{ran_iff,pair_eq_iff,unions_iff}.
\end{subproof}
Show that for all $z$ such that $z\in\reals$ we have $z\in\unions{\ran{X}}$.
\begin{subproof}
Follows by \cref{ran_intro,unions_iff}.
\end{subproof}
Hence $\unions{\ran{X}} = \reals$ by \cref{subseteq,subseteq_antisymmetric}.
Show that $\productFamily{X}\subseteq\realsPower{J}$.
\begin{subproof}
Follows by \cref{indexed_product,funs_elim,function_on_weaken_codom,funs_intro,tuple_power,reals_power,subseteq}.
\end{subproof}
Show that $\realsPower{J}\subseteq\productFamily{X}$.
\begin{subproof}
Follows by \cref{reals_power,tuple_power,funs_elim,function_on_weaken_codom,funs_intro,subseteq,function_apply_intro,indexed_product}.
\end{subproof}
Therefore $\productFamily{X} = \realsPower{J}$ by \cref{subseteq,subseteq_antisymmetric}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Suppose $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Then $\coordDiffSet{n}{x}{y}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ and $\coordDiffSet{n}{x}{y}$ is finite and $\coordDiffSet{n}{x}{y}$ is inhabited.
LaTeX source
\begin{lemma}
\label{coord_diff_set_finite}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $x\in\realsPower{J}$.
Suppose $y\in\realsPower{J}$.
Then $\coordDiffSet{n}{x}{y}\subseteq\reals$ and
$\coordDiffSet{n}{x}{y}$ is finite and
$\coordDiffSet{n}{x}{y}$ is inhabited.
\end{lemma}
Proof
Let $D = \coordDiffSet{n}{x}{y}$.
Claim: $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$.
Follows by Axiom 13, Axiom 18, Definition 1, Definition 64, Definition 166, Definition 191, Definition 196, Lemma 34, Proposition 361.
Claim: $D$ is finite.
Let $g = \{(i,\abs{x(i) - y(i)}) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in} J\}$.
Claim: For all $i,t_1,t_2$ such that $(i,t_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ and $(i,t_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ we have $t_1 = t_2$.
Follows by Axiom 6.
Hence $g$ is a function on $J$ by Axiom 6, Definition 1, Definition 12, Definition 51, Definition 196, Proposition 3, Proposition 199, Proposition 200.
Therefore $D$ is finite by Axiom 1 [Set extensionality], Definition 196, Lemma 192, Lemma 208, Proposition 235.
Claim: $D$ is inhabited.
Follows by Axiom 42, Axiom 43, Definition 84, Definition 196.
LaTeX source
\begin{proof}
Let $D = \coordDiffSet{n}{x}{y}$.
Show that $D\subseteq\reals$.
\begin{subproof}
Follows by \cref{coord_diff_set,reals_power,tuple_power,funs_type_apply,real_add_inverse,real_add_closed,real_sub,real_abs_in_reals,subseteq}.
\end{subproof}
Show that $D$ is finite.
\begin{subproof}
Let $g = \{(i,\abs{x(i) - y(i)}) \mid i\in J\}$.
Show that for all $i,t_1,t_2$ such that $(i,t_1)\in g$ and $(i,t_2)\in g$ we have $t_1 = t_2$.
\begin{subproof}
Follows by \cref{pair_eq_iff}.
\end{subproof}
Hence $g$ is a function on $J$ by \cref{coord_diff_set,relation,rightunique,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
Therefore $D$ is finite by \cref{coord_diff_set,img_iff,setext,initial_segment_finite,finite_image_function}.
\end{subproof}
Show that $D$ is inhabited.
\begin{subproof}
Follows by \cref{real_one_in_naturals,real_one_leq_naturalsplus,initial_segment_naturalsplus,coord_diff_set}.
\end{subproof}
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Then $\squareMetric{n}$ is a function.
LaTeX source
\begin{lemma}
\label{square_metric_function}
Suppose $n\in\naturalsPlus$.
Then $\squareMetric{n}$ is a function.
\end{lemma}
Proof
Follows by Axiom 6, Definition 1, Definition 12, Definition 51, Definition 197, Lemma 25, Lemma 210.
LaTeX source
\begin{proof}
Follows by \cref{square_metric,relation,rightunique,pair_eq_iff,coord_diff_set_finite,subseteq,real_leq_antisym}.
\end{proof}
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
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 $a - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} < b$ and $b < a + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Then $\abs{a - b} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
LaTeX source
\begin{lemma}
\label{real_abs_lt_from_interval}
Suppose $a\in\reals$.
Suppose $b\in\reals$.
Suppose $\epsilon\in\reals$.
Suppose $0 < \epsilon$.
Suppose $a - \epsilon < b$ and $b < a + \epsilon$.
Then $\abs{a - b} < \epsilon$.
\end{lemma}
Proof
$b - a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64.
Hence $b + \neg{a} < (a + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}) + \neg{a}$ by Axiom 13, Axiom 18, Axiom 37, Definition 64.
We have $(a + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}) + \neg{a} = 0 + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 15, Axiom 16, Axiom 18.
Thus $b - a < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 17, Definition 64.
$\neg{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 18.
We have $a + \neg{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}} < b$ by Definition 64, Lemma 82.
Therefore $(a + \neg{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}) + \neg{a} < b + \neg{a}$ by Axiom 13, Axiom 18, Axiom 37.
We have $(a - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}) + \neg{a} = 0 + \neg{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Axiom 15, Axiom 16, Axiom 18, Definition 64.
Hence $\neg{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}} < b - a$ by Axiom 17, Definition 64.
$b - a = 0$ or $b - a < 0$ or $0 < b - a$ by Axiom 17, Axiom 34.
Hence $\abs{b - a} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 18, Axiom 47, Axiom 48, Lemma 82, Lemma 83, Proposition 441, Proposition 465.
Therefore $\abs{a - b} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Proposition 482.
LaTeX source
\begin{proof}
$b - a\in\reals$ by \cref{real_add_inverse,real_sub,real_add_closed}.
Hence $b + \neg{a} < (a + \epsilon) + \neg{a}$ by \cref{real_add_inverse,real_sub,real_add_closed,real_lt_add}.
We have $(a + \epsilon) + \neg{a} = 0 + \epsilon$ by \cref{real_add_assoc,real_add_comm,real_add_inverse}.
Thus $b - a < \epsilon$ by \cref{real_add_ident,real_sub}.
$\neg{\epsilon}\in\reals$ by \cref{real_add_inverse}.
We have $a + \neg{\epsilon} < b$ by \cref{real_sub,real_lt_subst_left}.
Therefore $(a + \neg{\epsilon}) + \neg{a} < b + \neg{a}$ by \cref{real_add_inverse,real_add_closed,real_lt_add}.
We have $(a - \epsilon) + \neg{a} = 0 + \neg{\epsilon}$ by \cref{real_sub,real_add_assoc,real_add_comm,real_add_inverse}.
Hence $\neg{\epsilon} < b - a$ by \cref{real_add_ident,real_sub}.
$b - a = 0$ or $b - a < 0$ or $0 < b - a$ by \cref{real_add_ident,real_lt_trichotomy}.
Hence $\abs{b - a} < \epsilon$
by \cref{real_abs_nonneg,real_lt_subst_left,real_abs_neg,real_neg_neg,real_add_inverse,real_lt_neg,real_lt_subst_right}.
Therefore $\abs{a - b} < \epsilon$ by \cref{real_abs_sub_swap}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Suppose $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
Then $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$.
LaTeX source
\begin{lemma}
\label{initial_segment_pred_from_succ_bound_aux}
Suppose $n\in\naturalsPlus$.
Suppose $k\in\naturalsPlus$ and $k + 1 \leq n$.
Then $k\in\initialSegment{n}$.
\end{lemma}
Proof
$k\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17, Axiom 41, Axiom 42, Definition 1.
Hence $k < k + 1$ by Axiom 16, Axiom 17, Axiom 37, Lemma 82, Proposition 462.
$k + 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 13, Axiom 41, Definition 1.
Claim: $k \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
Therefore $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ by Definition 84.
LaTeX source
\begin{proof}
$k\in\reals$ and $1\in\reals$ and $0\in\reals$
by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_add_ident}.
Hence $k < k + 1$
by \cref{real_zero_lt_one,real_lt_add,real_add_ident,real_add_comm,real_lt_subst_left}.
$k + 1\in\reals$ and $n\in\reals$ by \cref{real_add_closed,real_naturals_subset_reals,subseteq}.
Show that $k \leq n$.
\begin{subproof}
Suppose not.
Hence $n < k$ by \cref{real_lt_trichotomy}.
$k + 1 < n$ or $k + 1 = n$.
Hence $k < n$ by \cref{real_lt_trans,real_lt_subst_right}.
Therefore $n < n$ by \cref{real_lt_trans}.
Contradiction by \cref{real_lt_irreflexive}.
\end{subproof}
Therefore $k\in\initialSegment{n}$ by \cref{initial_segment_naturalsplus}.
\end{proof}
Suppose $\sumFiniteSequence{a}{s}$.
Suppose for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{a}$ we have $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a(i)$.
Then $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s$.
LaTeX source
\begin{lemma}
\label{sum_finite_sequence_nonneg}
Suppose $\sumFiniteSequence{a}{s}$.
Suppose for all $i\in\dom{a}$ we have $0 \leq a(i)$.
Then $0 \leq s$.
\end{lemma}
Proof
Take $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ and there exists $t\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ such that $t(1) = a(1)$ and $s = t(n)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ we have $t(k + 1) = t(k) + a(k + 1)$ by Definition 193.
Take $t$ such that $t\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ and $t(1) = a(1)$ and $s = t(n)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ we have $t(k + 1) = t(k) + a(k + 1)$.
$\dom{a} = \initialSegment{n}$ by Proposition 359.
Let $A = \{k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \text{if $k \leq n$ then $0 \leq t(k)$}\}$.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ by Axiom 42, Axiom 43.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(1)$.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 42.
Claim: For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Fix $k$ such that $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
$k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 45, Definition 1.
Claim: If $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(k + 1)$.
Assume $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
$k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ by Lemma 213.
$k \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ by Definition 84.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(k)$ by Definition 1.
$k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ by Definition 84.
$k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{a}$ by Proposition 359.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a(k + 1)$.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17.
$t(k)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $a(k + 1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 84, Proposition 359, Proposition 361.
$a(k + 1) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(k) + a(k + 1)$ by Axiom 17, Lemma 24.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(k) + a(k + 1)$ by Axiom 13, Lemma 23.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(k + 1)$ by assumption.
$k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s$ by Definition 1, Proposition 445.
LaTeX source
\begin{proof}
Take $n$ such that $n\in\naturalsPlus$ and $a\in\funs{\initialSegment{n}}{\reals}$ and
there exists $t\in\funs{\initialSegment{n}}{\reals}$ such that
$t(1) = a(1)$ and $s = t(n)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n$ we have $t(k + 1) = t(k) + a(k + 1)$
by \cref{sum_finite_sequence_pred}.
Take $t$ such that $t\in\funs{\initialSegment{n}}{\reals}$ and
$t(1) = a(1)$ and $s = t(n)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n$ we have $t(k + 1) = t(k) + a(k + 1)$.
$\dom{a} = \initialSegment{n}$ by \cref{funs_elim}.
Let $A = \{k\in\naturalsPlus \mid \text{if $k \leq n$ then $0 \leq t(k)$}\}$.
$A\subseteq\naturalsPlus$ by \cref{subseteq}.
$1\in\naturalsPlus$ and $1 \leq n$ by \cref{real_one_in_naturals,real_one_leq_naturalsplus}.
$0 \leq t(1)$.
$1\in A$ by \cref{real_one_in_naturals}.
Show that for all $k\in A$ we have $k + 1\in A$.
\begin{subproof}
Fix $k$ such that $k\in A$.
$k\in\naturalsPlus$ and $k + 1\in\naturalsPlus$ by \cref{subseteq,real_naturals_closed_succ}.
Show that if $k + 1 \leq n$ then $0 \leq t(k + 1)$.
\begin{subproof}
Assume $k + 1 \leq n$.
$k\in\initialSegment{n}$ by \cref{initial_segment_pred_from_succ_bound_aux}.
$k \leq n$ by \cref{initial_segment_naturalsplus}.
$0 \leq t(k)$ by \cref{subseteq}.
$k + 1\in\initialSegment{n}$ by \cref{initial_segment_naturalsplus}.
$k + 1\in\dom{a}$ by \cref{funs_elim}.
$0 \leq a(k + 1)$.
$0\in\reals$ by \cref{real_add_ident}.
$t(k)\in\reals$ and $a(k + 1)\in\reals$ by \cref{initial_segment_naturalsplus,funs_elim,funs_type_apply}.
$a(k + 1) \leq t(k) + a(k + 1)$ by \cref{real_add_ident,real_leq_add}.
$0 \leq t(k) + a(k + 1)$ by \cref{real_add_closed,real_leq_trans}.
$0 \leq t(k + 1)$ by assumption.
\end{subproof}
$k + 1\in A$.
\end{subproof}
$0 \leq s$ by \cref{real_naturals_induction,subseteq}.
\end{proof}
Suppose $\sumFiniteSequence{a}{s}$.
Suppose for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{a}$ we have $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a(i)$.
Then for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{a}$ we have $a(i) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s$.
LaTeX source
\begin{lemma}
\label{sum_finite_sequence_term_leq}
Suppose $\sumFiniteSequence{a}{s}$.
Suppose for all $i\in\dom{a}$ we have $0 \leq a(i)$.
Then for all $i\in\dom{a}$ we have $a(i) \leq s$.
\end{lemma}
Proof
Take $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ and there exists $t\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ such that $t(1) = a(1)$ and $s = t(n)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ we have $t(k + 1) = t(k) + a(k + 1)$ by Definition 193.
Take $t$ such that $t\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ and $t(1) = a(1)$ and $s = t(n)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ we have $t(k + 1) = t(k) + a(k + 1)$.
$\dom{a} = \initialSegment{n}$ and $\dom{t} = \initialSegment{n}$ by Proposition 359.
Let $A = \{k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \text{if $k \leq n$ then for all $j\in\initialSegment{k}$ we have $t(j) \leq t(k)$}\}$.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1.
For all $j\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{1}$ we have $t(j) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(1)$.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Claim: For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Fix $k$ such that $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
$k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 45, Definition 1.
Claim: If $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then for all $j\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k + 1}$ we have $t(j) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(k + 1)$.
Assume $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
$k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ by Lemma 213.
$k \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ by Definition 84.
For all $j\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}$ we have $t(j) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(k)$ by Definition 1.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a(k + 1)$ by Axiom 45, Definition 84.
$a(k + 1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $t(k)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 84, Proposition 359, Proposition 361.
$t(k) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(k + 1)$ by Axiom 16, Axiom 17, Lemma 23, Lemma 24.
Claim: For all $j\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k + 1}$ we have $t(j) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(k + 1)$.
Fix $j$ such that $j\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k + 1}$.
$j\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $j \class{latex-symbol-tip latex-symbol-id-leq}{\leq} k + 1$ by Definition 84.
$j = k + 1$ or $j \class{latex-symbol-tip latex-symbol-id-neq}{\neq} k + 1$.
$t(j) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(k + 1)$.
$j \class{latex-symbol-tip latex-symbol-id-leq}{\leq} k$ by Lemma 29.
$j\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}$ by Definition 84.
$t(j) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(k)$.
$k \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
$j\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $k\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.
$j \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ by Lemma 23.
$j\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ and $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ by Definition 84.
$t(j)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $t(k + 1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 361.
$t(j) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(k + 1)$ by Lemma 23.
LaTeX source
\begin{byCase}
\caseOf{$j = k + 1$.}
$t(j) \leq t(k + 1)$.
\caseOf{$j \neq k + 1$.}
$j \leq k$ by \cref{real_naturals_leq_succ_elim}.
$j\in\initialSegment{k}$ by \cref{initial_segment_naturalsplus}.
$t(j) \leq t(k)$.
$k \leq n$.
$j\in\reals$ and $k\in\reals$ and $n\in\reals$
by \cref{real_naturals_subset_reals,subseteq}.
$j \leq n$ by \cref{real_leq_trans}.
$j\in\initialSegment{n}$ and $k + 1\in\initialSegment{n}$ by \cref{initial_segment_naturalsplus}.
$t(j)\in\reals$ and $t(k + 1)\in\reals$ by \cref{funs_type_apply}.
$t(j) \leq t(k + 1)$ by \cref{real_leq_trans}.
\end{byCase}
$k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 1.
For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 445.
Claim: For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{a}$ we have $a(i) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s$.
Fix $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{a}$.
$i\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $i \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ by Definition 84.
$t(i) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(n)$ by Definition 1, Definition 84.
Claim: $a(i) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(i)$.
$i = 1$ or $i \class{latex-symbol-tip latex-symbol-id-neq}{\neq} 1$.
$a(i) = t(i)$.
Take $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $i = m + 1$ by Lemma 31.
$m\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17, Axiom 41, Axiom 42, Definition 1.
$0 < 1$ by Proposition 462.
$0 + m < 1 + m$ by Axiom 37.
$0 + m = m$ by Axiom 17.
$1 + m = m + 1$ by Axiom 16.
$m < m + 1$ by Lemma 82.
$m < i$.
$m \class{latex-symbol-tip latex-symbol-id-leq}{\leq} i$.
$m \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ by Lemma 23.
$m\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 1.
$1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ by Axiom 43.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}$ by Definition 84.
$t(1) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(m)$.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{a}$ by Axiom 42, Axiom 43, Definition 84.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a(1)$.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(1)$.
$m\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{t}$ by Definition 84.
$t(1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $t(m)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 361.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(m)$ by Lemma 23.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a(i)$.
$a(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $t(m)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 361.
$m + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
$t(m + 1) = t(m) + a(m + 1)$ by assumption.
$t(i) = t(m) + a(i)$.
$a(i) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} t(i)$ by Axiom 13, Axiom 17, Lemma 23, Lemma 24.
LaTeX source
\begin{byCase}
\caseOf{$i = 1$.}
$a(i) = t(i)$.
\caseOf{$i \neq 1$.}
Take $m\in\naturalsPlus$ such that $i = m + 1$ by \cref{real_naturals_predecessor}.
$m\in\reals$ and $i\in\reals$ and $n\in\reals$ and $1\in\reals$ and $0\in\reals$
by \cref{real_naturals_subset_reals,subseteq,real_one_in_naturals,real_add_ident}.
$0 < 1$ by \cref{real_zero_lt_one}.
$0 + m < 1 + m$ by \cref{real_lt_add}.
$0 + m = m$ by \cref{real_add_ident}.
$1 + m = m + 1$ by \cref{real_add_comm}.
$m < m + 1$ by \cref{real_lt_subst_left}.
$m < i$.
$m \leq i$.
$m \leq n$ by \cref{real_leq_trans}.
$m\in A$ by \cref{subseteq}.
$1 \leq m$ by \cref{real_one_leq_naturalsplus}.
$1\in\initialSegment{m}$ by \cref{initial_segment_naturalsplus}.
$t(1) \leq t(m)$.
$1\in\dom{a}$ by \cref{real_one_in_naturals,real_one_leq_naturalsplus,initial_segment_naturalsplus}.
$0 \leq a(1)$.
$0 \leq t(1)$.
$m\in\dom{t}$ by \cref{initial_segment_naturalsplus}.
$t(1)\in\reals$ and $t(m)\in\reals$ by \cref{funs_type_apply}.
$0 \leq t(m)$ by \cref{real_leq_trans}.
$0 \leq a(i)$.
$a(i)\in\reals$ and $t(m)\in\reals$ by \cref{funs_type_apply}.
$m + 1 \leq n$.
$t(m + 1) = t(m) + a(m + 1)$ by assumption.
$t(i) = t(m) + a(i)$.
$a(i) \leq t(i)$ by \cref{real_add_closed,real_leq_add,real_add_ident,real_leq_trans}.
\end{byCase}
$a(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $t(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $t(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 84, Proposition 359, Proposition 361.
$a(i) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s$ by Lemma 23.
LaTeX source
\begin{proof}
Take $n$ such that $n\in\naturalsPlus$ and $a\in\funs{\initialSegment{n}}{\reals}$ and
there exists $t\in\funs{\initialSegment{n}}{\reals}$ such that
$t(1) = a(1)$ and $s = t(n)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n$ we have $t(k + 1) = t(k) + a(k + 1)$
by \cref{sum_finite_sequence_pred}.
Take $t$ such that $t\in\funs{\initialSegment{n}}{\reals}$ and
$t(1) = a(1)$ and $s = t(n)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n$ we have $t(k + 1) = t(k) + a(k + 1)$.
$\dom{a} = \initialSegment{n}$ and $\dom{t} = \initialSegment{n}$ by \cref{funs_elim}.
Let $A = \{k\in\naturalsPlus \mid \text{if $k \leq n$ then
for all $j\in\initialSegment{k}$ we have $t(j) \leq t(k)$}\}$.
$A\subseteq\naturalsPlus$ by \cref{subseteq}.
For all $j\in\initialSegment{1}$ we have $t(j) \leq t(1)$.
$1\in A$.
Show that for all $k\in A$ we have $k + 1\in A$.
\begin{subproof}
Fix $k$ such that $k\in A$.
$k\in\naturalsPlus$ and $k + 1\in\naturalsPlus$ by \cref{subseteq,real_naturals_closed_succ}.
Show that if $k + 1 \leq n$ then
for all $j\in\initialSegment{k + 1}$ we have $t(j) \leq t(k + 1)$.
\begin{subproof}
Assume $k + 1 \leq n$.
$k\in\initialSegment{n}$ by \cref{initial_segment_pred_from_succ_bound_aux}.
$k \leq n$ by \cref{initial_segment_naturalsplus}.
For all $j\in\initialSegment{k}$ we have $t(j) \leq t(k)$ by \cref{subseteq}.
$0 \leq a(k + 1)$ by \cref{real_naturals_closed_succ,initial_segment_naturalsplus}.
$a(k + 1)\in\reals$ and $t(k)\in\reals$ by \cref{initial_segment_naturalsplus,funs_elim,funs_type_apply}.
$t(k) \leq t(k + 1)$ by \cref{real_leq_add,real_add_ident,real_add_comm,real_leq_trans}.
Show that for all $j\in\initialSegment{k + 1}$ we have $t(j) \leq t(k + 1)$.
\begin{subproof}
Fix $j$ such that $j\in\initialSegment{k + 1}$.
$j\in\naturalsPlus$ and $j \leq k + 1$ by \cref{initial_segment_naturalsplus}.
$j = k + 1$ or $j \neq k + 1$.
\begin{byCase}
\caseOf{$j = k + 1$.}
$t(j) \leq t(k + 1)$.
\caseOf{$j \neq k + 1$.}
$j \leq k$ by \cref{real_naturals_leq_succ_elim}.
$j\in\initialSegment{k}$ by \cref{initial_segment_naturalsplus}.
$t(j) \leq t(k)$.
$k \leq n$.
$j\in\reals$ and $k\in\reals$ and $n\in\reals$
by \cref{real_naturals_subset_reals,subseteq}.
$j \leq n$ by \cref{real_leq_trans}.
$j\in\initialSegment{n}$ and $k + 1\in\initialSegment{n}$ by \cref{initial_segment_naturalsplus}.
$t(j)\in\reals$ and $t(k + 1)\in\reals$ by \cref{funs_type_apply}.
$t(j) \leq t(k + 1)$ by \cref{real_leq_trans}.
\end{byCase}
\end{subproof}
\end{subproof}
$k + 1\in A$ by \cref{subseteq}.
\end{subproof}
For all $k\in\naturalsPlus$ we have $k\in A$ by \cref{real_naturals_induction}.
Show that for all $i\in\dom{a}$ we have $a(i) \leq s$.
\begin{subproof}
Fix $i$ such that $i\in\dom{a}$.
$i\in\naturalsPlus$ and $i \leq n$ by \cref{initial_segment_naturalsplus}.
$t(i) \leq t(n)$ by \cref{subseteq,initial_segment_naturalsplus}.
Show that $a(i) \leq t(i)$.
\begin{subproof}
$i = 1$ or $i \neq 1$.
\begin{byCase}
\caseOf{$i = 1$.}
$a(i) = t(i)$.
\caseOf{$i \neq 1$.}
Take $m\in\naturalsPlus$ such that $i = m + 1$ by \cref{real_naturals_predecessor}.
$m\in\reals$ and $i\in\reals$ and $n\in\reals$ and $1\in\reals$ and $0\in\reals$
by \cref{real_naturals_subset_reals,subseteq,real_one_in_naturals,real_add_ident}.
$0 < 1$ by \cref{real_zero_lt_one}.
$0 + m < 1 + m$ by \cref{real_lt_add}.
$0 + m = m$ by \cref{real_add_ident}.
$1 + m = m + 1$ by \cref{real_add_comm}.
$m < m + 1$ by \cref{real_lt_subst_left}.
$m < i$.
$m \leq i$.
$m \leq n$ by \cref{real_leq_trans}.
$m\in A$ by \cref{subseteq}.
$1 \leq m$ by \cref{real_one_leq_naturalsplus}.
$1\in\initialSegment{m}$ by \cref{initial_segment_naturalsplus}.
$t(1) \leq t(m)$.
$1\in\dom{a}$ by \cref{real_one_in_naturals,real_one_leq_naturalsplus,initial_segment_naturalsplus}.
$0 \leq a(1)$.
$0 \leq t(1)$.
$m\in\dom{t}$ by \cref{initial_segment_naturalsplus}.
$t(1)\in\reals$ and $t(m)\in\reals$ by \cref{funs_type_apply}.
$0 \leq t(m)$ by \cref{real_leq_trans}.
$0 \leq a(i)$.
$a(i)\in\reals$ and $t(m)\in\reals$ by \cref{funs_type_apply}.
$m + 1 \leq n$.
$t(m + 1) = t(m) + a(m + 1)$ by assumption.
$t(i) = t(m) + a(i)$.
$a(i) \leq t(i)$ by \cref{real_add_closed,real_leq_add,real_add_ident,real_leq_trans}.
\end{byCase}
\end{subproof}
$a(i)\in\reals$ and $t(i)\in\reals$ and $t(n)\in\reals$
by \cref{funs_type_apply,initial_segment_naturalsplus,funs_elim}.
$a(i) \leq s$ by \cref{real_leq_trans}.
\end{subproof}
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Suppose $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Then there exists $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $((x,y),r)\class{latex-symbol-tip latex-symbol-id-in}{\in}\squareMetric{n}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\abs{x(i) - y(i)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r$.
LaTeX source
\begin{lemma}
\label{square_metric_value_exists}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $x\in\realsPower{J}$.
Suppose $y\in\realsPower{J}$.
Then there exists $r\in\reals$ such that $((x,y),r)\in\squareMetric{n}$ and
for all $i\in J$ we have $\abs{x(i) - y(i)} \leq r$.
\end{lemma}
Proof
Let $D = \coordDiffSet{n}{x}{y}$.
$D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ and $D$ is finite and $D\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2, Lemma 210.
Take $r\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ such that $r$ is a maximum of $D$ by Lemma 47.
Claim: $((x,y),r)\class{latex-symbol-tip latex-symbol-id-in}{\in}\squareMetric{n}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\abs{x(i) - y(i)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r$.
Follows by Definition 1, Definition 73, Definition 196, Definition 197, Proposition 115.
LaTeX source
\begin{proof}
Let $D = \coordDiffSet{n}{x}{y}$.
$D\subseteq\reals$ and $D$ is finite and $D\neq\emptyset$ by \cref{coord_diff_set_finite,emptyset}.
Take $r\in D$ such that $r$ is a maximum of $D$ by \cref{finite_real_maximum}.
Show that $((x,y),r)\in\squareMetric{n}$ and
for all $i\in J$ we have $\abs{x(i) - y(i)} \leq r$.
\begin{subproof}
Follows by \cref{real_maximum,times_tuple_intro,subseteq,square_metric,coord_diff_set}.
\end{subproof}
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$.
Suppose $\sumFiniteSequence{a}{s}$.
Suppose $M\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a(i)$ and $a(i) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$.
Then $s \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n \rmul M$.
LaTeX source
\begin{lemma}
\label{sum_finite_sequence_leq_n_times}
Suppose $n\in\naturalsPlus$.
Suppose $a\in\funs{\initialSegment{n}}{\reals}$.
Suppose $\sumFiniteSequence{a}{s}$.
Suppose $M\in\reals$.
Suppose for all $i\in\initialSegment{n}$ we have $0 \leq a(i)$ and $a(i) \leq M$.
Then $s \leq n \rmul M$.
\end{lemma}
Proof
Take $n_0$ such that $n_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_0}}{\reals}$ and there exists $t\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_0}}{\reals}$ such that $t(1) = a(1)$ and $s = t(n_0)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_0$ we have $t(k + 1) = t(k) + a(k + 1)$ by Definition 193.
Take $t$ such that $t\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_0}}{\reals}$ and $t(1) = a(1)$ and $s = t(n_0)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_0$ we have $t(k + 1) = t(k) + a(k + 1)$.
$n = n_0$ by Axiom 41, Definition 1, Definition 84, Lemma 25, Proposition 3, Proposition 359.
$s = t(n)$.
$t\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ and $\dom{t} = \initialSegment{n}$ by Proposition 359.
Let $A = \{k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \text{if $k \leq n$ then $t(k) \leq k \rmul M$}\}$.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{a}$ by Axiom 42, Axiom 43, Definition 84, Proposition 359.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a(1)$ and $a(1) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 21, Axiom 41, Axiom 42, Definition 1.
Claim: For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Fix $k$ such that $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
$k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 45, Definition 1.
Claim: If $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $t(k + 1) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (k + 1) \rmul M$.
Assume $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
$k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ by Lemma 213.
$k \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ by Definition 84.
$t(k) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} k \rmul M$ by Definition 1.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a(k + 1)$ and $a(k + 1) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ by Definition 84, Proposition 359.
$k\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Definition 1.
$a(k + 1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $t(k)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 84, Proposition 359, Proposition 361.
$k \rmul M\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14.
$t(k) + a(k + 1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$t(k) + a(k + 1) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (k \rmul M) + a(k + 1)$ and $a(k + 1) + (k \rmul M) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M + (k \rmul M)$ by Lemma 24.
$a(k + 1) + (k \rmul M) = (k \rmul M) + a(k + 1)$ and $M + (k \rmul M) = (k \rmul M) + M$ by Axiom 16.
$(k \rmul M) + a(k + 1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $(k \rmul M) + M\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$(k \rmul M) + a(k + 1) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (k \rmul M) + M$ by Lemma 23.
$t(k) + a(k + 1) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (k \rmul M) + M$ by Lemma 23.
$k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_0$.
$t(k + 1) = t(k) + a(k + 1)$ by assumption.
$(k \rmul M) + M = (k + 1) \rmul M$ by Axiom 13, Axiom 20, Axiom 21, Axiom 23.
$t(k + 1) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (k + 1) \rmul M$ by Lemma 23.
$k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 445.
$s \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n \rmul M$ by Definition 1.
LaTeX source
\begin{proof}
Take $n_0$ such that $n_0\in\naturalsPlus$ and $a\in\funs{\initialSegment{n_0}}{\reals}$ and
there exists $t\in\funs{\initialSegment{n_0}}{\reals}$ such that
$t(1) = a(1)$ and $s = t(n_0)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n_0$ we have $t(k + 1) = t(k) + a(k + 1)$
by \cref{sum_finite_sequence_pred}.
Take $t$ such that $t\in\funs{\initialSegment{n_0}}{\reals}$ and
$t(1) = a(1)$ and $s = t(n_0)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n_0$ we have $t(k + 1) = t(k) + a(k + 1)$.
$n = n_0$
by \cref{funs_elim,subseteq_antisymmetric,subseteq,initial_segment_naturalsplus,real_naturals_subset_reals,real_leq_antisym}.
$s = t(n)$.
$t\in\funs{\initialSegment{n}}{\reals}$ and $\dom{t} = \initialSegment{n}$ by \cref{funs_elim}.
Let $A = \{k\in\naturalsPlus \mid \text{if $k \leq n$ then $t(k) \leq k \rmul M$}\}$.
$A\subseteq\naturalsPlus$ by \cref{subseteq}.
$1\in\dom{a}$ by \cref{real_one_in_naturals,real_one_leq_naturalsplus,funs_elim,initial_segment_naturalsplus}.
$0 \leq a(1)$ and $a(1) \leq M$.
$1\in A$
by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_mul_ident}.
Show that for all $k\in A$ we have $k + 1\in A$.
\begin{subproof}
Fix $k$ such that $k\in A$.
$k\in\naturalsPlus$ and $k + 1\in\naturalsPlus$ by \cref{subseteq,real_naturals_closed_succ}.
Show that if $k + 1 \leq n$ then $t(k + 1) \leq (k + 1) \rmul M$.
\begin{subproof}
Assume $k + 1 \leq n$.
$k\in\initialSegment{n}$ by \cref{initial_segment_pred_from_succ_bound_aux}.
$k \leq n$ by \cref{initial_segment_naturalsplus}.
$t(k) \leq k \rmul M$ by \cref{subseteq}.
$0 \leq a(k + 1)$ and $a(k + 1) \leq M$ by \cref{initial_segment_naturalsplus,funs_elim}.
$k\in\reals$ by \cref{real_naturals_subset_reals,subseteq}.
$a(k + 1)\in\reals$ and $t(k)\in\reals$ by \cref{initial_segment_naturalsplus,funs_elim,funs_type_apply}.
$k \rmul M\in\reals$ by \cref{real_mul_closed}.
$t(k) + a(k + 1)\in\reals$ by \cref{real_add_closed}.
$t(k) + a(k + 1) \leq (k \rmul M) + a(k + 1)$ and
$a(k + 1) + (k \rmul M) \leq M + (k \rmul M)$ by \cref{real_leq_add}.
$a(k + 1) + (k \rmul M) = (k \rmul M) + a(k + 1)$ and
$M + (k \rmul M) = (k \rmul M) + M$ by \cref{real_add_comm}.
$(k \rmul M) + a(k + 1)\in\reals$ and $(k \rmul M) + M\in\reals$
by \cref{real_add_closed}.
$(k \rmul M) + a(k + 1) \leq (k \rmul M) + M$ by \cref{real_leq_trans}.
$t(k) + a(k + 1) \leq (k \rmul M) + M$ by \cref{real_leq_trans}.
$k + 1 \leq n_0$.
$t(k + 1) = t(k) + a(k + 1)$ by assumption.
$(k \rmul M) + M = (k + 1) \rmul M$
by \cref{real_mul_ident,real_add_closed,real_mul_comm,real_distrib}.
$t(k + 1) \leq (k + 1) \rmul M$ by \cref{real_leq_trans}.
\end{subproof}
$k + 1\in A$.
\end{subproof}
For all $k\in\naturalsPlus$ we have $k\in A$ by \cref{real_naturals_induction}.
$s \leq n \rmul M$ by \cref{subseteq}.
\end{proof}
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a$.
Suppose $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b$.
Then $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b$ iff $\exp{a}{1+1} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \exp{b}{1+1}$.
LaTeX source
\begin{lemma}
\label{real_nonneg_leq_iff_sq_leq}
Suppose $a\in\reals$.
Suppose $b\in\reals$.
Suppose $0 \leq a$.
Suppose $0 \leq b$.
Then $a \leq b$ iff $\exp{a}{1+1} \leq \exp{b}{1+1}$.
\end{lemma}
Proof
$2 = 1 + 1$ by Axiom 24.
Claim: If $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b$ then $\exp{a}{1+1} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \exp{b}{1+1}$.
Assume $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b$.
$a < b$ or $a = b$ by Lemma 81.
$\exp{a}{1+1} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \exp{b}{1+1}$.
$0 < a$ or $a = 0$ by Lemma 81.
$0 < b$ by Lemma 82.
$\exp{a}{1} = a$ by Axiom 49.
$\exp{a}{1+1} = \exp{a}{1} \rmul a$ by Axiom 42, Axiom 50.
$\exp{a}{1+1} = 0$ by Proposition 439.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \exp{b}{1+1}$ by Proposition 461.
$\exp{a}{1+1} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \exp{b}{1+1}$.
$0 < b$ by Axiom 36.
$\exp{a}{1+1} < \exp{b}{1+1}$ by Proposition 460.
$\exp{a}{1+1} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \exp{b}{1+1}$.
LaTeX source
\begin{byCase}
\caseOf{$a = 0$.}
$0 < b$ by \cref{real_lt_subst_left}.
$\exp{a}{1} = a$ by \cref{real_pow_one}.
$\exp{a}{1+1} = \exp{a}{1} \rmul a$
by \cref{real_one_in_naturals,real_pow_succ}.
$\exp{a}{1+1} = 0$ by \cref{real_mul_zero}.
$0 \leq \exp{b}{1+1}$ by \cref{real_sq_nonnegative}.
$\exp{a}{1+1} \leq \exp{b}{1+1}$.
\caseOf{$0 < a$.}
$0 < b$ by \cref{real_lt_trans}.
$\exp{a}{1+1} < \exp{b}{1+1}$ by \cref{real_pos_lt_iff_sq_lt}.
$\exp{a}{1+1} \leq \exp{b}{1+1}$.
\end{byCase}
LaTeX source
\begin{byCase}
\caseOf{$a = b$.}
$\exp{a}{1+1} \leq \exp{b}{1+1}$.
\caseOf{$a < b$.}
$0 < a$ or $a = 0$ by \cref{real_leq_split}.
\begin{byCase}
\caseOf{$a = 0$.}
$0 < b$ by \cref{real_lt_subst_left}.
$\exp{a}{1} = a$ by \cref{real_pow_one}.
$\exp{a}{1+1} = \exp{a}{1} \rmul a$
by \cref{real_one_in_naturals,real_pow_succ}.
$\exp{a}{1+1} = 0$ by \cref{real_mul_zero}.
$0 \leq \exp{b}{1+1}$ by \cref{real_sq_nonnegative}.
$\exp{a}{1+1} \leq \exp{b}{1+1}$.
\caseOf{$0 < a$.}
$0 < b$ by \cref{real_lt_trans}.
$\exp{a}{1+1} < \exp{b}{1+1}$ by \cref{real_pos_lt_iff_sq_lt}.
$\exp{a}{1+1} \leq \exp{b}{1+1}$.
\end{byCase}
\end{byCase}
Claim: If $\exp{a}{1+1} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \exp{b}{1+1}$ then $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b$.
Assume $\exp{a}{1+1} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \exp{b}{1+1}$.
Suppose not.
$b < a$.
$0 < b$ or $b = 0$ by Lemma 81.
$0 < a$ by Lemma 82.
$a$ is positive.
$\exp{a}{1+1} = a \rmul a$ by Axiom 42, Axiom 49, Axiom 50.
$\exp{a}{1+1}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14.
$\exp{a}{1+1} > 0$ by Proposition 454.
$\exp{b}{1+1} = 0$ by Axiom 42, Axiom 49, Axiom 50, Proposition 439.
$\exp{b}{1+1}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17.
$\exp{b}{1+1} < \exp{a}{1+1}$ by Lemma 82.
$\exp{a}{1+1} < \exp{b}{1+1}$ or $\exp{a}{1+1} = \exp{b}{1+1}$ by Lemma 81.
LaTeX source
\begin{byCase}
\caseOf{$\exp{a}{1+1} < \exp{b}{1+1}$.}
$\exp{a}{1+1} < \exp{a}{1+1}$ by \cref{real_lt_trans}.
Contradiction by \cref{real_lt_irreflexive}.
\caseOf{$\exp{a}{1+1} = \exp{b}{1+1}$.}
$\exp{b}{1+1} < \exp{b}{1+1}$ by \cref{real_lt_subst_right}.
Contradiction by \cref{real_lt_irreflexive}.
\end{byCase}
$0 < a$ by Axiom 36.
$\exp{b}{1+1} < \exp{a}{1+1}$ by Proposition 460.
$\exp{a}{1+1} = a \rmul a$ by Axiom 42, Axiom 49, Axiom 50.
$\exp{a}{1+1}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14.
$\exp{b}{1+1} = b \rmul b$ by Axiom 42, Axiom 49, Axiom 50.
$\exp{b}{1+1}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14.
$\exp{a}{1+1} < \exp{b}{1+1}$ or $\exp{a}{1+1} = \exp{b}{1+1}$ by Lemma 81.
LaTeX source
\begin{byCase}
\caseOf{$\exp{a}{1+1} < \exp{b}{1+1}$.}
$\exp{a}{1+1} < \exp{a}{1+1}$ by \cref{real_lt_trans}.
Contradiction by \cref{real_lt_irreflexive}.
\caseOf{$\exp{a}{1+1} = \exp{b}{1+1}$.}
$\exp{b}{1+1} < \exp{b}{1+1}$ by \cref{real_lt_subst_right}.
Contradiction by \cref{real_lt_irreflexive}.
\end{byCase}
LaTeX source
\begin{byCase}
\caseOf{$b = 0$.}
$0 < a$ by \cref{real_lt_subst_left}.
$a$ is positive.
$\exp{a}{1+1} = a \rmul a$ by \cref{real_one_in_naturals,real_pow_succ,real_pow_one}.
$\exp{a}{1+1}\in\reals$ by \cref{real_mul_closed}.
$\exp{a}{1+1} > 0$ by \cref{real_mul_pos_pos_gt}.
$\exp{b}{1+1} = 0$ by \cref{real_pow_one,real_one_in_naturals,real_pow_succ,real_mul_zero}.
$\exp{b}{1+1}\in\reals$ by \cref{real_add_ident}.
$\exp{b}{1+1} < \exp{a}{1+1}$ by \cref{real_lt_subst_left}.
$\exp{a}{1+1} < \exp{b}{1+1}$ or $\exp{a}{1+1} = \exp{b}{1+1}$ by \cref{real_leq_split}.
\begin{byCase}
\caseOf{$\exp{a}{1+1} < \exp{b}{1+1}$.}
$\exp{a}{1+1} < \exp{a}{1+1}$ by \cref{real_lt_trans}.
Contradiction by \cref{real_lt_irreflexive}.
\caseOf{$\exp{a}{1+1} = \exp{b}{1+1}$.}
$\exp{b}{1+1} < \exp{b}{1+1}$ by \cref{real_lt_subst_right}.
Contradiction by \cref{real_lt_irreflexive}.
\end{byCase}
\caseOf{$0 < b$.}
$0 < a$ by \cref{real_lt_trans}.
$\exp{b}{1+1} < \exp{a}{1+1}$ by \cref{real_pos_lt_iff_sq_lt}.
$\exp{a}{1+1} = a \rmul a$ by \cref{real_one_in_naturals,real_pow_succ,real_pow_one}.
$\exp{a}{1+1}\in\reals$ by \cref{real_mul_closed}.
$\exp{b}{1+1} = b \rmul b$ by \cref{real_one_in_naturals,real_pow_succ,real_pow_one}.
$\exp{b}{1+1}\in\reals$ by \cref{real_mul_closed}.
$\exp{a}{1+1} < \exp{b}{1+1}$ or $\exp{a}{1+1} = \exp{b}{1+1}$ by \cref{real_leq_split}.
\begin{byCase}
\caseOf{$\exp{a}{1+1} < \exp{b}{1+1}$.}
$\exp{a}{1+1} < \exp{a}{1+1}$ by \cref{real_lt_trans}.
Contradiction by \cref{real_lt_irreflexive}.
\caseOf{$\exp{a}{1+1} = \exp{b}{1+1}$.}
$\exp{b}{1+1} < \exp{b}{1+1}$ by \cref{real_lt_subst_right}.
Contradiction by \cref{real_lt_irreflexive}.
\end{byCase}
\end{byCase}
LaTeX source
\begin{proof}
$2 = 1 + 1$ by \cref{def_of_2}.
Show that if $a \leq b$ then $\exp{a}{1+1} \leq \exp{b}{1+1}$.
\begin{subproof}
Assume $a \leq b$.
$a < b$ or $a = b$ by \cref{real_leq_split}.
\begin{byCase}
\caseOf{$a = b$.}
$\exp{a}{1+1} \leq \exp{b}{1+1}$.
\caseOf{$a < b$.}
$0 < a$ or $a = 0$ by \cref{real_leq_split}.
\begin{byCase}
\caseOf{$a = 0$.}
$0 < b$ by \cref{real_lt_subst_left}.
$\exp{a}{1} = a$ by \cref{real_pow_one}.
$\exp{a}{1+1} = \exp{a}{1} \rmul a$
by \cref{real_one_in_naturals,real_pow_succ}.
$\exp{a}{1+1} = 0$ by \cref{real_mul_zero}.
$0 \leq \exp{b}{1+1}$ by \cref{real_sq_nonnegative}.
$\exp{a}{1+1} \leq \exp{b}{1+1}$.
\caseOf{$0 < a$.}
$0 < b$ by \cref{real_lt_trans}.
$\exp{a}{1+1} < \exp{b}{1+1}$ by \cref{real_pos_lt_iff_sq_lt}.
$\exp{a}{1+1} \leq \exp{b}{1+1}$.
\end{byCase}
\end{byCase}
\end{subproof}
Show that if $\exp{a}{1+1} \leq \exp{b}{1+1}$ then $a \leq b$.
\begin{subproof}
Assume $\exp{a}{1+1} \leq \exp{b}{1+1}$.
Suppose not.
$b < a$.
$0 < b$ or $b = 0$ by \cref{real_leq_split}.
\begin{byCase}
\caseOf{$b = 0$.}
$0 < a$ by \cref{real_lt_subst_left}.
$a$ is positive.
$\exp{a}{1+1} = a \rmul a$ by \cref{real_one_in_naturals,real_pow_succ,real_pow_one}.
$\exp{a}{1+1}\in\reals$ by \cref{real_mul_closed}.
$\exp{a}{1+1} > 0$ by \cref{real_mul_pos_pos_gt}.
$\exp{b}{1+1} = 0$ by \cref{real_pow_one,real_one_in_naturals,real_pow_succ,real_mul_zero}.
$\exp{b}{1+1}\in\reals$ by \cref{real_add_ident}.
$\exp{b}{1+1} < \exp{a}{1+1}$ by \cref{real_lt_subst_left}.
$\exp{a}{1+1} < \exp{b}{1+1}$ or $\exp{a}{1+1} = \exp{b}{1+1}$ by \cref{real_leq_split}.
\begin{byCase}
\caseOf{$\exp{a}{1+1} < \exp{b}{1+1}$.}
$\exp{a}{1+1} < \exp{a}{1+1}$ by \cref{real_lt_trans}.
Contradiction by \cref{real_lt_irreflexive}.
\caseOf{$\exp{a}{1+1} = \exp{b}{1+1}$.}
$\exp{b}{1+1} < \exp{b}{1+1}$ by \cref{real_lt_subst_right}.
Contradiction by \cref{real_lt_irreflexive}.
\end{byCase}
\caseOf{$0 < b$.}
$0 < a$ by \cref{real_lt_trans}.
$\exp{b}{1+1} < \exp{a}{1+1}$ by \cref{real_pos_lt_iff_sq_lt}.
$\exp{a}{1+1} = a \rmul a$ by \cref{real_one_in_naturals,real_pow_succ,real_pow_one}.
$\exp{a}{1+1}\in\reals$ by \cref{real_mul_closed}.
$\exp{b}{1+1} = b \rmul b$ by \cref{real_one_in_naturals,real_pow_succ,real_pow_one}.
$\exp{b}{1+1}\in\reals$ by \cref{real_mul_closed}.
$\exp{a}{1+1} < \exp{b}{1+1}$ or $\exp{a}{1+1} = \exp{b}{1+1}$ by \cref{real_leq_split}.
\begin{byCase}
\caseOf{$\exp{a}{1+1} < \exp{b}{1+1}$.}
$\exp{a}{1+1} < \exp{a}{1+1}$ by \cref{real_lt_trans}.
Contradiction by \cref{real_lt_irreflexive}.
\caseOf{$\exp{a}{1+1} = \exp{b}{1+1}$.}
$\exp{b}{1+1} < \exp{b}{1+1}$ by \cref{real_lt_subst_right}.
Contradiction by \cref{real_lt_irreflexive}.
\end{byCase}
\end{byCase}
\end{subproof}
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Suppose $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Let $a = \coordSquareSequence{n}{(x,y)}$.
Suppose $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
Then $(i,\exp{x(i) - y(i)}{1+1})\class{latex-symbol-tip latex-symbol-id-in}{\in} a$.
LaTeX source
\begin{lemma}
\label{coord_square_sequence_elem}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $x\in\realsPower{J}$.
Suppose $y\in\realsPower{J}$.
Let $a = \coordSquareSequence{n}{(x,y)}$.
Suppose $i\in J$.
Then $(i,\exp{x(i) - y(i)}{1+1})\in a$.
\end{lemma}
Proof
Follows by Axiom 10, Axiom 11, Definition 194.
LaTeX source
\begin{proof}
Follows by \cref{coord_square_sequence,fst_eq,snd_eq}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Suppose $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Suppose $((x,y),r)\class{latex-symbol-tip latex-symbol-id-in}{\in}\euclideanMetric{n}$.
Suppose $((x,y),m)\class{latex-symbol-tip latex-symbol-id-in}{\in}\squareMetric{n}$.
Then $m \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r$ and $r \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \sqrt{n} \rmul m$.
LaTeX source
\begin{lemma}
\label{euclidean_square_metric_bounds}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $x\in\realsPower{J}$.
Suppose $y\in\realsPower{J}$.
Suppose $((x,y),r)\in\euclideanMetric{n}$.
Suppose $((x,y),m)\in\squareMetric{n}$.
Then $m \leq r$ and $r \leq \sqrt{n} \rmul m$.
\end{lemma}
Proof
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 42.
$2 = 1 + 1$ by Axiom 24.
Let $D = \coordDiffSet{n}{x}{y}$.
Take $s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{\coordSquareSequence{n}{(x,y)}}{s}$ and $r = \sqrt{s}$ by Axiom 6, Definition 195.
Let $a = \coordSquareSequence{n}{(x,y)}$.
Take $n_1$ such that $n_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_1}}{\reals}$ and there exists $t\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_1}}{\reals}$ such that $t(1) = a(1)$ and $s = t(n_1)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_1$ we have $t(k + 1) = t(k) + a(k + 1)$ by Definition 193.
$a$ is a function and $\dom{a} = \initialSegment{n_1}$ by Proposition 359.
Take $x_0,y_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$ such that $(x,y) = (x_0,y_0)$ and $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\coordDiffSet{n}{x_0}{y_0}$ and for all $t\class{latex-symbol-tip latex-symbol-id-in}{\in}\coordDiffSet{n}{x_0}{y_0}$ we have $t \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ by Axiom 6, Definition 197.
$x = x_0$ and $y = y_0$ by Axiom 6.
$m\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ and for all $t\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ we have $t \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$.
Take $i_0\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $m = \abs{x(i_0) - y(i_0)}$ by Definition 196.
Claim: For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a(i)$.
Fix $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
$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 Definition 166, Definition 191, Proposition 361.
$x(i) - y(i)\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-leq}{\leq} \exp{x(i) - y(i)}{2}$ by Proposition 461.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \exp{x(i) - y(i)}{1+1}$.
$(i,\exp{x(i) - y(i)}{1+1})\class{latex-symbol-tip latex-symbol-id-in}{\in} a$ by Lemma 219.
$a(i) = \exp{x(i) - y(i)}{1+1}$ by Proposition 346.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a(i)$.
$\dom{a} = J$ by Axiom 6, Definition 1, Definition 194, Lemma 219, Proposition 3, Proposition 199, Proposition 200.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Proposition 358, Proposition 359.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s$ by Lemma 214.
$r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $r \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$ and $r \rmul r = s$ by Axiom 53.
$\exp{r}{1+1} = s$ by Axiom 49, Axiom 50.
$a(i_0) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s$ by Lemma 215, Lemma 219, Proposition 200.
$x(i_0) - y(i_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64, Definition 166, Definition 191, Proposition 361.
$\exp{m}{1+1} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s$ by Lemma 219, Proposition 346, Proposition 485.
$m \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r$ by Definition 1, Lemma 210, Lemma 218, Proposition 480.
Claim: For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $a(i) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \exp{m}{1+1}$.
Claim: For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a(i)$ and $a(i) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \exp{m}{1+1}$.
Trivial.
$m\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\exp{m}{1+1} = m \rmul m$ and $\exp{m}{1+1}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14, Axiom 49, Axiom 50, Definition 1, Lemma 210.
$s \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n \rmul \exp{m}{1+1}$ by Lemma 217.
$n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Definition 1.
$0 < 1$ and $0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17, Proposition 462.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Definition 1.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$.
$1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ by Axiom 43.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ by Lemma 23.
$0 < n$.
$\sqrt{n}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\sqrt{n} \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$ and $\sqrt{n} \rmul \sqrt{n} = n$ by Axiom 53.
$\sqrt{n} \rmul m\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14.
$\exp{\sqrt{n} \rmul m}{1+1} = (\sqrt{n} \rmul m) \rmul (\sqrt{n} \rmul m)$ by Axiom 49, Axiom 50.
$(\sqrt{n} \rmul m) \rmul (\sqrt{n} \rmul m) = (\sqrt{n} \rmul \sqrt{n}) \rmul (m \rmul m)$ by Axiom 19, Axiom 20.
$\exp{\sqrt{n} \rmul m}{1+1} = n \rmul (m \rmul m)$.
$\exp{m}{1+1} = m \rmul m$ by Axiom 49, Axiom 50.
$\exp{\sqrt{n} \rmul m}{1+1} = n \rmul \exp{m}{1+1}$.
$\exp{r}{1+1} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \exp{\sqrt{n} \rmul m}{1+1}$ by Lemma 23.
Claim: $\sqrt{n} \rmul m \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$.
$x(i_0) - y(i_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64, Definition 166, Definition 191, Proposition 361.
$m \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$ by Proposition 480.
$0 < m$ or $m = 0$ by Lemma 81.
$\sqrt{n} \rmul m \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$ by Axiom 20, Proposition 439.
$m$ is positive.
Suppose not.
$\sqrt{n} = 0$.
$n = 0$ by Axiom 53, Proposition 439.
$0 < 0$ by Lemma 83.
Contradiction by Axiom 39.
$\sqrt{n}$ is positive.
$\sqrt{n} \rmul m \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$ by Proposition 454.
LaTeX source
\begin{byCase}
\caseOf{$m = 0$.}
$\sqrt{n} \rmul m \geq 0$ by \cref{real_mul_comm,real_mul_zero}.
\caseOf{$0 < m$.}
$m$ is positive.
Suppose not.
$\sqrt{n} = 0$.
$n = 0$ by \cref{positive_square_root,real_mul_zero}.
$0 < 0$ by \cref{real_lt_subst_right}.
Contradiction by \cref{real_lt_irreflexive}.
$\sqrt{n}$ is positive.
$\sqrt{n} \rmul m \geq 0$ by \cref{real_mul_pos_pos_gt}.
\end{byCase}
Claim: $m \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r$.
Trivial.
Claim: $r \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \sqrt{n} \rmul m$.
Follows by Lemma 218.
LaTeX source
\begin{proof}
$1\in\naturalsPlus$ by \cref{real_one_in_naturals}.
$2 = 1 + 1$ by \cref{def_of_2}.
Let $D = \coordDiffSet{n}{x}{y}$.
Take $s\in\reals$ such that
$\sumFiniteSequence{\coordSquareSequence{n}{(x,y)}}{s}$ and $r = \sqrt{s}$
by \cref{euclidean_metric,pair_eq_iff}.
Let $a = \coordSquareSequence{n}{(x,y)}$.
Take $n_1$ such that $n_1\in\naturalsPlus$ and $a\in\funs{\initialSegment{n_1}}{\reals}$ and
there exists $t\in\funs{\initialSegment{n_1}}{\reals}$ such that
$t(1) = a(1)$ and $s = t(n_1)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n_1$ we have $t(k + 1) = t(k) + a(k + 1)$
by \cref{sum_finite_sequence_pred}.
$a$ is a function and $\dom{a} = \initialSegment{n_1}$ by \cref{funs_elim}.
Take $x_0,y_0\in\realsPower{J}$ such that
$(x,y) = (x_0,y_0)$ and
$m\in\coordDiffSet{n}{x_0}{y_0}$ and
for all $t\in\coordDiffSet{n}{x_0}{y_0}$ we have $t \leq m$
by \cref{square_metric,pair_eq_iff}.
$x = x_0$ and $y = y_0$ by \cref{pair_eq_iff}.
$m\in D$ and for all $t\in D$ we have $t \leq m$.
Take $i_0\in J$ such that $m = \abs{x(i_0) - y(i_0)}$ by \cref{coord_diff_set}.
Show that for all $i\in J$ we have $0 \leq a(i)$.
\begin{subproof}
Fix $i\in J$.
$x(i)\in\reals$ and $y(i)\in\reals$
by \cref{reals_power,tuple_power,funs_type_apply}.
$x(i) - y(i)\in\reals$
by \cref{real_add_inverse,real_add_closed,real_sub}.
$0 \leq \exp{x(i) - y(i)}{2}$ by \cref{real_sq_nonnegative}.
$0 \leq \exp{x(i) - y(i)}{1+1}$.
$(i,\exp{x(i) - y(i)}{1+1})\in a$
by \cref{coord_square_sequence_elem}.
$a(i) = \exp{x(i) - y(i)}{1+1}$ by \cref{function_apply_intro}.
$0 \leq a(i)$.
\end{subproof}
$\dom{a} = J$
by \cref{coord_square_sequence_elem,dom_intro,subseteq,dom_iff,coord_square_sequence,pair_eq_iff,subseteq_antisymmetric}.
$a\in\funs{J}{\reals}$ by \cref{funs_elim,funs_intro}.
$0 \leq s$ by \cref{sum_finite_sequence_nonneg}.
$r\in\reals$ and $r \geq 0$ and $r \rmul r = s$ by \cref{positive_square_root}.
$\exp{r}{1+1} = s$ by \cref{real_pow_succ,real_pow_one}.
$a(i_0) \leq s$ by \cref{coord_square_sequence_elem,dom_intro,sum_finite_sequence_term_leq}.
$x(i_0) - y(i_0)\in\reals$
by \cref{reals_power,tuple_power,funs_type_apply,real_add_inverse,real_add_closed,real_sub}.
$\exp{m}{1+1} \leq s$
by \cref{real_abs_square,coord_square_sequence_elem,function_apply_intro}.
$m \leq r$ by \cref{coord_diff_set_finite,subseteq,real_abs_nonnegative,real_nonneg_leq_iff_sq_leq}.
Show that for all $i\in\initialSegment{n}$ we have $a(i) \leq \exp{m}{1+1}$.
\begin{subproof}
Follows by \cref{coord_diff_set,coord_diff_set_finite,subseteq,reals_power,tuple_power,funs_type_apply,real_add_inverse,real_add_closed,real_sub,real_abs_in_reals,real_abs_nonnegative,real_add_ident,real_leq_trans,real_nonneg_leq_iff_sq_leq,real_abs_square,coord_square_sequence_elem,function_apply_intro}.
\end{subproof}
Show that for all $i\in\initialSegment{n}$ we have $0 \leq a(i)$ and $a(i) \leq \exp{m}{1+1}$.
\begin{subproof}
Trivial.
\end{subproof}
$m\in\reals$ and $\exp{m}{1+1} = m \rmul m$ and $\exp{m}{1+1}\in\reals$
by \cref{coord_diff_set_finite,subseteq,real_pow_succ,real_pow_one,real_mul_closed}.
$s \leq n \rmul \exp{m}{1+1}$ by \cref{sum_finite_sequence_leq_n_times}.
$n\in\reals$ by \cref{real_naturals_subset_reals,subseteq}.
$0 < 1$ and $0\in\reals$ by \cref{real_zero_lt_one,real_add_ident}.
$1\in\reals$ by \cref{real_naturals_subset_reals,subseteq}.
$0 \leq 1$.
$1 \leq n$ by \cref{real_one_leq_naturalsplus}.
$0 \leq n$ by \cref{real_leq_trans}.
$0 < n$.
$\sqrt{n}\in\reals$ and $\sqrt{n} \geq 0$ and $\sqrt{n} \rmul \sqrt{n} = n$ by \cref{positive_square_root}.
$\sqrt{n} \rmul m\in\reals$ by \cref{real_mul_closed}.
$\exp{\sqrt{n} \rmul m}{1+1} = (\sqrt{n} \rmul m) \rmul (\sqrt{n} \rmul m)$ by \cref{real_pow_succ,real_pow_one}.
$(\sqrt{n} \rmul m) \rmul (\sqrt{n} \rmul m) = (\sqrt{n} \rmul \sqrt{n}) \rmul (m \rmul m)$ by \cref{real_mul_assoc,real_mul_comm}.
$\exp{\sqrt{n} \rmul m}{1+1} = n \rmul (m \rmul m)$.
$\exp{m}{1+1} = m \rmul m$ by \cref{real_pow_succ,real_pow_one}.
$\exp{\sqrt{n} \rmul m}{1+1} = n \rmul \exp{m}{1+1}$.
$\exp{r}{1+1} \leq \exp{\sqrt{n} \rmul m}{1+1}$ by \cref{real_leq_trans}.
Show that $\sqrt{n} \rmul m \geq 0$.
\begin{subproof}
$x(i_0) - y(i_0)\in\reals$
by \cref{reals_power,tuple_power,funs_type_apply,real_add_inverse,real_add_closed,real_sub}.
$m \geq 0$ by \cref{real_abs_nonnegative}.
$0 < m$ or $m = 0$ by \cref{real_leq_split}.
\begin{byCase}
\caseOf{$m = 0$.}
$\sqrt{n} \rmul m \geq 0$ by \cref{real_mul_comm,real_mul_zero}.
\caseOf{$0 < m$.}
$m$ is positive.
Suppose not.
$\sqrt{n} = 0$.
$n = 0$ by \cref{positive_square_root,real_mul_zero}.
$0 < 0$ by \cref{real_lt_subst_right}.
Contradiction by \cref{real_lt_irreflexive}.
$\sqrt{n}$ is positive.
$\sqrt{n} \rmul m \geq 0$ by \cref{real_mul_pos_pos_gt}.
\end{byCase}
\end{subproof}
Show that $m \leq r$.
\begin{subproof}
Trivial.
\end{subproof}
Show that $r \leq \sqrt{n} \rmul m$.
\begin{subproof}
Follows by \cref{real_nonneg_leq_iff_sq_leq}.
\end{subproof}
\end{proof}
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
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 $\abs{a - b} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Then $a - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} < b$ and $b < a + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
LaTeX source
\begin{lemma}
\label{real_interval_from_abs_lt}
Suppose $a\in\reals$.
Suppose $b\in\reals$.
Suppose $\epsilon\in\reals$.
Suppose $0 < \epsilon$.
Suppose $\abs{a - b} < \epsilon$.
Then $a - \epsilon < b$ and $b < a + \epsilon$.
\end{lemma}
Proof
$\abs{a - b} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ is nonnegative.
$b - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a$ by Proposition 491.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Proposition 492.
$\neg{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $b - \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.
$b \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 15, Axiom 16, Axiom 17, Axiom 18, Definition 64, Lemma 23, Lemma 24.
$a - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b$ by Axiom 13, Axiom 15, Axiom 16, Axiom 17, Axiom 18, Definition 64, Lemma 24.
Suppose not.
$b = a + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
$\abs{a - b} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 15, Axiom 16, Axiom 17, Axiom 18, Axiom 47, Definition 64, Proposition 482.
$\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 82.
Contradiction by Axiom 39.
Suppose not.
$a - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} = b$.
$a - b = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 15, Axiom 17, Axiom 18, Definition 64, Lemma 12, Proposition 441.
$\abs{a - b} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 47.
$\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 82.
Contradiction by Axiom 39.
Claim: $a - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} < b$.
Trivial.
Claim: $b < a + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Trivial.
LaTeX source
\begin{proof}
$\abs{a - b} \leq \epsilon$ and $\epsilon$ is nonnegative.
$b - \epsilon \leq a$ by \cref{real_abs_sub_leq_imp_left_bound}.
$a \leq b + \epsilon$ by \cref{real_abs_sub_leq_imp_right_bound}.
$\neg{\epsilon}\in\reals$ and $b - \epsilon\in\reals$ by \cref{real_add_inverse,real_sub,real_add_closed}.
$b \leq a + \epsilon$
by \cref{real_leq_add,real_sub,real_add_assoc,real_add_inverse,real_add_comm,real_add_ident,real_leq_trans}.
$a - \epsilon \leq b$
by \cref{real_add_closed,real_leq_add,real_sub,real_add_assoc,real_add_inverse,real_add_ident,real_add_comm}.
Suppose not.
$b = a + \epsilon$.
$\abs{a - b} = \epsilon$
by \cref{real_sub,real_add_inverse,real_add_assoc,real_add_comm,real_add_ident,real_abs_nonneg,real_abs_sub_swap}.
$\epsilon < \epsilon$ by \cref{real_lt_subst_left}.
Contradiction by \cref{real_lt_irreflexive}.
Suppose not.
$a - \epsilon = b$.
$a - b = \epsilon$
by \cref{real_sub,real_neg_addition,real_neg_neg,real_add_inverse,real_add_assoc,real_add_ident}.
$\abs{a - b} = \epsilon$ by \cref{real_abs_nonneg}.
$\epsilon < \epsilon$ by \cref{real_lt_subst_left}.
Contradiction by \cref{real_lt_irreflexive}.
Show that $a - \epsilon < b$.
\begin{subproof}
Trivial.
\end{subproof}
Show that $b < a + \epsilon$.
\begin{subproof}
Trivial.
\end{subproof}
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Suppose $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Then $\coordSquareSequence{n}{(x,y)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
LaTeX source
\begin{lemma}
\label{coord_square_sequence_function}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $x\in\realsPower{J}$.
Suppose $y\in\realsPower{J}$.
Then $\coordSquareSequence{n}{(x,y)}\in\funs{J}{\reals}$.
\end{lemma}
Proof
Let $a = \coordSquareSequence{n}{(x,y)}$.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Axiom 6, Axiom 10, Axiom 11, Axiom 13, Axiom 14, Axiom 18, Axiom 42, Axiom 49, Axiom 50, Definition 1, Definition 12, Definition 51, Definition 64, Definition 166, Definition 191, Definition 194, Lemma 219, Proposition 3, Proposition 199, Proposition 200, Proposition 346, Proposition 358, Proposition 361.
LaTeX source
\begin{proof}
Let $a = \coordSquareSequence{n}{(x,y)}$.
$a\in\funs{J}{\reals}$
by \cref{coord_square_sequence,pair_eq_iff,fst_eq,snd_eq,relation,rightunique,coord_square_sequence_elem,dom_intro,subseteq,dom_iff,subseteq_antisymmetric,reals_power,tuple_power,funs_type_apply,real_add_inverse,real_add_closed,real_sub,real_one_in_naturals,real_pow_succ,real_pow_one,real_mul_closed,function_apply_intro,funs_intro}.
\end{proof}
Suppose $a < b$.
Then $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b$.
LaTeX source
\begin{lemma}
\label{real_lt_imp_leq_for_sum_succ}
Suppose $a < b$.
Then $a \leq b$.
\end{lemma}
Proof
Trivial.
LaTeX source
\begin{proof}
Trivial.
\end{proof}
Let $A = \{n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \text{for all $a\in\funs{\initialSegment{n}}{\reals}$ there exists $s\in\reals$ such that $\sumFiniteSequence{a}{s}$}\}$.
Then for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $n + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
LaTeX source
\begin{lemma}
\label{sum_finite_sequence_exists_succ}
Let $A = \{n\in\naturalsPlus \mid \text{for all $a\in\funs{\initialSegment{n}}{\reals}$ there exists $s\in\reals$ such that $\sumFiniteSequence{a}{s}$}\}$.
Then for all $n\in A$ we have $n + 1\in A$.
\end{lemma}
Proof
Fix $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ there exists $s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{a}{s}$.
$n + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 45, Definition 1.
Claim: For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n + 1}}{\reals}$ there exists $s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{a}{s}$.
Fix $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n + 1}}{\reals}$.
Let $a_0 = \{(i,a(i)) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\}$.
$a_0$ is a function by Axiom 6, Definition 12, Definition 51.
$\dom{a_0} = \initialSegment{n}$ by Axiom 6, Definition 1, Proposition 3, Proposition 199, Proposition 200.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{a_0}$ we have $a_0(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 16, Axiom 17, Axiom 36, Axiom 37, Axiom 41, Axiom 42, Definition 1, Definition 84, Lemma 82, Proposition 346, Proposition 359, Proposition 361, Proposition 462.
$a_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ by Proposition 358.
Take $s_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{a_0}{s_0}$.
Take $n_0$ such that $n_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $a_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_0}}{\reals}$ and there exists $t_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_0}}{\reals}$ such that $t_0(1) = a_0(1)$ and $s_0 = t_0(n_0)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_0$ we have $t_0(k + 1) = t_0(k) + a_0(k + 1)$ by Definition 193.
Take $t_0$ such that $t_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_0}}{\reals}$ and $t_0(1) = a_0(1)$ and $s_0 = t_0(n_0)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_0$ we have $t_0(k + 1) = t_0(k) + a_0(k + 1)$.
$\initialSegment{n_0} = \initialSegment{n}$ by Definition 1, Proposition 3, Proposition 359.
$\dom{t_0} = \initialSegment{n}$ by Proposition 359.
$t_0$ is a function by Proposition 359.
$t_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ by Proposition 358.
$t_0(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 84, Proposition 361.
$a(n + 1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 84, Proposition 361.
Let $v = t_0(n) + a(n + 1)$.
$v\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
Let $g = \{(n + 1,v)\}$.
$g$ is a function by Axiom 6, Definition 12, Definition 51, Proposition 21.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{t_0}\inter\dom{g}$ we have $t_0(x) = g(x)$.
Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{t_0}\inter\dom{g}$.
Suppose not.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$.
Take $y$ such that $(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ by Proposition 199.
$x = n + 1$ by Axiom 6, Proposition 21.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{t_0}$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ by Proposition 359.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Definition 84.
$x < n$ or $x = n$ by Definition 84.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17, Axiom 41, Axiom 42, Definition 1.
$n < n + 1$ by Axiom 16, Axiom 17, Axiom 37, Lemma 82, Proposition 462.
$n < x$ by Lemma 83.
$n < n$ by Axiom 36, Lemma 83.
Contradiction by Axiom 39.
Let $t = t_0\union g$.
$t$ is a function and $\dom{t} = \dom{t_0}\union\dom{g}$ by Lemma 170, Proposition 205.
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}\{n + 1\}$ by Axiom 6, Proposition 20, Proposition 21, Proposition 199.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\{n + 1\}$ we have $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ by Axiom 6, Proposition 20, Proposition 21, Proposition 200.
$\dom{g} = \{n + 1\}$ and $\dom{t} = \initialSegment{n}\union\{n + 1\}$ by Definition 1, Proposition 3, Proposition 359.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{t_0}$ we have $t(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 5, Proposition 346, Proposition 348, Proposition 361.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ we have $t(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 5, Axiom 6, Proposition 21, Proposition 199, Proposition 346.
Claim: For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{t}$ we have $t(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Follows by Axiom 5, Proposition 205.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{t_0}$ by Axiom 42, Axiom 43, Definition 84, Proposition 359.
$t(1) = t_0(1)$ by Axiom 5, Proposition 346, Proposition 348.
$(1,a(1))\class{latex-symbol-tip latex-symbol-id-in}{\in} a_0$.
$a_0(1) = a(1)$ by Proposition 346, Proposition 359.
$t(1) = a(1)$.
Claim: For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n + 1$ we have $t(k + 1) = t(k) + a(k + 1)$.
Fix $k$ such that $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n + 1$.
$k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 45.
$k + 1 = n + 1$ or $k + 1 \class{latex-symbol-tip latex-symbol-id-neq}{\neq} n + 1$.
$k\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
$k = n$ by Proposition 438.
$k\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{t_0}$ by Definition 84, Proposition 359, Proposition 438.
$(k,t_0(k))\class{latex-symbol-tip latex-symbol-id-in}{\in} t_0$ by Proposition 348.
$(k,t_0(k))\class{latex-symbol-tip latex-symbol-id-in}{\in} t$ by Axiom 5.
$t(k) = t_0(k)$ by Proposition 346.
$t_0(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 84, Proposition 359, Proposition 361.
$t(k) = t_0(n)$.
$(k + 1,v)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ by Axiom 6, Proposition 20.
$(k + 1,v)\class{latex-symbol-tip latex-symbol-id-in}{\in} t$ by Axiom 5.
$t(k + 1) = v$ by Proposition 346.
$t(k + 1) = t(k) + a(k + 1)$.
$k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ by Lemma 29.
$k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ by Definition 84.
$k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ by Lemma 213.
$k\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{t_0}$ and $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{t_0}$ by Definition 1, Proposition 359.
$t(k) = t_0(k)$ and $t(k + 1) = t_0(k + 1)$ by Axiom 5, Proposition 346, Proposition 348.
$k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n_0}$.
$k + 1 < n_0$ or $k + 1 = n_0$ by Definition 84.
$k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_0$ by Lemma 223.
$t_0(k + 1) = t_0(k) + a_0(k + 1)$ by Definition 193.
$t(k + 1) = t(k) + a(k + 1)$ by Proposition 346, Proposition 359.
LaTeX source
\begin{byCase}
\caseOf{$k + 1 = n + 1$.}
$k\in\reals$ and $n\in\reals$ and $1\in\reals$ by \cref{real_naturals_subset_reals,subseteq,real_one_in_naturals}.
$k = n$ by \cref{real_add_cancel}.
$k\in\dom{t_0}$ by \cref{real_add_cancel,initial_segment_naturalsplus,funs_elim}.
$(k,t_0(k))\in t_0$ by \cref{function_apply_elim}.
$(k,t_0(k))\in t$ by \cref{union_iff}.
$t(k) = t_0(k)$ by \cref{function_apply_intro}.
$t_0(n)\in\reals$ by \cref{funs_elim,initial_segment_naturalsplus,funs_type_apply}.
$t(k) = t_0(n)$.
$(k + 1,v)\in g$ by \cref{singleton_intro,pair_eq_iff}.
$(k + 1,v)\in t$ by \cref{union_iff}.
$t(k + 1) = v$ by \cref{function_apply_intro}.
$t(k + 1) = t(k) + a(k + 1)$.
\caseOf{$k + 1 \neq n + 1$.}
$k + 1 \leq n$ by \cref{real_naturals_leq_succ_elim}.
$k + 1\in\initialSegment{n}$ by \cref{initial_segment_naturalsplus}.
$k\in\initialSegment{n}$ by \cref{initial_segment_pred_from_succ_bound_aux}.
$k\in\dom{t_0}$ and $k + 1\in\dom{t_0}$ by \cref{funs_elim,subseteq}.
$t(k) = t_0(k)$ and $t(k + 1) = t_0(k + 1)$
by \cref{function_apply_elim,union_iff,function_apply_intro}.
$k + 1\in\initialSegment{n_0}$.
$k + 1 < n_0$ or $k + 1 = n_0$ by \cref{initial_segment_naturalsplus}.
$k + 1 \leq n_0$ by \cref{real_lt_imp_leq_for_sum_succ}.
$t_0(k + 1) = t_0(k) + a_0(k + 1)$ by \cref{sum_finite_sequence_pred}.
$t(k + 1) = t(k) + a(k + 1)$
by \cref{funs_elim,function_apply_intro}.
\end{byCase}
Let $s = t(n + 1)$.
$s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 5, Proposition 20, Proposition 200, Proposition 361.
$n + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 45.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\union\{n + 1\}$ we have $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n + 1}$ by Axiom 5, Axiom 13, Axiom 16, Axiom 17, Axiom 36, Axiom 37, Axiom 41, Axiom 42, Definition 1, Definition 84, Lemma 82, Proposition 21, Proposition 462.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n + 1}$ we have $i < n + 1$ or $i = n + 1$ by Definition 84.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n + 1}$ we have $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\union\{n + 1\}$ by Axiom 5, Definition 84, Lemma 29, Proposition 20.
$\initialSegment{n}\union\{n + 1\} = \initialSegment{n + 1}$ by Definition 1, Proposition 3.
$\dom{t} = \initialSegment{n + 1}$.
$t\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n + 1}}{\reals}$ by Proposition 358.
$\sumFiniteSequence{a}{s}$ by Definition 193.
$n + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
LaTeX source
\begin{proof}
Fix $n$ such that $n\in A$.
For all $a\in\funs{\initialSegment{n}}{\reals}$ there exists $s\in\reals$
such that $\sumFiniteSequence{a}{s}$.
$n + 1\in\naturalsPlus$ by \cref{subseteq,real_naturals_closed_succ}.
Show that for all $a\in\funs{\initialSegment{n + 1}}{\reals}$ there exists $s\in\reals$ such that $\sumFiniteSequence{a}{s}$.
\begin{subproof}
Fix $a$ such that $a\in\funs{\initialSegment{n + 1}}{\reals}$.
Let $a_0 = \{(i,a(i)) \mid i\in\initialSegment{n}\}$.
$a_0$ is a function by \cref{pair_eq_iff,relation,rightunique}.
$\dom{a_0} = \initialSegment{n}$ by \cref{dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
For all $i$ such that $i\in\dom{a_0}$ we have $a_0(i)\in\reals$
by \cref{subseteq,initial_segment_naturalsplus,real_naturals_subset_reals,real_one_in_naturals,real_add_ident,real_add_closed,real_zero_lt_one,real_lt_add,real_add_comm,real_lt_subst_left,real_lt_trans,funs_elim,funs_type_apply,function_apply_intro}.
$a_0\in\funs{\initialSegment{n}}{\reals}$ by \cref{funs_intro}.
Take $s_0\in\reals$ such that $\sumFiniteSequence{a_0}{s_0}$.
Take $n_0$ such that $n_0\in\naturalsPlus$ and $a_0\in\funs{\initialSegment{n_0}}{\reals}$ and
there exists $t_0\in\funs{\initialSegment{n_0}}{\reals}$ such that
$t_0(1) = a_0(1)$ and $s_0 = t_0(n_0)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n_0$ we have $t_0(k + 1) = t_0(k) + a_0(k + 1)$
by \cref{sum_finite_sequence_pred}.
Take $t_0$ such that $t_0\in\funs{\initialSegment{n_0}}{\reals}$ and
$t_0(1) = a_0(1)$ and $s_0 = t_0(n_0)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n_0$ we have $t_0(k + 1) = t_0(k) + a_0(k + 1)$.
$\initialSegment{n_0} = \initialSegment{n}$ by \cref{funs_elim,subseteq_antisymmetric,subseteq}.
$\dom{t_0} = \initialSegment{n}$ by \cref{funs_elim}.
$t_0$ is a function by \cref{funs_elim}.
$t_0\in\funs{\initialSegment{n}}{\reals}$ by \cref{funs_intro}.
$t_0(n)\in\reals$ by \cref{initial_segment_naturalsplus,funs_type_apply}.
$a(n + 1)\in\reals$ by \cref{initial_segment_naturalsplus,funs_type_apply}.
Let $v = t_0(n) + a(n + 1)$.
$v\in\reals$ by \cref{real_add_closed}.
Let $g = \{(n + 1,v)\}$.
$g$ is a function by \cref{singleton_elim,pair_eq_iff,relation,rightunique}.
Show that for all $x$ such that $x\in\dom{t_0}\inter\dom{g}$ we have $t_0(x) = g(x)$.
\begin{subproof}
Fix $x$ such that $x\in\dom{t_0}\inter\dom{g}$.
Suppose not.
$x\in\dom{g}$.
Take $y$ such that $(x,y)\in g$ by \cref{dom_iff}.
$x = n + 1$ by \cref{singleton_elim,pair_eq_iff}.
$x\in\dom{t_0}$.
$x\in\initialSegment{n}$ by \cref{funs_elim}.
$x\in\naturalsPlus$ by \cref{initial_segment_naturalsplus}.
$x < n$ or $x = n$ by \cref{initial_segment_naturalsplus}.
$x\in\reals$ and $n\in\reals$ and $1\in\reals$ and $0\in\reals$
by \cref{real_naturals_subset_reals,subseteq,real_one_in_naturals,real_add_ident}.
$n < n + 1$
by \cref{real_zero_lt_one,real_lt_add,real_add_ident,real_add_comm,real_lt_subst_left}.
$n < x$ by \cref{real_lt_subst_right}.
$n < n$ by \cref{real_lt_trans,real_lt_subst_right}.
Contradiction by \cref{real_lt_irreflexive}.
\end{subproof}
Let $t = t_0\union g$.
$t$ is a function and $\dom{t} = \dom{t_0}\union\dom{g}$ by \cref{union_compatible_functions,dom_union}.
For all $i$ such that $i\in\dom{g}$ we have $i\in\{n + 1\}$
by \cref{dom_iff,singleton_elim,pair_eq_iff,singleton_intro}.
For all $i$ such that $i\in\{n + 1\}$ we have $i\in\dom{g}$
by \cref{singleton_elim,singleton_intro,pair_eq_iff,dom_intro}.
$\dom{g} = \{n + 1\}$ and $\dom{t} = \initialSegment{n}\union\{n + 1\}$
by \cref{subseteq,subseteq_antisymmetric,funs_elim}.
For all $i$ such that $i\in\dom{t_0}$ we have $t(i)\in\reals$
by \cref{funs_type_apply,function_apply_elim,union_iff,function_apply_intro}.
For all $i$ such that $i\in\dom{g}$ we have $t(i)\in\reals$
by \cref{dom_iff,singleton_elim,pair_eq_iff,union_iff,function_apply_intro}.
Show that for all $i$ such that $i\in\dom{t}$ we have $t(i)\in\reals$.
\begin{subproof}
Follows by \cref{dom_union,union_iff}.
\end{subproof}
$1\in\dom{t_0}$ by \cref{real_one_leq_naturalsplus,initial_segment_naturalsplus,real_one_in_naturals,funs_elim}.
$t(1) = t_0(1)$ by \cref{function_apply_elim,union_iff,function_apply_intro}.
$(1,a(1))\in a_0$.
$a_0(1) = a(1)$ by \cref{funs_elim,function_apply_intro}.
$t(1) = a(1)$.
Show that for all $k\in\naturalsPlus$ such that $k + 1 \leq n + 1$ we have
$t(k + 1) = t(k) + a(k + 1)$.
\begin{subproof}
Fix $k$ such that $k\in\naturalsPlus$ and $k + 1 \leq n + 1$.
$k + 1\in\naturalsPlus$ by \cref{real_naturals_closed_succ}.
$k + 1 = n + 1$ or $k + 1 \neq n + 1$.
\begin{byCase}
\caseOf{$k + 1 = n + 1$.}
$k\in\reals$ and $n\in\reals$ and $1\in\reals$ by \cref{real_naturals_subset_reals,subseteq,real_one_in_naturals}.
$k = n$ by \cref{real_add_cancel}.
$k\in\dom{t_0}$ by \cref{real_add_cancel,initial_segment_naturalsplus,funs_elim}.
$(k,t_0(k))\in t_0$ by \cref{function_apply_elim}.
$(k,t_0(k))\in t$ by \cref{union_iff}.
$t(k) = t_0(k)$ by \cref{function_apply_intro}.
$t_0(n)\in\reals$ by \cref{funs_elim,initial_segment_naturalsplus,funs_type_apply}.
$t(k) = t_0(n)$.
$(k + 1,v)\in g$ by \cref{singleton_intro,pair_eq_iff}.
$(k + 1,v)\in t$ by \cref{union_iff}.
$t(k + 1) = v$ by \cref{function_apply_intro}.
$t(k + 1) = t(k) + a(k + 1)$.
\caseOf{$k + 1 \neq n + 1$.}
$k + 1 \leq n$ by \cref{real_naturals_leq_succ_elim}.
$k + 1\in\initialSegment{n}$ by \cref{initial_segment_naturalsplus}.
$k\in\initialSegment{n}$ by \cref{initial_segment_pred_from_succ_bound_aux}.
$k\in\dom{t_0}$ and $k + 1\in\dom{t_0}$ by \cref{funs_elim,subseteq}.
$t(k) = t_0(k)$ and $t(k + 1) = t_0(k + 1)$
by \cref{function_apply_elim,union_iff,function_apply_intro}.
$k + 1\in\initialSegment{n_0}$.
$k + 1 < n_0$ or $k + 1 = n_0$ by \cref{initial_segment_naturalsplus}.
$k + 1 \leq n_0$ by \cref{real_lt_imp_leq_for_sum_succ}.
$t_0(k + 1) = t_0(k) + a_0(k + 1)$ by \cref{sum_finite_sequence_pred}.
$t(k + 1) = t(k) + a(k + 1)$
by \cref{funs_elim,function_apply_intro}.
\end{byCase}
\end{subproof}
Let $s = t(n + 1)$.
$s\in\reals$ by \cref{singleton_intro,union_iff,dom_intro,funs_type_apply}.
$n + 1\in\naturalsPlus$ by \cref{real_naturals_closed_succ}.
For all $i$ such that $i\in\initialSegment{n}\union\{n + 1\}$ we have $i\in\initialSegment{n + 1}$
by \cref{union_iff,initial_segment_naturalsplus,real_naturals_subset_reals,subseteq,real_one_in_naturals,real_add_ident,real_add_closed,real_zero_lt_one,real_lt_add,real_add_comm,real_lt_subst_left,real_lt_trans,singleton_elim}.
For all $i$ such that $i\in\initialSegment{n + 1}$ we have $i < n + 1$ or $i = n + 1$
by \cref{initial_segment_naturalsplus}.
For all $i$ such that $i\in\initialSegment{n + 1}$ we have $i\in\initialSegment{n}\union\{n + 1\}$
by \cref{initial_segment_naturalsplus,real_naturals_leq_succ_elim,union_iff,singleton_intro}.
$\initialSegment{n}\union\{n + 1\} = \initialSegment{n + 1}$ by \cref{subseteq,subseteq_antisymmetric}.
$\dom{t} = \initialSegment{n + 1}$.
$t\in\funs{\initialSegment{n + 1}}{\reals}$ by \cref{funs_intro}.
$\sumFiniteSequence{a}{s}$ by \cref{sum_finite_sequence_pred}.
\end{subproof}
$n + 1\in A$.
\end{proof}
Suppose $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Suppose $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{m}}{\reals}$.
Then there exists $s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{f}{s}$.
LaTeX source
\begin{lemma}
\label{sum_finite_sequence_exists}
Suppose $m\in\naturalsPlus$.
Suppose $f\in\funs{\initialSegment{m}}{\reals}$.
Then there exists $s\in\reals$ such that $\sumFiniteSequence{f}{s}$.
\end{lemma}
Proof
Let $A = \{n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \text{for all $a\in\funs{\initialSegment{n}}{\reals}$ there exists $s\in\reals$ such that $\sumFiniteSequence{a}{s}$}\}$.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 13, Axiom 17, Axiom 36, Axiom 37, Axiom 39, Axiom 41, Axiom 42, Axiom 43, Definition 1, Definition 84, Definition 193, Lemma 24, Lemma 82, Lemma 83, Proposition 361, Proposition 462.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $n + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Lemma 224.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $n\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 445.
There exists $s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{f}{s}$ by Definition 1.
LaTeX source
\begin{proof}
Let $A = \{n\in\naturalsPlus \mid \text{for all $a\in\funs{\initialSegment{n}}{\reals}$ there exists $s\in\reals$ such that $\sumFiniteSequence{a}{s}$}\}$.
$A\subseteq\naturalsPlus$ by \cref{subseteq}.
$1\in A$
by \cref{initial_segment_naturalsplus,real_one_in_naturals,funs_type_apply,real_one_leq_naturalsplus,real_naturals_subset_reals,subseteq,real_add_closed,real_leq_add,real_add_ident,real_zero_lt_one,real_lt_add,real_lt_subst_left,real_lt_trans,real_lt_subst_right,real_lt_irreflexive,sum_finite_sequence_pred}.
For all $n\in A$ we have $n + 1\in A$ by \cref{sum_finite_sequence_exists_succ}.
For all $n\in\naturalsPlus$ we have $n\in A$ by \cref{real_naturals_induction}.
There exists $s\in\reals$ such that $\sumFiniteSequence{f}{s}$ by \cref{subseteq}.
\end{proof}
$\coordSumSequence{n}{a}{b} = \{w \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}. w = (i, a(i) + b(i))\}$.
LaTeX source
\begin{definition}
\label{coord_sum_sequence}
$\coordSumSequence{n}{a}{b} = \{w \mid \exists i\in\initialSegment{n}.
w = (i, a(i) + b(i))\}$.
\end{definition}
$\coordProductSequence{n}{a}{b} = \{w \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}. w = (i, a(i) \rmul b(i))\}$.
LaTeX source
\begin{definition}
\label{coord_product_sequence}
$\coordProductSequence{n}{a}{b} = \{w \mid \exists i\in\initialSegment{n}.
w = (i, a(i) \rmul b(i))\}$.
\end{definition}
$\coordSquareSequenceMul{n}{a} = \{w \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}. w = (i, a(i) \rmul a(i))\}$.
LaTeX source
\begin{definition}
\label{coord_square_sequence_mul}
$\coordSquareSequenceMul{n}{a} = \{w \mid \exists i\in\initialSegment{n}.
w = (i, a(i) \rmul a(i))\}$.
\end{definition}
$\coordDiffSequence{n}{x}{y} = \{w \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}. w = (i, x(i) - y(i))\}$.
LaTeX source
\begin{definition}
\label{coord_diff_sequence}
$\coordDiffSequence{n}{x}{y} = \{w \mid \exists i\in\initialSegment{n}.
w = (i, x(i) - y(i))\}$.
\end{definition}
$\coordScalarSequence{n}{c}{a} = \{w \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}. w = (i, c \rmul a(i))\}$.
LaTeX source
\begin{definition}
\label{coord_scalar_sequence}
$\coordScalarSequence{n}{c}{a} = \{w \mid \exists i\in\initialSegment{n}.
w = (i, c \rmul a(i))\}$.
\end{definition}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Suppose $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Then $\coordSumSequence{n}{a}{b}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
LaTeX source
\begin{lemma}
\label{coord_sum_sequence_function}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\in\funs{J}{\reals}$.
Suppose $b\in\funs{J}{\reals}$.
Then $\coordSumSequence{n}{a}{b}\in\funs{J}{\reals}$.
\end{lemma}
Proof
Let $c = \coordSumSequence{n}{a}{b}$.
$c\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Axiom 6, Axiom 13, Definition 1, Definition 12, Definition 51, Definition 198, Proposition 3, Proposition 199, Proposition 200, Proposition 346, Proposition 358, Proposition 361.
LaTeX source
\begin{proof}
Let $c = \coordSumSequence{n}{a}{b}$.
$c\in\funs{J}{\reals}$
by \cref{coord_sum_sequence,pair_eq_iff,relation,rightunique,dom_intro,subseteq,dom_iff,subseteq_antisymmetric,funs_type_apply,real_add_closed,function_apply_intro,funs_intro}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Suppose $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Then $\coordProductSequence{n}{a}{b}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
LaTeX source
\begin{lemma}
\label{coord_product_sequence_function}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\in\funs{J}{\reals}$.
Suppose $b\in\funs{J}{\reals}$.
Then $\coordProductSequence{n}{a}{b}\in\funs{J}{\reals}$.
\end{lemma}
Proof
Let $c = \coordProductSequence{n}{a}{b}$.
$c\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Axiom 6, Axiom 14, Definition 1, Definition 12, Definition 51, Definition 199, Proposition 3, Proposition 199, Proposition 200, Proposition 346, Proposition 358, Proposition 361.
LaTeX source
\begin{proof}
Let $c = \coordProductSequence{n}{a}{b}$.
$c\in\funs{J}{\reals}$
by \cref{coord_product_sequence,pair_eq_iff,relation,rightunique,dom_intro,subseteq,dom_iff,subseteq_antisymmetric,funs_type_apply,real_mul_closed,function_apply_intro,funs_intro}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Then $\coordSquareSequenceMul{n}{a}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
LaTeX source
\begin{lemma}
\label{coord_square_sequence_mul_function}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\in\funs{J}{\reals}$.
Then $\coordSquareSequenceMul{n}{a}\in\funs{J}{\reals}$.
\end{lemma}
Proof
Let $c = \coordSquareSequenceMul{n}{a}$.
$c\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Axiom 6, Axiom 14, Definition 1, Definition 12, Definition 51, Definition 200, Proposition 3, Proposition 199, Proposition 200, Proposition 346, Proposition 358, Proposition 361.
LaTeX source
\begin{proof}
Let $c = \coordSquareSequenceMul{n}{a}$.
$c\in\funs{J}{\reals}$
by \cref{coord_square_sequence_mul,pair_eq_iff,relation,rightunique,dom_intro,subseteq,dom_iff,subseteq_antisymmetric,funs_type_apply,real_mul_closed,function_apply_intro,funs_intro}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Suppose $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Then $\coordDiffSequence{n}{x}{y}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
LaTeX source
\begin{lemma}
\label{coord_diff_sequence_function}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $x\in\realsPower{J}$.
Suppose $y\in\realsPower{J}$.
Then $\coordDiffSequence{n}{x}{y}\in\funs{J}{\reals}$.
\end{lemma}
Proof
Let $c = \coordDiffSequence{n}{x}{y}$.
For all $i,z_1,z_2$ such that $(i,z_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} c$ and $(i,z_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} c$ we have $z_1 = z_2$ by Axiom 6, Definition 201.
$c$ is right-unique by Definition 51.
$c$ is a relation by Definition 12, Definition 201.
$c$ is a function.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{c}$ we have $c(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 6, Axiom 13, Axiom 18, Definition 64, Definition 166, Definition 191, Definition 201, Proposition 199, Proposition 346, Proposition 361.
$c$ is a function to $\reals$.
$\dom{c}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} J$ by Axiom 6, Definition 1, Definition 201, Proposition 199.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{c}$ by Definition 201, Proposition 200.
$c\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Definition 1, Proposition 3, Proposition 358.
LaTeX source
\begin{proof}
Let $c = \coordDiffSequence{n}{x}{y}$.
For all $i,z_1,z_2$ such that $(i,z_1)\in c$ and $(i,z_2)\in c$ we have $z_1 = z_2$
by \cref{coord_diff_sequence,pair_eq_iff}.
$c$ is right-unique by \cref{rightunique}.
$c$ is a relation by \cref{coord_diff_sequence,relation}.
$c$ is a function.
For all $i$ such that $i\in\dom{c}$ we have $c(i)\in\reals$
by \cref{dom_iff,coord_diff_sequence,pair_eq_iff,reals_power,tuple_power,funs_type_apply,real_add_inverse,real_add_closed,real_sub,function_apply_intro}.
$c$ is a function to $\reals$.
$\dom{c}\subseteq J$ by \cref{dom_iff,coord_diff_sequence,pair_eq_iff,subseteq}.
For all $i$ such that $i\in J$ we have $i\in\dom{c}$ by \cref{coord_diff_sequence,dom_intro}.
$c\in\funs{J}{\reals}$ by \cref{subseteq,subseteq_antisymmetric,funs_intro}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $c\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Then $\coordScalarSequence{n}{c}{a}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
LaTeX source
\begin{lemma}
\label{coord_scalar_sequence_function}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $c\in\reals$.
Suppose $a\in\funs{J}{\reals}$.
Then $\coordScalarSequence{n}{c}{a}\in\funs{J}{\reals}$.
\end{lemma}
Proof
Let $d = \coordScalarSequence{n}{c}{a}$.
$d\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Axiom 6, Axiom 14, Definition 1, Definition 12, Definition 51, Definition 202, Proposition 3, Proposition 199, Proposition 200, Proposition 346, Proposition 358, Proposition 361.
LaTeX source
\begin{proof}
Let $d = \coordScalarSequence{n}{c}{a}$.
$d\in\funs{J}{\reals}$
by \cref{coord_scalar_sequence,pair_eq_iff,relation,rightunique,dom_intro,subseteq,dom_iff,subseteq_antisymmetric,funs_type_apply,real_mul_closed,function_apply_intro,funs_intro}.
\end{proof}
Suppose $a < b$.
Then $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b$.
LaTeX source
\begin{lemma}
\label{real_lt_imp_leq}
Suppose $a < b$.
Then $a \leq b$.
\end{lemma}
Proof
Trivial.
LaTeX source
\begin{proof}
Trivial.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Suppose $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
Then $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$.
LaTeX source
\begin{lemma}
\label{initial_segment_pred_from_succ_bound}
Suppose $n\in\naturalsPlus$.
Suppose $k\in\naturalsPlus$ and $k + 1 \leq n$.
Then $k\in\initialSegment{n}$.
\end{lemma}
Proof
Follows by Lemma 213.
LaTeX source
\begin{proof}
Follows by \cref{initial_segment_pred_from_succ_bound_aux}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Then $\initialSegment{n}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\initialSegment{n + 1}$.
LaTeX source
\begin{lemma}
\label{initial_segment_subset_succ_helper20}
Suppose $n\in\naturalsPlus$.
Then $\initialSegment{n}\subseteq\initialSegment{n + 1}$.
\end{lemma}
Proof
Follows by Axiom 13, Axiom 16, Axiom 17, Axiom 37, Axiom 41, Axiom 42, Definition 1, Definition 84, Lemma 23, Lemma 82, Lemma 231, Proposition 462.
LaTeX source
\begin{proof}
Follows by \cref{initial_segment_naturalsplus,real_naturals_subset_reals,subseteq,real_add_ident,real_one_in_naturals,real_zero_lt_one,real_lt_add,real_add_comm,real_add_closed,real_lt_subst_left,real_lt_imp_leq,real_leq_trans}.
\end{proof}
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $c\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $d\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Then $(a + b) + (c + d) = (a + c) + (b + d)$.
LaTeX source
\begin{lemma}
\label{real_add_four_exchange}
Suppose $a\in\reals$.
Suppose $b\in\reals$.
Suppose $c\in\reals$.
Suppose $d\in\reals$.
Then $(a + b) + (c + d) = (a + c) + (b + d)$.
\end{lemma}
Proof
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Then $(a + b) \rmul (a + b) = (a \rmul a) + ((1 + 1) \rmul (a \rmul b)) + (b \rmul b)$.
LaTeX source
\begin{lemma}
\label{real_square_sum_expand}
Suppose $a\in\reals$.
Suppose $b\in\reals$.
Then $(a + b) \rmul (a + b) = (a \rmul a) + ((1 + 1) \rmul (a \rmul b)) + (b \rmul b)$.
\end{lemma}
Proof
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1 + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 41, Axiom 42, Definition 1.
$a + b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$(a + b) \rmul (a + b) = (a + b) \rmul a + (a + b) \rmul b$ by Axiom 23.
$(a + b) \rmul a = a \rmul (a + b)$ by Axiom 20.
$a \rmul (a + b) = (a \rmul a) + (a \rmul b)$ by Axiom 23.
$(a + b) \rmul a = (a \rmul a) + (a \rmul b)$.
$(a + b) \rmul b = b \rmul (a + b)$ by Axiom 20.
$b \rmul (a + b) = (b \rmul a) + (b \rmul b)$ by Axiom 23.
$(a + b) \rmul b = (b \rmul a) + (b \rmul b)$.
$b \rmul a = a \rmul b$ and $a \rmul a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $a \rmul b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $b \rmul b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14, Axiom 20.
$(a + b) \rmul (a + b) = ((a \rmul a) + (a \rmul b)) + ((a \rmul b) + (b \rmul b))$ by Proposition 437.
$(a \rmul b) + (b \rmul b)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$(a + b) \rmul (a + b) = (a \rmul a) + ((a \rmul b) + ((a \rmul b) + (b \rmul b)))$ by Axiom 15.
$(a \rmul b) + ((a \rmul b) + (b \rmul b)) = ((a \rmul b) + (a \rmul b)) + (b \rmul b)$ by Axiom 15.
$(a + b) \rmul (a + b) = (a \rmul a) + (((a \rmul b) + (a \rmul b)) + (b \rmul b))$ by Proposition 437.
$(a \rmul b) + (a \rmul b)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$(a + b) \rmul (a + b) = ((a \rmul a) + ((a \rmul b) + (a \rmul b))) + (b \rmul b)$ by Axiom 15.
$(1 + 1) \rmul (a \rmul b) = (a \rmul b) + (a \rmul b)$ by Axiom 20, Axiom 21, Axiom 23, Proposition 437.
$(a + b) \rmul (a + b) = ((a \rmul a) + ((1 + 1) \rmul (a \rmul b))) + (b \rmul b)$ by Proposition 437.
$(a + b) \rmul (a + b) = (a \rmul a) + ((1 + 1) \rmul (a \rmul b)) + (b \rmul b)$.
LaTeX source
\begin{proof}
$1\in\naturalsPlus$ and $1\in\reals$ and $1 + 1\in\reals$
by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_add_closed}.
$a + b\in\reals$ by \cref{real_add_closed}.
$(a + b) \rmul (a + b) = (a + b) \rmul a + (a + b) \rmul b$ by \cref{real_distrib}.
$(a + b) \rmul a = a \rmul (a + b)$ by \cref{real_mul_comm}.
$a \rmul (a + b) = (a \rmul a) + (a \rmul b)$ by \cref{real_distrib}.
$(a + b) \rmul a = (a \rmul a) + (a \rmul b)$.
$(a + b) \rmul b = b \rmul (a + b)$ by \cref{real_mul_comm}.
$b \rmul (a + b) = (b \rmul a) + (b \rmul b)$ by \cref{real_distrib}.
$(a + b) \rmul b = (b \rmul a) + (b \rmul b)$.
$b \rmul a = a \rmul b$ and $a \rmul a\in\reals$ and $a \rmul b\in\reals$ and $b \rmul b\in\reals$
by \cref{real_mul_comm,real_mul_closed}.
$(a + b) \rmul (a + b) = ((a \rmul a) + (a \rmul b)) + ((a \rmul b) + (b \rmul b))$
by \cref{real_add_eq_subst}.
$(a \rmul b) + (b \rmul b)\in\reals$ by \cref{real_add_closed}.
$(a + b) \rmul (a + b) =
(a \rmul a) + ((a \rmul b) + ((a \rmul b) + (b \rmul b)))$ by \cref{real_add_assoc}.
$(a \rmul b) + ((a \rmul b) + (b \rmul b)) =
((a \rmul b) + (a \rmul b)) + (b \rmul b)$ by \cref{real_add_assoc}.
$(a + b) \rmul (a + b) =
(a \rmul a) + (((a \rmul b) + (a \rmul b)) + (b \rmul b))$ by \cref{real_add_eq_subst}.
$(a \rmul b) + (a \rmul b)\in\reals$ by \cref{real_add_closed}.
$(a + b) \rmul (a + b) =
((a \rmul a) + ((a \rmul b) + (a \rmul b))) + (b \rmul b)$ by \cref{real_add_assoc}.
$(1 + 1) \rmul (a \rmul b) = (a \rmul b) + (a \rmul b)$
by \cref{real_mul_comm,real_distrib,real_mul_ident,real_add_eq_subst}.
$(a + b) \rmul (a + b) =
((a \rmul a) + ((1 + 1) \rmul (a \rmul b))) + (b \rmul b)$ by \cref{real_add_eq_subst}.
$(a + b) \rmul (a + b) =
(a \rmul a) + ((1 + 1) \rmul (a \rmul b)) + (b \rmul b)$.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Suppose $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Suppose $\sumFiniteSequence{a}{s}$.
Suppose $\sumFiniteSequence{b}{t}$.
Let $c = \coordSumSequence{n}{a}{b}$.
Then $\sumFiniteSequence{c}{s + t}$.
LaTeX source
\begin{lemma}
\label{sum_finite_sequence_add}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\in\funs{J}{\reals}$.
Suppose $b\in\funs{J}{\reals}$.
Suppose $\sumFiniteSequence{a}{s}$.
Suppose $\sumFiniteSequence{b}{t}$.
Let $c = \coordSumSequence{n}{a}{b}$.
Then $\sumFiniteSequence{c}{s + t}$.
\end{lemma}
Proof
Take $n_1$ such that $n_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_1}}{\reals}$ and there exists $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_1}}{\reals}$ such that $u(1) = a(1)$ and $s = u(n_1)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_1$ we have $u(k + 1) = u(k) + a(k + 1)$ by Definition 193.
Take $n_2$ such that $n_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_2}}{\reals}$ and there exists $v\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_2}}{\reals}$ such that $v(1) = b(1)$ and $t = v(n_2)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_2$ we have $v(k + 1) = v(k) + b(k + 1)$ by Definition 193.
Take $u$ such that $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_1}}{\reals}$ and $u(1) = a(1)$ and $s = u(n_1)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_1$ we have $u(k + 1) = u(k) + a(k + 1)$.
Take $v$ such that $v\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_2}}{\reals}$ and $v(1) = b(1)$ and $t = v(n_2)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_2$ we have $v(k + 1) = v(k) + b(k + 1)$.
$n_1 = n$ and $n_2 = n$ by Axiom 41, Definition 1, Definition 84, Lemma 25, Proposition 3, Proposition 359.
$u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ and $v\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Proposition 359.
$c\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Lemma 226.
Let $w = \coordSumSequence{n}{u}{v}$.
$w\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ and $w(1) = c(1)$ by Axiom 42, Axiom 43, Definition 84, Definition 198, Lemma 226, Proposition 346, Proposition 359.
Claim: For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ we have $w(k + 1) = w(k) + c(k + 1)$.
$s + t = w(n)$ by Definition 84, Definition 198, Proposition 346, Proposition 359.
$\sumFiniteSequence{c}{s + t}$ by Definition 193, Lemma 226.
LaTeX source
\begin{proof}
Take $n_1$ such that $n_1\in\naturalsPlus$ and $a\in\funs{\initialSegment{n_1}}{\reals}$ and
there exists $u\in\funs{\initialSegment{n_1}}{\reals}$ such that
$u(1) = a(1)$ and $s = u(n_1)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n_1$ we have $u(k + 1) = u(k) + a(k + 1)$
by \cref{sum_finite_sequence_pred}.
Take $n_2$ such that $n_2\in\naturalsPlus$ and $b\in\funs{\initialSegment{n_2}}{\reals}$ and
there exists $v\in\funs{\initialSegment{n_2}}{\reals}$ such that
$v(1) = b(1)$ and $t = v(n_2)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n_2$ we have $v(k + 1) = v(k) + b(k + 1)$
by \cref{sum_finite_sequence_pred}.
Take $u$ such that $u\in\funs{\initialSegment{n_1}}{\reals}$ and
$u(1) = a(1)$ and $s = u(n_1)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n_1$ we have $u(k + 1) = u(k) + a(k + 1)$.
Take $v$ such that $v\in\funs{\initialSegment{n_2}}{\reals}$ and
$v(1) = b(1)$ and $t = v(n_2)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n_2$ we have $v(k + 1) = v(k) + b(k + 1)$.
$n_1 = n$ and $n_2 = n$
by \cref{subseteq_antisymmetric,subseteq,funs_elim,initial_segment_naturalsplus,real_naturals_subset_reals,real_leq_antisym}.
$u\in\funs{J}{\reals}$ and $v\in\funs{J}{\reals}$ by \cref{funs_elim}.
$c\in\funs{J}{\reals}$ by \cref{coord_sum_sequence_function}.
Let $w = \coordSumSequence{n}{u}{v}$.
$w\in\funs{J}{\reals}$ and $w(1) = c(1)$
by \cref{real_one_in_naturals,real_one_leq_naturalsplus,initial_segment_naturalsplus,coord_sum_sequence,funs_elim,function_apply_intro,coord_sum_sequence_function}.
Show that for all $k\in\naturalsPlus$ such that $k + 1 \leq n$ we have $w(k + 1) = w(k) + c(k + 1)$.
\begin{subproof}
Follows by \cref{initial_segment_pred_from_succ_bound,initial_segment_naturalsplus,real_naturals_closed_succ,funs_type_apply,funs_elim,coord_sum_sequence,function_apply_intro,real_add_eq_subst,real_add_four_exchange}.
\end{subproof}
$s + t = w(n)$
by \cref{initial_segment_naturalsplus,coord_sum_sequence,funs_elim,function_apply_intro}.
$\sumFiniteSequence{c}{s + t}$ by \cref{coord_sum_sequence_function,sum_finite_sequence_pred}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $c\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Suppose $\sumFiniteSequence{a}{s}$.
Let $b = \coordScalarSequence{n}{c}{a}$.
Then $\sumFiniteSequence{b}{c \rmul s}$.
LaTeX source
\begin{lemma}
\label{sum_finite_sequence_scalar}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $c\in\reals$.
Suppose $a\in\funs{J}{\reals}$.
Suppose $\sumFiniteSequence{a}{s}$.
Let $b = \coordScalarSequence{n}{c}{a}$.
Then $\sumFiniteSequence{b}{c \rmul s}$.
\end{lemma}
Proof
Take $n_1$ such that $n_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_1}}{\reals}$ and there exists $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_1}}{\reals}$ such that $u(1) = a(1)$ and $s = u(n_1)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_1$ we have $u(k + 1) = u(k) + a(k + 1)$ by Definition 193.
Take $u$ such that $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_1}}{\reals}$ and $u(1) = a(1)$ and $s = u(n_1)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_1$ we have $u(k + 1) = u(k) + a(k + 1)$.
$n_1 = n$ by Axiom 41, Definition 1, Definition 84, Lemma 25, Proposition 3, Proposition 359.
Let $w = \coordScalarSequence{n}{c}{u}$.
$w\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ and $w(1) = b(1)$ by Axiom 42, Axiom 43, Definition 84, Definition 202, Lemma 230, Proposition 346, Proposition 359.
Claim: For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ we have $w(k + 1) = w(k) + b(k + 1)$.
$c \rmul s = w(n)$ by Definition 84, Definition 202, Proposition 346, Proposition 359.
$\sumFiniteSequence{b}{c \rmul s}$ by Definition 193, Lemma 230.
LaTeX source
\begin{proof}
Take $n_1$ such that $n_1\in\naturalsPlus$ and $a\in\funs{\initialSegment{n_1}}{\reals}$ and
there exists $u\in\funs{\initialSegment{n_1}}{\reals}$ such that
$u(1) = a(1)$ and $s = u(n_1)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n_1$ we have $u(k + 1) = u(k) + a(k + 1)$
by \cref{sum_finite_sequence_pred}.
Take $u$ such that $u\in\funs{\initialSegment{n_1}}{\reals}$ and
$u(1) = a(1)$ and $s = u(n_1)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n_1$ we have $u(k + 1) = u(k) + a(k + 1)$.
$n_1 = n$
by \cref{subseteq_antisymmetric,subseteq,funs_elim,initial_segment_naturalsplus,real_naturals_subset_reals,real_leq_antisym}.
Let $w = \coordScalarSequence{n}{c}{u}$.
$w\in\funs{J}{\reals}$ and $w(1) = b(1)$
by \cref{real_one_in_naturals,real_one_leq_naturalsplus,initial_segment_naturalsplus,coord_scalar_sequence,funs_elim,function_apply_intro,coord_scalar_sequence_function}.
Show that for all $k\in\naturalsPlus$ such that $k + 1 \leq n$ we have $w(k + 1) = w(k) + b(k + 1)$.
\begin{subproof}
Follows by \cref{real_naturals_closed_succ,initial_segment_naturalsplus,initial_segment_pred_from_succ_bound,coord_scalar_sequence,funs_elim,function_apply_intro,funs_type_apply,real_add_eq_subst,real_distrib,coord_scalar_sequence_function}.
\end{subproof}
$c \rmul s = w(n)$
by \cref{initial_segment_naturalsplus,coord_scalar_sequence,funs_elim,function_apply_intro}.
$\sumFiniteSequence{b}{c \rmul s}$ by \cref{coord_scalar_sequence_function,sum_finite_sequence_pred}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $J_1 = \initialSegment{n + 1}$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J_1}{\reals}$.
Suppose $\sumFiniteSequence{a}{s}$.
Let $a_0 = \restrl{a}{J}$.
Then $a_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ and there exists $s_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{a_0}{s_0}$ and $s = s_0 + a(n + 1)$.
LaTeX source
\begin{lemma}
\label{sum_finite_sequence_split_last}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $J_1 = \initialSegment{n + 1}$.
Suppose $a\in\funs{J_1}{\reals}$.
Suppose $\sumFiniteSequence{a}{s}$.
Let $a_0 = \restrl{a}{J}$.
Then $a_0\in\funs{J}{\reals}$ and
there exists $s_0\in\reals$ such that $\sumFiniteSequence{a_0}{s_0}$ and $s = s_0 + a(n + 1)$.
\end{lemma}
Proof
$a$ is a function and $\dom{a} = J_1$ by Proposition 359.
$a_0$ is a function and $\dom{a_0} = J_1\inter J$ by Proposition 383, Corollary 3.
$J\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} J_1$ by Lemma 121.
$\dom{a_0} = J$ by Definition 1, Lemma 121, Proposition 70.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{a_0}$ we have $a_0(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1, Proposition 359, Proposition 361, Proposition 384.
Claim: $a_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Follows by Proposition 358.
Take $n_0$ such that $n_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_0}}{\reals}$ and there exists $t\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_0}}{\reals}$ such that $t(1) = a(1)$ and $s = t(n_0)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_0$ we have $t(k + 1) = t(k) + a(k + 1)$ by Definition 193.
Take $t$ such that $t\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n_0}}{\reals}$ and $t(1) = a(1)$ and $s = t(n_0)$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n_0$ we have $t(k + 1) = t(k) + a(k + 1)$.
$\initialSegment{n_0} = J_1$ by Definition 1, Proposition 3, Proposition 359.
$n_0 = n + 1$ by Axiom 41, Axiom 45, Definition 1, Definition 84, Lemma 25.
Let $t_0 = \restrl{t}{J}$.
$t$ is a function and $\dom{t} = J_1$ by Proposition 359.
$t_0$ is a function and $\dom{t_0} = J_1\inter J$ by Proposition 383, Corollary 3.
$J\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} J_1$ by Lemma 121.
$\dom{t_0} = J$ by Definition 1, Lemma 121, Proposition 70.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{t_0}$ we have $t_0(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1, Proposition 359, Proposition 361, Proposition 384.
$t_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Proposition 358.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ and $t_0(1) = a_0(1)$ by Axiom 42, Axiom 43, Definition 1, Definition 84, Proposition 384.
Claim: For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ we have $t_0(k + 1) = t_0(k) + a_0(k + 1)$.
Follows by Axiom 45, Definition 1, Definition 84, Lemma 232, Proposition 384, Proposition 437.
Let $s_0 = t_0(n)$.
$\sumFiniteSequence{a_0}{s_0}$ by Definition 84, Definition 193, Proposition 361.
$t_0(n) + a(n + 1) = s$ by Axiom 45, Definition 1, Definition 84, Proposition 384, Proposition 437.
Claim: There exists $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{a_0}{u}$ and $s = u + a(n + 1)$.
Follows by Axiom 16, Definition 84, Proposition 361.
LaTeX source
\begin{proof}
$a$ is a function and $\dom{a} = J_1$ by \cref{funs_elim}.
$a_0$ is a function and $\dom{a_0} = J_1\inter J$ by \cref{restrl_of_function_is_function,dom_of_restrl_eq_inter}.
$J\subseteq J_1$ by \cref{initial_segment_subset_succ}.
$\dom{a_0} = J$ by \cref{initial_segment_subset_succ,inter_absorb_supseteq_left,subseteq}.
For all $i$ such that $i\in\dom{a_0}$ we have $a_0(i)\in\reals$
by \cref{subseteq,funs_elim,funs_type_apply,restrl_of_function_apply}.
Show that $a_0\in\funs{J}{\reals}$.
\begin{subproof}
Follows by \cref{funs_intro}.
\end{subproof}
Take $n_0$ such that $n_0\in\naturalsPlus$ and $a\in\funs{\initialSegment{n_0}}{\reals}$ and
there exists $t\in\funs{\initialSegment{n_0}}{\reals}$ such that
$t(1) = a(1)$ and $s = t(n_0)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n_0$ we have $t(k + 1) = t(k) + a(k + 1)$
by \cref{sum_finite_sequence_pred}.
Take $t$ such that $t\in\funs{\initialSegment{n_0}}{\reals}$ and
$t(1) = a(1)$ and $s = t(n_0)$ and
for all $k\in\naturalsPlus$ such that $k + 1 \leq n_0$ we have $t(k + 1) = t(k) + a(k + 1)$.
$\initialSegment{n_0} = J_1$ by \cref{subseteq_antisymmetric,subseteq,funs_elim}.
$n_0 = n + 1$
by \cref{initial_segment_naturalsplus,subseteq,real_naturals_closed_succ,real_naturals_subset_reals,real_leq_antisym}.
Let $t_0 = \restrl{t}{J}$.
$t$ is a function and $\dom{t} = J_1$ by \cref{funs_elim}.
$t_0$ is a function and $\dom{t_0} = J_1\inter J$ by \cref{restrl_of_function_is_function,dom_of_restrl_eq_inter}.
$J\subseteq J_1$ by \cref{initial_segment_subset_succ}.
$\dom{t_0} = J$ by \cref{initial_segment_subset_succ,inter_absorb_supseteq_left,subseteq}.
For all $i$ such that $i\in\dom{t_0}$ we have $t_0(i)\in\reals$
by \cref{subseteq,funs_elim,funs_type_apply,restrl_of_function_apply}.
$t_0\in\funs{J}{\reals}$ by \cref{funs_intro}.
$1\in J$ and $t_0(1) = a_0(1)$
by \cref{real_one_in_naturals,real_one_leq_naturalsplus,initial_segment_naturalsplus,restrl_of_function_apply,subseteq}.
Show that for all $k\in\naturalsPlus$ such that $k + 1 \leq n$ we have
$t_0(k + 1) = t_0(k) + a_0(k + 1)$.
\begin{subproof}
Follows by \cref{real_naturals_closed_succ,initial_segment_naturalsplus,initial_segment_pred_from_succ_bound,restrl_of_function_apply,subseteq,real_add_eq_subst}.
\end{subproof}
Let $s_0 = t_0(n)$.
$\sumFiniteSequence{a_0}{s_0}$ by \cref{initial_segment_naturalsplus,funs_type_apply,sum_finite_sequence_pred}.
$t_0(n) + a(n + 1) = s$
by \cref{initial_segment_naturalsplus,real_naturals_closed_succ,restrl_of_function_apply,subseteq,real_add_eq_subst}.
Show that there exists $u\in\reals$ such that $\sumFiniteSequence{a_0}{u}$ and $s = u + a(n + 1)$.
\begin{subproof}
Follows by \cref{initial_segment_naturalsplus,funs_type_apply,real_add_comm}.
\end{subproof}
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Suppose $\sumFiniteSequence{a}{s}$.
Suppose $s = 0$.
Suppose for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a(i)$.
Then for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $a(i) = 0$.
LaTeX source
\begin{lemma}
\label{sum_finite_sequence_zero_terms}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\in\funs{J}{\reals}$.
Suppose $\sumFiniteSequence{a}{s}$.
Suppose $s = 0$.
Suppose for all $i\in J$ we have $0 \leq a(i)$.
Then for all $i\in J$ we have $a(i) = 0$.
\end{lemma}
Proof
Follows by Axiom 17, Lemma 25, Lemma 215, Proposition 359, Proposition 361.
LaTeX source
\begin{proof}
Follows by \cref{funs_elim,sum_finite_sequence_term_leq,real_add_ident,funs_type_apply,real_leq_antisym}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $c\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Suppose $\sumFiniteSequence{\coordSquareSequenceMul{n}{a}}{s}$.
Let $b = \coordScalarSequence{n}{c}{a}$.
Then $\sumFiniteSequence{\coordSquareSequenceMul{n}{b}}{(c \rmul c) \rmul s}$.
LaTeX source
\begin{lemma}
\label{sum_finite_sequence_square_scalar}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $c\in\reals$.
Suppose $a\in\funs{J}{\reals}$.
Suppose $\sumFiniteSequence{\coordSquareSequenceMul{n}{a}}{s}$.
Let $b = \coordScalarSequence{n}{c}{a}$.
Then $\sumFiniteSequence{\coordSquareSequenceMul{n}{b}}{(c \rmul c) \rmul s}$.
\end{lemma}
Proof
Let $u = \coordSquareSequenceMul{n}{a}$.
Let $v = \coordSquareSequenceMul{n}{b}$.
Let $w = \coordScalarSequence{n}{c \rmul c}{u}$.
$b\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ and $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ and $v\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ and $c \rmul c\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $w\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Axiom 14, Lemma 228, Lemma 230.
Claim: For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $v(i) = w(i)$.
Follows by Axiom 14, Axiom 19, Axiom 20, Definition 200, Definition 202, Proposition 346, Proposition 359, Proposition 361.
$\sumFiniteSequence{v}{(c \rmul c) \rmul s}$ by Definition 1, Lemma 237, Proposition 3, Proposition 350, Proposition 359.
LaTeX source
\begin{proof}
Let $u = \coordSquareSequenceMul{n}{a}$.
Let $v = \coordSquareSequenceMul{n}{b}$.
Let $w = \coordScalarSequence{n}{c \rmul c}{u}$.
$b\in\funs{J}{\reals}$ and $u\in\funs{J}{\reals}$ and $v\in\funs{J}{\reals}$ and
$c \rmul c\in\reals$ and $w\in\funs{J}{\reals}$
by \cref{coord_scalar_sequence_function,coord_square_sequence_mul_function,real_mul_closed}.
Show that for all $i\in J$ we have $v(i) = w(i)$.
\begin{subproof}
Follows by \cref{coord_scalar_sequence,coord_square_sequence_mul,funs_elim,function_apply_intro,funs_type_apply,real_mul_closed,real_mul_assoc,real_mul_comm}.
\end{subproof}
$\sumFiniteSequence{v}{(c \rmul c) \rmul s}$
by \cref{funs_elim,subseteq,fun_subseteq,subseteq_antisymmetric,sum_finite_sequence_scalar}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Suppose $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Suppose $\sumFiniteSequence{\coordSquareSequenceMul{n}{a}}{s_1}$.
Suppose $\sumFiniteSequence{\coordSquareSequenceMul{n}{b}}{s_2}$.
Suppose $\sumFiniteSequence{\coordProductSequence{n}{a}{b}}{s}$.
Let $c = \coordSumSequence{n}{a}{b}$.
Then $\sumFiniteSequence{\coordSquareSequenceMul{n}{c}}{s_1 + s_2 + (1+1) \rmul s}$.
LaTeX source
\begin{lemma}
\label{sum_finite_sequence_square_sum}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\in\funs{J}{\reals}$.
Suppose $b\in\funs{J}{\reals}$.
Suppose $\sumFiniteSequence{\coordSquareSequenceMul{n}{a}}{s_1}$.
Suppose $\sumFiniteSequence{\coordSquareSequenceMul{n}{b}}{s_2}$.
Suppose $\sumFiniteSequence{\coordProductSequence{n}{a}{b}}{s}$.
Let $c = \coordSumSequence{n}{a}{b}$.
Then $\sumFiniteSequence{\coordSquareSequenceMul{n}{c}}{s_1 + s_2 + (1+1) \rmul s}$.
\end{lemma}
Proof
Let $u = \coordSquareSequenceMul{n}{a}$.
Let $v = \coordSquareSequenceMul{n}{b}$.
Let $p = \coordProductSequence{n}{a}{b}$.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1 + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 41, Axiom 42, Definition 1.
Let $p_2 = \coordScalarSequence{n}{1+1}{p}$.
Let $w = \coordSumSequence{n}{u}{v}$.
Let $d = \coordSumSequence{n}{w}{p_2}$.
Let $q = \coordSquareSequenceMul{n}{c}$.
$u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ and $v\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Lemma 228.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Lemma 227.
$p_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ and $w\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ and $d\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ and $c\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ and $q\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Lemma 226, Lemma 228, Lemma 230.
Claim: For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $q(i) = d(i)$.
Fix $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
$a(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $b(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $c(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $u(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $v(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $p(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $p_2(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $w(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 361.
$(a(i) \rmul a(i))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $(b(i) \rmul b(i))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $(a(i) \rmul b(i))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((1 + 1) \rmul (a(i) \rmul b(i)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14.
$q(i) = (a(i) + b(i)) \rmul (a(i) + b(i))$ by Definition 198, Definition 200, Proposition 346, Proposition 359.
$d(i) = ((a(i) \rmul a(i)) + (b(i) \rmul b(i))) + ((1 + 1) \rmul (a(i) \rmul b(i)))$ by Definition 198, Definition 199, Definition 200, Definition 202, Proposition 346, Proposition 359, Proposition 437.
$q(i) = ((a(i) \rmul a(i)) + ((1 + 1) \rmul (a(i) \rmul b(i)))) + (b(i) \rmul b(i))$ by Lemma 235.
$q(i) = (a(i) \rmul a(i)) + (((1 + 1) \rmul (a(i) \rmul b(i))) + (b(i) \rmul b(i)))$ by Axiom 15.
$d(i) = (a(i) \rmul a(i)) + (((1 + 1) \rmul (a(i) \rmul b(i))) + (b(i) \rmul b(i)))$ by Axiom 15, Axiom 16, Proposition 437.
$q(i) = d(i)$.
$q = d$ by Definition 1, Proposition 3, Proposition 350, Proposition 359.
$\sumFiniteSequence{q}{(s_1 + s_2) + (1+1) \rmul s}$ by Lemma 236, Lemma 237.
$\sumFiniteSequence{\coordSquareSequenceMul{n}{c}}{s_1 + s_2 + (1+1) \rmul s}$ by Axiom 15.
LaTeX source
\begin{proof}
Let $u = \coordSquareSequenceMul{n}{a}$.
Let $v = \coordSquareSequenceMul{n}{b}$.
Let $p = \coordProductSequence{n}{a}{b}$.
$1\in\naturalsPlus$ and $1\in\reals$ and $1 + 1\in\reals$
by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_add_closed}.
Let $p_2 = \coordScalarSequence{n}{1+1}{p}$.
Let $w = \coordSumSequence{n}{u}{v}$.
Let $d = \coordSumSequence{n}{w}{p_2}$.
Let $q = \coordSquareSequenceMul{n}{c}$.
$u\in\funs{J}{\reals}$ and $v\in\funs{J}{\reals}$ by \cref{coord_square_sequence_mul_function}.
$p\in\funs{J}{\reals}$ by \cref{coord_product_sequence_function}.
$p_2\in\funs{J}{\reals}$ and $w\in\funs{J}{\reals}$ and $d\in\funs{J}{\reals}$ and
$c\in\funs{J}{\reals}$ and $q\in\funs{J}{\reals}$
by \cref{coord_scalar_sequence_function,coord_sum_sequence_function,coord_square_sequence_mul_function}.
Show that for all $i\in J$ we have $q(i) = d(i)$.
\begin{subproof}
Fix $i$ such that $i\in J$.
$a(i)\in\reals$ and $b(i)\in\reals$ and $c(i)\in\reals$ and $u(i)\in\reals$ and $v(i)\in\reals$ and
$p(i)\in\reals$ and $p_2(i)\in\reals$ and $w(i)\in\reals$
by \cref{funs_type_apply}.
$(a(i) \rmul a(i))\in\reals$ and $(b(i) \rmul b(i))\in\reals$ and
$(a(i) \rmul b(i))\in\reals$ and $((1 + 1) \rmul (a(i) \rmul b(i)))\in\reals$
by \cref{real_mul_closed}.
$q(i) = (a(i) + b(i)) \rmul (a(i) + b(i))$
by \cref{coord_sum_sequence,coord_square_sequence_mul,funs_elim,function_apply_intro}.
$d(i) = ((a(i) \rmul a(i)) + (b(i) \rmul b(i))) + ((1 + 1) \rmul (a(i) \rmul b(i)))$
by \cref{coord_sum_sequence,coord_square_sequence_mul,coord_product_sequence,coord_scalar_sequence,funs_elim,function_apply_intro,real_add_eq_subst}.
$q(i) = ((a(i) \rmul a(i)) + ((1 + 1) \rmul (a(i) \rmul b(i)))) + (b(i) \rmul b(i))$
by \cref{real_square_sum_expand}.
$q(i) = (a(i) \rmul a(i)) + (((1 + 1) \rmul (a(i) \rmul b(i))) + (b(i) \rmul b(i)))$
by \cref{real_add_assoc}.
$d(i) = (a(i) \rmul a(i)) + (((1 + 1) \rmul (a(i) \rmul b(i))) + (b(i) \rmul b(i)))$
by \cref{real_add_assoc,real_add_eq_subst,real_add_comm}.
$q(i) = d(i)$.
\end{subproof}
$q = d$ by \cref{funs_elim,subseteq,fun_subseteq,subseteq_antisymmetric}.
$\sumFiniteSequence{q}{(s_1 + s_2) + (1+1) \rmul s}$
by \cref{sum_finite_sequence_add,sum_finite_sequence_scalar}.
$\sumFiniteSequence{\coordSquareSequenceMul{n}{c}}{s_1 + s_2 + (1+1) \rmul s}$
by \cref{real_add_assoc}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$.
Suppose $\sumFiniteSequence{a}{s}$.
Then $s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
LaTeX source
\begin{lemma}
\label{sum_finite_sequence_value_in_reals}
Suppose $n\in\naturalsPlus$.
Suppose $a\in\funs{\initialSegment{n}}{\reals}$.
Suppose $\sumFiniteSequence{a}{s}$.
Then $s\in\reals$.
\end{lemma}
Proof
Follows by Definition 84, Definition 193, Proposition 361.
LaTeX source
\begin{proof}
Follows by \cref{sum_finite_sequence_pred,initial_segment_naturalsplus,funs_type_apply}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Then for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \apply{\coordSquareSequenceMul{n}{a}}{i}$.
LaTeX source
\begin{lemma}
\label{coord_square_sequence_mul_term_nonneg}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\in\funs{J}{\reals}$.
Then for all $i\in J$ we have $0 \leq \apply{\coordSquareSequenceMul{n}{a}}{i}$.
\end{lemma}
Proof
Let $c = \coordSquareSequenceMul{n}{a}$.
$c\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Lemma 228.
Fix $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
$a(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 361.
$(i,a(i) \rmul a(i))\class{latex-symbol-tip latex-symbol-id-in}{\in} c$ by Definition 200.
$c(i) = a(i) \rmul a(i)$ by Proposition 346, Proposition 359.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \exp{a(i)}{1+1}$ by Axiom 24, Proposition 461.
$\exp{a(i)}{1+1} = a(i) \rmul a(i)$ by Axiom 42, Axiom 49, Axiom 50.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} c(i)$.
LaTeX source
\begin{proof}
Let $c = \coordSquareSequenceMul{n}{a}$.
$c\in\funs{J}{\reals}$ by \cref{coord_square_sequence_mul_function}.
Fix $i\in J$.
$a(i)\in\reals$ by \cref{funs_type_apply}.
$(i,a(i) \rmul a(i))\in c$ by \cref{coord_square_sequence_mul}.
$c(i) = a(i) \rmul a(i)$ by \cref{funs_elim,function_apply_intro}.
$0 \leq \exp{a(i)}{1+1}$ by \cref{def_of_2,real_sq_nonnegative}.
$\exp{a(i)}{1+1} = a(i) \rmul a(i)$
by \cref{real_one_in_naturals,real_pow_succ,real_pow_one}.
$0 \leq c(i)$.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Suppose $\sumFiniteSequence{\coordSquareSequenceMul{n}{a}}{s}$.
Then $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s$.
LaTeX source
\begin{lemma}
\label{sum_finite_sequence_square_nonneg}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\in\funs{J}{\reals}$.
Suppose $\sumFiniteSequence{\coordSquareSequenceMul{n}{a}}{s}$.
Then $0 \leq s$.
\end{lemma}
Proof
Follows by Lemma 214, Lemma 228, Lemma 243, Proposition 359.
LaTeX source
\begin{proof}
Follows by \cref{coord_square_sequence_mul_function,funs_elim,coord_square_sequence_mul_term_nonneg,sum_finite_sequence_nonneg}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Suppose $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Suppose $\sumFiniteSequence{\coordProductSequence{n}{a}{b}}{s}$.
Suppose $\sumFiniteSequence{\coordSquareSequenceMul{n}{a}}{s_1}$.
Suppose $\sumFiniteSequence{\coordSquareSequenceMul{n}{b}}{s_2}$.
Then $s \rmul s \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s_1 \rmul s_2$.
LaTeX source
\begin{lemma}
\label{cauchy_schwarz_finite_sequences}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\in\funs{J}{\reals}$.
Suppose $b\in\funs{J}{\reals}$.
Suppose $\sumFiniteSequence{\coordProductSequence{n}{a}{b}}{s}$.
Suppose $\sumFiniteSequence{\coordSquareSequenceMul{n}{a}}{s_1}$.
Suppose $\sumFiniteSequence{\coordSquareSequenceMul{n}{b}}{s_2}$.
Then $s \rmul s \leq s_1 \rmul s_2$.
\end{lemma}
Proof
Let $a_1 = \coordScalarSequence{n}{s_2}{a}$.
Let $b_1 = \coordScalarSequence{n}{\neg{s}}{b}$.
Let $c = \coordSumSequence{n}{a_1}{b_1}$.
Let $p = \coordProductSequence{n}{a}{b}$.
Let $p_1 = \coordProductSequence{n}{a_1}{b_1}$.
$s_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $s_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\neg{s}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 18, Lemma 227, Lemma 228, Lemma 242.
$a_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ and $b_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ and $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ and $p_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Lemma 227, Lemma 230.
$\sumFiniteSequence{\coordSquareSequenceMul{n}{a_1}}{(s_2 \rmul s_2) \rmul s_1}$ by Lemma 240.
$\sumFiniteSequence{\coordSquareSequenceMul{n}{b_1}}{(s \rmul s) \rmul s_2}$ by Axiom 14, Axiom 20, Lemma 10, Lemma 240, Proposition 441.
Let $r = \coordScalarSequence{n}{s_2 \rmul (\neg{s})}{p}$.
$s_2 \rmul (\neg{s})\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Axiom 14, Lemma 230.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $a_1(i) = s_2 \rmul a(i)$ and $b_1(i) = \neg{s} \rmul b(i)$ and $p(i) = a(i) \rmul b(i)$ by Definition 199, Definition 202, Proposition 346, Proposition 359.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $p_1(i) = r(i)$ by Axiom 14, Axiom 19, Axiom 20, Definition 199, Definition 202, Proposition 346, Proposition 359, Proposition 361.
$p_1 = r$ by Definition 1, Proposition 3, Proposition 350, Proposition 359.
We have $\sumFiniteSequence{r}{(s_2 \rmul (\neg{s})) \rmul s}$ by Lemma 237.
$\sumFiniteSequence{p_1}{(s_2 \rmul (\neg{s})) \rmul s}$.
$c\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ and $\coordSquareSequenceMul{n}{c}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Lemma 226, Lemma 228.
Take $S\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{\coordSquareSequenceMul{n}{c}}{S}$ by Lemma 225.
$\sumFiniteSequence{\coordSquareSequenceMul{n}{c}}{(s_2 \rmul s_2) \rmul s_1 + (s \rmul s) \rmul s_2 + (1+1) \rmul ((s_2 \rmul (\neg{s})) \rmul s)}$ by Lemma 241.
$S = (s_2 \rmul s_2) \rmul s_1 + (s \rmul s) \rmul s_2 + (1+1) \rmul ((s_2 \rmul (\neg{s})) \rmul s)$ by Lemma 206.
We have $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} S$ by Lemma 244.
$(s_2 \rmul (\neg{s})) \rmul s = s_2 \rmul ((\neg{s}) \rmul s)$ by Axiom 19.
$(\neg{s}) \rmul s = s \rmul (\neg{s})$ by Axiom 20.
$(s_2 \rmul (\neg{s})) \rmul s = \neg{(s_2 \rmul (s \rmul s))}$ by Axiom 14, Axiom 19, Lemma 10.
$(1+1) \rmul ((s_2 \rmul (\neg{s})) \rmul s) = (1+1) \rmul \neg{(s_2 \rmul (s \rmul s))}$.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1 + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 41, Axiom 42, Definition 1.
We have $s_2 \rmul (s \rmul s)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14.
$(1+1) \rmul \neg{(s_2 \rmul (s \rmul s))} = \neg{((1+1) \rmul (s_2 \rmul (s \rmul s)))}$ by Lemma 10.
$S = (s_2 \rmul s_2) \rmul s_1 + (s \rmul s) \rmul s_2 + \neg{((1+1) \rmul (s_2 \rmul (s \rmul s)))}$ by Proposition 437.
$s \rmul s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $(s \rmul s) \rmul s_2 = s_2 \rmul (s \rmul s)$ by Axiom 14, Axiom 20.
$S = s_2 \rmul (s_2 \rmul s_1) + s_2 \rmul (s \rmul s) + \neg{((1+1) \rmul (s_2 \rmul (s \rmul s)))}$ by Axiom 19.
We have $s_2 \rmul (s_2 \rmul s_1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $s_2 \rmul (s \rmul s)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14.
$\neg{((1+1) \rmul (s_2 \rmul (s \rmul s)))}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14, Axiom 18.
$S = s_2 \rmul (s_2 \rmul s_1) + (s_2 \rmul (s \rmul s) + \neg{((1+1) \rmul (s_2 \rmul (s \rmul s)))})$ by Axiom 15.
We have $(1+1) \rmul (s_2 \rmul (s \rmul s)) = (s_2 \rmul (s \rmul s)) + (s_2 \rmul (s \rmul s))$ by Axiom 20, Axiom 21, Axiom 23, Proposition 437.
$\neg{((1+1) \rmul (s_2 \rmul (s \rmul s)))} = \neg{(s_2 \rmul (s \rmul s))} + \neg{(s_2 \rmul (s \rmul s))}$ by Lemma 12, Proposition 437.
$s_2 \rmul (s \rmul s) + \neg{((1+1) \rmul (s_2 \rmul (s \rmul s)))} = \neg{(s_2 \rmul (s \rmul s))}$ by Axiom 15, Axiom 17, Axiom 18, Proposition 437.
$S = s_2 \rmul (s_2 \rmul s_1) + \neg{(s_2 \rmul (s \rmul s))}$ by Proposition 437.
We have $s_2 \rmul s_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $s \rmul s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\neg{(s \rmul s)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14, Axiom 18.
$s_2 \rmul (s_2 \rmul s_1 + \neg{(s \rmul s)}) = s_2 \rmul (s_2 \rmul s_1) + s_2 \rmul \neg{(s \rmul s)}$ by Axiom 23.
$s_2 \rmul \neg{(s \rmul s)} = \neg{(s_2 \rmul (s \rmul s))}$ by Lemma 10.
Hence $s_2 \rmul (s_2 \rmul s_1 + \neg{(s \rmul s)}) = s_2 \rmul (s_2 \rmul s_1) + \neg{(s_2 \rmul (s \rmul s))}$ by Proposition 437.
$S = s_2 \rmul (s_2 \rmul s_1 + \neg{(s \rmul s)})$.
Hence $S = s_2 \rmul (s_2 \rmul s_1 - s \rmul s)$ by Definition 64.
We have $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s_2$ by Lemma 244.
$0 < s_2$ or $s_2 = 0$ by Lemma 81.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $b(i) = 0$ by Definition 200, Lemma 228, Lemma 239, Lemma 243, Proposition 346, Proposition 359, Proposition 361, Proposition 444.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $p(i) = 0$ by Axiom 20, Definition 199, Proposition 346, Proposition 359, Proposition 361, Proposition 439.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17.
We have $\sumFiniteSequence{p}{s}$.
$s \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 0$ by Axiom 20, Axiom 41, Definition 1, Lemma 217, Proposition 439.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{p}$ we have $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} p(i)$ by Definition 1, Proposition 359.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s$ by Lemma 214.
Hence $s = 0$ by Lemma 25.
$s \rmul s = s_1 \rmul s_2$ by Axiom 20, Proposition 439.
Thus $s \rmul s \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s_1 \rmul s_2$.
We have $s \rmul s < s_2 \rmul s_1$ or $s \rmul s = s_2 \rmul s_1$ or $s_2 \rmul s_1 < s \rmul s$ by Axiom 34.
Claim: $s \rmul s \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s_1 \rmul s_2$.
Follows by Axiom 20.
Claim: $s \rmul s \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s_1 \rmul s_2$.
Suppose not.
We have $0 < s \rmul s - s_2 \rmul s_1$ by Lemma 26.
$s \rmul s - s_2 \rmul s_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 14, Axiom 18, Definition 64.
$s_2 \rmul s_1 - s \rmul s = \neg{(s \rmul s - s_2 \rmul s_1)}$ by Lemma 14.
$s_2 \rmul s_1 - s \rmul s < 0$ by Proposition 451.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $s_2 \rmul s_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $s \rmul s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\neg{(s \rmul s)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $s_2 \rmul s_1 - s \rmul s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 14, Axiom 17, Axiom 18, Definition 64.
$(s_2 \rmul s_1 - s \rmul s) \rmul s_2 < 0 \rmul s_2$ by Axiom 38.
$0 \rmul s_2 = 0$ by Proposition 439.
Thus $(s_2 \rmul s_1 - s \rmul s) \rmul s_2 < 0$ by Lemma 83.
$(s_2 \rmul s_1 - s \rmul s) \rmul s_2 = s_2 \rmul (s_2 \rmul s_1 - s \rmul s)$ by Axiom 20.
Hence $s_2 \rmul (s_2 \rmul s_1 - s \rmul s) < 0$ by Lemma 82.
$S < 0$ by Lemma 82.
Therefore $0 < 0$ by Axiom 36, Lemma 83.
Contradiction by Axiom 39.
LaTeX source
\begin{byCase}
\caseOf{$s \rmul s < s_2 \rmul s_1$.}
Show that $s \rmul s \leq s_1 \rmul s_2$.
\begin{subproof}
Follows by \cref{real_lt_imp_leq,real_mul_comm}.
\end{subproof}
\caseOf{$s \rmul s = s_2 \rmul s_1$.}
Show that $s \rmul s \leq s_1 \rmul s_2$.
\begin{subproof}
Follows by \cref{real_mul_comm}.
\end{subproof}
\caseOf{$s_2 \rmul s_1 < s \rmul s$.}
Show that $s \rmul s \leq s_1 \rmul s_2$.
\begin{subproof}
Suppose not.
We have $0 < s \rmul s - s_2 \rmul s_1$ by \cref{real_lt_imp_pos_diff}.
$s \rmul s - s_2 \rmul s_1\in\reals$ by \cref{real_sub,real_add_closed,real_add_inverse,real_mul_closed}.
$s_2 \rmul s_1 - s \rmul s = \neg{(s \rmul s - s_2 \rmul s_1)}$ by \cref{real_sub_swap_neg}.
$s_2 \rmul s_1 - s \rmul s < 0$ by \cref{real_pos_imp_neg}.
$0\in\reals$ and $s_2 \rmul s_1\in\reals$ and $s \rmul s\in\reals$ and
$\neg{(s \rmul s)}\in\reals$ and $s_2 \rmul s_1 - s \rmul s\in\reals$
by \cref{real_add_ident,real_mul_closed,real_add_inverse,real_sub,real_add_closed}.
$(s_2 \rmul s_1 - s \rmul s) \rmul s_2 < 0 \rmul s_2$ by \cref{real_lt_mul_pos}.
$0 \rmul s_2 = 0$ by \cref{real_mul_zero}.
Thus $(s_2 \rmul s_1 - s \rmul s) \rmul s_2 < 0$ by \cref{real_lt_subst_right}.
$(s_2 \rmul s_1 - s \rmul s) \rmul s_2 = s_2 \rmul (s_2 \rmul s_1 - s \rmul s)$ by \cref{real_mul_comm}.
Hence $s_2 \rmul (s_2 \rmul s_1 - s \rmul s) < 0$ by \cref{real_lt_subst_left}.
$S < 0$ by \cref{real_lt_subst_left}.
Therefore $0 < 0$ by \cref{real_lt_trans,real_lt_subst_right}.
Contradiction by \cref{real_lt_irreflexive}.
\end{subproof}
\end{byCase}
LaTeX source
\begin{byCase}
\caseOf{$s_2 = 0$.}
For all $i\in J$ we have $b(i) = 0$
by \cref{coord_square_sequence_mul_term_nonneg,coord_square_sequence_mul_function,sum_finite_sequence_zero_terms,coord_square_sequence_mul,function_apply_intro,funs_elim,funs_type_apply,real_mul_zero_product}.
For all $i\in J$ we have $p(i) = 0$
by \cref{coord_product_sequence,funs_elim,function_apply_intro,funs_type_apply,real_mul_comm,real_mul_zero}.
$0\in\reals$ by \cref{real_add_ident}.
We have $\sumFiniteSequence{p}{s}$.
$s \leq 0$ by \cref{sum_finite_sequence_leq_n_times,real_naturals_subset_reals,subseteq,real_mul_comm,real_mul_zero}.
For all $i\in\dom{p}$ we have $0 \leq p(i)$ by \cref{funs_elim,subseteq}.
$0 \leq s$ by \cref{sum_finite_sequence_nonneg}.
Hence $s = 0$ by \cref{real_leq_antisym}.
$s \rmul s = s_1 \rmul s_2$ by \cref{real_mul_comm,real_mul_zero}.
Thus $s \rmul s \leq s_1 \rmul s_2$.
\caseOf{$0 < s_2$.}
We have $s \rmul s < s_2 \rmul s_1$ or $s \rmul s = s_2 \rmul s_1$ or $s_2 \rmul s_1 < s \rmul s$
by \cref{real_lt_trichotomy}.
\begin{byCase}
\caseOf{$s \rmul s < s_2 \rmul s_1$.}
Show that $s \rmul s \leq s_1 \rmul s_2$.
\begin{subproof}
Follows by \cref{real_lt_imp_leq,real_mul_comm}.
\end{subproof}
\caseOf{$s \rmul s = s_2 \rmul s_1$.}
Show that $s \rmul s \leq s_1 \rmul s_2$.
\begin{subproof}
Follows by \cref{real_mul_comm}.
\end{subproof}
\caseOf{$s_2 \rmul s_1 < s \rmul s$.}
Show that $s \rmul s \leq s_1 \rmul s_2$.
\begin{subproof}
Suppose not.
We have $0 < s \rmul s - s_2 \rmul s_1$ by \cref{real_lt_imp_pos_diff}.
$s \rmul s - s_2 \rmul s_1\in\reals$ by \cref{real_sub,real_add_closed,real_add_inverse,real_mul_closed}.
$s_2 \rmul s_1 - s \rmul s = \neg{(s \rmul s - s_2 \rmul s_1)}$ by \cref{real_sub_swap_neg}.
$s_2 \rmul s_1 - s \rmul s < 0$ by \cref{real_pos_imp_neg}.
$0\in\reals$ and $s_2 \rmul s_1\in\reals$ and $s \rmul s\in\reals$ and
$\neg{(s \rmul s)}\in\reals$ and $s_2 \rmul s_1 - s \rmul s\in\reals$
by \cref{real_add_ident,real_mul_closed,real_add_inverse,real_sub,real_add_closed}.
$(s_2 \rmul s_1 - s \rmul s) \rmul s_2 < 0 \rmul s_2$ by \cref{real_lt_mul_pos}.
$0 \rmul s_2 = 0$ by \cref{real_mul_zero}.
Thus $(s_2 \rmul s_1 - s \rmul s) \rmul s_2 < 0$ by \cref{real_lt_subst_right}.
$(s_2 \rmul s_1 - s \rmul s) \rmul s_2 = s_2 \rmul (s_2 \rmul s_1 - s \rmul s)$ by \cref{real_mul_comm}.
Hence $s_2 \rmul (s_2 \rmul s_1 - s \rmul s) < 0$ by \cref{real_lt_subst_left}.
$S < 0$ by \cref{real_lt_subst_left}.
Therefore $0 < 0$ by \cref{real_lt_trans,real_lt_subst_right}.
Contradiction by \cref{real_lt_irreflexive}.
\end{subproof}
\end{byCase}
\end{byCase}
LaTeX source
\begin{proof}
Let $a_1 = \coordScalarSequence{n}{s_2}{a}$.
Let $b_1 = \coordScalarSequence{n}{\neg{s}}{b}$.
Let $c = \coordSumSequence{n}{a_1}{b_1}$.
Let $p = \coordProductSequence{n}{a}{b}$.
Let $p_1 = \coordProductSequence{n}{a_1}{b_1}$.
$s_2\in\reals$ and $s\in\reals$ and $s_1\in\reals$ and $\neg{s}\in\reals$
by \cref{coord_square_sequence_mul_function,coord_product_sequence_function,sum_finite_sequence_value_in_reals,real_add_inverse}.
$a_1\in\funs{J}{\reals}$ and $b_1\in\funs{J}{\reals}$ and
$p\in\funs{J}{\reals}$ and $p_1\in\funs{J}{\reals}$
by \cref{coord_scalar_sequence_function,coord_product_sequence_function}.
$\sumFiniteSequence{\coordSquareSequenceMul{n}{a_1}}{(s_2 \rmul s_2) \rmul s_1}$ by \cref{sum_finite_sequence_square_scalar}.
$\sumFiniteSequence{\coordSquareSequenceMul{n}{b_1}}{(s \rmul s) \rmul s_2}$
by \cref{sum_finite_sequence_square_scalar,real_mul_neg_right,real_mul_comm,real_mul_closed,real_neg_neg}.
Let $r = \coordScalarSequence{n}{s_2 \rmul (\neg{s})}{p}$.
$s_2 \rmul (\neg{s})\in\reals$ and $r\in\funs{J}{\reals}$
by \cref{real_mul_closed,coord_scalar_sequence_function}.
For all $i\in J$ we have $a_1(i) = s_2 \rmul a(i)$ and $b_1(i) = \neg{s} \rmul b(i)$ and
$p(i) = a(i) \rmul b(i)$
by \cref{coord_scalar_sequence,coord_product_sequence,funs_elim,function_apply_intro}.
For all $i\in J$ we have $p_1(i) = r(i)$
by \cref{coord_scalar_sequence,coord_product_sequence,funs_elim,function_apply_intro,funs_type_apply,real_mul_closed,real_mul_assoc,real_mul_comm}.
$p_1 = r$ by \cref{funs_elim,subseteq,fun_subseteq,subseteq_antisymmetric}.
We have $\sumFiniteSequence{r}{(s_2 \rmul (\neg{s})) \rmul s}$ by \cref{sum_finite_sequence_scalar}.
$\sumFiniteSequence{p_1}{(s_2 \rmul (\neg{s})) \rmul s}$.
$c\in\funs{J}{\reals}$ and $\coordSquareSequenceMul{n}{c}\in\funs{J}{\reals}$
by \cref{coord_sum_sequence_function,coord_square_sequence_mul_function}.
Take $S\in\reals$ such that $\sumFiniteSequence{\coordSquareSequenceMul{n}{c}}{S}$ by \cref{sum_finite_sequence_exists}.
$\sumFiniteSequence{\coordSquareSequenceMul{n}{c}}{(s_2 \rmul s_2) \rmul s_1 + (s \rmul s) \rmul s_2 + (1+1) \rmul ((s_2 \rmul (\neg{s})) \rmul s)}$
by \cref{sum_finite_sequence_square_sum}.
$S = (s_2 \rmul s_2) \rmul s_1 + (s \rmul s) \rmul s_2 + (1+1) \rmul ((s_2 \rmul (\neg{s})) \rmul s)$
by \cref{sum_finite_sequence_unique}.
We have $0 \leq S$ by \cref{sum_finite_sequence_square_nonneg}.
$(s_2 \rmul (\neg{s})) \rmul s = s_2 \rmul ((\neg{s}) \rmul s)$ by \cref{real_mul_assoc}.
$(\neg{s}) \rmul s = s \rmul (\neg{s})$ by \cref{real_mul_comm}.
$(s_2 \rmul (\neg{s})) \rmul s = \neg{(s_2 \rmul (s \rmul s))}$
by \cref{real_mul_assoc,real_mul_closed,real_mul_neg_right}.
$(1+1) \rmul ((s_2 \rmul (\neg{s})) \rmul s) =
(1+1) \rmul \neg{(s_2 \rmul (s \rmul s))}$.
$1\in\naturalsPlus$ and $1\in\reals$ and $1 + 1\in\reals$ by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_add_closed}.
We have $s_2 \rmul (s \rmul s)\in\reals$ by \cref{real_mul_closed}.
$(1+1) \rmul \neg{(s_2 \rmul (s \rmul s))} =
\neg{((1+1) \rmul (s_2 \rmul (s \rmul s)))}$ by \cref{real_mul_neg_right}.
$S = (s_2 \rmul s_2) \rmul s_1 + (s \rmul s) \rmul s_2 +
\neg{((1+1) \rmul (s_2 \rmul (s \rmul s)))}$ by \cref{real_add_eq_subst}.
$s \rmul s\in\reals$ and $(s \rmul s) \rmul s_2 = s_2 \rmul (s \rmul s)$ by \cref{real_mul_closed,real_mul_comm}.
$S = s_2 \rmul (s_2 \rmul s_1) + s_2 \rmul (s \rmul s) +
\neg{((1+1) \rmul (s_2 \rmul (s \rmul s)))}$ by \cref{real_mul_assoc}.
We have $s_2 \rmul (s_2 \rmul s_1)\in\reals$ and $s_2 \rmul (s \rmul s)\in\reals$ by \cref{real_mul_closed}.
$\neg{((1+1) \rmul (s_2 \rmul (s \rmul s)))}\in\reals$ by \cref{real_add_inverse,real_mul_closed}.
$S = s_2 \rmul (s_2 \rmul s_1) +
(s_2 \rmul (s \rmul s) + \neg{((1+1) \rmul (s_2 \rmul (s \rmul s)))})$ by \cref{real_add_assoc}.
We have $(1+1) \rmul (s_2 \rmul (s \rmul s)) =
(s_2 \rmul (s \rmul s)) + (s_2 \rmul (s \rmul s))$
by \cref{real_mul_comm,real_distrib,real_mul_ident,real_add_eq_subst}.
$\neg{((1+1) \rmul (s_2 \rmul (s \rmul s)))} =
\neg{(s_2 \rmul (s \rmul s))} + \neg{(s_2 \rmul (s \rmul s))}$
by \cref{real_add_eq_subst,real_neg_addition}.
$s_2 \rmul (s \rmul s) + \neg{((1+1) \rmul (s_2 \rmul (s \rmul s)))} =
\neg{(s_2 \rmul (s \rmul s))}$
by \cref{real_add_eq_subst,real_add_assoc,real_add_inverse,real_add_ident}.
$S = s_2 \rmul (s_2 \rmul s_1) + \neg{(s_2 \rmul (s \rmul s))}$ by \cref{real_add_eq_subst}.
We have $s_2 \rmul s_1\in\reals$ and $s \rmul s\in\reals$ and $\neg{(s \rmul s)}\in\reals$
by \cref{real_mul_closed,real_add_inverse}.
$s_2 \rmul (s_2 \rmul s_1 + \neg{(s \rmul s)}) =
s_2 \rmul (s_2 \rmul s_1) + s_2 \rmul \neg{(s \rmul s)}$ by \cref{real_distrib}.
$s_2 \rmul \neg{(s \rmul s)} = \neg{(s_2 \rmul (s \rmul s))}$ by \cref{real_mul_neg_right}.
Hence $s_2 \rmul (s_2 \rmul s_1 + \neg{(s \rmul s)}) =
s_2 \rmul (s_2 \rmul s_1) + \neg{(s_2 \rmul (s \rmul s))}$ by \cref{real_add_eq_subst}.
$S = s_2 \rmul (s_2 \rmul s_1 + \neg{(s \rmul s)})$.
Hence $S = s_2 \rmul (s_2 \rmul s_1 - s \rmul s)$ by \cref{real_sub}.
We have $0 \leq s_2$ by \cref{sum_finite_sequence_square_nonneg}.
$0 < s_2$ or $s_2 = 0$ by \cref{real_leq_split}.
\begin{byCase}
\caseOf{$s_2 = 0$.}
For all $i\in J$ we have $b(i) = 0$
by \cref{coord_square_sequence_mul_term_nonneg,coord_square_sequence_mul_function,sum_finite_sequence_zero_terms,coord_square_sequence_mul,function_apply_intro,funs_elim,funs_type_apply,real_mul_zero_product}.
For all $i\in J$ we have $p(i) = 0$
by \cref{coord_product_sequence,funs_elim,function_apply_intro,funs_type_apply,real_mul_comm,real_mul_zero}.
$0\in\reals$ by \cref{real_add_ident}.
We have $\sumFiniteSequence{p}{s}$.
$s \leq 0$ by \cref{sum_finite_sequence_leq_n_times,real_naturals_subset_reals,subseteq,real_mul_comm,real_mul_zero}.
For all $i\in\dom{p}$ we have $0 \leq p(i)$ by \cref{funs_elim,subseteq}.
$0 \leq s$ by \cref{sum_finite_sequence_nonneg}.
Hence $s = 0$ by \cref{real_leq_antisym}.
$s \rmul s = s_1 \rmul s_2$ by \cref{real_mul_comm,real_mul_zero}.
Thus $s \rmul s \leq s_1 \rmul s_2$.
\caseOf{$0 < s_2$.}
We have $s \rmul s < s_2 \rmul s_1$ or $s \rmul s = s_2 \rmul s_1$ or $s_2 \rmul s_1 < s \rmul s$
by \cref{real_lt_trichotomy}.
\begin{byCase}
\caseOf{$s \rmul s < s_2 \rmul s_1$.}
Show that $s \rmul s \leq s_1 \rmul s_2$.
\begin{subproof}
Follows by \cref{real_lt_imp_leq,real_mul_comm}.
\end{subproof}
\caseOf{$s \rmul s = s_2 \rmul s_1$.}
Show that $s \rmul s \leq s_1 \rmul s_2$.
\begin{subproof}
Follows by \cref{real_mul_comm}.
\end{subproof}
\caseOf{$s_2 \rmul s_1 < s \rmul s$.}
Show that $s \rmul s \leq s_1 \rmul s_2$.
\begin{subproof}
Suppose not.
We have $0 < s \rmul s - s_2 \rmul s_1$ by \cref{real_lt_imp_pos_diff}.
$s \rmul s - s_2 \rmul s_1\in\reals$ by \cref{real_sub,real_add_closed,real_add_inverse,real_mul_closed}.
$s_2 \rmul s_1 - s \rmul s = \neg{(s \rmul s - s_2 \rmul s_1)}$ by \cref{real_sub_swap_neg}.
$s_2 \rmul s_1 - s \rmul s < 0$ by \cref{real_pos_imp_neg}.
$0\in\reals$ and $s_2 \rmul s_1\in\reals$ and $s \rmul s\in\reals$ and
$\neg{(s \rmul s)}\in\reals$ and $s_2 \rmul s_1 - s \rmul s\in\reals$
by \cref{real_add_ident,real_mul_closed,real_add_inverse,real_sub,real_add_closed}.
$(s_2 \rmul s_1 - s \rmul s) \rmul s_2 < 0 \rmul s_2$ by \cref{real_lt_mul_pos}.
$0 \rmul s_2 = 0$ by \cref{real_mul_zero}.
Thus $(s_2 \rmul s_1 - s \rmul s) \rmul s_2 < 0$ by \cref{real_lt_subst_right}.
$(s_2 \rmul s_1 - s \rmul s) \rmul s_2 = s_2 \rmul (s_2 \rmul s_1 - s \rmul s)$ by \cref{real_mul_comm}.
Hence $s_2 \rmul (s_2 \rmul s_1 - s \rmul s) < 0$ by \cref{real_lt_subst_left}.
$S < 0$ by \cref{real_lt_subst_left}.
Therefore $0 < 0$ by \cref{real_lt_trans,real_lt_subst_right}.
Contradiction by \cref{real_lt_irreflexive}.
\end{subproof}
\end{byCase}
\end{byCase}
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Suppose $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$.
Suppose $\sumFiniteSequence{\coordSquareSequenceMul{n}{a}}{s_1}$.
Suppose $\sumFiniteSequence{\coordSquareSequenceMul{n}{b}}{s_2}$.
Let $c = \coordSumSequence{n}{a}{b}$.
Suppose $\sumFiniteSequence{\coordSquareSequenceMul{n}{c}}{s}$.
Then $\sqrt{s} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \sqrt{s_1} + \sqrt{s_2}$.
LaTeX source
\begin{lemma}
\label{minkowski_finite_sequences}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $a\in\funs{J}{\reals}$.
Suppose $b\in\funs{J}{\reals}$.
Suppose $\sumFiniteSequence{\coordSquareSequenceMul{n}{a}}{s_1}$.
Suppose $\sumFiniteSequence{\coordSquareSequenceMul{n}{b}}{s_2}$.
Let $c = \coordSumSequence{n}{a}{b}$.
Suppose $\sumFiniteSequence{\coordSquareSequenceMul{n}{c}}{s}$.
Then $\sqrt{s} \leq \sqrt{s_1} + \sqrt{s_2}$.
\end{lemma}
Proof
Let $p = \coordProductSequence{n}{a}{b}$.
Take $t\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{p}{t}$ by Lemma 225, Lemma 227.
$\sumFiniteSequence{\coordSquareSequenceMul{n}{c}}{s_1 + s_2 + (1+1) \rmul t}$ by Lemma 241.
$s = s_1 + s_2 + (1+1) \rmul t$ by Lemma 206.
$s_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $s_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Lemma 228, Lemma 242.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1 + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 41, Axiom 42, Definition 1.
$(1+1) \rmul t\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $s_1 + s_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 14, Axiom 41, Axiom 42, Definition 1.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s_1$ and $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s_2$ by Lemma 244.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s$ by Lemma 226, Lemma 244.
Let $r = \sqrt{s}$.
Let $r_1 = \sqrt{s_1}$.
Let $r_2 = \sqrt{s_2}$.
$r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $r \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$ and $r \rmul r = s$ by Axiom 53.
$r_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $r_1 \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$ and $r_1 \rmul r_1 = s_1$ by Axiom 53.
$r_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $r_2 \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$ and $r_2 \rmul r_2 = s_2$ by Axiom 53.
$\abs{r_1} = r_1$ and $\abs{r_2} = r_2$ by Axiom 47.
$\abs{r_1 \rmul r_2} = r_1 \rmul r_2$ by Proposition 483.
$r_1 \rmul r_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14.
We have $\abs{r_1 \rmul r_2} \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$ by Proposition 480.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 \rmul r_2$.
$\abs{t}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\abs{t} \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$ and $r_1 \rmul r_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14, Lemma 34, Proposition 480.
$\abs{t} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 \rmul r_2$ iff $\exp{\abs{t}}{1+1} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \exp{r_1 \rmul r_2}{1+1}$ by Lemma 218.
$\exp{\abs{t}}{1+1} = t \rmul t$ by Axiom 24, Axiom 49, Axiom 50, Proposition 485.
$t \rmul t \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s_1 \rmul s_2$ by Lemma 245.
$\exp{r_1 \rmul r_2}{1+1} = s_1 \rmul s_2$ by Axiom 19, Axiom 20, Axiom 49, Axiom 50.
Hence $\exp{\abs{t}}{1+1} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \exp{r_1 \rmul r_2}{1+1}$ by Lemma 23.
$\abs{t} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 \rmul r_2$ by Lemma 218.
$t \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 \rmul r_2$ by Lemma 23, Proposition 486.
We have $0 < 1 + 1$ by Axiom 17, Axiom 36, Axiom 37, Axiom 41, Axiom 42, Definition 1, Lemma 82, Proposition 462.
$(1+1) \rmul t \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (1+1) \rmul (r_1 \rmul r_2)$ by Axiom 13, Axiom 14, Axiom 20, Axiom 38, Lemma 81, Lemma 82, Lemma 83, Lemma 231.
We have $(1+1) \rmul t\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $(1+1) \rmul (r_1 \rmul r_2)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14.
$(1+1) \rmul t + s_1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (1+1) \rmul (r_1 \rmul r_2) + s_1$ by Lemma 24.
We have $(1+1) \rmul t + s_1 = s_1 + (1+1) \rmul t$ and $(1+1) \rmul (r_1 \rmul r_2) + s_1 = s_1 + (1+1) \rmul (r_1 \rmul r_2)$ by Axiom 16.
Hence $s_1 + (1+1) \rmul t \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s_1 + (1+1) \rmul (r_1 \rmul r_2)$ by Lemma 23.
We have $s_1 + (1+1) \rmul t\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $s_1 + (1+1) \rmul (r_1 \rmul r_2)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$(s_1 + (1+1) \rmul t) + s_2 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (s_1 + (1+1) \rmul (r_1 \rmul r_2)) + s_2$ by Lemma 24.
We have $(s_1 + (1+1) \rmul t) + s_2 = s_1 + ((1+1) \rmul t + s_2)$ by Axiom 15.
We have $(1+1) \rmul t + s_2 = s_2 + (1+1) \rmul t$ by Axiom 16.
$s_1 + ((1+1) \rmul t + s_2) = s_1 + (s_2 + (1+1) \rmul t)$ by Proposition 437.
Hence $s_1 + (s_2 + (1+1) \rmul t) = (s_1 + s_2) + (1+1) \rmul t$ by Axiom 15.
$(s_1 + (1+1) \rmul t) + s_2 = (s_1 + s_2) + (1+1) \rmul t$.
We have $(s_1 + (1+1) \rmul (r_1 \rmul r_2)) + s_2 = s_1 + ((1+1) \rmul (r_1 \rmul r_2) + s_2)$ and $(1+1) \rmul (r_1 \rmul r_2) + s_2 = s_2 + (1+1) \rmul (r_1 \rmul r_2)$ by Axiom 15, Axiom 16.
$s_1 + ((1+1) \rmul (r_1 \rmul r_2) + s_2) = s_1 + (s_2 + (1+1) \rmul (r_1 \rmul r_2))$ by Proposition 437.
Hence $s_1 + (s_2 + (1+1) \rmul (r_1 \rmul r_2)) = (s_1 + s_2) + (1+1) \rmul (r_1 \rmul r_2)$ by Axiom 15.
$(s_1 + (1+1) \rmul (r_1 \rmul r_2)) + s_2 = (s_1 + s_2) + (1+1) \rmul (r_1 \rmul r_2)$.
$(s_1 + s_2) + (1+1) \rmul t \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (s_1 + s_2) + (1+1) \rmul (r_1 \rmul r_2)$ by Lemma 23.
Hence $s \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (s_1 + s_2) + (1+1) \rmul (r_1 \rmul r_2)$ by Lemma 23.
We have $r_1 + r_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$(r_1 + r_2) \rmul (r_1 + r_2) = (r_1 \rmul r_1) + ((1 + 1) \rmul (r_1 \rmul r_2)) + (r_2 \rmul r_2)$ by Lemma 235.
We have $r_1 \rmul r_1 = s_1$ and $r_2 \rmul r_2 = s_2$.
Hence $(r_1 + r_2) \rmul (r_1 + r_2) = s_1 + ((1 + 1) \rmul (r_1 \rmul r_2)) + s_2$ by Proposition 437.
$(r_1 + r_2) \rmul (r_1 + r_2) = s_1 + s_2 + (1 + 1) \rmul (r_1 \rmul r_2)$ by Axiom 15, Axiom 16.
We have $r_1 + r_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1$ by Axiom 13, Axiom 17.
$0 + r_2 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 + r_2$ and $0 + r_2 = r_2$ by Axiom 17, Lemma 24.
Hence $r_2 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 + r_2$ and $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_2$ and $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 + r_2$ by Lemma 23.
We have $\exp{r}{1+1} = s$ by Axiom 49, Axiom 50.
We have $\exp{r_1 + r_2}{1+1} = s_1 + s_2 + (1 + 1) \rmul (r_1 \rmul r_2)$ by Axiom 49, Axiom 50, Proposition 437.
$\exp{r}{1+1} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \exp{r_1 + r_2}{1+1}$ by Lemma 23.
Hence $r \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 + r_2$ by Lemma 218.
$\sqrt{s} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \sqrt{s_1} + \sqrt{s_2}$.
LaTeX source
\begin{proof}
Let $p = \coordProductSequence{n}{a}{b}$.
Take $t\in\reals$ such that $\sumFiniteSequence{p}{t}$
by \cref{coord_product_sequence_function,sum_finite_sequence_exists}.
$\sumFiniteSequence{\coordSquareSequenceMul{n}{c}}{s_1 + s_2 + (1+1) \rmul t}$ by \cref{sum_finite_sequence_square_sum}.
$s = s_1 + s_2 + (1+1) \rmul t$ by \cref{sum_finite_sequence_unique}.
$s_1\in\reals$ and $s_2\in\reals$ by \cref{coord_square_sequence_mul_function,sum_finite_sequence_value_in_reals}.
$1\in\naturalsPlus$ and $1\in\reals$ and $1 + 1\in\reals$
by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_add_closed}.
$(1+1) \rmul t\in\reals$ and $s_1 + s_2\in\reals$ and $s\in\reals$
by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_add_closed,real_mul_closed}.
$0 \leq s_1$ and $0 \leq s_2$ by \cref{sum_finite_sequence_square_nonneg}.
$0 \leq s$ by \cref{coord_sum_sequence_function,sum_finite_sequence_square_nonneg}.
Let $r = \sqrt{s}$.
Let $r_1 = \sqrt{s_1}$.
Let $r_2 = \sqrt{s_2}$.
$r\in\reals$ and $r \geq 0$ and $r \rmul r = s$ by \cref{positive_square_root}.
$r_1\in\reals$ and $r_1 \geq 0$ and $r_1 \rmul r_1 = s_1$ by \cref{positive_square_root}.
$r_2\in\reals$ and $r_2 \geq 0$ and $r_2 \rmul r_2 = s_2$ by \cref{positive_square_root}.
$\abs{r_1} = r_1$ and $\abs{r_2} = r_2$ by \cref{real_abs_nonneg}.
$\abs{r_1 \rmul r_2} = r_1 \rmul r_2$ by \cref{real_abs_mul}.
$r_1 \rmul r_2\in\reals$ by \cref{real_mul_closed}.
We have $\abs{r_1 \rmul r_2} \geq 0$ by \cref{real_abs_nonnegative}.
$0 \leq r_1 \rmul r_2$.
$\abs{t}\in\reals$ and $\abs{t} \geq 0$ and $r_1 \rmul r_2\in\reals$
by \cref{real_abs_in_reals,real_abs_nonnegative,real_mul_closed}.
$\abs{t} \leq r_1 \rmul r_2$ iff
$\exp{\abs{t}}{1+1} \leq \exp{r_1 \rmul r_2}{1+1}$ by \cref{real_nonneg_leq_iff_sq_leq}.
$\exp{\abs{t}}{1+1} = t \rmul t$ by \cref{def_of_2,real_abs_square,real_pow_succ,real_pow_one}.
$t \rmul t \leq s_1 \rmul s_2$ by \cref{cauchy_schwarz_finite_sequences}.
$\exp{r_1 \rmul r_2}{1+1} = s_1 \rmul s_2$
by \cref{real_pow_succ,real_pow_one,real_mul_assoc,real_mul_comm}.
Hence $\exp{\abs{t}}{1+1} \leq \exp{r_1 \rmul r_2}{1+1}$ by \cref{real_leq_trans}.
$\abs{t} \leq r_1 \rmul r_2$ by \cref{real_nonneg_leq_iff_sq_leq}.
$t \leq r_1 \rmul r_2$ by \cref{real_leq_abs,real_leq_trans}.
We have $0 < 1 + 1$
by \cref{real_add_ident,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_zero_lt_one,real_lt_add,real_lt_subst_left,real_lt_trans}.
$(1+1) \rmul t \leq (1+1) \rmul (r_1 \rmul r_2)$
by \cref{real_mul_closed,real_add_closed,real_leq_split,real_lt_mul_pos,real_mul_comm,real_lt_subst_left,real_lt_subst_right,real_lt_imp_leq}.
We have $(1+1) \rmul t\in\reals$ and $(1+1) \rmul (r_1 \rmul r_2)\in\reals$ by \cref{real_mul_closed}.
$(1+1) \rmul t + s_1 \leq (1+1) \rmul (r_1 \rmul r_2) + s_1$ by \cref{real_leq_add}.
We have $(1+1) \rmul t + s_1 = s_1 + (1+1) \rmul t$ and
$(1+1) \rmul (r_1 \rmul r_2) + s_1 = s_1 + (1+1) \rmul (r_1 \rmul r_2)$ by \cref{real_add_comm}.
Hence $s_1 + (1+1) \rmul t \leq s_1 + (1+1) \rmul (r_1 \rmul r_2)$ by \cref{real_leq_trans}.
We have $s_1 + (1+1) \rmul t\in\reals$ and $s_1 + (1+1) \rmul (r_1 \rmul r_2)\in\reals$ by \cref{real_add_closed}.
$(s_1 + (1+1) \rmul t) + s_2 \leq (s_1 + (1+1) \rmul (r_1 \rmul r_2)) + s_2$ by \cref{real_leq_add}.
We have $(s_1 + (1+1) \rmul t) + s_2 = s_1 + ((1+1) \rmul t + s_2)$ by \cref{real_add_assoc}.
We have $(1+1) \rmul t + s_2 = s_2 + (1+1) \rmul t$ by \cref{real_add_comm}.
$s_1 + ((1+1) \rmul t + s_2) = s_1 + (s_2 + (1+1) \rmul t)$ by \cref{real_add_eq_subst}.
Hence $s_1 + (s_2 + (1+1) \rmul t) = (s_1 + s_2) + (1+1) \rmul t$ by \cref{real_add_assoc}.
$(s_1 + (1+1) \rmul t) + s_2 = (s_1 + s_2) + (1+1) \rmul t$.
We have $(s_1 + (1+1) \rmul (r_1 \rmul r_2)) + s_2 = s_1 + ((1+1) \rmul (r_1 \rmul r_2) + s_2)$ and
$(1+1) \rmul (r_1 \rmul r_2) + s_2 = s_2 + (1+1) \rmul (r_1 \rmul r_2)$ by \cref{real_add_assoc,real_add_comm}.
$s_1 + ((1+1) \rmul (r_1 \rmul r_2) + s_2) = s_1 + (s_2 + (1+1) \rmul (r_1 \rmul r_2))$ by \cref{real_add_eq_subst}.
Hence $s_1 + (s_2 + (1+1) \rmul (r_1 \rmul r_2)) = (s_1 + s_2) + (1+1) \rmul (r_1 \rmul r_2)$ by \cref{real_add_assoc}.
$(s_1 + (1+1) \rmul (r_1 \rmul r_2)) + s_2 = (s_1 + s_2) + (1+1) \rmul (r_1 \rmul r_2)$.
$(s_1 + s_2) + (1+1) \rmul t \leq (s_1 + s_2) + (1+1) \rmul (r_1 \rmul r_2)$ by \cref{real_leq_trans}.
Hence $s \leq (s_1 + s_2) + (1+1) \rmul (r_1 \rmul r_2)$ by \cref{real_leq_trans}.
We have $r_1 + r_2\in\reals$ by \cref{real_add_closed}.
$(r_1 + r_2) \rmul (r_1 + r_2) =
(r_1 \rmul r_1) + ((1 + 1) \rmul (r_1 \rmul r_2)) + (r_2 \rmul r_2)$ by \cref{real_square_sum_expand}.
We have $r_1 \rmul r_1 = s_1$ and $r_2 \rmul r_2 = s_2$.
Hence $(r_1 + r_2) \rmul (r_1 + r_2) =
s_1 + ((1 + 1) \rmul (r_1 \rmul r_2)) + s_2$ by \cref{real_add_eq_subst}.
$(r_1 + r_2) \rmul (r_1 + r_2) =
s_1 + s_2 + (1 + 1) \rmul (r_1 \rmul r_2)$ by \cref{real_add_assoc,real_add_comm}.
We have $r_1 + r_2\in\reals$ and $0\in\reals$ and $0 \leq r_1$
by \cref{real_add_closed,real_add_ident}.
$0 + r_2 \leq r_1 + r_2$ and $0 + r_2 = r_2$ by \cref{real_leq_add,real_add_ident}.
Hence $r_2 \leq r_1 + r_2$ and $0 \leq r_2$ and $0 \leq r_1 + r_2$ by \cref{real_leq_trans}.
We have $\exp{r}{1+1} = s$ by \cref{real_pow_succ,real_pow_one}.
We have $\exp{r_1 + r_2}{1+1} = s_1 + s_2 + (1 + 1) \rmul (r_1 \rmul r_2)$
by \cref{real_pow_succ,real_pow_one,real_add_eq_subst}.
$\exp{r}{1+1} \leq \exp{r_1 + r_2}{1+1}$ by \cref{real_leq_trans}.
Hence $r \leq r_1 + r_2$ by \cref{real_nonneg_leq_iff_sq_leq}.
$\sqrt{s} \leq \sqrt{s_1} + \sqrt{s_2}$.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Suppose $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Then there exists $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $((x,y),r)\class{latex-symbol-tip latex-symbol-id-in}{\in}\euclideanMetric{n}$.
LaTeX source
\begin{lemma}
\label{euclidean_metric_value_exists}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $x\in\realsPower{J}$.
Suppose $y\in\realsPower{J}$.
Then there exists $r\in\reals$ such that $((x,y),r)\in\euclideanMetric{n}$.
\end{lemma}
Proof
Let $a = \coordSquareSequence{n}{(x,y)}$.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\reals}$ by Lemma 222.
Take $s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{a}{s}$ by Lemma 225.
Claim: For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{a}$ we have $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a(i)$.
Fix $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{a}$.
$i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ by Proposition 359.
$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 Definition 166, Definition 191, Proposition 361.
$x(i) - y(i)\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-leq}{\leq} \exp{x(i) - y(i)}{1+1}$ by Axiom 24, Proposition 461.
$(i,\exp{x(i) - y(i)}{1+1})\class{latex-symbol-tip latex-symbol-id-in}{\in} a$ by Lemma 219.
$a(i) = \exp{x(i) - y(i)}{1+1}$ by Proposition 346, Proposition 359.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a(i)$.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s$ by Lemma 214.
There exists $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $((x,y),r)\class{latex-symbol-tip latex-symbol-id-in}{\in}\euclideanMetric{n}$ by Axiom 53, Definition 195, Proposition 115.
LaTeX source
\begin{proof}
Let $a = \coordSquareSequence{n}{(x,y)}$.
$a\in\funs{J}{\reals}$ by \cref{coord_square_sequence_function}.
Take $s\in\reals$ such that $\sumFiniteSequence{a}{s}$ by \cref{sum_finite_sequence_exists}.
Show that for all $i\in\dom{a}$ we have $0 \leq a(i)$.
\begin{subproof}
Fix $i\in\dom{a}$.
$i\in J$ by \cref{funs_elim}.
$x(i)\in\reals$ and $y(i)\in\reals$
by \cref{reals_power,tuple_power,funs_type_apply}.
$x(i) - y(i)\in\reals$
by \cref{real_add_inverse,real_add_closed,real_sub}.
$0 \leq \exp{x(i) - y(i)}{1+1}$ by \cref{def_of_2,real_sq_nonnegative}.
$(i,\exp{x(i) - y(i)}{1+1})\in a$ by \cref{coord_square_sequence_elem}.
$a(i) = \exp{x(i) - y(i)}{1+1}$ by \cref{funs_elim,function_apply_intro}.
$0 \leq a(i)$.
\end{subproof}
$0 \leq s$ by \cref{sum_finite_sequence_nonneg}.
There exists $r\in\reals$ such that $((x,y),r)\in\euclideanMetric{n}$
by \cref{positive_square_root,times_tuple_intro,euclidean_metric}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Then $\euclideanMetric{n}$ is a function.
LaTeX source
\begin{lemma}
\label{euclidean_metric_function}
Suppose $n\in\naturalsPlus$.
Then $\euclideanMetric{n}$ is a function.
\end{lemma}
Proof
Follows by Axiom 6, Definition 12, Definition 51, Definition 195, Lemma 206.
LaTeX source
\begin{proof}
Follows by \cref{euclidean_metric,relation,rightunique,pair_eq_iff,sum_finite_sequence_unique}.
\end{proof}
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Then $(x - y) + (y - z) = x - z$.
LaTeX source
\begin{lemma}
\label{real_sub_add_chain}
Suppose $x\in\reals$.
Suppose $y\in\reals$.
Suppose $z\in\reals$.
Then $(x - y) + (y - z) = x - z$.
\end{lemma}
Proof
Follows by Axiom 13, Axiom 15, Axiom 16, Axiom 17, Axiom 18, Definition 64, Proposition 437.
LaTeX source
\begin{proof}
Follows by \cref{real_add_inverse,real_sub,real_add_assoc,real_add_closed,real_add_comm,real_add_eq_subst,real_add_ident}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $X = \realsPower{J}$.
Then $\squareMetric{n}$ is a metric on $X$.
LaTeX source
\begin{lemma}
\label{square_metric_is_metric}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $X = \realsPower{J}$.
Then $\squareMetric{n}$ is a metric on $X$.
\end{lemma}
Proof
Let $d = \squareMetric{n}$.
We have $d$ is a function and $X\class{latex-symbol-tip latex-symbol-id-times}{\times} X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{d}$ by Axiom 6, Definition 1, Lemma 211, Lemma 216, Proposition 121, Proposition 200.
$\dom{d}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Axiom 6, Definition 1, Definition 197, Proposition 115, Proposition 199.
Hence $\dom{d} = X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Proposition 3.
For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ we have $d(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 6, Definition 1, Definition 197, Lemma 210, Proposition 199, Proposition 346.
$d\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} X}{\reals}$ by Proposition 358.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$.
$d$ is nonnegative on $X$ by Definition 175.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have if $d((x,y)) = 0$ then $x = y$.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have if $x = y$ then $d((x,y)) = 0$.
$d$ is zero-characterized on $X$ by Definition 176.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) = d((y,x))$.
$d$ is symmetric on $X$ by Definition 177.
Claim: For all $x,y,z$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) + d((y,z)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} d((x,z))$.
Fix $x$.
Fix $y$.
Fix $z$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Take $r_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $((x,y),r_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\abs{x(i) - y(i)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1$ by Lemma 216.
Take $r_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $((y,z),r_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\abs{y(i) - z(i)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_2$ by Lemma 216.
Take $r_3\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $((x,z),r_3)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\abs{x(i) - z(i)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_3$ by Lemma 216.
$r_3\class{latex-symbol-tip latex-symbol-id-in}{\in}\coordDiffSet{n}{x}{z}$ by Axiom 6, Definition 197.
Take $i_0\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $r_3 = \abs{x(i_0) - z(i_0)}$ by Definition 196.
$x(i_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y(i_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $z(i_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\neg{y(i_0)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\neg{z(i_0)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $x(i_0) - y(i_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y(i_0) - z(i_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64, Definition 166, Definition 191, Proposition 361.
$(x(i_0) - y(i_0)) + (y(i_0) - z(i_0)) = x(i_0) - z(i_0)$ by Lemma 249.
$\abs{(x(i_0) - y(i_0)) + (y(i_0) - z(i_0))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \abs{x(i_0) - y(i_0)} + \abs{y(i_0) - z(i_0)}$ by Proposition 493.
Hence $\abs{x(i_0) - z(i_0)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \abs{x(i_0) - y(i_0)} + \abs{y(i_0) - z(i_0)}$.
$r_3 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \abs{x(i_0) - y(i_0)} + \abs{y(i_0) - z(i_0)}$.
$\abs{x(i_0) - y(i_0)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1$.
$\abs{x(i_0) - y(i_0)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\abs{y(i_0) - z(i_0)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Lemma 34.
$\abs{x(i_0) - y(i_0)} + \abs{y(i_0) - z(i_0)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 + \abs{y(i_0) - z(i_0)}$ and $\abs{x(i_0) - y(i_0)} + \abs{y(i_0) - z(i_0)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $r_1 + \abs{y(i_0) - z(i_0)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Lemma 24.
Hence $r_3 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 + \abs{y(i_0) - z(i_0)}$ by Lemma 23.
$\abs{y(i_0) - z(i_0)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_2$.
$r_1 + \abs{y(i_0) - z(i_0)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 + r_2$ by Axiom 16, Lemma 24.
$r_1 + r_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
Hence $d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x,y)) + d((y,z))$ by Lemma 23, Proposition 346.
$d((x,y)) + d((y,z)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} d((x,z))$.
$d$ satisfies the triangle inequality on $X$ by Definition 178.
Hence $d$ is a metric on $X$ by Definition 179.
LaTeX source
\begin{proof}
Let $d = \squareMetric{n}$.
We have $d$ is a function and $X\times X\subseteq\dom{d}$
by \cref{square_metric_function,times_elem_is_tuple,square_metric_value_exists,pair_eq_iff,dom_intro,subseteq}.
$\dom{d}\subseteq X\times X$ by \cref{dom_iff,square_metric,pair_eq_iff,times_tuple_intro,subseteq}.
Hence $\dom{d} = X\times X$ by \cref{subseteq_antisymmetric}.
For all $p\in\dom{d}$ we have $d(p)\in\reals$
by \cref{dom_iff,square_metric,pair_eq_iff,coord_diff_set_finite,subseteq,function_apply_intro}.
$d\in\funs{X\times X}{\reals}$ by \cref{funs_intro}.
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have $d((x,y)) \geq 0$.
\begin{subproof}
Follows by \cref{square_metric_value_exists,square_metric,pair_eq_iff,coord_diff_set,reals_power,tuple_power,funs_type_apply,real_sub,real_add_closed,real_add_inverse,real_abs_nonnegative,function_apply_intro}.
\end{subproof}
$d$ is nonnegative on $X$ by \cref{metric_nonnegative}.
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have if $d((x,y)) = 0$ then $x = y$.
\begin{subproof}
Follows by \cref{square_metric_value_exists,function_apply_intro,reals_power,tuple_power,funs_type_apply,real_sub,real_add_closed,real_add_inverse,real_abs_in_reals,real_abs_nonnegative,real_leq_antisym,real_abs_eq_zero,real_add_cancel,funs_elim,subseteq,fun_subseteq,subseteq_antisymmetric}.
\end{subproof}
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have if $x = y$ then $d((x,y)) = 0$.
\begin{subproof}
Follows by \cref{square_metric_value_exists,coord_diff_set,reals_power,tuple_power,funs_type_apply,real_sub,real_add_inverse,real_add_eq_subst,real_add_ident,real_abs_nonneg,square_metric,pair_eq_iff,function_apply_intro}.
\end{subproof}
$d$ is zero-characterized on $X$ by \cref{metric_zero_characterization}.
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have $d((x,y)) = d((y,x))$.
\begin{subproof}
Follows by \cref{square_metric_value_exists,coord_diff_set,reals_power,tuple_power,funs_type_apply,real_abs_sub_swap,square_metric,pair_eq_iff,real_leq_antisym,function_apply_intro}.
\end{subproof}
$d$ is symmetric on $X$ by \cref{metric_symmetric}.
Show that for all $x,y,z$ such that $x\in X$ and $y\in X$ and $z\in X$ we have
$d((x,y)) + d((y,z)) \geq d((x,z))$.
\begin{subproof}
Fix $x$.
Fix $y$.
Fix $z$ such that $x\in X$ and $y\in X$ and $z\in X$.
Take $r_1\in\reals$ such that $((x,y),r_1)\in d$ and
for all $i\in J$ we have $\abs{x(i) - y(i)} \leq r_1$
by \cref{square_metric_value_exists}.
Take $r_2\in\reals$ such that $((y,z),r_2)\in d$ and
for all $i\in J$ we have $\abs{y(i) - z(i)} \leq r_2$
by \cref{square_metric_value_exists}.
Take $r_3\in\reals$ such that $((x,z),r_3)\in d$ and
for all $i\in J$ we have $\abs{x(i) - z(i)} \leq r_3$
by \cref{square_metric_value_exists}.
$r_3\in\coordDiffSet{n}{x}{z}$ by \cref{square_metric,pair_eq_iff}.
Take $i_0\in J$ such that $r_3 = \abs{x(i_0) - z(i_0)}$ by \cref{coord_diff_set}.
$x(i_0)\in\reals$ and $y(i_0)\in\reals$ and $z(i_0)\in\reals$ and
$\neg{y(i_0)}\in\reals$ and $\neg{z(i_0)}\in\reals$ and
$x(i_0) - y(i_0)\in\reals$ and $y(i_0) - z(i_0)\in\reals$
by \cref{reals_power,tuple_power,funs_type_apply,real_add_inverse,real_sub,real_add_closed}.
$(x(i_0) - y(i_0)) + (y(i_0) - z(i_0)) = x(i_0) - z(i_0)$
by \cref{real_sub_add_chain}.
$\abs{(x(i_0) - y(i_0)) + (y(i_0) - z(i_0))} \leq \abs{x(i_0) - y(i_0)} + \abs{y(i_0) - z(i_0)}$ by \cref{real_triangle_inequality}.
Hence $\abs{x(i_0) - z(i_0)} \leq \abs{x(i_0) - y(i_0)} + \abs{y(i_0) - z(i_0)}$.
$r_3 \leq \abs{x(i_0) - y(i_0)} + \abs{y(i_0) - z(i_0)}$.
$\abs{x(i_0) - y(i_0)} \leq r_1$.
$\abs{x(i_0) - y(i_0)}\in\reals$ and $\abs{y(i_0) - z(i_0)}\in\reals$ by \cref{real_abs_in_reals}.
$\abs{x(i_0) - y(i_0)} + \abs{y(i_0) - z(i_0)} \leq r_1 + \abs{y(i_0) - z(i_0)}$ and
$\abs{x(i_0) - y(i_0)} + \abs{y(i_0) - z(i_0)}\in\reals$ and
$r_1 + \abs{y(i_0) - z(i_0)}\in\reals$ by \cref{real_leq_add,real_add_closed}.
Hence $r_3 \leq r_1 + \abs{y(i_0) - z(i_0)}$ by \cref{real_leq_trans}.
$\abs{y(i_0) - z(i_0)} \leq r_2$.
$r_1 + \abs{y(i_0) - z(i_0)} \leq r_1 + r_2$
by \cref{real_leq_add,real_add_comm}.
$r_1 + r_2\in\reals$ by \cref{real_add_closed}.
Hence $d((x,z)) \leq d((x,y)) + d((y,z))$ by \cref{real_leq_trans,function_apply_intro}.
$d((x,y)) + d((y,z)) \geq d((x,z))$.
\end{subproof}
$d$ satisfies the triangle inequality on $X$ by \cref{metric_triangle_inequality}.
Hence $d$ is a metric on $X$ by \cref{metric_on}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Suppose $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Let $a = \coordDiffSequence{n}{x}{y}$.
Then $\coordSquareSequenceMul{n}{a} = \coordSquareSequence{n}{(x,y)}$.
LaTeX source
\begin{lemma}
\label{coord_square_sequence_diff}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $x\in\realsPower{J}$.
Suppose $y\in\realsPower{J}$.
Let $a = \coordDiffSequence{n}{x}{y}$.
Then $\coordSquareSequenceMul{n}{a} = \coordSquareSequence{n}{(x,y)}$.
\end{lemma}
Proof
Follows by Axiom 1 [Set extensionality], Axiom 10, Axiom 11, Axiom 13, Axiom 18, Axiom 42, Axiom 49, Axiom 50, Definition 64, Definition 166, Definition 191, Definition 194, Definition 200, Definition 201, Lemma 229, Proposition 346, Proposition 359, Proposition 361.
LaTeX source
\begin{proof}
Follows by \cref{setext,coord_square_sequence_mul,coord_diff_sequence_function,funs_elim,coord_diff_sequence,function_apply_intro,reals_power,tuple_power,funs_type_apply,real_add_inverse,real_add_closed,real_sub,real_one_in_naturals,real_pow_succ,real_pow_one,coord_square_sequence,fst_eq,snd_eq}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Suppose $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Suppose $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}$.
Let $a = \coordDiffSequence{n}{x}{y}$.
Let $b = \coordDiffSequence{n}{y}{z}$.
Let $c = \coordSumSequence{n}{a}{b}$.
Then $c = \coordDiffSequence{n}{x}{z}$.
LaTeX source
\begin{lemma}
\label{coord_diff_sequence_sum}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Suppose $x\in\realsPower{J}$.
Suppose $y\in\realsPower{J}$.
Suppose $z\in\realsPower{J}$.
Let $a = \coordDiffSequence{n}{x}{y}$.
Let $b = \coordDiffSequence{n}{y}{z}$.
Let $c = \coordSumSequence{n}{a}{b}$.
Then $c = \coordDiffSequence{n}{x}{z}$.
\end{lemma}
Proof
Follows by Axiom 1 [Set extensionality], Definition 166, Definition 191, Definition 198, Definition 201, Lemma 229, Lemma 249, Proposition 346, Proposition 359, Proposition 361.
LaTeX source
\begin{proof}
Follows by \cref{setext,coord_sum_sequence,coord_diff_sequence,coord_diff_sequence_function,funs_elim,function_apply_intro,reals_power,tuple_power,funs_type_apply,real_sub_add_chain}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $X = \realsPower{J}$.
Then $\euclideanMetric{n}$ is a metric on $X$.
LaTeX source
\begin{theorem}
\label{euclidean_metric_is_metric}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $X = \realsPower{J}$.
Then $\euclideanMetric{n}$ is a metric on $X$.
\end{theorem}
Proof
Let $d = \euclideanMetric{n}$.
We have $d$ is a function and $X\class{latex-symbol-tip latex-symbol-id-times}{\times} X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{d}$ by Axiom 6, Definition 1, Lemma 247, Lemma 248, Proposition 121, Proposition 200.
$\dom{d}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Axiom 6, Definition 1, Definition 195, Proposition 115, Proposition 121, Proposition 199.
Thus $\dom{d} = X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Proposition 3.
For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ we have $d(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 6, Definition 195, Proposition 199, Proposition 346.
$d\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} X}{\reals}$ by Proposition 358.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$.
Follows by Axiom 6, Axiom 53, Definition 195, Lemma 229, Lemma 244, Lemma 247, Lemma 251, Proposition 346.
$d$ is nonnegative on $X$ by Definition 175.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have if $d((x,y)) = 0$ then $x = y$.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have if $x = y$ then $d((x,y)) = 0$.
$d$ is zero-characterized on $X$ by Definition 176.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) = d((y,x))$.
Fix $x$.
Fix $y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Take $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $((x,y),r)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Lemma 247.
Take $s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $((y,x),s)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Lemma 247.
Take $s_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{\coordSquareSequence{n}{(x,y)}}{s_1}$ and $r = \sqrt{s_1}$ by Axiom 6, Definition 195.
Take $s_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{\coordSquareSequence{n}{(y,x)}}{s_2}$ and $s = \sqrt{s_2}$ by Axiom 6, Definition 195.
Let $A = \coordSquareSequence{n}{(x,y)}$.
Let $B = \coordSquareSequence{n}{(y,x)}$.
Claim: $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B$.
It suffices to show that every element of $A$ is an element of $B$.
Fix $w\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Take $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $w = (i,\exp{x(i) - y(i)}{1+1})$ by Axiom 10, Axiom 11, Definition 194.
$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 Definition 166, Definition 191, Proposition 361.
$x(i) - y(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y(i) - x(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64.
$\abs{x(i) - y(i)} = \abs{y(i) - x(i)}$ by Proposition 482.
$\exp{\abs{x(i) - y(i)}}{1+1} = \exp{x(i) - y(i)}{1+1}$ and $\exp{\abs{y(i) - x(i)}}{1+1} = \exp{y(i) - x(i)}{1+1}$ by Axiom 24, Proposition 485.
$\exp{x(i) - y(i)}{1+1} = \exp{y(i) - x(i)}{1+1}$.
$w = (i,\exp{y(i) - x(i)}{1+1})$.
$w\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Axiom 10, Axiom 11, Definition 194.
Claim: $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$.
It suffices to show that every element of $B$ is an element of $A$.
Fix $w\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Take $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $w = (i,\exp{y(i) - x(i)}{1+1})$ by Axiom 10, Axiom 11, Definition 194.
$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 Definition 166, Definition 191, Proposition 361.
$x(i) - y(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y(i) - x(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64.
$\abs{x(i) - y(i)} = \abs{y(i) - x(i)}$ by Proposition 482.
$\exp{\abs{x(i) - y(i)}}{1+1} = \exp{x(i) - y(i)}{1+1}$ and $\exp{\abs{y(i) - x(i)}}{1+1} = \exp{y(i) - x(i)}{1+1}$ by Axiom 24, Proposition 485.
$\exp{y(i) - x(i)}{1+1} = \exp{x(i) - y(i)}{1+1}$.
$w = (i,\exp{x(i) - y(i)}{1+1})$.
$w\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 10, Axiom 11, Definition 194.
$\coordSquareSequence{n}{(x,y)} = \coordSquareSequence{n}{(y,x)}$ by Proposition 3.
$d((x,y)) = d((y,x))$ by Lemma 206, Proposition 346.
$d$ is symmetric on $X$ by Definition 177.
Claim: For all $x,y,z$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) + d((y,z)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} d((x,z))$.
Fix $x$.
Fix $y$.
Fix $z$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Take $r_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $((x,y),r_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Lemma 247.
Take $r_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $((y,z),r_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Lemma 247.
Take $r_3\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $((x,z),r_3)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Lemma 247.
Take $s_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{\coordSquareSequence{n}{(x,y)}}{s_1}$ and $r_1 = \sqrt{s_1}$ by Axiom 6, Definition 195.
Take $s_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{\coordSquareSequence{n}{(y,z)}}{s_2}$ and $r_2 = \sqrt{s_2}$ by Axiom 6, Definition 195.
Take $s_3\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{\coordSquareSequence{n}{(x,z)}}{s_3}$ and $r_3 = \sqrt{s_3}$ by Axiom 6, Definition 195.
Let $a = \coordDiffSequence{n}{x}{y}$.
Let $b = \coordDiffSequence{n}{y}{z}$.
Let $c = \coordSumSequence{n}{a}{b}$.
$\sqrt{s_3} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \sqrt{s_1} + \sqrt{s_2}$ by Lemma 226, Lemma 229, Lemma 246, Lemma 251, Lemma 252.
$d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x,y)) + d((y,z))$ by Proposition 346.
Hence $d((x,y)) + d((y,z)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} d((x,z))$.
$d$ satisfies the triangle inequality on $X$ by Definition 178.
Hence $d$ is a metric on $X$ by Definition 179.
LaTeX source
\begin{proof}
Let $d = \euclideanMetric{n}$.
We have $d$ is a function and $X\times X\subseteq\dom{d}$
by \cref{euclidean_metric_function,times_elem_is_tuple,euclidean_metric_value_exists,pair_eq_iff,dom_intro,subseteq}.
$\dom{d}\subseteq X\times X$
by \cref{dom_iff,euclidean_metric,pair_eq_iff,times_elem_is_tuple,times_tuple_intro,subseteq}.
Thus $\dom{d} = X\times X$ by \cref{subseteq_antisymmetric}.
For all $p\in\dom{d}$ we have $d(p)\in\reals$
by \cref{dom_iff,euclidean_metric,pair_eq_iff,function_apply_intro}.
$d\in\funs{X\times X}{\reals}$ by \cref{funs_intro}.
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have $d((x,y)) \geq 0$.
\begin{subproof}
Follows by
\cref{euclidean_metric_value_exists,euclidean_metric,pair_eq_iff,coord_square_sequence_diff,coord_diff_sequence_function,sum_finite_sequence_square_nonneg,positive_square_root,function_apply_intro}.
\end{subproof}
$d$ is nonnegative on $X$ by \cref{metric_nonnegative}.
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have if $d((x,y)) = 0$ then $x = y$.
\begin{subproof}
Follows by \cref{euclidean_metric_value_exists,function_apply_intro,square_metric_value_exists,euclidean_square_metric_bounds,square_metric_is_metric,metric_on,metric_nonnegative,funs_elim,real_leq_antisym,metric_zero_characterization,real_add_ident,real_zero_lt_one,real_lt_imp_leq,real_one_leq_naturalsplus,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_leq_trans,positive_square_root,real_mul_comm,real_mul_zero}.
\end{subproof}
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have if $x = y$ then $d((x,y)) = 0$.
\begin{subproof}
Follows by \cref{euclidean_metric_value_exists,function_apply_intro,square_metric_value_exists,euclidean_square_metric_bounds,square_metric_is_metric,metric_on,metric_nonnegative,funs_elim,real_leq_antisym,metric_zero_characterization,real_add_ident,real_zero_lt_one,real_lt_imp_leq,real_one_leq_naturalsplus,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_leq_trans,positive_square_root,real_mul_comm,real_mul_zero}.
\end{subproof}
$d$ is zero-characterized on $X$ by \cref{metric_zero_characterization}.
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have $d((x,y)) = d((y,x))$.
\begin{subproof}
Fix $x$.
Fix $y$ such that $x\in X$ and $y\in X$.
Take $r\in\reals$ such that $((x,y),r)\in d$ by \cref{euclidean_metric_value_exists}.
Take $s\in\reals$ such that $((y,x),s)\in d$ by \cref{euclidean_metric_value_exists}.
Take $s_1\in\reals$ such that
$\sumFiniteSequence{\coordSquareSequence{n}{(x,y)}}{s_1}$ and $r = \sqrt{s_1}$
by \cref{euclidean_metric,pair_eq_iff}.
Take $s_2\in\reals$ such that
$\sumFiniteSequence{\coordSquareSequence{n}{(y,x)}}{s_2}$ and $s = \sqrt{s_2}$
by \cref{euclidean_metric,pair_eq_iff}.
Let $A = \coordSquareSequence{n}{(x,y)}$.
Let $B = \coordSquareSequence{n}{(y,x)}$.
Show that $A\subseteq B$.
\begin{subproof}
It suffices to show that every element of $A$ is an element of $B$.
Fix $w\in A$.
Take $i\in J$ such that
$w = (i,\exp{x(i) - y(i)}{1+1})$
by \cref{coord_square_sequence,fst_eq,snd_eq}.
$x(i)\in\reals$ and $y(i)\in\reals$
by \cref{reals_power,tuple_power,funs_type_apply}.
$x(i) - y(i)\in\reals$ and $y(i) - x(i)\in\reals$
by \cref{real_add_inverse,real_add_closed,real_sub}.
$\abs{x(i) - y(i)} = \abs{y(i) - x(i)}$
by \cref{real_abs_sub_swap}.
$\exp{\abs{x(i) - y(i)}}{1+1} = \exp{x(i) - y(i)}{1+1}$ and
$\exp{\abs{y(i) - x(i)}}{1+1} = \exp{y(i) - x(i)}{1+1}$
by \cref{def_of_2,real_abs_square}.
$\exp{x(i) - y(i)}{1+1} = \exp{y(i) - x(i)}{1+1}$.
$w = (i,\exp{y(i) - x(i)}{1+1})$.
$w\in B$ by \cref{coord_square_sequence,fst_eq,snd_eq}.
\end{subproof}
Show that $B\subseteq A$.
\begin{subproof}
It suffices to show that every element of $B$ is an element of $A$.
Fix $w\in B$.
Take $i\in J$ such that
$w = (i,\exp{y(i) - x(i)}{1+1})$
by \cref{coord_square_sequence,fst_eq,snd_eq}.
$x(i)\in\reals$ and $y(i)\in\reals$
by \cref{reals_power,tuple_power,funs_type_apply}.
$x(i) - y(i)\in\reals$ and $y(i) - x(i)\in\reals$
by \cref{real_add_inverse,real_add_closed,real_sub}.
$\abs{x(i) - y(i)} = \abs{y(i) - x(i)}$
by \cref{real_abs_sub_swap}.
$\exp{\abs{x(i) - y(i)}}{1+1} = \exp{x(i) - y(i)}{1+1}$ and
$\exp{\abs{y(i) - x(i)}}{1+1} = \exp{y(i) - x(i)}{1+1}$
by \cref{def_of_2,real_abs_square}.
$\exp{y(i) - x(i)}{1+1} = \exp{x(i) - y(i)}{1+1}$.
$w = (i,\exp{x(i) - y(i)}{1+1})$.
$w\in A$ by \cref{coord_square_sequence,fst_eq,snd_eq}.
\end{subproof}
$\coordSquareSequence{n}{(x,y)} = \coordSquareSequence{n}{(y,x)}$
by \cref{subseteq_antisymmetric}.
$d((x,y)) = d((y,x))$ by \cref{sum_finite_sequence_unique,function_apply_intro}.
\end{subproof}
$d$ is symmetric on $X$ by \cref{metric_symmetric}.
Show that for all $x,y,z$ such that $x\in X$ and $y\in X$ and $z\in X$ we have
$d((x,y)) + d((y,z)) \geq d((x,z))$.
\begin{subproof}
Fix $x$.
Fix $y$.
Fix $z$ such that $x\in X$ and $y\in X$ and $z\in X$.
Take $r_1\in\reals$ such that $((x,y),r_1)\in d$ by \cref{euclidean_metric_value_exists}.
Take $r_2\in\reals$ such that $((y,z),r_2)\in d$ by \cref{euclidean_metric_value_exists}.
Take $r_3\in\reals$ such that $((x,z),r_3)\in d$ by \cref{euclidean_metric_value_exists}.
Take $s_1\in\reals$ such that
$\sumFiniteSequence{\coordSquareSequence{n}{(x,y)}}{s_1}$ and $r_1 = \sqrt{s_1}$
by \cref{euclidean_metric,pair_eq_iff}.
Take $s_2\in\reals$ such that
$\sumFiniteSequence{\coordSquareSequence{n}{(y,z)}}{s_2}$ and $r_2 = \sqrt{s_2}$
by \cref{euclidean_metric,pair_eq_iff}.
Take $s_3\in\reals$ such that
$\sumFiniteSequence{\coordSquareSequence{n}{(x,z)}}{s_3}$ and $r_3 = \sqrt{s_3}$
by \cref{euclidean_metric,pair_eq_iff}.
Let $a = \coordDiffSequence{n}{x}{y}$.
Let $b = \coordDiffSequence{n}{y}{z}$.
Let $c = \coordSumSequence{n}{a}{b}$.
$\sqrt{s_3} \leq \sqrt{s_1} + \sqrt{s_2}$
by \cref{coord_diff_sequence_function,coord_sum_sequence_function,coord_square_sequence_diff,coord_diff_sequence_sum,minkowski_finite_sequences}.
$d((x,z)) \leq d((x,y)) + d((y,z))$ by \cref{function_apply_intro}.
Hence $d((x,y)) + d((y,z)) \geq d((x,z))$.
\end{subproof}
$d$ satisfies the triangle inequality on $X$ by \cref{metric_triangle_inequality}.
Hence $d$ is a metric on $X$ by \cref{metric_on}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $X = \{(i,\reals) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in} J\}$.
Let $T = \{(i,\standardTopologyR) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in} J\}$.
Let $T_0 = \productTopologyIndexed{T}{X}$.
Then $\metricTopology{\euclideanMetric{n}}{\realsPower{J}} = T_0$.
LaTeX source
\begin{theorem}
\label{euclidean_metric_product_topology}
Suppose $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $X = \{(i,\reals) \mid i\in J\}$.
Let $T = \{(i,\standardTopologyR) \mid i\in J\}$.
Let $T_0 = \productTopologyIndexed{T}{X}$.
Then $\metricTopology{\euclideanMetric{n}}{\realsPower{J}} = T_0$.
\end{theorem}
Proof
Let $X_0 = \realsPower{J}$.
Let $d = \euclideanMetric{n}$.
Let $d_1 = \squareMetric{n}$.
Let $T_E = \metricTopology{d}{X_0}$.
Let $T_S = \metricTopology{d_1}{X_0}$.
We have $J$ is inhabited by Axiom 42, Axiom 43, Definition 84.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exist $x,y$ such that $w = (x,y)$.
For all $i,y_1,y_2$ such that $(i,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $(i,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $y_1 = y_2$.
$X$ is a function by Definition 12, Definition 51.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ there exist $x,y$ such that $w = (x,y)$.
For all $i,y_1,y_2$ such that $(i,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ and $(i,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ we have $y_1 = y_2$.
$T$ is a function by Definition 12, Definition 51.
We have $J\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{X}$ by Definition 1, Proposition 200.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ we have $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
$\dom{X}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} J$ by Definition 1.
Hence $\dom{X} = J$ by Proposition 3.
We have $J\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{T}$ by Definition 1, Proposition 200.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{T}$ we have $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
$\dom{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} J$ by Definition 1.
Thus $\dom{T} = J$ by Proposition 3.
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}}$ by Definition 1, Definition 118, Lemma 76, Lemma 93, Proposition 346.
Let $S_0 = \productSubbasis{T}{X}$.
Let $B_0 = \finiteIntersections{S_0}$.
$B_0$ is a basis for $T_0$ on $\productFamily{X}$ by Lemma 177.
$B_0$ is a basis for $T_0$ on $X_0$ by Lemma 209.
$d$ is a metric on $X_0$ and $d_1$ is a metric on $X_0$ by Lemma 250, Theorem 23.
Let $B_S = \metricBasis{d_1}{X_0}$.
$B_S$ is a basis for $T_S$ on $X_0$ by Definition 115, Definition 182, Lemma 194.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ we have 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 $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\metricBall{d}{X_0}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \metricBall{d_1}{X_0}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$.
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 $\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}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X_0}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d_1}{X_0}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Axiom 36, Definition 180, Lemma 81, Lemma 82, Lemma 83, Lemma 211, Lemma 216, Lemma 220, Lemma 247, Lemma 248, Proposition 346.
$\metricBall{d}{X_0}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \metricBall{d_1}{X_0}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 1.
$T_E$ is finer than $T_S$ on $X_0$ by Lemma 207.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ we have 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 $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\metricBall{d_1}{X_0}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \metricBall{d}{X_0}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$.
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}$.
$0 < 1$ and $0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $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 17, Axiom 41, Axiom 42, Definition 1, Proposition 462.
$0 < n$ by Axiom 36, Axiom 43, Lemma 83.
We have $\sqrt{n}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\sqrt{n} \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$ and $\sqrt{n} \rmul \sqrt{n} = n$ by Axiom 53.
Hence $\sqrt{n}$ is positive.
Let $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} \rmul \inv{\sqrt{n}}$.
$\sqrt{n} \class{latex-symbol-tip latex-symbol-id-neq}{\neq} 0$ by Lemma 20.
$\inv{\sqrt{n}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\inv{\sqrt{n}} > 0$ by Axiom 22, Proposition 463.
$\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} \rmul \inv{\sqrt{n}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} > 0$ by Proposition 454.
Claim: For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d_1}{X_0}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X_0}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d_1}{X_0}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $d_1((x,y)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 180.
Take $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $((x,y),m)\class{latex-symbol-tip latex-symbol-id-in}{\in} d_1$ by Lemma 216.
Take $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $((x,y),r)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Lemma 247.
$m < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 82, Lemma 211, Proposition 346.
$r \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \sqrt{n} \rmul m$ by Lemma 220.
Hence $\sqrt{n} \rmul m < \sqrt{n} \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 20, Axiom 38.
$\sqrt{n} \rmul m < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 19, Axiom 20, Axiom 21, Axiom 22, Lemma 83.
Hence $d((x,y)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 14, Axiom 36, Lemma 81, Lemma 82, Lemma 248, Proposition 346.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X_0}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 180.
$\metricBall{d_1}{X_0}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \metricBall{d}{X_0}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 1.
$T_S$ is finer than $T_E$ on $X_0$ by Lemma 207.
Hence $T_S\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_E$ and $T_E\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_S$ by Definition 108.
$T_E = T_S$ by Proposition 3.
Claim: For all $x,B_2$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B_S$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ there exists $B_3\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ and $B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$.
Fix $x$.
Fix $B_2$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B_S$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$.
Take $x_0,\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $\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}$ and $B_2 = \metricBall{d_1}{X_0}{x_0}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 181.
Let $R_g = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} J\class{latex-symbol-tip latex-symbol-id-times}{\times}\pow{\productFamily{X}} \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} i\class{latex-symbol-tip latex-symbol-id-in}{\in} J. w = (i,\preimg{\piIndex{X}{i}}{\intervalopen{x_0(i) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}{x_0(i) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}})\}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} R_g$ there exist $i,A$ such that $w = (i,A)$.
$R_g$ is a relation by Definition 12.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\preimg{\piIndex{X}{i}}{\intervalopen{x_0(i) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}{x_0(i) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\productFamily{X}}$ by Axiom 6, Definition 1, Definition 170, Proposition 155, Proposition 246.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ there exists $A$ such that $i\mathrel{R_g} A$ by Proposition 115.
Take $g$ such that $g$ is a function on $J$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $i\mathrel{R_g}\apply{g}{i}$ by Axiom 54.
Let $F = \img{g}{J}$.
$F$ is finite by Lemma 192, Lemma 208.
Take $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
$\apply{g}{i}\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Proposition 235, Proposition 348.
Hence $F\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2, Proposition 235, Proposition 348.
Claim: For all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $A\class{latex-symbol-tip latex-symbol-id-in}{\in} S_0$.
Fix $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
Take $j\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $(j,A)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ by Proposition 235.
$j\mathrel{R_g}\apply{g}{j}$.
Take $i_0\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $(j,\apply{g}{j}) = (i_0,\preimg{\piIndex{X}{i_0}}{\intervalopen{x_0(i_0) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}{x_0(i_0) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}})$.
$A = \preimg{\piIndex{X}{j}}{\intervalopen{x_0(j) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}{x_0(j) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}}$ by Axiom 6, Proposition 346.
We have $x_0(j)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 191, Proposition 361.
We have $x_0(j) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $x_0(j) + \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.
$0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ and $0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17, Proposition 462.
$x_0(j) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} < x_0(j)$ by Lemma 27.
$x_0(j) < x_0(j) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 16, Axiom 17, Axiom 37.
Hence $x_0(j) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} < x_0(j) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 36.
$\intervalopen{x_0(j) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}{x_0(j) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\standardTopologyR$ by Definition 117, Definition 118, Lemma 77, Lemma 87, Lemma 93, Proposition 155.
Let $U = \intervalopen{x_0(j) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}{x_0(j) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
$U\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{T}{j}$ by Proposition 346.
$A\class{latex-symbol-tip latex-symbol-id-in}{\in}\productSubbasisAt{T}{X}{j}$ by Axiom 6, Definition 1, Definition 170, Definition 171, Proposition 155, Proposition 246.
Hence $A\class{latex-symbol-tip latex-symbol-id-in}{\in} S_0$ by Definition 172.
$F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} S_0$ by Definition 1.
Claim: For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{F}$.
Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$.
We have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $d_1((x_0,y)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 180.
Take $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $((x_0,y),m)\class{latex-symbol-tip latex-symbol-id-in}{\in} d_1$ and for all $j\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\abs{x_0(j) - y(j)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ by Lemma 216.
$m < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 82, Lemma 211, Proposition 346.
Claim: For all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Fix $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
Take $j\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $(j,A)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ by Proposition 235.
$j\mathrel{R_g}\apply{g}{j}$.
Take $i_0\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $(j,\apply{g}{j}) = (i_0,\preimg{\piIndex{X}{i_0}}{\intervalopen{x_0(i_0) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}{x_0(i_0) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}})$.
$A = \preimg{\piIndex{X}{j}}{\intervalopen{x_0(j) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}{x_0(j) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}}$ by Axiom 6, Proposition 346.
We have $(y,\apply{y}{j})\class{latex-symbol-tip latex-symbol-id-in}{\in}\piIndex{X}{j}$ by Definition 1, Definition 170, Lemma 209.
We have $x_0(j)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\apply{y}{j}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 191, Proposition 361.
$x_0(j) - \apply{y}{j}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64.
We have $\abs{x_0(j) - \apply{y}{j}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Lemma 34.
We have $\abs{x_0(j) - \apply{y}{j}} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$.
$\abs{x_0(j) - \apply{y}{j}} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 36, Lemma 81, Lemma 82.
Hence $x_0(j) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} < \apply{y}{j}$ and $\apply{y}{j} < x_0(j) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 221.
$\apply{y}{j}\class{latex-symbol-tip latex-symbol-id-in}{\in}\intervalopen{x_0(j) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}{x_0(j) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 76.
Thus $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 246.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{F}$ by Proposition 30.
$B_2\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\inters{F}$ by Definition 1.
Claim: For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{F}$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$.
Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{F}$.
Take $j$ such that $j\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
$\apply{g}{j}\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Proposition 235, Proposition 348.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{g}{j}$ by Proposition 30.
Hence $j\mathrel{R_g}\apply{g}{j}$.
Take $i_0\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $(j,\apply{g}{j}) = (i_0,\preimg{\piIndex{X}{i_0}}{\intervalopen{x_0(i_0) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}{x_0(i_0) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}})$.
We have $\apply{g}{j} = \preimg{\piIndex{X}{j}}{\intervalopen{x_0(j) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}{x_0(j) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}}$ by Axiom 6.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in}\preimg{\piIndex{X}{j}}{\intervalopen{x_0(j) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}{x_0(j) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}}$.
Take $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\intervalopen{x_0(j) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}{x_0(j) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ such that $y\mathrel{\piIndex{X}{j}} z$ by Proposition 246.
We have $(y,z)\class{latex-symbol-tip latex-symbol-id-in}{\in}\piIndex{X}{j}$.
Take $y_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{X}$ such that $(y,z) = (y_0,\apply{y_0}{j})$ by Definition 170.
$y = y_0$ by Axiom 6.
Thus $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ by Definition 1, Lemma 209.
Take $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $((x_0,y),m)\class{latex-symbol-tip latex-symbol-id-in}{\in} d_1$ and for all $j\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\abs{x_0(j) - y(j)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ by Lemma 216.
Claim: For all $t\class{latex-symbol-tip latex-symbol-id-in}{\in}\coordDiffSet{n}{x_0}{y}$ we have $t < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $t$ such that $t\class{latex-symbol-tip latex-symbol-id-in}{\in}\coordDiffSet{n}{x_0}{y}$.
Take $k\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $t = \abs{x_0(k) - y(k)}$ by Definition 196.
We have $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{g}{k}$ by Proposition 30, Proposition 235, Proposition 348.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in}\preimg{\piIndex{X}{k}}{\intervalopen{x_0(k) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}{x_0(k) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}}$ by Axiom 6, Proposition 346.
Take $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\intervalopen{x_0(k) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}{x_0(k) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ such that $y\mathrel{\piIndex{X}{k}} u$ by Proposition 246.
We have $(y,u)\class{latex-symbol-tip latex-symbol-id-in}{\in}\piIndex{X}{k}$.
Take $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{X}$ such that $(y,u) = (y_1,\apply{y_1}{k})$ by Definition 170.
$y = y_1$ and $u = \apply{y}{k}$ by Axiom 6.
Hence $x_0(k) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} < y(k)$ and $y(k) < x_0(k) + \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 76.
$\abs{x_0(k) - y(k)} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 166, Definition 191, Lemma 212, Proposition 361.
Thus $t < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
$d_1((x_0,y)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 6, Definition 197, Lemma 82, Lemma 211, Proposition 346.
Hence $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ by Definition 180.
$\inters{F}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$ by Definition 1.
Hence $B_2 = \inters{F}$ by Proposition 3.
$B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ by Axiom 4, Definition 1, Definition 125, Proposition 30, Proposition 155.
Thus $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ and $B_2\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$.
$T_0$ is finer than $T_S$ on $X_0$ by Lemma 80.
Claim: For all $x,B_2$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ there exists $B_3\class{latex-symbol-tip latex-symbol-id-in}{\in} B_S$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ and $B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$.
Fix $x$.
Fix $B_2$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$.
Take $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} S_0$ such that $F$ is finite and inhabited and $B_2 = \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}\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.\class{latex-symbol-tip latex-symbol-id-exists}{\exists} U\class{latex-symbol-tip latex-symbol-id-in}{\in}\standardTopologyR. \fst{w} = \preimg{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{U} \class{latex-symbol-tip latex-symbol-id-land}{\land} \apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in} U \class{latex-symbol-tip latex-symbol-id-land}{\land} 0 < \snd{w} \class{latex-symbol-tip latex-symbol-id-land}{\land} \metricBall{\standardMetricR}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{\snd{w}} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U\}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ there exist $y,z$ such that $w = (y,z)$.
$R$ is a relation by Definition 12.
Claim: For all $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $A\mathrel{R}\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 30.
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 1, Definition 172.
Take $U\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}}}{U}$ by Definition 171.
$\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ by Definition 1.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\preimg{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{U}$.
Take $z\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ such that $x\mathrel{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}} z$ by Proposition 246.
We have $(x,z)\class{latex-symbol-tip latex-symbol-id-in}{\in}\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}$.
Take $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{X}$ such that $(x,z) = (x_1,\apply{x_1}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}})$ by Definition 170.
$z = \apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}$ by Axiom 6.
$\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
$U\class{latex-symbol-tip latex-symbol-id-in}{\in}\standardTopologyR$ by Proposition 346.
$\standardBasisR$ is a basis on $\reals$ by Lemma 93.
We have $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Axiom 12, Definition 1, Definition 101, Definition 118, Lemma 76.
$U\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricTopology{\standardMetricR}{\reals}$ by Lemma 200.
$\standardMetricR$ is a metric on $\reals$ by Lemma 198.
$U$ is open in $\reals$ with respect to $\metricTopology{\standardMetricR}{\reals}$ by Definition 103, Definition 182, Lemma 76, Lemma 194.
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{\standardMetricR}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Lemma 195.
Hence $A\mathrel{R}\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 6, Axiom 10, Axiom 11, Proposition 115.
Take $e$ such that $e$ 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{e}{A}$ by Axiom 54.
$e$ is a function and $\dom{e} = F$.
Let $E = \img{e}{F}$.
$E$ is finite by Lemma 192.
Take $A_0$ such that $A_0\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
$\apply{e}{A_0}\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ by Proposition 235, Proposition 348.
Hence $E\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2, Proposition 235, Proposition 348.
Claim: For all $t$ such that $t\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ we have $t\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < t$.
Fix $t$ such that $t\class{latex-symbol-tip latex-symbol-id-in}{\in} E$.
Take $A_1$ such that $A_1\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $(A_1,t)\class{latex-symbol-tip latex-symbol-id-in}{\in} e$ by Proposition 235.
$t = \apply{e}{A_1}$ by Definition 1, Proposition 349.
Hence $A_1\mathrel{R}t$ by Definition 1.
$t\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < t$.
$E\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1.
Take $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ such that $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ is a minimum of $E$ by Lemma 49.
$\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}$ by Definition 1.
Let $B_3 = \metricBall{d_1}{X_0}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$.
$B_3\class{latex-symbol-tip latex-symbol-id-in}{\in} B_S$ by Definition 1, Definition 180, Definition 181, Proposition 155.
Claim: For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$.
Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$.
We have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $d_1((x,y)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 180.
Take $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $((x,y),m)\class{latex-symbol-tip latex-symbol-id-in}{\in} d_1$ and for all $j\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\abs{x(j) - y(j)} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ by Lemma 216.
$m < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 82, Lemma 211, Proposition 346.
Claim: For all $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Fix $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
$(A,\apply{e}{A})\class{latex-symbol-tip latex-symbol-id-in}{\in} R$.
Let $w = (A,\apply{e}{A})$.
We have $w\class{latex-symbol-tip latex-symbol-id-in}{\in} R$.
Take $\class{latex-symbol-tip latex-symbol-id-beta}{\beta},U$ such that $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ and $U\class{latex-symbol-tip latex-symbol-id-in}{\in}\standardTopologyR$ and $\fst{w} = \preimg{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{U}$ and $\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $0 < \snd{w}$ and $\metricBall{\standardMetricR}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{\snd{w}} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.
$\fst{w} = A$ and $\snd{w} = \apply{e}{A}$ by Axiom 10, Axiom 11.
$A = \preimg{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{U}$.
$0 < \apply{e}{A}$.
$\metricBall{\standardMetricR}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{\apply{e}{A}} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.
$\apply{e}{A}\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ by Proposition 235, Proposition 348.
$\apply{e}{A}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1.
Hence $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \apply{e}{A}$ by Definition 74, Proposition 235, Proposition 348.
$m < \apply{e}{A}$ by Axiom 36, Lemma 81, Lemma 83.
We have $x(\class{latex-symbol-tip latex-symbol-id-beta}{\beta})\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\apply{y}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 191, Proposition 361.
We have $\abs{x(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}) - \apply{y}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64, Definition 166, Definition 191, Lemma 34, Proposition 361.
$\abs{x(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}) - \apply{y}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$.
Hence $\abs{x(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}) - \apply{y}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}} < \apply{e}{A}$ by Axiom 36, Lemma 82.
$\apply{\standardMetricR}{(\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}},\apply{y}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}})} < \apply{e}{A}$ by Lemma 82, Lemma 199.
$\apply{y}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{\standardMetricR}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{\apply{e}{A}}$ by Definition 180.
$\apply{y}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 1.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in}\preimg{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{U}$ by Definition 1, Definition 170, Definition 180, Lemma 209, Proposition 246.
Thus $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{F}$ by Proposition 30.
Hence $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ by Proposition 3.
$B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$ by Definition 1.
Thus $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ and $B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$ by Definition 176, Definition 179, Definition 180.
$T_S$ is finer than $T_0$ on $X_0$ by Lemma 80.
Hence $T_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_S$ and $T_S\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_0$ by Definition 108.
$T_S = T_0$ by Proposition 3.
Hence $T_E = T_0$.
LaTeX source
\begin{proof}
Let $X_0 = \realsPower{J}$.
Let $d = \euclideanMetric{n}$.
Let $d_1 = \squareMetric{n}$.
Let $T_E = \metricTopology{d}{X_0}$.
Let $T_S = \metricTopology{d_1}{X_0}$.
We have $J$ is inhabited by \cref{real_one_in_naturals,real_one_leq_naturalsplus,initial_segment_naturalsplus}.
For all $w$ such that $w\in X$ there exist $x,y$ such that $w = (x,y)$.
For all $i,y_1,y_2$ such that $(i,y_1)\in X$ and $(i,y_2)\in X$ we have $y_1 = y_2$.
$X$ is a function by \cref{relation,rightunique}.
For all $w$ such that $w\in T$ there exist $x,y$ such that $w = (x,y)$.
For all $i,y_1,y_2$ such that $(i,y_1)\in T$ and $(i,y_2)\in T$ we have $y_1 = y_2$.
$T$ is a function by \cref{relation,rightunique}.
We have $J\subseteq\dom{X}$ by \cref{dom_intro,subseteq}.
For all $i$ such that $i\in\dom{X}$ we have $i\in J$.
$\dom{X}\subseteq J$ by \cref{subseteq}.
Hence $\dom{X} = J$ by \cref{subseteq_antisymmetric}.
We have $J\subseteq\dom{T}$ by \cref{dom_intro,subseteq}.
For all $i$ such that $i\in\dom{T}$ we have $i\in J$.
$\dom{T}\subseteq J$ by \cref{subseteq}.
Thus $\dom{T} = J$ by \cref{subseteq_antisymmetric}.
For all $\alpha\in\dom{X}$ we have $\apply{T}{\alpha}$ is a topology on $\apply{X}{\alpha}$
by \cref{subseteq,function_apply_intro,standard_basis_is_basis,basis_topology_is_topology,standard_topology_reals}.
Let $S_0 = \productSubbasis{T}{X}$.
Let $B_0 = \finiteIntersections{S_0}$.
$B_0$ is a basis for $T_0$ on $\productFamily{X}$ by \cref{product_subbasis_finite_intersections_basis}.
$B_0$ is a basis for $T_0$ on $X_0$ by \cref{product_family_reals_power}.
$d$ is a metric on $X_0$ and $d_1$ is a metric on $X_0$ by \cref{euclidean_metric_is_metric,square_metric_is_metric}.
Let $B_S = \metricBasis{d_1}{X_0}$.
$B_S$ is a basis for $T_S$ on $X_0$
by \cref{metric_basis_is_basis,basis_for_topology,metric_topology}.
Show that for all $x\in X_0$ we have
for all $\epsilon\in\reals$ such that $0 < \epsilon$ there exists $\delta\in\reals$
such that $0 < \delta$ and
$\metricBall{d}{X_0}{x}{\delta} \subseteq \metricBall{d_1}{X_0}{x}{\epsilon}$.
\begin{subproof}
Fix $x$ such that $x\in X_0$.
Fix $\epsilon$ such that $\epsilon\in\reals$ and $0 < \epsilon$.
Let $\delta = \epsilon$.
$\delta\in\reals$ and $0 < \delta$.
For all $y$ such that $y\in\metricBall{d}{X_0}{x}{\delta}$ we have $y\in\metricBall{d_1}{X_0}{x}{\epsilon}$
by \cref{metric_ball,euclidean_metric_value_exists,square_metric_value_exists,euclidean_metric_function,square_metric_function,function_apply_intro,real_lt_subst_left,real_lt_subst_right,euclidean_square_metric_bounds,real_leq_split,real_lt_trans}.
$\metricBall{d}{X_0}{x}{\delta} \subseteq \metricBall{d_1}{X_0}{x}{\epsilon}$ by \cref{subseteq}.
\end{subproof}
$T_E$ is finer than $T_S$ on $X_0$ by \cref{metric_topology_finer_iff}.
Show that for all $x\in X_0$ we have
for all $\epsilon\in\reals$ such that $0 < \epsilon$ there exists $\delta\in\reals$
such that $0 < \delta$ and
$\metricBall{d_1}{X_0}{x}{\delta} \subseteq \metricBall{d}{X_0}{x}{\epsilon}$.
\begin{subproof}
Fix $x$ such that $x\in X_0$.
Fix $\epsilon$ such that $\epsilon\in\reals$ and $0 < \epsilon$.
$0 < 1$ and $0\in\reals$ and $1\in\reals$ and $n\in\reals$
by \cref{real_zero_lt_one,real_add_ident,real_naturals_subset_reals,real_one_in_naturals,subseteq}.
$0 < n$ by \cref{real_one_leq_naturalsplus,real_lt_subst_right,real_lt_trans}.
We have $\sqrt{n}\in\reals$ and $\sqrt{n} \geq 0$ and $\sqrt{n} \rmul \sqrt{n} = n$ by \cref{positive_square_root}.
Hence $\sqrt{n}$ is positive.
Let $\delta = \epsilon \rmul \inv{\sqrt{n}}$.
$\sqrt{n} \neq 0$ by \cref{real_pos_nonzero}.
$\inv{\sqrt{n}}\in\reals$ and $\inv{\sqrt{n}} > 0$ by \cref{real_mul_inverse,real_inv_pos}.
$\epsilon \rmul \inv{\sqrt{n}}\in\reals$ by \cref{real_mul_closed}.
$\delta > 0$ by \cref{real_mul_pos_pos_gt}.
Show that for all $y$ such that $y\in\metricBall{d_1}{X_0}{x}{\delta}$ we have $y\in\metricBall{d}{X_0}{x}{\epsilon}$.
\begin{subproof}
Fix $y$ such that $y\in\metricBall{d_1}{X_0}{x}{\delta}$.
$y\in X_0$ and $d_1((x,y)) < \delta$ by \cref{metric_ball}.
Take $m\in\reals$ such that $((x,y),m)\in d_1$ by \cref{square_metric_value_exists}.
Take $r\in\reals$ such that $((x,y),r)\in d$ by \cref{euclidean_metric_value_exists}.
$m < \delta$ by \cref{square_metric_function,function_apply_intro,real_lt_subst_left}.
$r \leq \sqrt{n} \rmul m$ by \cref{euclidean_square_metric_bounds}.
Hence $\sqrt{n} \rmul m < \sqrt{n} \rmul \delta$ by \cref{real_lt_mul_pos,real_mul_comm}.
$\sqrt{n} \rmul m < \epsilon$ by
\cref{real_lt_subst_right,real_mul_assoc,real_mul_comm,real_mul_inverse,real_mul_ident}.
Hence $d((x,y)) < \epsilon$ by
\cref{euclidean_metric_function,real_mul_closed,real_leq_split,real_lt_subst_left,real_lt_trans,function_apply_intro}.
$y\in\metricBall{d}{X_0}{x}{\epsilon}$ by \cref{metric_ball}.
\end{subproof}
$\metricBall{d_1}{X_0}{x}{\delta} \subseteq \metricBall{d}{X_0}{x}{\epsilon}$ by \cref{subseteq}.
\end{subproof}
$T_S$ is finer than $T_E$ on $X_0$ by \cref{metric_topology_finer_iff}.
Hence $T_S\subseteq T_E$ and $T_E\subseteq T_S$ by \cref{finer_topology}.
$T_E = T_S$ by \cref{subseteq_antisymmetric}.
Show that for all $x,B_2$ such that $x\in X_0$ and $B_2\in B_S$ and $x\in B_2$
there exists $B_3\in B_0$ such that $x\in B_3$ and $B_3\subseteq B_2$.
\begin{subproof}
Fix $x$.
Fix $B_2$ such that $x\in X_0$ and $B_2\in B_S$ and $x\in B_2$.
Take $x_0,\epsilon$ such that $x_0\in X_0$ and $\epsilon\in\reals$ and $0 < \epsilon$ and
$B_2 = \metricBall{d_1}{X_0}{x_0}{\epsilon}$ by \cref{metric_basis}.
Let $R_g = \{w\in J\times\pow{\productFamily{X}} \mid \exists i\in J.
w = (i,\preimg{\piIndex{X}{i}}{\intervalopen{x_0(i) - \epsilon}{x_0(i) + \epsilon}})\}$.
For all $w$ such that $w\in R_g$ there exist $i,A$ such that $w = (i,A)$.
$R_g$ is a relation by \cref{relation}.
For all $i\in J$ we have
$\preimg{\piIndex{X}{i}}{\intervalopen{x_0(i) - \epsilon}{x_0(i) + \epsilon}}\in\pow{\productFamily{X}}$
by \cref{preimg_iff,projection_map_indexed,pair_eq_iff,subseteq,powerset_intro}.
For all $i\in J$ there exists $A$ such that $i\mathrel{R_g} A$
by \cref{times_tuple_intro}.
Take $g$ such that $g$ is a function on $J$ and for all $i\in J$ we have $i\mathrel{R_g}\apply{g}{i}$
by \cref{axiom_of_choice}.
Let $F = \img{g}{J}$.
$F$ is finite by \cref{initial_segment_finite,finite_image_function}.
Take $i$ such that $i\in J$.
$\apply{g}{i}\in F$ by \cref{function_apply_elim,img_iff}.
Hence $F\neq\emptyset$ by \cref{function_apply_elim,img_iff,emptyset}.
Show that for all $A$ such that $A\in F$ we have $A\in S_0$.
\begin{subproof}
Fix $A$ such that $A\in F$.
Take $j\in J$ such that $(j,A)\in g$ by \cref{img_iff}.
$j\mathrel{R_g}\apply{g}{j}$.
Take $i_0\in J$ such that
$(j,\apply{g}{j}) = (i_0,\preimg{\piIndex{X}{i_0}}{\intervalopen{x_0(i_0) - \epsilon}{x_0(i_0) + \epsilon}})$.
$A = \preimg{\piIndex{X}{j}}{\intervalopen{x_0(j) - \epsilon}{x_0(j) + \epsilon}}$
by \cref{function_apply_intro,pair_eq_iff}.
We have $x_0(j)\in\reals$ by \cref{reals_power,tuple_power,funs_type_apply}.
We have $x_0(j) - \epsilon\in\reals$ and $x_0(j) + \epsilon\in\reals$
by \cref{real_add_inverse,real_sub,real_add_closed}.
$0 < \epsilon$ and $0\in\reals$ by \cref{real_zero_lt_one,real_add_ident}.
$x_0(j) - \epsilon < x_0(j)$ by \cref{real_sub_pos_lt}.
$x_0(j) < x_0(j) + \epsilon$ by \cref{real_lt_add,real_add_comm,real_add_ident}.
Hence $x_0(j) - \epsilon < x_0(j) + \epsilon$ by \cref{real_lt_trans}.
$\intervalopen{x_0(j) - \epsilon}{x_0(j) + \epsilon}\in\standardTopologyR$
by \cref{intervalopen_subset_reals,powerset_intro,standard_basis_reals,basis_elem_open_in_generated,standard_basis_is_basis,standard_topology_reals}.
Let $U = \intervalopen{x_0(j) - \epsilon}{x_0(j) + \epsilon}$.
$U\in\apply{T}{j}$ by \cref{function_apply_intro}.
$A\in\productSubbasisAt{T}{X}{j}$
by \cref{preimg_iff,projection_map_indexed,pair_eq_iff,subseteq,powerset_intro,product_subbasis_indexed}.
Hence $A\in S_0$ by \cref{product_subbasis_union_indexed}.
\end{subproof}
$F\subseteq S_0$ by \cref{subseteq}.
Show that for all $y$ such that $y\in B_2$ we have $y\in\inters{F}$.
\begin{subproof}
Fix $y$ such that $y\in B_2$.
We have $y\in X_0$ and $d_1((x_0,y)) < \epsilon$ by \cref{metric_ball}.
Take $m\in\reals$ such that $((x_0,y),m)\in d_1$ and
for all $j\in J$ we have $\abs{x_0(j) - y(j)} \leq m$ by \cref{square_metric_value_exists}.
$m < \epsilon$ by \cref{square_metric_function,function_apply_intro,real_lt_subst_left}.
Show that for all $A$ such that $A\in F$ we have $y\in A$.
\begin{subproof}
Fix $A$ such that $A\in F$.
Take $j\in J$ such that $(j,A)\in g$ by \cref{img_iff}.
$j\mathrel{R_g}\apply{g}{j}$.
Take $i_0\in J$ such that
$(j,\apply{g}{j}) = (i_0,\preimg{\piIndex{X}{i_0}}{\intervalopen{x_0(i_0) - \epsilon}{x_0(i_0) + \epsilon}})$.
$A = \preimg{\piIndex{X}{j}}{\intervalopen{x_0(j) - \epsilon}{x_0(j) + \epsilon}}$
by \cref{function_apply_intro,pair_eq_iff}.
We have $(y,\apply{y}{j})\in\piIndex{X}{j}$ by
\cref{product_family_reals_power,subseteq,projection_map_indexed}.
We have $x_0(j)\in\reals$ and $\apply{y}{j}\in\reals$
by \cref{reals_power,tuple_power,funs_type_apply}.
$x_0(j) - \apply{y}{j}\in\reals$
by \cref{real_add_inverse,real_sub,real_add_closed}.
We have $\abs{x_0(j) - \apply{y}{j}}\in\reals$ by \cref{real_abs_in_reals}.
We have $\abs{x_0(j) - \apply{y}{j}} \leq m$.
$\abs{x_0(j) - \apply{y}{j}} < \epsilon$ by \cref{real_leq_split,real_lt_subst_left,real_lt_trans}.
Hence $x_0(j) - \epsilon < \apply{y}{j}$ and $\apply{y}{j} < x_0(j) + \epsilon$
by \cref{real_interval_from_abs_lt}.
$\apply{y}{j}\in\intervalopen{x_0(j) - \epsilon}{x_0(j) + \epsilon}$ by \cref{intervalopen}.
Thus $y\in A$ by \cref{preimg_iff}.
\end{subproof}
$y\in\inters{F}$ by \cref{inters_iff_forall}.
\end{subproof}
$B_2\subseteq\inters{F}$ by \cref{subseteq}.
Show that for all $y$ such that $y\in\inters{F}$ we have $y\in B_2$.
\begin{subproof}
Fix $y$ such that $y\in\inters{F}$.
Take $j$ such that $j\in J$.
$\apply{g}{j}\in F$ by \cref{function_apply_elim,img_iff}.
$y\in\apply{g}{j}$ by \cref{inters_iff_forall}.
Hence $j\mathrel{R_g}\apply{g}{j}$.
Take $i_0\in J$ such that
$(j,\apply{g}{j}) = (i_0,\preimg{\piIndex{X}{i_0}}{\intervalopen{x_0(i_0) - \epsilon}{x_0(i_0) + \epsilon}})$.
We have $\apply{g}{j} = \preimg{\piIndex{X}{j}}{\intervalopen{x_0(j) - \epsilon}{x_0(j) + \epsilon}}$ by \cref{pair_eq_iff}.
$y\in\preimg{\piIndex{X}{j}}{\intervalopen{x_0(j) - \epsilon}{x_0(j) + \epsilon}}$.
Take $z\in\intervalopen{x_0(j) - \epsilon}{x_0(j) + \epsilon}$ such that
$y\mathrel{\piIndex{X}{j}} z$ by \cref{preimg_iff}.
We have $(y,z)\in\piIndex{X}{j}$.
Take $y_0\in\productFamily{X}$ such that $(y,z) = (y_0,\apply{y_0}{j})$ by \cref{projection_map_indexed}.
$y = y_0$ by \cref{pair_eq_iff}.
Thus $y\in X_0$ by \cref{product_family_reals_power,subseteq}.
Take $m\in\reals$ such that $((x_0,y),m)\in d_1$ and
for all $j\in J$ we have $\abs{x_0(j) - y(j)} \leq m$ by \cref{square_metric_value_exists}.
Show that for all $t\in\coordDiffSet{n}{x_0}{y}$ we have $t < \epsilon$.
\begin{subproof}
Fix $t$ such that $t\in\coordDiffSet{n}{x_0}{y}$.
Take $k\in J$ such that $t = \abs{x_0(k) - y(k)}$ by \cref{coord_diff_set}.
We have $y\in\apply{g}{k}$ by \cref{function_apply_elim,img_iff,inters_iff_forall}.
$y\in\preimg{\piIndex{X}{k}}{\intervalopen{x_0(k) - \epsilon}{x_0(k) + \epsilon}}$
by \cref{function_apply_intro,pair_eq_iff}.
Take $u\in\intervalopen{x_0(k) - \epsilon}{x_0(k) + \epsilon}$ such that
$y\mathrel{\piIndex{X}{k}} u$ by \cref{preimg_iff}.
We have $(y,u)\in\piIndex{X}{k}$.
Take $y_1\in\productFamily{X}$ such that $(y,u) = (y_1,\apply{y_1}{k})$ by \cref{projection_map_indexed}.
$y = y_1$ and $u = \apply{y}{k}$ by \cref{pair_eq_iff}.
Hence $x_0(k) - \epsilon < y(k)$ and $y(k) < x_0(k) + \epsilon$ by \cref{intervalopen}.
$\abs{x_0(k) - y(k)} < \epsilon$
by \cref{reals_power,tuple_power,funs_type_apply,real_abs_lt_from_interval}.
Thus $t < \epsilon$.
\end{subproof}
$d_1((x_0,y)) < \epsilon$ by
\cref{square_metric,pair_eq_iff,square_metric_function,function_apply_intro,real_lt_subst_left}.
Hence $y\in B_2$ by \cref{metric_ball}.
\end{subproof}
$\inters{F}\subseteq B_2$ by \cref{subseteq}.
Hence $B_2 = \inters{F}$ by \cref{subseteq_antisymmetric}.
$B_2\in B_0$
by \cref{inters_iff_forall,unions_iff,subseteq,powerset_intro,finite_intersections}.
Thus $x\in B_2$ and $B_2\subseteq B_2$.
\end{subproof}
$T_0$ is finer than $T_S$ on $X_0$ by \cref{basis_finer_criterion}.
Show that for all $x,B_2$ such that $x\in X_0$ and $B_2\in B_0$ and $x\in B_2$
there exists $B_3\in B_S$ such that $x\in B_3$ and $B_3\subseteq B_2$.
\begin{subproof}
Fix $x$.
Fix $B_2$ such that $x\in X_0$ and $B_2\in B_0$ and $x\in B_2$.
Take $F\subseteq S_0$ such that $F$ is finite and inhabited and $B_2 = \inters{F}$ by \cref{finite_intersections}.
Let $R = \{w\in F\times\reals \mid \exists \beta\in J.\exists U\in\standardTopologyR.
\fst{w} = \preimg{\piIndex{X}{\beta}}{U} \land \apply{x}{\beta}\in U \land
0 < \snd{w} \land \metricBall{\standardMetricR}{\reals}{\apply{x}{\beta}}{\snd{w}} \subseteq U\}$.
For all $w$ such that $w\in R$ there exist $y,z$ such that $w = (y,z)$.
$R$ is a relation by \cref{relation}.
Show that for all $A\in F$ there exists $\epsilon\in\reals$ such that $A\mathrel{R}\epsilon$.
\begin{subproof}
Fix $A$ such that $A\in F$.
$x\in A$ by \cref{inters_iff_forall}.
Take $\beta\in\dom{X}$ such that $A\in\productSubbasisAt{T}{X}{\beta}$
by \cref{subseteq,product_subbasis_union_indexed}.
Take $U\in\apply{T}{\beta}$ such that $A = \preimg{\piIndex{X}{\beta}}{U}$ by \cref{product_subbasis_indexed}.
$\beta\in J$ by \cref{subseteq}.
$x\in\preimg{\piIndex{X}{\beta}}{U}$.
Take $z\in U$ such that $x\mathrel{\piIndex{X}{\beta}} z$ by \cref{preimg_iff}.
We have $(x,z)\in\piIndex{X}{\beta}$.
Take $x_1\in\productFamily{X}$ such that $(x,z) = (x_1,\apply{x_1}{\beta})$ by \cref{projection_map_indexed}.
$z = \apply{x}{\beta}$ by \cref{pair_eq_iff}.
$\apply{x}{\beta}\in U$.
$U\in\standardTopologyR$ by \cref{function_apply_intro}.
$\standardBasisR$ is a basis on $\reals$ by \cref{standard_basis_is_basis}.
We have $U\subseteq\reals$
by \cref{basis_topology_is_topology,standard_topology_reals,topology_on,subseteq,pow_iff}.
$U\in\metricTopology{\standardMetricR}{\reals}$ by \cref{standard_metric_topology}.
$\standardMetricR$ is a metric on $\reals$ by \cref{standard_metric_is_metric}.
$U$ is open in $\reals$ with respect to $\metricTopology{\standardMetricR}{\reals}$ by \cref{open_in,basis_topology_is_topology,metric_basis_is_basis,metric_topology}.
Take $\epsilon\in\reals$ such that $0 < \epsilon$ and
$\metricBall{\standardMetricR}{\reals}{\apply{x}{\beta}}{\epsilon}\subseteq U$
by \cref{metric_open_iff}.
Hence $A\mathrel{R}\epsilon$ by
\cref{times_tuple_intro,fst_eq,snd_eq,pair_eq_iff}.
\end{subproof}
Take $e$ such that $e$ is a function on $F$ and for all $A\in F$ we have $A\mathrel{R}\apply{e}{A}$
by \cref{axiom_of_choice}.
$e$ is a function and $\dom{e} = F$.
Let $E = \img{e}{F}$.
$E$ is finite by \cref{finite_image_function}.
Take $A_0$ such that $A_0\in F$.
$\apply{e}{A_0}\in E$ by \cref{function_apply_elim,img_iff}.
Hence $E\neq\emptyset$ by \cref{function_apply_elim,img_iff,emptyset}.
Show that for all $t$ such that $t\in E$ we have $t\in\reals$ and $0 < t$.
\begin{subproof}
Fix $t$ such that $t\in E$.
Take $A_1$ such that $A_1\in F$ and $(A_1,t)\in e$ by \cref{img_iff}.
$t = \apply{e}{A_1}$ by \cref{subseteq,function_apply_iff}.
Hence $A_1\mathrel{R}t$ by \cref{subseteq}.
$t\in\reals$ and $0 < t$.
\end{subproof}
$E\subseteq\reals$ by \cref{subseteq}.
Take $\delta\in E$ such that $\delta$ is a minimum of $E$ by \cref{finite_real_minimum}.
$\delta\in\reals$ and $0 < \delta$ by \cref{subseteq}.
Let $B_3 = \metricBall{d_1}{X_0}{x}{\delta}$.
$B_3\in B_S$ by \cref{metric_ball,subseteq,powerset_intro,metric_basis}.
Show that for all $y$ such that $y\in B_3$ we have $y\in B_2$.
\begin{subproof}
Fix $y$ such that $y\in B_3$.
We have $y\in X_0$ and $d_1((x,y)) < \delta$ by \cref{metric_ball}.
Take $m\in\reals$ such that $((x,y),m)\in d_1$ and
for all $j\in J$ we have $\abs{x(j) - y(j)} \leq m$ by \cref{square_metric_value_exists}.
$m < \delta$ by \cref{square_metric_function,function_apply_intro,real_lt_subst_left}.
Show that for all $A\in F$ we have $y\in A$.
\begin{subproof}
Fix $A$ such that $A\in F$.
$(A,\apply{e}{A})\in R$.
Let $w = (A,\apply{e}{A})$.
We have $w\in R$.
Take $\beta,U$ such that $\beta\in J$ and $U\in\standardTopologyR$ and
$\fst{w} = \preimg{\piIndex{X}{\beta}}{U}$ and $\apply{x}{\beta}\in U$ and
$0 < \snd{w}$ and
$\metricBall{\standardMetricR}{\reals}{\apply{x}{\beta}}{\snd{w}} \subseteq U$.
$\fst{w} = A$ and $\snd{w} = \apply{e}{A}$ by \cref{fst_eq,snd_eq}.
$A = \preimg{\piIndex{X}{\beta}}{U}$.
$0 < \apply{e}{A}$.
$\metricBall{\standardMetricR}{\reals}{\apply{x}{\beta}}{\apply{e}{A}} \subseteq U$.
$\apply{e}{A}\in E$ by \cref{function_apply_elim,img_iff}.
$\apply{e}{A}\in\reals$ by \cref{subseteq}.
Hence $\delta \leq \apply{e}{A}$ by \cref{function_apply_elim,img_iff,real_minimum}.
$m < \apply{e}{A}$ by \cref{real_leq_split,real_lt_trans,real_lt_subst_right}.
We have $x(\beta)\in\reals$ and $\apply{y}{\beta}\in\reals$
by \cref{reals_power,tuple_power,funs_type_apply}.
We have $\abs{x(\beta) - \apply{y}{\beta}}\in\reals$
by \cref{reals_power,tuple_power,funs_type_apply,real_sub,real_add_inverse,real_add_closed,real_abs_in_reals}.
$\abs{x(\beta) - \apply{y}{\beta}} \leq m$.
Hence $\abs{x(\beta) - \apply{y}{\beta}} < \apply{e}{A}$ by \cref{real_lt_subst_left,real_lt_trans}.
$\apply{\standardMetricR}{(\apply{x}{\beta},\apply{y}{\beta})} < \apply{e}{A}$
by \cref{standard_metric_apply,real_lt_subst_left}.
$\apply{y}{\beta}\in\metricBall{\standardMetricR}{\reals}{\apply{x}{\beta}}{\apply{e}{A}}$ by \cref{metric_ball}.
$\apply{y}{\beta}\in U$ by \cref{subseteq}.
$y\in\preimg{\piIndex{X}{\beta}}{U}$ by
\cref{metric_ball,product_family_reals_power,subseteq,projection_map_indexed,preimg_iff}.
Thus $y\in A$.
\end{subproof}
$y\in\inters{F}$ by \cref{inters_iff_forall}.
Hence $y\in B_2$ by \cref{subseteq_antisymmetric}.
\end{subproof}
$B_3\subseteq B_2$ by \cref{subseteq}.
Thus $x\in B_3$ and $B_3\subseteq B_2$ by \cref{metric_ball,metric_zero_characterization,metric_on}.
\end{subproof}
$T_S$ is finer than $T_0$ on $X_0$ by \cref{basis_finer_criterion}.
Hence $T_0\subseteq T_S$ and $T_S\subseteq T_0$ by \cref{finer_topology}.
$T_S = T_0$ by \cref{subseteq_antisymmetric}.
Hence $T_E = T_0$.
\end{proof}
$\uniformMetricSet{J}{x}{y} = \{\apply{\boundedMetric{\standardMetricR}}{(x(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),y(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))} \mid \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J\}$.
LaTeX source
\begin{definition}
\label{uniform_metric_set}
$\uniformMetricSet{J}{x}{y} = \{\apply{\boundedMetric{\standardMetricR}}{(x(\alpha),y(\alpha))} \mid \alpha\in J\}$.
\end{definition}
$\realSupremum{p}{A}$ iff $p$ is a supremum of $A$.
LaTeX source
\begin{definition}
\label{real_supremum_pred}
$\realSupremum{p}{A}$ iff $p$ is a supremum of $A$.
\end{definition}
$\uniformMetric{J} = \{w \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} p\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}\class{latex-symbol-tip latex-symbol-id-times}{\times}\realsPower{J}. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} x\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} y\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{J}. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals. w = (p,r) \class{latex-symbol-tip latex-symbol-id-land}{\land} p = (x,y) \class{latex-symbol-tip latex-symbol-id-land}{\land} \realSupremum{r}{\uniformMetricSet{J}{x}{y}}\}$.
LaTeX source
\begin{definition}
\label{uniform_metric}
$\uniformMetric{J} = \{w \mid \exists p\in\realsPower{J}\times\realsPower{J}.
\exists x\in\realsPower{J}. \exists y\in\realsPower{J}. \exists r\in\reals.
w = (p,r) \land p = (x,y) \land
\realSupremum{r}{\uniformMetricSet{J}{x}{y}}\}$.
\end{definition}
$\uniformTopology{J} = \metricTopology{\uniformMetric{J}}{\realsPower{J}}$.
LaTeX source
\begin{definition}
\label{uniform_topology}
$\uniformTopology{J} = \metricTopology{\uniformMetric{J}}{\realsPower{J}}$.
\end{definition}
Suppose $J$ is inhabited.
Let $X = \realsPower{J}$.
Then $\uniformMetric{J}$ is a metric on $X$.
LaTeX source
\begin{lemma}
\label{uniform_metric_is_metric}
Suppose $J$ is inhabited.
Let $X = \realsPower{J}$.
Then $\uniformMetric{J}$ is a metric on $X$.
\end{lemma}
Proof
Let $d = \uniformMetric{J}$.
Let $e = \boundedMetric{\standardMetricR}$.
$\standardMetricR$ is a metric on $\reals$ by Lemma 198.
$e$ is a metric on $\reals$ and $e\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, Theorem 21.
Claim: $d\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} X}{\reals}$.
Claim: For all $p,z_1,z_2$ such that $(p,z_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ and $(p,z_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ we have $z_1 = z_2$.
Fix $p$.
Fix $z_1$.
Fix $z_2$ such that $(p,z_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ and $(p,z_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$.
Take $p_1,x_1,y_1,r_1$ such that $p_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $r_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $(p,z_1) = (p_1,r_1)$ and $p_1 = (x_1,y_1)$ and $\realSupremum{r_1}{\uniformMetricSet{J}{x_1}{y_1}}$ by Definition 205.
Take $p_2,x_2,y_2,r_2$ such that $p_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $r_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $(p,z_2) = (p_2,r_2)$ and $p_2 = (x_2,y_2)$ and $\realSupremum{r_2}{\uniformMetricSet{J}{x_2}{y_2}}$ by Definition 205.
$p = p_1$ and $z_1 = r_1$ and $p = p_2$ and $z_2 = r_2$ by Axiom 6.
$p_1 = p_2$.
$(x_1,y_1) = (x_2,y_2)$ by Axiom 6.
We have $x_1 = x_2$ and $y_1 = y_2$ by Axiom 6.
$\uniformMetricSet{J}{x_1}{y_1} = \uniformMetricSet{J}{x_2}{y_2}$.
Hence $r_1 = r_2$ by Definition 204, Proposition 467.
$z_1 = z_2$.
$d$ is a function by Definition 12, Definition 51, Definition 205.
Claim: For all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ we have $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$.
Fix $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$.
Take $x,y$ such that $p = (x,y)$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Proposition 121.
Take $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}$ such that $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
Let $A = \uniformMetricSet{J}{x}{y}$.
For all $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 179, Definition 191, Definition 203, Proposition 115, Proposition 361.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1.
$A\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2, Definition 203.
For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ by Definition 166, Definition 191, Definition 203, Lemma 82, Lemma 83, Lemma 201, Proposition 115, Proposition 361.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
$1$ is an upper bound of $A$ by Definition 66.
$A$ is bounded above by Definition 67.
Take $r$ such that $r$ is a supremum of $A$ by Axiom 40.
We have $(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Proposition 115.
$r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 66, Definition 71.
$((x,y),r)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Definition 204, Definition 205.
Hence $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ by Axiom 6, Proposition 200.
$X\class{latex-symbol-tip latex-symbol-id-times}{\times} X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{d}$ by Definition 1.
For all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ we have $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Axiom 6, Definition 205, Proposition 199.
$\dom{d}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Definition 1.
Thus $\dom{d} = X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Proposition 3.
For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ we have $d(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 6, Definition 205, Lemma 82, Proposition 199, Proposition 349.
$d\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} X}{\reals}$ by Proposition 358.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$.
Fix $x$.
Fix $y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Take $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}$ such that $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
Let $r = d((x,y))$.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ by Proposition 115, Proposition 359.
$((x,y),r)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Proposition 348, Proposition 359.
Take $p_0,x_0,y_0,r_0$ such that $p_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $r_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((x,y),r) = (p_0,r_0)$ and $p_0 = (x_0,y_0)$ and $\realSupremum{r_0}{\uniformMetricSet{J}{x_0}{y_0}}$ by Definition 205.
$p_0 = (x,y)$ and $r = r_0$ by Axiom 6.
$r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
We have $x_0 = x$ and $y_0 = y$ by Axiom 6.
Let $a = \apply{e}{(x(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}),y(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}))}$.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r$ by Definition 66, Definition 71, Definition 203, Definition 204.
$x(\class{latex-symbol-tip latex-symbol-id-beta}{\beta})\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y(\class{latex-symbol-tip latex-symbol-id-beta}{\beta})\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 191, Proposition 361.
$(x(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}),y(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ by Proposition 115.
We have $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a$ by Definition 175, Definition 179, Proposition 361.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r$ by Axiom 17, Lemma 23.
Hence $d((x,y)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$.
$d$ is nonnegative on $X$ by Definition 175.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have if $d((x,y)) = 0$ then $x = y$.
Fix $x$.
Fix $y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Assume $d((x,y)) = 0$.
Let $r = d((x,y))$.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ by Proposition 115, Proposition 359.
$((x,y),r)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Proposition 348, Proposition 359.
Take $p_0,x_0,y_0,r_0$ such that $p_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $r_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((x,y),r) = (p_0,r_0)$ and $p_0 = (x_0,y_0)$ and $\realSupremum{r_0}{\uniformMetricSet{J}{x_0}{y_0}}$ by Definition 205.
$p_0 = (x,y)$ and $r = r_0$ by Axiom 6.
We have $x_0 = x$ and $y_0 = y$ by Axiom 6.
Claim: For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $x(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}) = y(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})$.
Fix $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ such that $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
Let $a = \apply{e}{(x(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),y(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))}$.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r$ by Definition 66, Definition 71, Definition 203, Definition 204.
$x(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 191, Proposition 361.
$(x(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),y(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ by Proposition 115.
We have $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a$ by Definition 175, Definition 179, Proposition 361.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 0$ by Definition 66, Definition 71, Definition 204, Lemma 82, Lemma 83.
Hence $a = 0$ by Axiom 17, Lemma 25, Lemma 83.
$x(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}) = y(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})$ by Definition 176, Definition 179.
$\dom{x} = J$ and $\dom{y} = J$ by Definition 166, Definition 191, Proposition 359.
$\dom{x}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{y}$ and $\dom{y}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{x}$ by Proposition 2.
$x\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} y$ and $y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} x$ by Definition 1, Definition 166, Definition 191, Proposition 350, Proposition 359.
Hence $x = y$ by Proposition 3.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have if $x = y$ then $d((x,y)) = 0$.
Fix $x$.
Fix $y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Assume $x = y$.
Let $A = \uniformMetricSet{J}{x}{y}$.
For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 0$ by Definition 166, Definition 176, Definition 179, Definition 191, Definition 203, Lemma 82, Proposition 115, Proposition 361.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17.
For all $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 179, Definition 191, Definition 203, Proposition 115, Proposition 361.
We have $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ and $0$ is an upper bound of $A$ by Axiom 17, Definition 1, Definition 66.
Claim: For all $b$ such that $b$ is an upper bound of $A$ we have $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b$.
Fix $b$.
Assume $b$ is an upper bound of $A$.
Take $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}$ such that $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
Let $a = \apply{e}{(x(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}),y(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}))}$.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b$ by Definition 66, Definition 203.
$x(\class{latex-symbol-tip latex-symbol-id-beta}{\beta})\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y(\class{latex-symbol-tip latex-symbol-id-beta}{\beta})\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 191, Proposition 361.
$(x(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}),y(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ by Proposition 115.
$a = 0$ by Definition 176, Definition 179.
Hence $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b$ by Lemma 82.
$0$ is a supremum of $A$ by Definition 71.
$((x,y),0)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Axiom 6, Axiom 17, Definition 204, Definition 205, Proposition 115.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ by Proposition 200.
Hence $d((x,y)) = 0$ by Proposition 349, Proposition 359.
$d$ is zero-characterized on $X$ by Definition 176.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) = d((y,x))$.
Fix $x$.
Fix $y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $A_1 = \uniformMetricSet{J}{x}{y}$.
Let $A_2 = \uniformMetricSet{J}{y}{x}$.
For all $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A_1$ we have $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A_2$ by Definition 166, Definition 177, Definition 179, Definition 191, Definition 203, Proposition 115, Proposition 361.
$A_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A_2$ by Definition 1.
For all $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A_2$ we have $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A_1$ by Definition 166, Definition 177, Definition 179, Definition 191, Definition 203, Proposition 115, Proposition 361.
$A_2\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A_1$ by Definition 1.
Hence $A_1 = A_2$ by Proposition 3.
Let $r_1 = d((x,y))$.
Let $r_2 = d((y,x))$.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ and $(y,x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ by Proposition 115, Proposition 359.
$((x,y),r_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ and $((y,x),r_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Proposition 348, Proposition 359.
Take $p_1,x_1,y_1,s_1$ such that $p_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $s_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((x,y),r_1) = (p_1,s_1)$ and $p_1 = (x_1,y_1)$ and $\realSupremum{s_1}{\uniformMetricSet{J}{x_1}{y_1}}$ by Definition 205.
Take $p_2,x_2,y_2,s_2$ such that $p_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $s_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((y,x),r_2) = (p_2,s_2)$ and $p_2 = (x_2,y_2)$ and $\realSupremum{s_2}{\uniformMetricSet{J}{x_2}{y_2}}$ by Definition 205.
$p_1 = (x,y)$ and $r_1 = s_1$ and $p_2 = (y,x)$ and $r_2 = s_2$ by Axiom 6.
We have $x_1 = x$ and $y_1 = y$ and $x_2 = y$ and $y_2 = x$ by Axiom 6.
$r_1 = r_2$ by Definition 204, Proposition 467.
Hence $d((x,y)) = d((y,x))$.
$d$ is symmetric on $X$ by Definition 177.
Claim: For all $x,y,z$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) + d((y,z)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} d((x,z))$.
Fix $x$.
Fix $y$.
Fix $z$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $A_1 = \uniformMetricSet{J}{x}{y}$.
Let $A_2 = \uniformMetricSet{J}{y}{z}$.
Let $A_3 = \uniformMetricSet{J}{x}{z}$.
Let $r_1 = d((x,y))$.
Let $r_2 = d((y,z))$.
Let $r_3 = d((x,z))$.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ and $(y,z)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ and $(x,z)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ by Proposition 115, Proposition 359.
$((x,y),r_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ and $((y,z),r_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ and $((x,z),r_3)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Proposition 348, Proposition 359.
Take $p_1,x_1,y_1,s_1$ such that $p_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $s_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((x,y),r_1) = (p_1,s_1)$ and $p_1 = (x_1,y_1)$ and $\realSupremum{s_1}{\uniformMetricSet{J}{x_1}{y_1}}$ by Definition 205.
Take $p_2,x_2,y_2,s_2$ such that $p_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $s_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((y,z),r_2) = (p_2,s_2)$ and $p_2 = (x_2,y_2)$ and $\realSupremum{s_2}{\uniformMetricSet{J}{x_2}{y_2}}$ by Definition 205.
Take $p_3,x_3,y_3,s_3$ such that $p_3\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $x_3\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_3\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $s_3\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((x,z),r_3) = (p_3,s_3)$ and $p_3 = (x_3,y_3)$ and $\realSupremum{s_3}{\uniformMetricSet{J}{x_3}{y_3}}$ by Definition 205.
$p_1 = (x,y)$ and $r_1 = s_1$ and $p_2 = (y,z)$ and $r_2 = s_2$ and $p_3 = (x,z)$ and $r_3 = s_3$ by Axiom 6.
$r_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $r_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $r_3\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
We have $x_1 = x$ and $y_1 = y$ and $x_2 = y$ and $y_2 = z$ and $x_3 = x$ and $y_3 = z$ by Axiom 6.
For all $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A_3$ we have $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 179, Definition 191, Definition 203, Proposition 115, Proposition 361.
$A_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1.
Claim: For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A_3$ we have $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 + r_2$.
Fix $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A_3$.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1.
Take $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $a = \apply{e}{(x(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),z(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))}$ by Definition 203.
Let $a_1 = \apply{e}{(x(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),y(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))}$.
Let $a_2 = \apply{e}{(y(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),z(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))}$.
$a_1\class{latex-symbol-tip latex-symbol-id-in}{\in} A_1$ and $a_2\class{latex-symbol-tip latex-symbol-id-in}{\in} A_2$ by Definition 203.
$x(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $z(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 191, Proposition 361.
$(x(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),y(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ and $(y(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),z(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ and $(x(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),z(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ by Proposition 115.
We have $a_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $a_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 361.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a_1 + a_2$ by Definition 178, Definition 179.
$a_1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1$ and $a_2 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_2$ by Definition 66, Definition 71, Definition 204.
$a_1 + a_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $r_1 + a_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $r_1 + r_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$a_1 + a_2 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 + a_2$ by Lemma 24.
$r_1 + a_2 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 + r_2$ by Axiom 16, Lemma 24.
Hence $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 + r_2$ by Lemma 23.
$r_1 + r_2$ is an upper bound of $A_3$ by Axiom 13, Definition 66.
Hence $r_3 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 + r_2$ by Definition 71, Definition 204.
$d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x,y)) + d((y,z))$.
Hence $d((x,y)) + d((y,z)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} d((x,z))$.
$d$ satisfies the triangle inequality on $X$ by Definition 178.
Hence $d$ is a metric on $X$ by Definition 179.
LaTeX source
\begin{proof}
Let $d = \uniformMetric{J}$.
Let $e = \boundedMetric{\standardMetricR}$.
$\standardMetricR$ is a metric on $\reals$ by \cref{standard_metric_is_metric}.
$e$ is a metric on $\reals$ and $e\in\funs{\reals\times\reals}{\reals}$
by \cref{bounded_metric_is_metric,metric_on}.
Show that $d\in\funs{X\times X}{\reals}$.
\begin{subproof}
Show that for all $p,z_1,z_2$ such that $(p,z_1)\in d$ and $(p,z_2)\in d$ we have $z_1 = z_2$.
\begin{subproof}
Fix $p$.
Fix $z_1$.
Fix $z_2$ such that $(p,z_1)\in d$ and $(p,z_2)\in d$.
Take $p_1,x_1,y_1,r_1$ such that
$p_1\in X\times X$ and $x_1\in X$ and $y_1\in X$ and $r_1\in\reals$ and
$(p,z_1) = (p_1,r_1)$ and $p_1 = (x_1,y_1)$ and
$\realSupremum{r_1}{\uniformMetricSet{J}{x_1}{y_1}}$ by \cref{uniform_metric}.
Take $p_2,x_2,y_2,r_2$ such that
$p_2\in X\times X$ and $x_2\in X$ and $y_2\in X$ and $r_2\in\reals$ and
$(p,z_2) = (p_2,r_2)$ and $p_2 = (x_2,y_2)$ and
$\realSupremum{r_2}{\uniformMetricSet{J}{x_2}{y_2}}$ by \cref{uniform_metric}.
$p = p_1$ and $z_1 = r_1$ and $p = p_2$ and $z_2 = r_2$ by \cref{pair_eq_iff}.
$p_1 = p_2$.
$(x_1,y_1) = (x_2,y_2)$ by \cref{pair_eq_iff}.
We have $x_1 = x_2$ and $y_1 = y_2$ by \cref{pair_eq_iff}.
$\uniformMetricSet{J}{x_1}{y_1} = \uniformMetricSet{J}{x_2}{y_2}$.
Hence $r_1 = r_2$ by \cref{real_supremum_pred,real_supremum_unique}.
$z_1 = z_2$.
\end{subproof}
$d$ is a function by \cref{uniform_metric,relation,rightunique}.
Show that for all $p$ such that $p\in X\times X$ we have $p\in\dom{d}$.
\begin{subproof}
Fix $p$ such that $p\in X\times X$.
Take $x,y$ such that $p = (x,y)$ and $x\in X$ and $y\in X$ by \cref{times_elem_is_tuple}.
Take $\beta$ such that $\beta\in J$.
Let $A = \uniformMetricSet{J}{x}{y}$.
For all $a$ such that $a\in A$ we have $a\in\reals$
by \cref{uniform_metric_set,reals_power,tuple_power,funs_type_apply,times_tuple_intro,metric_on}.
$A\subseteq\reals$ by \cref{subseteq}.
$A\neq\emptyset$ by \cref{uniform_metric_set,emptyset}.
For all $a\in A$ we have $a \leq 1$ by
\cref{uniform_metric_set,reals_power,tuple_power,funs_type_apply,times_tuple_intro,bounded_metric_leq_one,real_lt_subst_left,real_lt_subst_right}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
$1$ is an upper bound of $A$ by \cref{real_upper_bound}.
$A$ is bounded above by \cref{real_bounded_above}.
Take $r$ such that $r$ is a supremum of $A$ by \cref{real_completeness_axiom}.
We have $(x,y)\in X\times X$ by \cref{times_tuple_intro}.
$r\in\reals$ by \cref{real_supremum,real_upper_bound}.
$((x,y),r)\in d$ by \cref{real_supremum_pred,uniform_metric}.
Hence $p\in\dom{d}$ by \cref{dom_intro,pair_eq_iff}.
\end{subproof}
$X\times X\subseteq\dom{d}$ by \cref{subseteq}.
For all $p$ such that $p\in\dom{d}$ we have $p\in X\times X$
by \cref{dom_iff,uniform_metric,pair_eq_iff}.
$\dom{d}\subseteq X\times X$ by \cref{subseteq}.
Thus $\dom{d} = X\times X$ by \cref{subseteq_antisymmetric}.
For all $p\in\dom{d}$ we have $d(p)\in\reals$
by \cref{dom_iff,uniform_metric,pair_eq_iff,function_apply_iff,real_lt_subst_left}.
$d\in\funs{X\times X}{\reals}$ by \cref{funs_intro}.
\end{subproof}
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have $d((x,y)) \geq 0$.
\begin{subproof}
Fix $x$.
Fix $y$ such that $x\in X$ and $y\in X$.
Take $\beta$ such that $\beta\in J$.
Let $r = d((x,y))$.
$(x,y)\in\dom{d}$ by \cref{times_tuple_intro,funs_elim}.
$((x,y),r)\in d$ by \cref{funs_elim,function_apply_elim}.
Take $p_0,x_0,y_0,r_0$ such that
$p_0\in X\times X$ and $x_0\in X$ and $y_0\in X$ and $r_0\in\reals$ and
$((x,y),r) = (p_0,r_0)$ and $p_0 = (x_0,y_0)$ and
$\realSupremum{r_0}{\uniformMetricSet{J}{x_0}{y_0}}$ by \cref{uniform_metric}.
$p_0 = (x,y)$ and $r = r_0$ by \cref{pair_eq_iff}.
$r\in\reals$.
We have $x_0 = x$ and $y_0 = y$ by \cref{pair_eq_iff}.
Let $a = \apply{e}{(x(\beta),y(\beta))}$.
$a \leq r$ by \cref{uniform_metric_set,real_supremum_pred,real_supremum,real_upper_bound}.
$x(\beta)\in\reals$ and $y(\beta)\in\reals$ by \cref{reals_power,tuple_power,funs_type_apply}.
$(x(\beta),y(\beta))\in\reals\times\reals$ by \cref{times_tuple_intro}.
We have $a\in\reals$ and $0 \leq a$ by \cref{funs_type_apply,metric_on,metric_nonnegative}.
$0 \leq r$ by \cref{real_add_ident,real_leq_trans}.
Hence $d((x,y)) \geq 0$.
\end{subproof}
$d$ is nonnegative on $X$ by \cref{metric_nonnegative}.
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have if $d((x,y)) = 0$ then $x = y$.
\begin{subproof}
Fix $x$.
Fix $y$ such that $x\in X$ and $y\in X$.
Assume $d((x,y)) = 0$.
Let $r = d((x,y))$.
$(x,y)\in\dom{d}$ by \cref{times_tuple_intro,funs_elim}.
$((x,y),r)\in d$ by \cref{funs_elim,function_apply_elim}.
Take $p_0,x_0,y_0,r_0$ such that
$p_0\in X\times X$ and $x_0\in X$ and $y_0\in X$ and $r_0\in\reals$ and
$((x,y),r) = (p_0,r_0)$ and $p_0 = (x_0,y_0)$ and
$\realSupremum{r_0}{\uniformMetricSet{J}{x_0}{y_0}}$ by \cref{uniform_metric}.
$p_0 = (x,y)$ and $r = r_0$ by \cref{pair_eq_iff}.
We have $x_0 = x$ and $y_0 = y$ by \cref{pair_eq_iff}.
Show that for all $\alpha\in J$ we have $x(\alpha) = y(\alpha)$.
\begin{subproof}
Fix $\alpha$ such that $\alpha\in J$.
Let $a = \apply{e}{(x(\alpha),y(\alpha))}$.
$a \leq r$ by \cref{uniform_metric_set,real_supremum_pred,real_supremum,real_upper_bound}.
$x(\alpha)\in\reals$ and $y(\alpha)\in\reals$ by \cref{reals_power,tuple_power,funs_type_apply}.
$(x(\alpha),y(\alpha))\in\reals\times\reals$ by \cref{times_tuple_intro}.
We have $a\in\reals$ and $0 \leq a$ by \cref{funs_type_apply,metric_on,metric_nonnegative}.
$a \leq 0$ by \cref{real_supremum_pred,real_supremum,real_upper_bound,real_lt_subst_left,real_lt_subst_right}.
Hence $a = 0$ by \cref{real_add_ident,real_leq_antisym,real_lt_subst_right}.
$x(\alpha) = y(\alpha)$ by \cref{metric_on,metric_zero_characterization}.
\end{subproof}
$\dom{x} = J$ and $\dom{y} = J$ by \cref{reals_power,tuple_power,funs_elim}.
$\dom{x}\subseteq\dom{y}$ and $\dom{y}\subseteq\dom{x}$ by \cref{subseteq_refl}.
$x\subseteq y$ and $y\subseteq x$ by \cref{reals_power,tuple_power,funs_elim,fun_subseteq,subseteq}.
Hence $x = y$ by \cref{subseteq_antisymmetric}.
\end{subproof}
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have if $x = y$ then $d((x,y)) = 0$.
\begin{subproof}
Fix $x$.
Fix $y$ such that $x\in X$ and $y\in X$.
Assume $x = y$.
Let $A = \uniformMetricSet{J}{x}{y}$.
For all $a\in A$ we have $a \leq 0$ by \cref{uniform_metric_set,real_lt_subst_left,reals_power,tuple_power,funs_type_apply,times_tuple_intro,metric_on,metric_zero_characterization}.
$0\in\reals$ by \cref{real_add_ident}.
For all $a$ such that $a\in A$ we have $a\in\reals$
by \cref{uniform_metric_set,reals_power,tuple_power,funs_type_apply,times_tuple_intro,metric_on}.
We have $A\subseteq\reals$ and $0$ is an upper bound of $A$ by \cref{subseteq,real_add_ident,real_upper_bound}.
Show that for all $b$ such that $b$ is an upper bound of $A$ we have $0 \leq b$.
\begin{subproof}
Fix $b$.
Assume $b$ is an upper bound of $A$.
Take $\beta$ such that $\beta\in J$.
Let $a = \apply{e}{(x(\beta),y(\beta))}$.
$a \leq b$ by \cref{uniform_metric_set,real_upper_bound}.
$x(\beta)\in\reals$ and $y(\beta)\in\reals$ by \cref{reals_power,tuple_power,funs_type_apply}.
$(x(\beta),y(\beta))\in\reals\times\reals$ by \cref{times_tuple_intro}.
$a = 0$ by \cref{metric_on,metric_zero_characterization}.
Hence $0 \leq b$ by \cref{real_lt_subst_left}.
\end{subproof}
$0$ is a supremum of $A$ by \cref{real_supremum}.
$((x,y),0)\in d$ by \cref{real_supremum_pred,uniform_metric,pair_eq_iff,times_tuple_intro,real_add_ident}.
$(x,y)\in\dom{d}$ by \cref{dom_intro}.
Hence $d((x,y)) = 0$ by \cref{funs_elim,function_apply_iff}.
\end{subproof}
$d$ is zero-characterized on $X$ by \cref{metric_zero_characterization}.
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have $d((x,y)) = d((y,x))$.
\begin{subproof}
Fix $x$.
Fix $y$ such that $x\in X$ and $y\in X$.
Let $A_1 = \uniformMetricSet{J}{x}{y}$.
Let $A_2 = \uniformMetricSet{J}{y}{x}$.
For all $a$ such that $a\in A_1$ we have $a\in A_2$
by \cref{uniform_metric_set,reals_power,tuple_power,funs_type_apply,times_tuple_intro,metric_on,metric_symmetric}.
$A_1\subseteq A_2$ by \cref{subseteq}.
For all $a$ such that $a\in A_2$ we have $a\in A_1$
by \cref{uniform_metric_set,reals_power,tuple_power,funs_type_apply,times_tuple_intro,metric_on,metric_symmetric}.
$A_2\subseteq A_1$ by \cref{subseteq}.
Hence $A_1 = A_2$ by \cref{subseteq_antisymmetric}.
Let $r_1 = d((x,y))$.
Let $r_2 = d((y,x))$.
$(x,y)\in\dom{d}$ and $(y,x)\in\dom{d}$ by \cref{times_tuple_intro,funs_elim}.
$((x,y),r_1)\in d$ and $((y,x),r_2)\in d$ by \cref{funs_elim,function_apply_elim}.
Take $p_1,x_1,y_1,s_1$ such that
$p_1\in X\times X$ and $x_1\in X$ and $y_1\in X$ and $s_1\in\reals$ and
$((x,y),r_1) = (p_1,s_1)$ and $p_1 = (x_1,y_1)$ and
$\realSupremum{s_1}{\uniformMetricSet{J}{x_1}{y_1}}$ by \cref{uniform_metric}.
Take $p_2,x_2,y_2,s_2$ such that
$p_2\in X\times X$ and $x_2\in X$ and $y_2\in X$ and $s_2\in\reals$ and
$((y,x),r_2) = (p_2,s_2)$ and $p_2 = (x_2,y_2)$ and
$\realSupremum{s_2}{\uniformMetricSet{J}{x_2}{y_2}}$ by \cref{uniform_metric}.
$p_1 = (x,y)$ and $r_1 = s_1$ and $p_2 = (y,x)$ and $r_2 = s_2$ by \cref{pair_eq_iff}.
We have $x_1 = x$ and $y_1 = y$ and $x_2 = y$ and $y_2 = x$ by \cref{pair_eq_iff}.
$r_1 = r_2$ by \cref{real_supremum_pred,real_supremum_unique}.
Hence $d((x,y)) = d((y,x))$.
\end{subproof}
$d$ is symmetric on $X$ by \cref{metric_symmetric}.
Show that for all $x,y,z$ such that $x\in X$ and $y\in X$ and $z\in X$ we have
$d((x,y)) + d((y,z)) \geq d((x,z))$.
\begin{subproof}
Fix $x$.
Fix $y$.
Fix $z$ such that $x\in X$ and $y\in X$ and $z\in X$.
Let $A_1 = \uniformMetricSet{J}{x}{y}$.
Let $A_2 = \uniformMetricSet{J}{y}{z}$.
Let $A_3 = \uniformMetricSet{J}{x}{z}$.
Let $r_1 = d((x,y))$.
Let $r_2 = d((y,z))$.
Let $r_3 = d((x,z))$.
$(x,y)\in\dom{d}$ and $(y,z)\in\dom{d}$ and $(x,z)\in\dom{d}$ by \cref{times_tuple_intro,funs_elim}.
$((x,y),r_1)\in d$ and $((y,z),r_2)\in d$ and $((x,z),r_3)\in d$
by \cref{funs_elim,function_apply_elim}.
Take $p_1,x_1,y_1,s_1$ such that
$p_1\in X\times X$ and $x_1\in X$ and $y_1\in X$ and $s_1\in\reals$ and
$((x,y),r_1) = (p_1,s_1)$ and $p_1 = (x_1,y_1)$ and
$\realSupremum{s_1}{\uniformMetricSet{J}{x_1}{y_1}}$ by \cref{uniform_metric}.
Take $p_2,x_2,y_2,s_2$ such that
$p_2\in X\times X$ and $x_2\in X$ and $y_2\in X$ and $s_2\in\reals$ and
$((y,z),r_2) = (p_2,s_2)$ and $p_2 = (x_2,y_2)$ and
$\realSupremum{s_2}{\uniformMetricSet{J}{x_2}{y_2}}$ by \cref{uniform_metric}.
Take $p_3,x_3,y_3,s_3$ such that
$p_3\in X\times X$ and $x_3\in X$ and $y_3\in X$ and $s_3\in\reals$ and
$((x,z),r_3) = (p_3,s_3)$ and $p_3 = (x_3,y_3)$ and
$\realSupremum{s_3}{\uniformMetricSet{J}{x_3}{y_3}}$ by \cref{uniform_metric}.
$p_1 = (x,y)$ and $r_1 = s_1$ and $p_2 = (y,z)$ and $r_2 = s_2$ and
$p_3 = (x,z)$ and $r_3 = s_3$ by \cref{pair_eq_iff}.
$r_1\in\reals$ and $r_2\in\reals$ and $r_3\in\reals$.
We have $x_1 = x$ and $y_1 = y$ and $x_2 = y$ and $y_2 = z$ and
$x_3 = x$ and $y_3 = z$ by \cref{pair_eq_iff}.
For all $a$ such that $a\in A_3$ we have $a\in\reals$
by \cref{uniform_metric_set,reals_power,tuple_power,funs_type_apply,times_tuple_intro,metric_on}.
$A_3\subseteq\reals$ by \cref{subseteq}.
Show that for all $a\in A_3$ we have $a \leq r_1 + r_2$.
\begin{subproof}
Fix $a$ such that $a\in A_3$.
$a\in\reals$ by \cref{subseteq}.
Take $\alpha\in J$ such that $a = \apply{e}{(x(\alpha),z(\alpha))}$ by \cref{uniform_metric_set}.
Let $a_1 = \apply{e}{(x(\alpha),y(\alpha))}$.
Let $a_2 = \apply{e}{(y(\alpha),z(\alpha))}$.
$a_1\in A_1$ and $a_2\in A_2$ by \cref{uniform_metric_set}.
$x(\alpha)\in\reals$ and $y(\alpha)\in\reals$ and $z(\alpha)\in\reals$ by \cref{reals_power,tuple_power,funs_type_apply}.
$(x(\alpha),y(\alpha))\in\reals\times\reals$ and
$(y(\alpha),z(\alpha))\in\reals\times\reals$ and
$(x(\alpha),z(\alpha))\in\reals\times\reals$ by \cref{times_tuple_intro}.
We have $a_1\in\reals$ and $a_2\in\reals$ by \cref{funs_type_apply}.
$a \leq a_1 + a_2$ by \cref{metric_on,metric_triangle_inequality}.
$a_1 \leq r_1$ and $a_2 \leq r_2$ by \cref{real_supremum_pred,real_supremum,real_upper_bound}.
$a_1 + a_2\in\reals$ and $r_1 + a_2\in\reals$ and $r_1 + r_2\in\reals$ by \cref{real_add_closed}.
$a_1 + a_2 \leq r_1 + a_2$ by \cref{real_leq_add}.
$r_1 + a_2 \leq r_1 + r_2$ by \cref{real_leq_add,real_add_comm}.
Hence $a \leq r_1 + r_2$ by \cref{real_leq_trans}.
\end{subproof}
$r_1 + r_2$ is an upper bound of $A_3$ by \cref{real_upper_bound,real_add_closed}.
Hence $r_3 \leq r_1 + r_2$ by \cref{real_supremum_pred,real_supremum}.
$d((x,z)) \leq d((x,y)) + d((y,z))$.
Hence $d((x,y)) + d((y,z)) \geq d((x,z))$.
\end{subproof}
$d$ satisfies the triangle inequality on $X$ by \cref{metric_triangle_inequality}.
Hence $d$ is a metric on $X$ by \cref{metric_on}.
\end{proof}
Suppose $J$ is inhabited.
Let $X = \{(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha},\reals) \mid \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J\}$.
Let $T = \{(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha},\standardTopologyR) \mid \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J\}$.
Let $T_0 = \productTopologyIndexed{T}{X}$.
Then $\uniformTopology{J}$ is finer than $T_0$ on $\realsPower{J}$.
LaTeX source
\begin{theorem}
\label{uniform_finer_product}
Suppose $J$ is inhabited.
Let $X = \{(\alpha,\reals) \mid \alpha\in J\}$.
Let $T = \{(\alpha,\standardTopologyR) \mid \alpha\in J\}$.
Let $T_0 = \productTopologyIndexed{T}{X}$.
Then $\uniformTopology{J}$ is finer than $T_0$ on $\realsPower{J}$.
\end{theorem}
Proof
Let $X_0 = \realsPower{J}$.
Let $d = \uniformMetric{J}$.
Let $T_1 = \uniformTopology{J}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exist $x,y$ such that $w = (x,y)$.
For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha},y_1,y_2$ such that $(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha},y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha},y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $y_1 = y_2$.
$X$ is a function by Definition 12, Definition 51.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ there exist $x,y$ such that $w = (x,y)$.
For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha},y_1,y_2$ such that $(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha},y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ and $(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha},y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ we have $y_1 = y_2$.
$T$ is a function by Definition 12, Definition 51.
$J\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{X}$ and $J\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{T}$ by Definition 1, Proposition 200.
For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ such that $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ we have $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ such that $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{T}$ we have $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
$\dom{X}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} J$ and $\dom{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} J$ by Definition 1.
$\dom{X} = J$ by Proposition 3.
$\dom{T} = J$ by Proposition 3.
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{X}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}} = \reals$ and $\apply{T}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}} = \standardTopologyR$ by Definition 1, Proposition 346.
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}}$ by Definition 1, Definition 118, Lemma 76, Lemma 93, Proposition 346.
Let $S_0 = \productSubbasis{T}{X}$.
Let $B_0 = \finiteIntersections{S_0}$.
$B_0$ is a basis for $T_0$ on $\productFamily{X}$ by Lemma 177.
$B_0$ is a basis for $T_0$ on $X_0$ by Lemma 209.
$d$ is a metric on $X_0$ by Lemma 253.
$\dom{d} = X_0\class{latex-symbol-tip latex-symbol-id-times}{\times} X_0$ by Definition 179, Proposition 359.
Let $B_U = \metricBasis{d}{X_0}$.
$B_U$ is a basis on $X_0$ by Lemma 194.
$T_1 = \metricTopology{d}{X_0}$ by Definition 206.
$T_1 = \basisTopology{B_U}{X_0}$ by Definition 182.
$B_U$ is a basis for $T_1$ on $X_0$ by Definition 115.
Claim: For all $x,B_2$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ there exists $B_3\class{latex-symbol-tip latex-symbol-id-in}{\in} B_U$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ and $B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$.
Fix $x$.
Fix $B_2$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$.
Take $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} S_0$ such that $F$ is finite and inhabited and $B_2 = \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}\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.\class{latex-symbol-tip latex-symbol-id-exists}{\exists} U\class{latex-symbol-tip latex-symbol-id-in}{\in}\standardTopologyR. \fst{w} = \preimg{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{U} \class{latex-symbol-tip latex-symbol-id-land}{\land} \apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in} U \class{latex-symbol-tip latex-symbol-id-land}{\land} 0 < \snd{w} \class{latex-symbol-tip latex-symbol-id-land}{\land} \snd{w} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 \class{latex-symbol-tip latex-symbol-id-land}{\land} \metricBall{\standardMetricR}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{\snd{w}} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U\}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ there exist $y,z$ such that $w = (y,z)$.
$R$ is a relation by Definition 12.
Claim: For all $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $A\mathrel{R}\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 30.
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 1, Definition 172.
Take $U\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}}}{U}$ by Definition 171.
$\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ by Definition 1.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\preimg{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{U}$.
Take $z\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ such that $x\mathrel{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}} z$ by Proposition 246.
$(x,z)\class{latex-symbol-tip latex-symbol-id-in}{\in}\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}$.
Take $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{X}$ such that $(x,z) = (x_1,\apply{x_1}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}})$ by Definition 170.
$\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Axiom 6.
$U\class{latex-symbol-tip latex-symbol-id-in}{\in}\standardTopologyR$ by Proposition 346.
$\standardBasisR$ is a basis on $\reals$ by Lemma 93.
$U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Axiom 12, Definition 1, Definition 101, Definition 118, Lemma 76.
$\standardMetricR$ is a metric on $\reals$ by Lemma 198.
$U$ is open in $\reals$ with respect to $\metricTopology{\standardMetricR}{\reals}$ by Definition 103, Definition 182, Lemma 76, Lemma 194, Lemma 200.
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{\standardMetricR}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Lemma 195.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
Let $C = \{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon},1\}$.
$C$ is finite and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ and $1\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Lemma 40, Proposition 16, Proposition 17.
$C\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ and $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Axiom 2, Definition 1, Proposition 16, Proposition 18.
Take $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_0\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ such that $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_0$ is a minimum of $C$ by Lemma 49.
$0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_0$ by Lemma 83, Proposition 18, Proposition 462.
$\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ by Definition 74, Proposition 17.
Claim: For all $z_0$ such that $z_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{\standardMetricR}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_0}$ we have $z_0\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Fix $z_0$ such that $z_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{\standardMetricR}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_0}$.
$z_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\apply{\standardMetricR}{(\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}},z_0)} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_0$ by Definition 180.
$\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 191, Proposition 361.
$(\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}},z_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ by Proposition 115.
$\apply{\standardMetricR}{(\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}},z_0)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Lemma 198, Proposition 361.
$\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 1, Definition 74, Proposition 16.
$\apply{\standardMetricR}{(\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}},z_0)} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 36, Lemma 81, Lemma 83.
$z_0\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 1, Definition 180.
$\metricBall{\standardMetricR}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_0}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1.
$A\mathrel{R}\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_0$ by Axiom 6, Axiom 10, Axiom 11, Proposition 115.
Take $e$ such that $e$ 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{e}{A}$ by Axiom 54.
$e$ is a function and $\dom{e} = F$.
Let $E = \img{e}{F}$.
$E$ is finite by Lemma 192.
Take $A_0$ such that $A_0\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
$E\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2, Proposition 235, Proposition 348.
For all $t$ such that $t\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ we have $t\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < t$ by Axiom 11, Definition 1, Proposition 114, Proposition 235, Proposition 349.
$E\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1.
Take $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ such that $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ is a minimum of $E$ by Lemma 49.
$\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}$ by Definition 1.
Let $B_3 = \metricBall{d}{X_0}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$.
$B_3\class{latex-symbol-tip latex-symbol-id-in}{\in} B_U$ by Definition 1, Definition 180, Definition 181, Proposition 155.
Claim: For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$.
Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $d((x,y)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 180.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ by Definition 1, Proposition 115.
Take $s$ such that $((x,y),s)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Proposition 199.
$d((x,y)) = s$ by Definition 1, Definition 179, Proposition 346, Proposition 359.
$s < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 82.
Take $p_0,x_0,y_0,r_0$ such that $p_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0\class{latex-symbol-tip latex-symbol-id-times}{\times} X_0$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $y_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $r_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((x,y),s) = (p_0,r_0)$ and $p_0 = (x_0,y_0)$ and $\realSupremum{r_0}{\uniformMetricSet{J}{x_0}{y_0}}$ by Definition 205.
$p_0 = (x,y)$ and $s = r_0$ by Axiom 6.
$r_0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 82.
$x_0 = x$ and $y_0 = y$ by Axiom 6.
Claim: For all $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Fix $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
$(A,\apply{e}{A})\class{latex-symbol-tip latex-symbol-id-in}{\in} R$.
Let $w = (A,\apply{e}{A})$.
$w\class{latex-symbol-tip latex-symbol-id-in}{\in} R$.
Take $\class{latex-symbol-tip latex-symbol-id-beta}{\beta},U$ such that $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ and $U\class{latex-symbol-tip latex-symbol-id-in}{\in}\standardTopologyR$ and $\fst{w} = \preimg{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{U}$ and $\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $0 < \snd{w}$ and $\snd{w} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ and $\metricBall{\standardMetricR}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{\snd{w}} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.
$\fst{w} = A$ and $\snd{w} = \apply{e}{A}$ by Axiom 10, Axiom 11.
$A = \preimg{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{U}$.
$0 < \apply{e}{A}$.
$\apply{e}{A} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ by Lemma 81.
$\metricBall{\standardMetricR}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{\apply{e}{A}} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.
$\apply{e}{A}\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ by Proposition 235, Proposition 348.
$\apply{e}{A}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \apply{e}{A}$ by Definition 74, Proposition 235, Proposition 348.
$r_0 < \apply{e}{A}$ by Axiom 36, Lemma 81, Lemma 83.
Let $m = \apply{\boundedMetric{\standardMetricR}}{(x(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}),y(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}))}$.
$m \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_0$ by Definition 66, Definition 71, Definition 203, Definition 204.
$x(\class{latex-symbol-tip latex-symbol-id-beta}{\beta})\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y(\class{latex-symbol-tip latex-symbol-id-beta}{\beta})\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 191, Proposition 361.
$(x(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}),y(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ by Proposition 115.
$m\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Lemma 198, Proposition 361, Theorem 21.
$m < r_0$ or $m = r_0$ by Lemma 81.
$m < \apply{e}{A}$ by Axiom 36, Lemma 82.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
$m < 1$ by Axiom 36, Lemma 81, Lemma 83.
$m = \apply{\standardMetricR}{(x(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}),y(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}))}$ by Lemma 198, Lemma 205.
$\apply{\standardMetricR}{(x(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}),y(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}))} < \apply{e}{A}$ by Lemma 82.
$\apply{y}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{\standardMetricR}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{\apply{e}{A}}$ by Definition 180.
$\apply{y}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 1.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in}\preimg{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{U}$ by Definition 1, Definition 170, Definition 180, Lemma 209, Proposition 246.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ by Proposition 3, Proposition 30.
$B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$ by Definition 1.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ and $B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$ by Definition 176, Definition 179, Definition 180.
Claim: $T_1$ is finer than $T_0$ on $X_0$.
Follows by Lemma 80.
LaTeX source
\begin{proof}
Let $X_0 = \realsPower{J}$.
Let $d = \uniformMetric{J}$.
Let $T_1 = \uniformTopology{J}$.
For all $w$ such that $w\in X$ there exist $x,y$ such that $w = (x,y)$.
For all $\alpha,y_1,y_2$ such that $(\alpha,y_1)\in X$ and $(\alpha,y_2)\in X$ we have $y_1 = y_2$.
$X$ is a function by \cref{relation,rightunique}.
For all $w$ such that $w\in T$ there exist $x,y$ such that $w = (x,y)$.
For all $\alpha,y_1,y_2$ such that $(\alpha,y_1)\in T$ and $(\alpha,y_2)\in T$ we have $y_1 = y_2$.
$T$ is a function by \cref{relation,rightunique}.
$J\subseteq\dom{X}$ and $J\subseteq\dom{T}$ by \cref{dom_intro,subseteq}.
For all $\alpha$ such that $\alpha\in\dom{X}$ we have $\alpha\in J$.
For all $\alpha$ such that $\alpha\in\dom{T}$ we have $\alpha\in J$.
$\dom{X}\subseteq J$ and $\dom{T}\subseteq J$ by \cref{subseteq}.
$\dom{X} = J$ by \cref{subseteq_antisymmetric}.
$\dom{T} = J$ by \cref{subseteq_antisymmetric}.
For all $\alpha\in\dom{X}$ we have $\apply{X}{\alpha} = \reals$ and $\apply{T}{\alpha} = \standardTopologyR$
by \cref{subseteq,function_apply_intro}.
For all $\alpha\in\dom{X}$ we have $\apply{T}{\alpha}$ is a topology on $\apply{X}{\alpha}$
by \cref{subseteq,function_apply_intro,standard_basis_is_basis,basis_topology_is_topology,standard_topology_reals}.
Let $S_0 = \productSubbasis{T}{X}$.
Let $B_0 = \finiteIntersections{S_0}$.
$B_0$ is a basis for $T_0$ on $\productFamily{X}$ by \cref{product_subbasis_finite_intersections_basis}.
$B_0$ is a basis for $T_0$ on $X_0$ by \cref{product_family_reals_power}.
$d$ is a metric on $X_0$ by \cref{uniform_metric_is_metric}.
$\dom{d} = X_0\times X_0$ by \cref{metric_on,funs_elim}.
Let $B_U = \metricBasis{d}{X_0}$.
$B_U$ is a basis on $X_0$ by \cref{metric_basis_is_basis}.
$T_1 = \metricTopology{d}{X_0}$ by \cref{uniform_topology}.
$T_1 = \basisTopology{B_U}{X_0}$ by \cref{metric_topology}.
$B_U$ is a basis for $T_1$ on $X_0$ by \cref{basis_for_topology}.
Show that for all $x,B_2$ such that $x\in X_0$ and $B_2\in B_0$ and $x\in B_2$
there exists $B_3\in B_U$ such that $x\in B_3$ and $B_3\subseteq B_2$.
\begin{subproof}
Fix $x$.
Fix $B_2$ such that $x\in X_0$ and $B_2\in B_0$ and $x\in B_2$.
Take $F\subseteq S_0$ such that $F$ is finite and inhabited and $B_2 = \inters{F}$ by \cref{finite_intersections}.
Let $R = \{w\in F\times\reals \mid \exists \beta\in J.\exists U\in\standardTopologyR.
\fst{w} = \preimg{\piIndex{X}{\beta}}{U} \land \apply{x}{\beta}\in U \land
0 < \snd{w} \land
\snd{w} \leq 1 \land
\metricBall{\standardMetricR}{\reals}{\apply{x}{\beta}}{\snd{w}} \subseteq U\}$.
For all $w$ such that $w\in R$ there exist $y,z$ such that $w = (y,z)$.
$R$ is a relation by \cref{relation}.
Show that for all $A\in F$ there exists $\epsilon\in\reals$ such that $A\mathrel{R}\epsilon$.
\begin{subproof}
Fix $A$ such that $A\in F$.
$x\in A$ by \cref{inters_iff_forall}.
Take $\beta\in\dom{X}$ such that $A\in\productSubbasisAt{T}{X}{\beta}$
by \cref{subseteq,product_subbasis_union_indexed}.
Take $U\in\apply{T}{\beta}$ such that $A = \preimg{\piIndex{X}{\beta}}{U}$ by \cref{product_subbasis_indexed}.
$\beta\in J$ by \cref{subseteq}.
$x\in\preimg{\piIndex{X}{\beta}}{U}$.
Take $z\in U$ such that $x\mathrel{\piIndex{X}{\beta}} z$ by \cref{preimg_iff}.
$(x,z)\in\piIndex{X}{\beta}$.
Take $x_1\in\productFamily{X}$ such that $(x,z) = (x_1,\apply{x_1}{\beta})$ by \cref{projection_map_indexed}.
$\apply{x}{\beta}\in U$ by \cref{pair_eq_iff}.
$U\in\standardTopologyR$ by \cref{function_apply_intro}.
$\standardBasisR$ is a basis on $\reals$ by \cref{standard_basis_is_basis}.
$U\subseteq\reals$
by \cref{basis_topology_is_topology,standard_topology_reals,topology_on,subseteq,pow_iff}.
$\standardMetricR$ is a metric on $\reals$ by \cref{standard_metric_is_metric}.
$U$ is open in $\reals$ with respect to $\metricTopology{\standardMetricR}{\reals}$ by
\cref{standard_metric_topology,open_in,basis_topology_is_topology,metric_basis_is_basis,metric_topology}.
Take $\epsilon\in\reals$ such that $0 < \epsilon$ and
$\metricBall{\standardMetricR}{\reals}{\apply{x}{\beta}}{\epsilon}\subseteq U$
by \cref{metric_open_iff}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
Let $C = \{\epsilon,1\}$.
$C$ is finite and $\epsilon\in C$ and $1\in C$ by \cref{pair_is_finite,upair_intro_left,upair_intro_right}.
$C\neq\emptyset$ and $C\subseteq\reals$ by \cref{upair_intro_left,emptyset,upair_elim,subseteq}.
Take $\epsilon_0\in C$ such that $\epsilon_0$ is a minimum of $C$ by \cref{finite_real_minimum}.
$0 < \epsilon_0$ by \cref{upair_elim,real_zero_lt_one,real_lt_subst_right}.
$\epsilon_0 \leq 1$ by \cref{upair_intro_right,real_minimum}.
Show that for all $z_0$ such that $z_0\in\metricBall{\standardMetricR}{\reals}{\apply{x}{\beta}}{\epsilon_0}$ we have $z_0\in U$.
\begin{subproof}
Fix $z_0$ such that $z_0\in\metricBall{\standardMetricR}{\reals}{\apply{x}{\beta}}{\epsilon_0}$.
$z_0\in\reals$ and $\apply{\standardMetricR}{(\apply{x}{\beta},z_0)} < \epsilon_0$ by \cref{metric_ball}.
$\apply{x}{\beta}\in\reals$ by \cref{reals_power,tuple_power,funs_type_apply}.
$(\apply{x}{\beta},z_0)\in\reals\times\reals$ by \cref{times_tuple_intro}.
$\apply{\standardMetricR}{(\apply{x}{\beta},z_0)}\in\reals$ by
\cref{standard_metric_is_metric,metric_on,funs_type_apply}.
$\epsilon_0\in\reals$ and $\epsilon_0 \leq \epsilon$ by \cref{subseteq,upair_intro_left,real_minimum}.
$\apply{\standardMetricR}{(\apply{x}{\beta},z_0)} < \epsilon$
by \cref{real_leq_split,real_lt_trans,real_lt_subst_right}.
$z_0\in U$ by \cref{metric_ball,subseteq}.
\end{subproof}
$\metricBall{\standardMetricR}{\reals}{\apply{x}{\beta}}{\epsilon_0}\subseteq U$ and $\epsilon_0\in\reals$ by \cref{subseteq}.
$A\mathrel{R}\epsilon_0$ by \cref{times_tuple_intro,fst_eq,snd_eq,pair_eq_iff}.
\end{subproof}
Take $e$ such that $e$ is a function on $F$ and for all $A\in F$ we have $A\mathrel{R}\apply{e}{A}$
by \cref{axiom_of_choice}.
$e$ is a function and $\dom{e} = F$.
Let $E = \img{e}{F}$.
$E$ is finite by \cref{finite_image_function}.
Take $A_0$ such that $A_0\in F$.
$E\neq\emptyset$ by \cref{function_apply_elim,img_iff,emptyset}.
For all $t$ such that $t\in E$ we have $t\in\reals$ and $0 < t$
by \cref{img_iff,subseteq,function_apply_iff,times_tuple_elim,snd_eq}.
$E\subseteq\reals$ by \cref{subseteq}.
Take $\delta\in E$ such that $\delta$ is a minimum of $E$ by \cref{finite_real_minimum}.
$\delta\in\reals$ and $0 < \delta$ by \cref{subseteq}.
Let $B_3 = \metricBall{d}{X_0}{x}{\delta}$.
$B_3\in B_U$ by \cref{metric_ball,subseteq,powerset_intro,metric_basis}.
Show that for all $y$ such that $y\in B_3$ we have $y\in B_2$.
\begin{subproof}
Fix $y$ such that $y\in B_3$.
$y\in X_0$ and $d((x,y)) < \delta$ by \cref{metric_ball}.
$(x,y)\in\dom{d}$ by \cref{times_tuple_intro,subseteq}.
Take $s$ such that $((x,y),s)\in d$ by \cref{dom_iff}.
$d((x,y)) = s$ by \cref{metric_on,funs_elim,subseteq,function_apply_intro}.
$s < \delta$ by \cref{real_lt_subst_left}.
Take $p_0,x_0,y_0,r_0$ such that
$p_0\in X_0\times X_0$ and $x_0\in X_0$ and $y_0\in X_0$ and $r_0\in\reals$ and
$((x,y),s) = (p_0,r_0)$ and $p_0 = (x_0,y_0)$ and
$\realSupremum{r_0}{\uniformMetricSet{J}{x_0}{y_0}}$ by \cref{uniform_metric}.
$p_0 = (x,y)$ and $s = r_0$ by \cref{pair_eq_iff}.
$r_0 < \delta$ by \cref{real_lt_subst_left}.
$x_0 = x$ and $y_0 = y$ by \cref{pair_eq_iff}.
Show that for all $A\in F$ we have $y\in A$.
\begin{subproof}
Fix $A$ such that $A\in F$.
$(A,\apply{e}{A})\in R$.
Let $w = (A,\apply{e}{A})$.
$w\in R$.
Take $\beta,U$ such that $\beta\in J$ and $U\in\standardTopologyR$ and
$\fst{w} = \preimg{\piIndex{X}{\beta}}{U}$ and $\apply{x}{\beta}\in U$ and
$0 < \snd{w}$ and
$\snd{w} \leq 1$ and
$\metricBall{\standardMetricR}{\reals}{\apply{x}{\beta}}{\snd{w}} \subseteq U$.
$\fst{w} = A$ and $\snd{w} = \apply{e}{A}$ by \cref{fst_eq,snd_eq}.
$A = \preimg{\piIndex{X}{\beta}}{U}$.
$0 < \apply{e}{A}$.
$\apply{e}{A} \leq 1$ by \cref{real_leq_split}.
$\metricBall{\standardMetricR}{\reals}{\apply{x}{\beta}}{\apply{e}{A}} \subseteq U$.
$\apply{e}{A}\in E$ by \cref{function_apply_elim,img_iff}.
$\apply{e}{A}\in\reals$ by \cref{subseteq}.
$\delta \leq \apply{e}{A}$ by \cref{function_apply_elim,img_iff,real_minimum}.
$r_0 < \apply{e}{A}$ by \cref{real_leq_split,real_lt_trans,real_lt_subst_right}.
Let $m = \apply{\boundedMetric{\standardMetricR}}{(x(\beta),y(\beta))}$.
$m \leq r_0$ by \cref{uniform_metric_set,real_supremum_pred,real_supremum,real_upper_bound}.
$x(\beta)\in\reals$ and $y(\beta)\in\reals$ by \cref{reals_power,tuple_power,funs_type_apply}.
$(x(\beta),y(\beta))\in\reals\times\reals$ by \cref{times_tuple_intro}.
$m\in\reals$ by \cref{bounded_metric_is_metric,standard_metric_is_metric,metric_on,funs_type_apply}.
$m < r_0$ or $m = r_0$ by \cref{real_leq_split}.
$m < \apply{e}{A}$ by \cref{real_lt_subst_left,real_lt_trans}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
$m < 1$ by \cref{real_leq_split,real_lt_trans,real_lt_subst_right}.
$m = \apply{\standardMetricR}{(x(\beta),y(\beta))}$ by
\cref{bounded_metric_apply_value_lt_one,standard_metric_is_metric}.
$\apply{\standardMetricR}{(x(\beta),y(\beta))} < \apply{e}{A}$ by \cref{real_lt_subst_left}.
$\apply{y}{\beta}\in\metricBall{\standardMetricR}{\reals}{\apply{x}{\beta}}{\apply{e}{A}}$ by
\cref{metric_ball}.
$\apply{y}{\beta}\in U$ by \cref{subseteq}.
$y\in\preimg{\piIndex{X}{\beta}}{U}$ by
\cref{metric_ball,product_family_reals_power,subseteq,projection_map_indexed,preimg_iff}.
$y\in A$.
\end{subproof}
$y\in B_2$ by \cref{inters_iff_forall,subseteq_antisymmetric}.
\end{subproof}
$B_3\subseteq B_2$ by \cref{subseteq}.
$x\in B_3$ and $B_3\subseteq B_2$ by \cref{metric_ball,metric_zero_characterization,metric_on}.
\end{subproof}
Show that $T_1$ is finer than $T_0$ on $X_0$.
\begin{subproof}
Follows by \cref{basis_finer_criterion}.
\end{subproof}
\end{proof}
Suppose $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < r$.
Let $s = r \rmul \inv{(1+1)}$.
Then $s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < s$ and $s < r$.
LaTeX source
\begin{lemma}
\label{positive_real_smaller_half}
Suppose $r\in\reals$ and $0 < r$.
Let $s = r \rmul \inv{(1+1)}$.
Then $s\in\reals$ and $0 < s$ and $s < r$.
\end{lemma}
Proof
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1+1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < 1 + 1$ and $1 < 1 + 1$ by Axiom 13, Axiom 17, Axiom 36, Axiom 37, Axiom 41, Axiom 42, Definition 1, Lemma 82, Proposition 462.
$1 + 1 \class{latex-symbol-tip latex-symbol-id-neq}{\neq} 0$ and $\inv{(1+1)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \inv{(1+1)}$ by Axiom 22, Lemma 20, Proposition 463.
Claim: $s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < s$.
Follows by Axiom 14, Proposition 454.
Claim: $s < r$.
LaTeX source
\begin{proof}
$1\in\reals$ and $1+1\in\reals$ and $0 < 1 + 1$ and $1 < 1 + 1$ by
\cref{real_add_ident,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_zero_lt_one,real_add_closed,real_lt_add,real_lt_subst_left,real_lt_trans}.
$1 + 1 \neq 0$ and $\inv{(1+1)}\in\reals$ and $0 < \inv{(1+1)}$ by
\cref{real_pos_nonzero,real_mul_inverse,real_inv_pos}.
Show that $s\in\reals$ and $0 < s$.
\begin{subproof}
Follows by \cref{real_mul_closed,real_mul_pos_pos_gt}.
\end{subproof}
Show that $s < r$.
\begin{subproof}
$1 \rmul s < (1 + 1) \rmul s$ by \cref{real_lt_mul_pos}.
$s < r$ by
\cref{real_mul_assoc,real_mul_comm,real_mul_inverse,real_mul_ident,real_lt_subst_left,real_lt_subst_right}.
\end{subproof}
\end{proof}
$\metricBasis{\boundedMetric{\standardMetricR}}{\reals}$ is a basis for $\standardTopologyR$ on $\reals$.
LaTeX source
\begin{lemma}
\label{standard_metric_basis_standard_topology}
$\metricBasis{\boundedMetric{\standardMetricR}}{\reals}$ is a basis for $\standardTopologyR$ on $\reals$.
\end{lemma}
Proof
Follows by Definition 1, Definition 115, Definition 182, Lemma 194, Lemma 198, Lemma 200, Theorem 21, Theorem 22.
LaTeX source
\begin{proof}
Follows by \cref{standard_metric_is_metric,bounded_metric_is_metric,metric_basis_is_basis,metric_topology,basis_for_topology,bounded_metric_topology,standard_metric_topology,subseteq}.
\end{proof}
Suppose $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$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Then $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
LaTeX source
\begin{lemma}
\label{metric_ball_center}
Suppose $d$ is a metric on $X$.
Suppose $x\in X$.
Suppose $\epsilon\in\reals$ and $0 < \epsilon$.
Then $x\in\metricBall{d}{X}{x}{\epsilon}$.
\end{lemma}
Proof
Follows by Definition 176, Definition 179, Definition 180, Lemma 82.
LaTeX source
\begin{proof}
Follows by \cref{metric_on,metric_zero_characterization,real_lt_subst_left,metric_ball}.
\end{proof}
Suppose $J$ is inhabited.
Let $X = \{(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha},\reals) \mid \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J\}$.
Let $T = \{(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha},\standardTopologyR) \mid \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J\}$.
Let $T_0 = \boxTopology{T}{X}$.
Then $\uniformTopology{J}$ is coarser than $T_0$ on $\realsPower{J}$.
LaTeX source
\begin{theorem}
\label{uniform_coarser_box}
Suppose $J$ is inhabited.
Let $X = \{(\alpha,\reals) \mid \alpha\in J\}$.
Let $T = \{(\alpha,\standardTopologyR) \mid \alpha\in J\}$.
Let $T_0 = \boxTopology{T}{X}$.
Then $\uniformTopology{J}$ is coarser than $T_0$ on $\realsPower{J}$.
\end{theorem}
Proof
Let $X_0 = \realsPower{J}$.
Let $d = \uniformMetric{J}$.
Let $T_1 = \uniformTopology{J}$.
Let $B_U = \metricBasis{d}{X_0}$.
Let $B = \{(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha},\metricBasis{\boundedMetric{\standardMetricR}}{\reals}) \mid \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J\}$.
Let $C = \{A\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\productFamily{X}} \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} U. U\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\dom{X}}{\pow{\unions{\ran{X}}}}\class{latex-symbol-tip latex-symbol-id-land}{\land} (\class{latex-symbol-tip latex-symbol-id-forall}{\forall} \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}. \apply{U}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{B}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}})\class{latex-symbol-tip latex-symbol-id-land}{\land} A = \productFamily{U}\}$.
$X$ is a function.
$T$ is a function.
$B$ is a function.
For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ such that $\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}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ and $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{T}$ and $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{B}$ by Proposition 200.
$J\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{X}$ and $J\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{T}$ and $J\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{B}$ by Definition 1.
For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ such that $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ we have $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ by Axiom 6, Proposition 199.
$\dom{X}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} J$ by Definition 1.
$\dom{X} = J$ by Proposition 3.
For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ such that $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{T}$ we have $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ by Axiom 6, Proposition 199.
$\dom{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} J$ by Definition 1.
$\dom{T} = J$ by Proposition 3.
For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ such that $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{B}$ we have $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ by Axiom 6, Proposition 199.
$\dom{B}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} J$ by Definition 1.
$\dom{B} = J$ by Proposition 3.
For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ such that $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ we have $\apply{X}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}} = \reals$ and $\apply{T}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}} = \standardTopologyR$ and $\apply{B}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}} = \metricBasis{\boundedMetric{\standardMetricR}}{\reals}$ by Definition 1, Proposition 346.
For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ such that $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ we have $\apply{B}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ is a basis for $\apply{T}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ on $\apply{X}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ by Definition 1, Lemma 255.
$C$ is a basis for $T_0$ on $\productFamily{X}$ by Lemma 178.
$C$ is a basis for $T_0$ on $X_0$ by Definition 115, Lemma 209.
$d$ is a metric on $X_0$ by Lemma 253.
$\dom{d} = X_0\class{latex-symbol-tip latex-symbol-id-times}{\times} X_0$ by Definition 179, Proposition 359.
$B_U$ is a basis for $T_1$ on $X_0$ by Definition 115, Definition 182, Definition 206, Lemma 194.
Claim: For all $x,B_2$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B_U$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ there exists $B_3\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ and $B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$.
Fix $x$.
Fix $B_2$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B_U$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$.
Take $z,\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $\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}$ and $B_2 = \metricBall{d}{X_0}{z}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 181.
$d((z,x)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 1, Definition 180.
$(z,x)\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0\class{latex-symbol-tip latex-symbol-id-times}{\times} X_0$ by Proposition 115.
$d((z,x))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
Let $r = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} - d((z,x))$.
$0 < r$ by Lemma 26.
$r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64.
Let $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = r \rmul \inv{(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} < r$ by Lemma 254.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} J\class{latex-symbol-tip latex-symbol-id-times}{\times}\pow{\unions{\ran{X}}} \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. \fst{w} = \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} \class{latex-symbol-tip latex-symbol-id-land}{\land} \snd{w} = \metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ there exist $y,z$ such that $w = (y,z)$.
$R$ is a relation by Definition 12.
Claim: For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ there exists $V\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\unions{\ran{X}}}$ such that $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\mathrel{R}V$.
Fix $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ such that $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
Let $V = \metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$.
$V\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\unions{\ran{X}}}$ by Axiom 4, Definition 1, Definition 180, Proposition 155, Proposition 209.
$\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\mathrel{R}V$ by Axiom 6, Axiom 10, Axiom 11, Proposition 115.
Take $U$ such that $U$ 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{U}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ by Axiom 54.
$U$ is a function and $\dom{U} = J$.
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},\apply{U}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}})\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Definition 1.
For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\apply{U}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}} = \metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ by Axiom 6, Axiom 10, Axiom 11.
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{U}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{B}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ by Definition 1, Definition 166, Definition 180, Definition 181, Definition 191, Lemma 198, Proposition 155, Proposition 361, Theorem 21.
For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ such that $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{U}$ we have $\apply{U}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\unions{\ran{X}}}$ by Definition 1, Proposition 114.
$U\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\dom{X}}{\pow{\unions{\ran{X}}}}$ by Proposition 358.
Let $B_3 = \productFamily{U}$.
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{U}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\apply{X}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ by Definition 1, Definition 180.
$B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\productFamily{X}$ by Lemma 181.
$B_3\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\productFamily{X}}$ by Proposition 155.
$B_3\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by definition.
For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{U}$ we have $\apply{x}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{U}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ by Definition 1, Definition 166, Definition 191, Lemma 198, Lemma 256, Proposition 361, Theorem 21.
For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ such that $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{U}$ we have $\apply{x}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{\ran{U}}$ by Axiom 4, Definition 1, Proposition 209, Proposition 348, Proposition 359.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\dom{U}}{\unions{\ran{U}}}$ by Definition 1, Definition 166, Definition 191, Proposition 358, Proposition 359.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ by Definition 167.
Claim: For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$.
Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ by Definition 1, Lemma 209.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0\class{latex-symbol-tip latex-symbol-id-times}{\times} X_0$ by Proposition 115.
$(z,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0\class{latex-symbol-tip latex-symbol-id-times}{\times} X_0$ by Proposition 115.
$d((x,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((z,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ and $(z,y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ by Definition 1.
Take $s$ such that $((x,y),s)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Proposition 199.
$d((x,y)) = s$ by Definition 1, Definition 179, Proposition 346, Proposition 359.
Take $p_0,x_0,y_0,r_0$ such that $p_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0\class{latex-symbol-tip latex-symbol-id-times}{\times} X_0$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $y_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $r_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((x,y),s) = (p_0,r_0)$ and $p_0 = (x_0,y_0)$ and $\realSupremum{r_0}{\uniformMetricSet{J}{x_0}{y_0}}$ by Definition 205.
$p_0 = (x,y)$ and $s = r_0$ by Axiom 6.
$x_0 = x$ and $y_0 = y$ by Axiom 6.
For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\uniformMetricSet{J}{x}{y}$ we have $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 179, Definition 191, Definition 203, Lemma 198, Proposition 115, Proposition 361, Theorem 21.
$\uniformMetricSet{J}{x}{y}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1.
Claim: For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\uniformMetricSet{J}{x}{y}$ we have $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
Fix $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\uniformMetricSet{J}{x}{y}$.
Take $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $a = \apply{\boundedMetric{\standardMetricR}}{(x(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),y(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))}$ by Definition 203.
$y(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ by Definition 1, Definition 167.
$a < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 180.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ is an upper bound of $\uniformMetricSet{J}{x}{y}$ by Definition 66.
$r_0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 66, Definition 71, Definition 204.
$d((x,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 82, Lemma 83.
$(z,x)\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0\class{latex-symbol-tip latex-symbol-id-times}{\times} X_0$ by Proposition 115.
$d((z,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((z,x)) + d((x,y))$ by Definition 178, Definition 179.
$d((z,x)) + d((x,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((z,x)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((z,x)) + r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$d((z,x)) + d((x,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((z,x)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 16, Lemma 24.
$d((z,x)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < d((z,x)) + r$ by Axiom 16, Axiom 37.
$d((z,x)) + r = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 15, Axiom 16, Axiom 17, Axiom 18, Definition 64.
$d((z,x)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 83.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ by Axiom 36, Definition 1, Definition 180, Lemma 81.
$B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$ by Definition 1.
Claim: $T_0$ is finer than $T_1$ on $X_0$.
Follows by Lemma 80.
LaTeX source
\begin{proof}
Let $X_0 = \realsPower{J}$.
Let $d = \uniformMetric{J}$.
Let $T_1 = \uniformTopology{J}$.
Let $B_U = \metricBasis{d}{X_0}$.
Let $B = \{(\alpha,\metricBasis{\boundedMetric{\standardMetricR}}{\reals}) \mid \alpha\in J\}$.
Let $C = \{A\in\pow{\productFamily{X}} \mid
\exists U. U\in\funs{\dom{X}}{\pow{\unions{\ran{X}}}}\land
(\forall \alpha\in\dom{X}. \apply{U}{\alpha}\in\apply{B}{\alpha})\land
A = \productFamily{U}\}$.
$X$ is a function.
$T$ is a function.
$B$ is a function.
For all $\alpha$ such that $\alpha\in J$ we have $\alpha\in\dom{X}$ and $\alpha\in\dom{T}$ and $\alpha\in\dom{B}$
by \cref{dom_intro}.
$J\subseteq\dom{X}$ and $J\subseteq\dom{T}$ and $J\subseteq\dom{B}$ by \cref{subseteq}.
For all $\alpha$ such that $\alpha\in\dom{X}$ we have $\alpha\in J$ by \cref{dom_iff,pair_eq_iff}.
$\dom{X}\subseteq J$ by \cref{subseteq}.
$\dom{X} = J$ by \cref{subseteq_antisymmetric}.
For all $\alpha$ such that $\alpha\in\dom{T}$ we have $\alpha\in J$ by \cref{dom_iff,pair_eq_iff}.
$\dom{T}\subseteq J$ by \cref{subseteq}.
$\dom{T} = J$ by \cref{subseteq_antisymmetric}.
For all $\alpha$ such that $\alpha\in\dom{B}$ we have $\alpha\in J$ by \cref{dom_iff,pair_eq_iff}.
$\dom{B}\subseteq J$ by \cref{subseteq}.
$\dom{B} = J$ by \cref{subseteq_antisymmetric}.
For all $\alpha$ such that $\alpha\in\dom{X}$ we have
$\apply{X}{\alpha} = \reals$ and
$\apply{T}{\alpha} = \standardTopologyR$ and
$\apply{B}{\alpha} = \metricBasis{\boundedMetric{\standardMetricR}}{\reals}$
by \cref{subseteq,function_apply_intro}.
For all $\alpha$ such that $\alpha\in\dom{X}$ we have $\apply{B}{\alpha}$ is a basis for $\apply{T}{\alpha}$ on $\apply{X}{\alpha}$
by \cref{subseteq,standard_metric_basis_standard_topology}.
$C$ is a basis for $T_0$ on $\productFamily{X}$ by \cref{box_basis_from_bases}.
$C$ is a basis for $T_0$ on $X_0$ by \cref{product_family_reals_power,basis_for_topology}.
$d$ is a metric on $X_0$ by \cref{uniform_metric_is_metric}.
$\dom{d} = X_0\times X_0$ by \cref{metric_on,funs_elim}.
$B_U$ is a basis for $T_1$ on $X_0$ by \cref{metric_basis_is_basis,basis_for_topology,uniform_topology,metric_topology}.
Show that for all $x,B_2$ such that $x\in X_0$ and $B_2\in B_U$ and $x\in B_2$
there exists $B_3\in C$ such that $x\in B_3$ and $B_3\subseteq B_2$.
\begin{subproof}
Fix $x$.
Fix $B_2$ such that $x\in X_0$ and $B_2\in B_U$ and $x\in B_2$.
Take $z,\epsilon$ such that $z\in X_0$ and $\epsilon\in\reals$ and $0 < \epsilon$
and $B_2 = \metricBall{d}{X_0}{z}{\epsilon}$ by \cref{metric_basis}.
$d((z,x)) < \epsilon$ by \cref{subseteq,metric_ball}.
$(z,x)\in X_0\times X_0$ by \cref{times_tuple_intro}.
$d((z,x))\in\reals$ by \cref{metric_on,funs_type_apply}.
Let $r = \epsilon - d((z,x))$.
$0 < r$ by \cref{real_lt_imp_pos_diff}.
$r\in\reals$ by \cref{real_sub,real_add_inverse,real_add_closed}.
Let $\delta = r \rmul \inv{(1+1)}$.
$\delta\in\reals$ and $0 < \delta$ and $\delta < r$ by \cref{positive_real_smaller_half}.
Let $R = \{w\in J\times\pow{\unions{\ran{X}}} \mid \exists \alpha\in J.
\fst{w} = \alpha \land \snd{w} = \metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{\alpha}}{\delta}\}$.
For all $w$ such that $w\in R$ there exist $y,z$ such that $w = (y,z)$.
$R$ is a relation by \cref{relation}.
Show that for all $\alpha\in J$ there exists $V\in\pow{\unions{\ran{X}}}$ such that $\alpha\mathrel{R}V$.
\begin{subproof}
Fix $\alpha$ such that $\alpha\in J$.
Let $V = \metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{\alpha}}{\delta}$.
$V\in\pow{\unions{\ran{X}}}$ by \cref{metric_ball,ran_intro,unions_iff,subseteq,powerset_intro}.
$\alpha\mathrel{R}V$ by \cref{times_tuple_intro,fst_eq,snd_eq,pair_eq_iff}.
\end{subproof}
Take $U$ such that $U$ is a function on $J$ and for all $\alpha\in J$ we have $\alpha\mathrel{R}\apply{U}{\alpha}$
by \cref{axiom_of_choice}.
$U$ is a function and $\dom{U} = J$.
For all $\alpha\in J$ we have $(\alpha,\apply{U}{\alpha})\in R$ by \cref{subseteq}.
For all $\alpha\in J$ we have
$\apply{U}{\alpha} = \metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{\alpha}}{\delta}$
by \cref{fst_eq,snd_eq,pair_eq_iff}.
For all $\alpha\in\dom{X}$ we have $\apply{U}{\alpha}\in\apply{B}{\alpha}$ by
\cref{subseteq,reals_power,tuple_power,funs_type_apply,metric_ball,powerset_intro,metric_basis,bounded_metric_is_metric,standard_metric_is_metric}.
For all $\alpha$ such that $\alpha\in\dom{U}$ we have $\apply{U}{\alpha}\in\pow{\unions{\ran{X}}}$
by \cref{subseteq,times_tuple_elim}.
$U\in\funs{\dom{X}}{\pow{\unions{\ran{X}}}}$ by \cref{funs_intro}.
Let $B_3 = \productFamily{U}$.
For all $\alpha\in\dom{X}$ we have $\apply{U}{\alpha}\subseteq\apply{X}{\alpha}$ by \cref{subseteq,metric_ball}.
$B_3\subseteq\productFamily{X}$ by \cref{indexed_product_subset_from_coordinate_subsets}.
$B_3\in\pow{\productFamily{X}}$ by \cref{powerset_intro}.
$B_3\in C$ by definition.
For all $\alpha\in\dom{U}$ we have $\apply{x}{\alpha}\in\apply{U}{\alpha}$ by
\cref{subseteq,reals_power,tuple_power,funs_type_apply,metric_ball_center,bounded_metric_is_metric,standard_metric_is_metric}.
For all $\alpha$ such that $\alpha\in\dom{U}$ we have $\apply{x}{\alpha}\in\unions{\ran{U}}$
by \cref{subseteq,funs_elim,function_apply_elim,ran_intro,unions_iff}.
$x\in\funs{\dom{U}}{\unions{\ran{U}}}$ by \cref{subseteq,reals_power,tuple_power,funs_elim,funs_intro}.
$x\in B_3$ by \cref{indexed_product}.
Show that for all $y$ such that $y\in B_3$ we have $y\in B_2$.
\begin{subproof}
Fix $y$ such that $y\in B_3$.
$y\in X_0$ by \cref{subseteq,product_family_reals_power}.
$(x,y)\in X_0\times X_0$ by \cref{times_tuple_intro}.
$(z,y)\in X_0\times X_0$ by \cref{times_tuple_intro}.
$d((x,y))\in\reals$ and $d((z,y))\in\reals$ by \cref{metric_on,funs_type_apply}.
$(x,y)\in\dom{d}$ and $(z,y)\in\dom{d}$ by \cref{subseteq}.
Take $s$ such that $((x,y),s)\in d$ by \cref{dom_iff}.
$d((x,y)) = s$ by \cref{metric_on,funs_elim,subseteq,function_apply_intro}.
Take $p_0,x_0,y_0,r_0$ such that
$p_0\in X_0\times X_0$ and $x_0\in X_0$ and $y_0\in X_0$ and $r_0\in\reals$ and
$((x,y),s) = (p_0,r_0)$ and $p_0 = (x_0,y_0)$ and
$\realSupremum{r_0}{\uniformMetricSet{J}{x_0}{y_0}}$ by \cref{uniform_metric}.
$p_0 = (x,y)$ and $s = r_0$ by \cref{pair_eq_iff}.
$x_0 = x$ and $y_0 = y$ by \cref{pair_eq_iff}.
For all $a\in\uniformMetricSet{J}{x}{y}$ we have $a\in\reals$ by \cref{uniform_metric_set,reals_power,tuple_power,funs_type_apply,times_tuple_intro,bounded_metric_is_metric,standard_metric_is_metric,metric_on}.
$\uniformMetricSet{J}{x}{y}\subseteq\reals$ by \cref{subseteq}.
Show that for all $a\in\uniformMetricSet{J}{x}{y}$ we have $a \leq \delta$.
\begin{subproof}
Fix $a$ such that $a\in\uniformMetricSet{J}{x}{y}$.
Take $\alpha\in J$ such that $a = \apply{\boundedMetric{\standardMetricR}}{(x(\alpha),y(\alpha))}$ by \cref{uniform_metric_set}.
$y(\alpha)\in\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{\alpha}}{\delta}$ by \cref{indexed_product,subseteq}.
$a < \delta$ by \cref{metric_ball}.
$a \leq \delta$.
\end{subproof}
$\delta$ is an upper bound of $\uniformMetricSet{J}{x}{y}$ by \cref{real_upper_bound}.
$r_0 \leq \delta$ by \cref{real_supremum_pred,real_supremum,real_upper_bound}.
$d((x,y)) \leq \delta$ by \cref{real_lt_subst_left,real_lt_subst_right}.
$(z,x)\in X_0\times X_0$ by \cref{times_tuple_intro}.
$d((z,y)) \leq d((z,x)) + d((x,y))$ by \cref{metric_on,metric_triangle_inequality}.
$d((z,x)) + d((x,y))\in\reals$ and $d((z,x)) + \delta\in\reals$ and $d((z,x)) + r\in\reals$
by \cref{real_add_closed}.
$d((z,x)) + d((x,y)) \leq d((z,x)) + \delta$ by \cref{real_leq_add,real_add_comm}.
$d((z,x)) + \delta < d((z,x)) + r$ by \cref{real_lt_add,real_add_comm}.
$d((z,x)) + r = \epsilon$ by
\cref{real_sub,real_add_assoc,real_add_inverse,real_add_comm,real_add_ident}.
$d((z,x)) + \delta < \epsilon$ by \cref{real_lt_subst_right}.
$y\in B_2$ by \cref{real_leq_split,real_lt_trans,metric_ball,subseteq}.
\end{subproof}
$B_3\subseteq B_2$ by \cref{subseteq}.
\end{subproof}
Show that $T_0$ is finer than $T_1$ on $X_0$.
\begin{subproof}
Follows by \cref{basis_finer_criterion}.
\end{subproof}
\end{proof}
$1 / 1 = 1$.
LaTeX source
\begin{lemma}
\label{real_one_div_one}
$1 / 1 = 1$.
\end{lemma}
Proof
Follows by Axiom 21, Definition 1, Definition 65, Lemma 20, Proposition 436, Proposition 462.
LaTeX source
\begin{proof}
Follows by \cref{real_mul_ident,real_zero_lt_one,real_pos_nonzero,real_mul_inverse_unique,real_div,subseteq}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Then $1 / (n + 1) < 1 / n$.
LaTeX source
\begin{lemma}
\label{naturalsplus_reciprocal_step}
Suppose $n\in\naturalsPlus$.
Then $1 / (n + 1) < 1 / n$.
\end{lemma}
Proof
$n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $n + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < n$ and $0 < n + 1$ by Axiom 41, Axiom 45, Definition 1, Lemma 89.
$n \class{latex-symbol-tip latex-symbol-id-neq}{\neq} 0$ and $n + 1 \class{latex-symbol-tip latex-symbol-id-neq}{\neq} 0$ and $\inv{n}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\inv{(n + 1)}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \inv{n}$ and $0 < \inv{(n + 1)}$ by Axiom 22, Lemma 20, Proposition 463.
Let $c = \inv{n} \rmul \inv{(n + 1)}$.
$c\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < c$ by Axiom 14, Proposition 454.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $n < n + 1$ by Axiom 16, Axiom 17, Axiom 21, Axiom 37, Lemma 82, Lemma 83, Proposition 462.
$n \rmul c < (n + 1) \rmul c$ by Axiom 38.
$1 / (n + 1) < 1 / n$ by Axiom 19, Axiom 20, Axiom 21, Axiom 22, Definition 65, Lemma 82, Lemma 83.
LaTeX source
\begin{proof}
$n\in\reals$ and $n + 1\in\reals$ and $0 < n$ and $0 < n + 1$ by
\cref{real_naturals_subset_reals,subseteq,real_naturals_closed_succ,naturalsplus_positive_real}.
$n \neq 0$ and $n + 1 \neq 0$ and
$\inv{n}\in\reals$ and $\inv{(n + 1)}\in\reals$ and $0 < \inv{n}$ and $0 < \inv{(n + 1)}$
by \cref{real_pos_nonzero,real_mul_inverse,real_inv_pos}.
Let $c = \inv{n} \rmul \inv{(n + 1)}$.
$c\in\reals$ and $0 < c$ by \cref{real_mul_closed,real_mul_pos_pos_gt}.
$0\in\reals$ and $1\in\reals$ and $n < n + 1$ by
\cref{real_add_ident,real_mul_ident,real_zero_lt_one,real_lt_add,real_add_comm,real_lt_subst_left,real_lt_subst_right}.
$n \rmul c < (n + 1) \rmul c$ by \cref{real_lt_mul_pos}.
$1 / (n + 1) < 1 / n$ by
\cref{real_mul_assoc,real_mul_comm,real_mul_inverse,real_mul_ident,real_div,real_lt_subst_left,real_lt_subst_right}.
\end{proof}
Suppose $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $m \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
Then $1 / n \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 / m$.
LaTeX source
\begin{lemma}
\label{naturalsplus_reciprocal_antitone}
Suppose $m\in\naturalsPlus$ and $n\in\naturalsPlus$ and $m \leq n$.
Then $1 / n \leq 1 / m$.
\end{lemma}
Proof
Let $A = \{k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \text{if $m \leq k$ then $1 / k \leq 1 / m$}\}$.
For all $k$ such that $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Definition 1.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1.
Claim: If $m \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ then $1 / 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 / m$.
Follows by Axiom 21, Axiom 41, Axiom 43, Definition 1, Lemma 25.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Claim: For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Fix $k$ such that $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
$k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Definition 1.
Claim: If $m \class{latex-symbol-tip latex-symbol-id-leq}{\leq} k + 1$ then $1 / (k + 1) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 / m$.
Assume $m \class{latex-symbol-tip latex-symbol-id-leq}{\leq} k + 1$.
$m < k + 1$ or $m = k + 1$ by Lemma 81.
$m < k$ or $m = k$ or $m = k + 1$ by Axiom 44.
$m \class{latex-symbol-tip latex-symbol-id-leq}{\leq} k$.
$1 / (k + 1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1 / k\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1 / m\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 45, Definition 1, Lemma 90.
$1 / k \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 / m$ by Definition 1.
$1 / (k + 1) < 1 / k$ by Lemma 258.
$1 / k < 1 / m$ or $1 / k = 1 / m$ by Lemma 81.
$1 / (k + 1) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 / m$ by Axiom 36, Lemma 81, Lemma 83.
$1 / k = 1 / m$ by Definition 1.
$1 / (k + 1) < 1 / k$ by Lemma 258.
$1 / (k + 1) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 / m$ by Lemma 83.
$1 / (k + 1) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 / m$ by Definition 1.
LaTeX source
\begin{byCase}
\caseOf{$m < k$.}
$m \leq k$.
$1 / (k + 1)\in\reals$ and $1 / k\in\reals$ and $1 / m\in\reals$ by
\cref{naturalsplus_reciprocal_real,real_naturals_closed_succ,subseteq}.
$1 / k \leq 1 / m$ by \cref{subseteq}.
$1 / (k + 1) < 1 / k$ by \cref{naturalsplus_reciprocal_step}.
$1 / k < 1 / m$ or $1 / k = 1 / m$ by \cref{real_leq_split}.
$1 / (k + 1) \leq 1 / m$ by
\cref{real_leq_split,real_lt_trans,real_lt_subst_right}.
\caseOf{$m = k$.}
$1 / k = 1 / m$ by \cref{subseteq}.
$1 / (k + 1) < 1 / k$ by \cref{naturalsplus_reciprocal_step}.
$1 / (k + 1) \leq 1 / m$ by \cref{real_lt_subst_right}.
\caseOf{$m = k + 1$.}
$1 / (k + 1) \leq 1 / m$ by \cref{subseteq}.
\end{byCase}
$1 / (k + 1) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 / m$ by Definition 1.
LaTeX source
\begin{byCase}
\caseOf{$m < k + 1$.}
$m < k$ or $m = k$ or $m = k + 1$ by \cref{real_succ_discrete}.
\begin{byCase}
\caseOf{$m < k$.}
$m \leq k$.
$1 / (k + 1)\in\reals$ and $1 / k\in\reals$ and $1 / m\in\reals$ by
\cref{naturalsplus_reciprocal_real,real_naturals_closed_succ,subseteq}.
$1 / k \leq 1 / m$ by \cref{subseteq}.
$1 / (k + 1) < 1 / k$ by \cref{naturalsplus_reciprocal_step}.
$1 / k < 1 / m$ or $1 / k = 1 / m$ by \cref{real_leq_split}.
$1 / (k + 1) \leq 1 / m$ by
\cref{real_leq_split,real_lt_trans,real_lt_subst_right}.
\caseOf{$m = k$.}
$1 / k = 1 / m$ by \cref{subseteq}.
$1 / (k + 1) < 1 / k$ by \cref{naturalsplus_reciprocal_step}.
$1 / (k + 1) \leq 1 / m$ by \cref{real_lt_subst_right}.
\caseOf{$m = k + 1$.}
$1 / (k + 1) \leq 1 / m$ by \cref{subseteq}.
\end{byCase}
\caseOf{$m = k + 1$.}
$1 / (k + 1) \leq 1 / m$ by \cref{subseteq}.
\end{byCase}
$k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 45.
For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 445.
$1 / n \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 / m$ by Definition 1.
LaTeX source
\begin{proof}
Let $A = \{k\in\naturalsPlus \mid \text{if $m \leq k$ then $1 / k \leq 1 / m$}\}$.
For all $k$ such that $k\in A$ we have $k\in\naturalsPlus$ by \cref{subseteq}.
$A\subseteq\naturalsPlus$ by \cref{subseteq}.
Show that if $m \leq 1$ then $1 / 1 \leq 1 / m$.
\begin{subproof}
Follows by \cref{real_mul_ident,real_naturals_subset_reals,subseteq,real_one_leq_naturalsplus,real_leq_antisym}.
\end{subproof}
$1\in A$.
Show that for all $k\in A$ we have $k + 1\in A$.
\begin{subproof}
Fix $k$ such that $k\in A$.
$k\in\naturalsPlus$ by \cref{subseteq}.
Show that if $m \leq k + 1$ then $1 / (k + 1) \leq 1 / m$.
\begin{subproof}
Assume $m \leq k + 1$.
$m < k + 1$ or $m = k + 1$ by \cref{real_leq_split}.
\begin{byCase}
\caseOf{$m < k + 1$.}
$m < k$ or $m = k$ or $m = k + 1$ by \cref{real_succ_discrete}.
\begin{byCase}
\caseOf{$m < k$.}
$m \leq k$.
$1 / (k + 1)\in\reals$ and $1 / k\in\reals$ and $1 / m\in\reals$ by
\cref{naturalsplus_reciprocal_real,real_naturals_closed_succ,subseteq}.
$1 / k \leq 1 / m$ by \cref{subseteq}.
$1 / (k + 1) < 1 / k$ by \cref{naturalsplus_reciprocal_step}.
$1 / k < 1 / m$ or $1 / k = 1 / m$ by \cref{real_leq_split}.
$1 / (k + 1) \leq 1 / m$ by
\cref{real_leq_split,real_lt_trans,real_lt_subst_right}.
\caseOf{$m = k$.}
$1 / k = 1 / m$ by \cref{subseteq}.
$1 / (k + 1) < 1 / k$ by \cref{naturalsplus_reciprocal_step}.
$1 / (k + 1) \leq 1 / m$ by \cref{real_lt_subst_right}.
\caseOf{$m = k + 1$.}
$1 / (k + 1) \leq 1 / m$ by \cref{subseteq}.
\end{byCase}
\caseOf{$m = k + 1$.}
$1 / (k + 1) \leq 1 / m$ by \cref{subseteq}.
\end{byCase}
\end{subproof}
$k + 1\in A$ by \cref{real_naturals_closed_succ}.
\end{subproof}
For all $k\in\naturalsPlus$ we have $k\in A$ by \cref{real_naturals_induction}.
$1 / n \leq 1 / m$ by \cref{subseteq}.
\end{proof}
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $a / n < b / n$.
Then $a < b$.
LaTeX source
\begin{lemma}
\label{real_div_lt_same_denom_cancel}
Suppose $a\in\reals$ and $b\in\reals$ and $n\in\naturalsPlus$ and $a / n < b / n$.
Then $a < b$.
\end{lemma}
Proof
$n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < n$ by Axiom 41, Definition 1, Lemma 89.
$n \class{latex-symbol-tip latex-symbol-id-neq}{\neq} 0$ by Lemma 20.
$\inv{n}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 22.
$a / n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $b / n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14, Definition 65.
$(a / n) \rmul n < (b / n) \rmul n$ by Axiom 38.
$(a / n) \rmul n = a$ and $(b / n) \rmul n = b$ by Axiom 19, Axiom 20, Axiom 21, Axiom 22, Definition 65.
$a < b$ by Lemma 82, Lemma 83.
LaTeX source
\begin{proof}
$n\in\reals$ and $0 < n$ by \cref{real_naturals_subset_reals,subseteq,naturalsplus_positive_real}.
$n \neq 0$ by \cref{real_pos_nonzero}.
$\inv{n}\in\reals$ by \cref{real_mul_inverse}.
$a / n\in\reals$ and $b / n\in\reals$ by \cref{real_div,real_mul_closed}.
$(a / n) \rmul n < (b / n) \rmul n$ by \cref{real_lt_mul_pos}.
$(a / n) \rmul n = a$ and $(b / n) \rmul n = b$ by
\cref{real_div,real_mul_assoc,real_mul_inverse,real_mul_comm,real_mul_ident}.
$a < b$ by \cref{real_lt_subst_left,real_lt_subst_right}.
\end{proof}
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b$.
Then $a / n \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b / n$.
LaTeX source
\begin{lemma}
\label{real_div_leq_same_denom}
Suppose $a\in\reals$ and $b\in\reals$ and $n\in\naturalsPlus$ and $a \leq b$.
Then $a / n \leq b / n$.
\end{lemma}
Proof
$n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < n$ and $\inv{n}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \inv{n}$ by Axiom 22, Axiom 41, Definition 1, Lemma 20, Lemma 89, Proposition 463.
$a < b$ or $a = b$ by Lemma 81.
$a \rmul \inv{n} < b \rmul \inv{n}$ by Axiom 38.
$a / n \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b / n$ by Definition 65, Lemma 82, Lemma 83.
$a / n \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b / n$ by Definition 1.
LaTeX source
\begin{byCase}
\caseOf{$a < b$.}
$a \rmul \inv{n} < b \rmul \inv{n}$ by \cref{real_lt_mul_pos}.
$a / n \leq b / n$ by \cref{real_div,real_lt_subst_left,real_lt_subst_right}.
\caseOf{$a = b$.}
$a / n \leq b / n$ by \cref{subseteq}.
\end{byCase}
LaTeX source
\begin{proof}
$n\in\reals$ and $0 < n$ and $\inv{n}\in\reals$ and $0 < \inv{n}$ by
\cref{real_naturals_subset_reals,subseteq,naturalsplus_positive_real,real_pos_nonzero,real_mul_inverse,real_inv_pos}.
$a < b$ or $a = b$ by \cref{real_leq_split}.
\begin{byCase}
\caseOf{$a < b$.}
$a \rmul \inv{n} < b \rmul \inv{n}$ by \cref{real_lt_mul_pos}.
$a / n \leq b / n$ by \cref{real_div,real_lt_subst_left,real_lt_subst_right}.
\caseOf{$a = b$.}
$a / n \leq b / n$ by \cref{subseteq}.
\end{byCase}
\end{proof}
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Then $(a + b) / n = a / n + b / n$.
LaTeX source
\begin{lemma}
\label{real_div_add_same_denom}
Suppose $a\in\reals$ and $b\in\reals$ and $n\in\naturalsPlus$.
Then $(a + b) / n = a / n + b / n$.
\end{lemma}
Proof
$n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\inv{n}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $a + b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 22, Axiom 41, Definition 1, Lemma 20, Lemma 89.
$(a + b) / n = (a \rmul \inv{n}) + (b \rmul \inv{n})$ by Axiom 20, Axiom 23, Definition 65, Proposition 437.
$(a + b) / n = a / n + b / n$ by Definition 65, Lemma 82, Lemma 83.
LaTeX source
\begin{proof}
$n\in\reals$ and $\inv{n}\in\reals$ and $a + b\in\reals$ by
\cref{real_naturals_subset_reals,subseteq,real_mul_inverse,naturalsplus_positive_real,real_pos_nonzero,real_add_closed}.
$(a + b) / n = (a \rmul \inv{n}) + (b \rmul \inv{n})$ by
\cref{real_div,real_mul_comm,real_distrib,real_add_eq_subst}.
$(a + b) / n = a / n + b / n$ by \cref{real_div,real_lt_subst_left,real_lt_subst_right}.
\end{proof}
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a$ and $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Then $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a / n$.
LaTeX source
\begin{lemma}
\label{real_div_naturalsplus_nonnegative}
Suppose $a\in\reals$ and $0 \leq a$ and $n\in\naturalsPlus$.
Then $0 \leq a / n$.
\end{lemma}
Proof
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 / n = 0$ by Axiom 17, Axiom 22, Axiom 41, Definition 1, Definition 65, Lemma 20, Lemma 89, Proposition 439.
$0 / n \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a / n$ by Lemma 261.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a / n$ by Lemma 82.
LaTeX source
\begin{proof}
$0\in\reals$ and $0 / n = 0$ by
\cref{real_add_ident,real_naturals_subset_reals,subseteq,naturalsplus_positive_real,real_pos_nonzero,real_mul_inverse,real_div,real_mul_zero}.
$0 / n \leq a / n$ by \cref{real_div_leq_same_denom}.
$0 \leq a / n$ by \cref{real_lt_subst_left}.
\end{proof}
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a$ and $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $a / n = 0$.
Then $a = 0$.
LaTeX source
\begin{lemma}
\label{real_div_naturalsplus_zero}
Suppose $a\in\reals$ and $0 \leq a$ and $n\in\naturalsPlus$ and $a / n = 0$.
Then $a = 0$.
\end{lemma}
Proof
Suppose not.
$0 < a$ by Lemma 81.
$n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < n$ and $\inv{n}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \inv{n}$ and $0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17, Axiom 22, Axiom 41, Definition 1, Lemma 20, Lemma 89, Proposition 463.
$0 < a \rmul \inv{n}$ by Axiom 38, Lemma 82, Proposition 439.
$0 < a / n$ by Definition 65, Lemma 83.
$0 < 0$ by Lemma 83.
Contradiction by Axiom 17, Axiom 39.
LaTeX source
\begin{proof}
Suppose not.
$0 < a$ by \cref{real_leq_split}.
$n\in\reals$ and $0 < n$ and $\inv{n}\in\reals$ and $0 < \inv{n}$ and $0\in\reals$ by
\cref{real_naturals_subset_reals,subseteq,naturalsplus_positive_real,real_pos_nonzero,real_mul_inverse,real_inv_pos,real_add_ident}.
$0 < a \rmul \inv{n}$ by \cref{real_lt_mul_pos,real_mul_zero,real_lt_subst_left}.
$0 < a / n$ by \cref{real_div,real_lt_subst_right}.
$0 < 0$ by \cref{real_lt_subst_right}.
Contradiction by \cref{real_lt_irreflexive,real_add_ident}.
\end{proof}
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Then $a / n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
LaTeX source
\begin{lemma}
\label{real_div_naturalsplus_real}
Suppose $a\in\reals$ and $n\in\naturalsPlus$.
Then $a / n\in\reals$.
\end{lemma}
Proof
$a / n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14, Axiom 22, Axiom 41, Definition 1, Definition 65, Lemma 20, Lemma 89.
LaTeX source
\begin{proof}
$a / n\in\reals$ by
\cref{real_naturals_subset_reals,subseteq,naturalsplus_positive_real,real_pos_nonzero,real_mul_inverse,real_div,real_mul_closed}.
\end{proof}
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $c\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b$ and $b < c$.
Then $a < c$.
LaTeX source
\begin{lemma}
\label{real_leq_lt_trans}
Suppose $a\in\reals$ and $b\in\reals$ and $c\in\reals$ and $a \leq b$ and $b < c$.
Then $a < c$.
\end{lemma}
Proof
$\omegaMetricSet{x}{y} = \{\apply{\boundedMetric{\standardMetricR}}{(x(i),y(i))} / i \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus\}$.
LaTeX source
\begin{definition}
\label{omega_metric_set}
$\omegaMetricSet{x}{y} = \{\apply{\boundedMetric{\standardMetricR}}{(x(i),y(i))} / i \mid i\in\naturalsPlus\}$.
\end{definition}
$\omegaMetric = \{w \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} p\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{\naturalsPlus}\class{latex-symbol-tip latex-symbol-id-times}{\times}\realsPower{\naturalsPlus}. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} x\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{\naturalsPlus}. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} y\class{latex-symbol-tip latex-symbol-id-in}{\in}\realsPower{\naturalsPlus}. \class{latex-symbol-tip latex-symbol-id-exists}{\exists} r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals. w = (p,r) \class{latex-symbol-tip latex-symbol-id-land}{\land} p = (x,y) \class{latex-symbol-tip latex-symbol-id-land}{\land} \realSupremum{r}{\omegaMetricSet{x}{y}}\}$.
LaTeX source
\begin{definition}
\label{omega_metric}
$\omegaMetric = \{w \mid \exists p\in\realsPower{\naturalsPlus}\times\realsPower{\naturalsPlus}.
\exists x\in\realsPower{\naturalsPlus}. \exists y\in\realsPower{\naturalsPlus}. \exists r\in\reals.
w = (p,r) \land p = (x,y) \land
\realSupremum{r}{\omegaMetricSet{x}{y}}\}$.
\end{definition}
$\omegaMetric$ is a metric on $\realsPower{\naturalsPlus}$.
LaTeX source
\begin{theorem}
\label{omega_metric_is_metric}
$\omegaMetric$ is a metric on $\realsPower{\naturalsPlus}$.
\end{theorem}
Proof
Let $X = \realsPower{\naturalsPlus}$.
Let $d = \omegaMetric$.
Let $e = \boundedMetric{\standardMetricR}$.
$\standardMetricR$ is a metric on $\reals$ by Lemma 198.
Hence $e$ is a metric on $\reals$ and $e\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, Theorem 21.
Claim: $d\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} X}{\reals}$.
Claim: For all $p,z_1,z_2$ such that $(p,z_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ and $(p,z_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ we have $z_1 = z_2$.
Fix $p$.
Fix $z_1$.
Fix $z_2$ such that $(p,z_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ and $(p,z_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$.
Take $p_1,x_1,y_1,r_1$ such that $p_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $r_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $(p,z_1) = (p_1,r_1)$ and $p_1 = (x_1,y_1)$ and $\realSupremum{r_1}{\omegaMetricSet{x_1}{y_1}}$ by Definition 208.
Take $p_2,x_2,y_2,r_2$ such that $p_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $r_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $(p,z_2) = (p_2,r_2)$ and $p_2 = (x_2,y_2)$ and $\realSupremum{r_2}{\omegaMetricSet{x_2}{y_2}}$ by Definition 208.
$p = p_1$ and $z_1 = r_1$ and $p = p_2$ and $z_2 = r_2$ by Axiom 6.
$p_1 = p_2$.
$(x_1,y_1) = (x_2,y_2)$ by Axiom 6.
$x_1 = x_2$ and $y_1 = y_2$ by Axiom 6.
$\omegaMetricSet{x_1}{y_1} = \omegaMetricSet{x_2}{y_2}$.
$r_1 = r_2$ by Definition 204, Proposition 467.
$z_1 = z_2$.
$d$ is a function by Definition 12, Definition 51, Definition 208.
Claim: For all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ we have $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$.
Fix $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$.
Take $x,y$ such that $p = (x,y)$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Proposition 121.
Let $A = \omegaMetricSet{x}{y}$.
For all $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 179, Definition 191, Definition 207, Lemma 265, Proposition 115, Proposition 361.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 42.
$A\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2, Definition 207.
Claim: For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$.
Fix $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Take $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $a = \apply{e}{(x(i),y(i))} / i$ by Definition 207.
Let $m = \apply{e}{(x(i),y(i))}$.
$a = m / i$.
$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 Definition 166, Definition 191, Proposition 361.
$(x(i),y(i))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ by Proposition 115.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 21.
$m\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ by Definition 175, Definition 179, Proposition 361.
$m \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ by Lemma 201.
$m / i \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 / i$ by Lemma 261.
$1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} i$ by Axiom 43.
$1 / i \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ by Definition 1, Lemma 257, Lemma 259.
$m / i\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1 / i\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Lemma 90, Lemma 265.
$m / i \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ by Lemma 23.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ by Definition 1.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 21.
$1$ is an upper bound of $A$ by Definition 66.
$A$ is bounded above by Definition 67.
Take $r$ such that $r$ is a supremum of $A$ by Axiom 40.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Proposition 115.
$r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 66, Definition 71.
$((x,y),r)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Definition 204, Definition 208.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ by Axiom 6, Proposition 200.
$X\class{latex-symbol-tip latex-symbol-id-times}{\times} X\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{d}$ by Definition 1.
For all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ we have $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Axiom 6, Definition 1, Definition 208, Proposition 199.
$\dom{d}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Definition 1.
$\dom{d} = X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Proposition 3.
For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ we have $d(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 6, Definition 208, Lemma 82, Proposition 199, Proposition 349.
$d\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} X}{\reals}$ by Proposition 358.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$.
Fix $x$.
Fix $y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $r = d((x,y))$.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ by Proposition 115, Proposition 359.
$((x,y),r)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Proposition 348, Proposition 359.
Take $p_0,x_0,y_0,r_0$ such that $p_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $r_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((x,y),r) = (p_0,r_0)$ and $p_0 = (x_0,y_0)$ and $\realSupremum{r_0}{\omegaMetricSet{x_0}{y_0}}$ by Definition 208.
$p_0 = (x,y)$ and $r = r_0$ by Axiom 6.
$r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
$x_0 = x$ and $y_0 = y$ by Axiom 6.
Let $a = \apply{e}{(x(1),y(1))} / 1$.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r$ by Axiom 42, Definition 66, Definition 71, Definition 204, Definition 207.
$x(1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y(1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 42, Definition 166, Definition 191, Proposition 361.
$(x(1),y(1))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ by Proposition 115.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a$ by Axiom 42, Definition 1, Definition 175, Definition 179, Lemma 82, Lemma 263, Lemma 265, Proposition 361.
$0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r$ by Axiom 17, Lemma 23.
$d((x,y)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$.
Claim: $d$ is nonnegative on $X$.
Follows by Definition 175.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have if $d((x,y)) = 0$ then $x = y$.
Fix $x$.
Fix $y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Assume $d((x,y)) = 0$.
Let $r = d((x,y))$.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ by Proposition 115, Proposition 359.
$((x,y),r)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Proposition 348, Proposition 359.
Take $p_0,x_0,y_0,r_0$ such that $p_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $r_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((x,y),r) = (p_0,r_0)$ and $p_0 = (x_0,y_0)$ and $\realSupremum{r_0}{\omegaMetricSet{x_0}{y_0}}$ by Definition 208.
$p_0 = (x,y)$ and $r = r_0$ by Axiom 6.
$x_0 = x$ and $y_0 = y$ by Axiom 6.
Claim: For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $x(i) = y(i)$.
Fix $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $a = \apply{e}{(x(i),y(i))} / i$.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r$ by Definition 66, Definition 71, Definition 204, Definition 207.
Let $m = \apply{e}{(x(i),y(i))}$.
$a = m / i$.
$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 Definition 166, Definition 191, Proposition 361.
$(x(i),y(i))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ by Proposition 115.
$m\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ by Definition 175, Definition 179, Proposition 361.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a$ by Definition 1, Lemma 263, Lemma 265.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 0$ by Definition 66, Definition 71, Definition 204, Lemma 82, Lemma 83.
$a = 0$ by Axiom 17, Lemma 25, Lemma 83.
$m = 0$ by Definition 1, Lemma 264.
$x(i) = y(i)$ by Definition 176, Definition 179.
$\dom{x} = \naturalsPlus$ and $\dom{y} = \naturalsPlus$ by Definition 166, Definition 191, Proposition 359.
$\dom{x}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{y}$ and $\dom{y}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{x}$ by Proposition 2.
$x\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} y$ and $y\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} x$ by Definition 1, Definition 166, Definition 191, Proposition 350, Proposition 359.
$x = y$ by Proposition 3.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have if $x = y$ then $d((x,y)) = 0$.
Fix $x$.
Fix $y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Assume $x = y$.
Let $A = \omegaMetricSet{x}{y}$.
Claim: For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 0$.
Fix $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Take $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $a = \apply{e}{(x(i),y(i))} / i$ by Definition 207.
$x(i) = y(i)$ by Lemma 82.
$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 Definition 166, Definition 191, Proposition 361.
$(x(i),y(i))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ by Proposition 115.
$\apply{e}{(x(i),y(i))} = 0$ by Definition 176, Definition 179.
$a = 0 / i$ by Definition 1.
$a = 0 \rmul \inv{i}$ by Definition 65.
$i\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < i$ and $\inv{i}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 22, Axiom 41, Definition 1, Lemma 20, Lemma 89.
$a = 0$ by Proposition 439.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 0$.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17.
For all $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 179, Definition 191, Definition 207, Lemma 265, Proposition 115, Proposition 361.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ and $0$ is an upper bound of $A$ by Axiom 17, Definition 1, Definition 66.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 42.
$\apply{e}{(x(1),y(1))} / 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 207.
$x(1) = y(1)$ by Lemma 82.
$x(1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y(1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 42, Definition 166, Definition 191, Proposition 361.
$(x(1),y(1))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ by Proposition 115.
$\apply{e}{(x(1),y(1))} = 0$ by Definition 176, Definition 179.
$\apply{e}{(x(1),y(1))} / 1 = 0 / 1$ by Lemma 82.
$0 / 1 = 0$ by Axiom 21, Axiom 22, Definition 65, Lemma 20, Lemma 82, Proposition 439, Proposition 462.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 1, Lemma 83.
For all $b$ such that $b$ is an upper bound of $A$ we have $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b$ by Definition 66.
$0$ is a supremum of $A$ by Definition 71.
$((x,y),0)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Axiom 6, Axiom 17, Definition 204, Definition 208, Proposition 115.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ by Proposition 200.
$d((x,y)) = 0$ by Proposition 349, Proposition 359.
Claim: $d$ is zero-characterized on $X$.
Follows by Definition 176.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) = d((y,x))$.
Fix $x$.
Fix $y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $A_1 = \omegaMetricSet{x}{y}$.
Let $A_2 = \omegaMetricSet{y}{x}$.
For all $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A_1$ we have $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A_2$ by Definition 1, Definition 166, Definition 177, Definition 179, Definition 191, Definition 207, Proposition 115, Proposition 361.
$A_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A_2$ by Definition 1.
For all $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A_2$ we have $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A_1$ by Definition 1, Definition 166, Definition 177, Definition 179, Definition 191, Definition 207, Proposition 115, Proposition 361.
$A_2\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A_1$ by Definition 1.
$A_1 = A_2$ by Proposition 3.
Let $r_1 = d((x,y))$.
Let $r_2 = d((y,x))$.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ and $(y,x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ by Proposition 115, Proposition 359.
$((x,y),r_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ and $((y,x),r_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Proposition 348, Proposition 359.
Take $p_1,x_1,y_1,s_1$ such that $p_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $s_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((x,y),r_1) = (p_1,s_1)$ and $p_1 = (x_1,y_1)$ and $\realSupremum{s_1}{\omegaMetricSet{x_1}{y_1}}$ by Definition 208.
Take $p_2,x_2,y_2,s_2$ such that $p_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $s_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((y,x),r_2) = (p_2,s_2)$ and $p_2 = (x_2,y_2)$ and $\realSupremum{s_2}{\omegaMetricSet{x_2}{y_2}}$ by Definition 208.
$p_1 = (x,y)$ and $r_1 = s_1$ and $p_2 = (y,x)$ and $r_2 = s_2$ by Axiom 6.
$x_1 = x$ and $y_1 = y$ and $x_2 = y$ and $y_2 = x$ by Axiom 6.
$r_1 = r_2$ by Definition 204, Proposition 467.
$d((x,y)) = d((y,x))$.
Claim: $d$ is symmetric on $X$.
Follows by Definition 177.
Claim: For all $x,y,z$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((x,y)) + d((y,z)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} d((x,z))$.
Fix $x$.
Fix $y$.
Fix $z$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $A_1 = \omegaMetricSet{x}{y}$.
Let $A_2 = \omegaMetricSet{y}{z}$.
Let $A_3 = \omegaMetricSet{x}{z}$.
Let $r_1 = d((x,y))$.
Let $r_2 = d((y,z))$.
Let $r_3 = d((x,z))$.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ and $(y,z)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ and $(x,z)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ by Proposition 115, Proposition 359.
$((x,y),r_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ and $((y,z),r_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ and $((x,z),r_3)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Proposition 348, Proposition 359.
Take $p_1,x_1,y_1,s_1$ such that $p_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $s_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((x,y),r_1) = (p_1,s_1)$ and $p_1 = (x_1,y_1)$ and $\realSupremum{s_1}{\omegaMetricSet{x_1}{y_1}}$ by Definition 208.
Take $p_2,x_2,y_2,s_2$ such that $p_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $x_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $s_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((y,z),r_2) = (p_2,s_2)$ and $p_2 = (x_2,y_2)$ and $\realSupremum{s_2}{\omegaMetricSet{x_2}{y_2}}$ by Definition 208.
Take $p_3,x_3,y_3,s_3$ such that $p_3\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $x_3\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y_3\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $s_3\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((x,z),r_3) = (p_3,s_3)$ and $p_3 = (x_3,y_3)$ and $\realSupremum{s_3}{\omegaMetricSet{x_3}{y_3}}$ by Definition 208.
$p_1 = (x,y)$ and $r_1 = s_1$ and $p_2 = (y,z)$ and $r_2 = s_2$ and $p_3 = (x,z)$ and $r_3 = s_3$ by Axiom 6.
$r_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $r_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $r_3\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
$x_1 = x$ and $y_1 = y$ and $x_2 = y$ and $y_2 = z$ and $x_3 = x$ and $y_3 = z$ by Axiom 6.
For all $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A_3$ we have $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 179, Definition 191, Definition 207, Lemma 265, Proposition 115, Proposition 361.
$A_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1.
Claim: For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A_3$ we have $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 + r_2$.
Fix $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A_3$.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1.
Take $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $a = \apply{e}{(x(i),z(i))} / i$ by Definition 207.
Let $a_1 = \apply{e}{(x(i),y(i))} / i$.
Let $a_2 = \apply{e}{(y(i),z(i))} / i$.
$a_1\class{latex-symbol-tip latex-symbol-id-in}{\in} A_1$ and $a_2\class{latex-symbol-tip latex-symbol-id-in}{\in} A_2$ by Definition 207.
Let $m = \apply{e}{(x(i),z(i))}$.
Let $m_1 = \apply{e}{(x(i),y(i))}$.
Let $m_2 = \apply{e}{(y(i),z(i))}$.
$a = m / i$ and $a_1 = m_1 / i$ and $a_2 = m_2 / i$.
$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$ and $z(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 191, Proposition 361.
$(x(i),y(i))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ and $(y(i),z(i))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ and $(x(i),z(i))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ by Proposition 115.
$m\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $m_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $m_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 361.
$m_1 + m_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$m \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m_1 + m_2$ by Definition 178, Definition 179.
$m / i \class{latex-symbol-tip latex-symbol-id-leq}{\leq} (m_1 + m_2) / i$ by Lemma 261.
$(m_1 + m_2) / i = m_1 / i + m_2 / i$ by Lemma 262.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a_1 + a_2$ by Definition 1.
$a_1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1$ and $a_2 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_2$ by Definition 66, Definition 71, Definition 204.
$a_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $a_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1, Lemma 265.
$a_1 + a_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $r_1 + a_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $r_1 + r_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$a_1 + a_2 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 + a_2$ by Lemma 24.
$r_1 + a_2 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 + r_2$ by Axiom 16, Lemma 24.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 + r_2$ by Lemma 23.
$r_1 + r_2$ is an upper bound of $A_3$ by Axiom 13, Definition 66.
$r_3 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} r_1 + r_2$ by Definition 71, Definition 204.
$d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x,y)) + d((y,z))$.
$d((x,y)) + d((y,z)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} d((x,z))$.
Claim: $d$ satisfies the triangle inequality on $X$.
Follows by Definition 178.
$d$ is a metric on $X$ by Definition 179.
LaTeX source
\begin{proof}
Let $X = \realsPower{\naturalsPlus}$.
Let $d = \omegaMetric$.
Let $e = \boundedMetric{\standardMetricR}$.
$\standardMetricR$ is a metric on $\reals$ by \cref{standard_metric_is_metric}.
Hence $e$ is a metric on $\reals$ and $e\in\funs{\reals\times\reals}{\reals}$
by \cref{bounded_metric_is_metric,metric_on}.
Show that $d\in\funs{X\times X}{\reals}$.
\begin{subproof}
Show that for all $p,z_1,z_2$ such that $(p,z_1)\in d$ and $(p,z_2)\in d$ we have $z_1 = z_2$.
\begin{subproof}
Fix $p$.
Fix $z_1$.
Fix $z_2$ such that $(p,z_1)\in d$ and $(p,z_2)\in d$.
Take $p_1,x_1,y_1,r_1$ such that
$p_1\in X\times X$ and $x_1\in X$ and $y_1\in X$ and $r_1\in\reals$ and
$(p,z_1) = (p_1,r_1)$ and $p_1 = (x_1,y_1)$ and
$\realSupremum{r_1}{\omegaMetricSet{x_1}{y_1}}$ by \cref{omega_metric}.
Take $p_2,x_2,y_2,r_2$ such that
$p_2\in X\times X$ and $x_2\in X$ and $y_2\in X$ and $r_2\in\reals$ and
$(p,z_2) = (p_2,r_2)$ and $p_2 = (x_2,y_2)$ and
$\realSupremum{r_2}{\omegaMetricSet{x_2}{y_2}}$ by \cref{omega_metric}.
$p = p_1$ and $z_1 = r_1$ and $p = p_2$ and $z_2 = r_2$ by \cref{pair_eq_iff}.
$p_1 = p_2$.
$(x_1,y_1) = (x_2,y_2)$ by \cref{pair_eq_iff}.
$x_1 = x_2$ and $y_1 = y_2$ by \cref{pair_eq_iff}.
$\omegaMetricSet{x_1}{y_1} = \omegaMetricSet{x_2}{y_2}$.
$r_1 = r_2$ by \cref{real_supremum_pred,real_supremum_unique}.
$z_1 = z_2$.
\end{subproof}
$d$ is a function by \cref{omega_metric,relation,rightunique}.
Show that for all $p$ such that $p\in X\times X$ we have $p\in\dom{d}$.
\begin{subproof}
Fix $p$ such that $p\in X\times X$.
Take $x,y$ such that $p = (x,y)$ and $x\in X$ and $y\in X$ by \cref{times_elem_is_tuple}.
Let $A = \omegaMetricSet{x}{y}$.
For all $a$ such that $a\in A$ we have $a\in\reals$
by \cref{omega_metric_set,reals_power,tuple_power,funs_type_apply,times_tuple_intro,metric_on,real_div_naturalsplus_real}.
$A\subseteq\reals$ by \cref{subseteq}.
$1\in\naturalsPlus$ by \cref{real_one_in_naturals}.
$A\neq\emptyset$ by \cref{omega_metric_set,emptyset}.
Show that for all $a\in A$ we have $a \leq 1$.
\begin{subproof}
Fix $a$ such that $a\in A$.
Take $i\in\naturalsPlus$ such that $a = \apply{e}{(x(i),y(i))} / i$ by \cref{omega_metric_set}.
Let $m = \apply{e}{(x(i),y(i))}$.
$a = m / i$.
$x(i)\in\reals$ and $y(i)\in\reals$ by \cref{reals_power,tuple_power,funs_type_apply}.
$(x(i),y(i))\in\reals\times\reals$ by \cref{times_tuple_intro}.
$1\in\reals$ by \cref{real_mul_ident}.
$m\in\reals$ and $0 \leq m$ by \cref{metric_on,funs_type_apply,metric_nonnegative}.
$m \leq 1$ by \cref{bounded_metric_leq_one}.
$m / i \leq 1 / i$ by \cref{real_div_leq_same_denom}.
$1 \leq i$ by \cref{real_one_leq_naturalsplus}.
$1 / i \leq 1$ by \cref{naturalsplus_reciprocal_antitone,real_one_div_one,subseteq}.
$m / i\in\reals$ and $1 / i\in\reals$ by \cref{real_div_naturalsplus_real,naturalsplus_reciprocal_real}.
$m / i \leq 1$ by \cref{real_leq_trans}.
$a \leq 1$ by \cref{subseteq}.
\end{subproof}
$1\in\reals$ by \cref{real_mul_ident}.
$1$ is an upper bound of $A$ by \cref{real_upper_bound}.
$A$ is bounded above by \cref{real_bounded_above}.
Take $r$ such that $r$ is a supremum of $A$ by \cref{real_completeness_axiom}.
$(x,y)\in X\times X$ by \cref{times_tuple_intro}.
$r\in\reals$ by \cref{real_supremum,real_upper_bound}.
$((x,y),r)\in d$ by \cref{real_supremum_pred,omega_metric}.
$p\in\dom{d}$ by \cref{dom_intro,pair_eq_iff}.
\end{subproof}
$X\times X\subseteq\dom{d}$ by \cref{subseteq}.
For all $p$ such that $p\in\dom{d}$ we have $p\in X\times X$
by \cref{dom_iff,omega_metric,pair_eq_iff,subseteq}.
$\dom{d}\subseteq X\times X$ by \cref{subseteq}.
$\dom{d} = X\times X$ by \cref{subseteq_antisymmetric}.
For all $p\in\dom{d}$ we have $d(p)\in\reals$
by \cref{dom_iff,omega_metric,pair_eq_iff,function_apply_iff,real_lt_subst_left}.
$d\in\funs{X\times X}{\reals}$ by \cref{funs_intro}.
\end{subproof}
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have $d((x,y)) \geq 0$.
\begin{subproof}
Fix $x$.
Fix $y$ such that $x\in X$ and $y\in X$.
Let $r = d((x,y))$.
$(x,y)\in\dom{d}$ by \cref{times_tuple_intro,funs_elim}.
$((x,y),r)\in d$ by \cref{funs_elim,function_apply_elim}.
Take $p_0,x_0,y_0,r_0$ such that
$p_0\in X\times X$ and $x_0\in X$ and $y_0\in X$ and $r_0\in\reals$ and
$((x,y),r) = (p_0,r_0)$ and $p_0 = (x_0,y_0)$ and
$\realSupremum{r_0}{\omegaMetricSet{x_0}{y_0}}$ by \cref{omega_metric}.
$p_0 = (x,y)$ and $r = r_0$ by \cref{pair_eq_iff}.
$r\in\reals$.
$x_0 = x$ and $y_0 = y$ by \cref{pair_eq_iff}.
Let $a = \apply{e}{(x(1),y(1))} / 1$.
$a \leq r$ by \cref{omega_metric_set,real_one_in_naturals,real_supremum_pred,real_supremum,real_upper_bound}.
$x(1)\in\reals$ and $y(1)\in\reals$ by \cref{reals_power,tuple_power,real_one_in_naturals,funs_type_apply}.
$(x(1),y(1))\in\reals\times\reals$ by \cref{times_tuple_intro}.
$a\in\reals$ and $0 \leq a$ by
\cref{real_lt_subst_left,metric_on,funs_type_apply,metric_nonnegative,real_div_naturalsplus_real,real_div_naturalsplus_nonnegative,real_one_in_naturals,subseteq}.
$0 \leq r$ by \cref{real_add_ident,real_leq_trans}.
$d((x,y)) \geq 0$.
\end{subproof}
Show that $d$ is nonnegative on $X$.
\begin{subproof}
Follows by \cref{metric_nonnegative}.
\end{subproof}
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have if $d((x,y)) = 0$ then $x = y$.
\begin{subproof}
Fix $x$.
Fix $y$ such that $x\in X$ and $y\in X$.
Assume $d((x,y)) = 0$.
Let $r = d((x,y))$.
$(x,y)\in\dom{d}$ by \cref{times_tuple_intro,funs_elim}.
$((x,y),r)\in d$ by \cref{funs_elim,function_apply_elim}.
Take $p_0,x_0,y_0,r_0$ such that
$p_0\in X\times X$ and $x_0\in X$ and $y_0\in X$ and $r_0\in\reals$ and
$((x,y),r) = (p_0,r_0)$ and $p_0 = (x_0,y_0)$ and
$\realSupremum{r_0}{\omegaMetricSet{x_0}{y_0}}$ by \cref{omega_metric}.
$p_0 = (x,y)$ and $r = r_0$ by \cref{pair_eq_iff}.
$x_0 = x$ and $y_0 = y$ by \cref{pair_eq_iff}.
Show that for all $i\in\naturalsPlus$ we have $x(i) = y(i)$.
\begin{subproof}
Fix $i$ such that $i\in\naturalsPlus$.
Let $a = \apply{e}{(x(i),y(i))} / i$.
$a \leq r$ by \cref{omega_metric_set,real_supremum_pred,real_supremum,real_upper_bound}.
Let $m = \apply{e}{(x(i),y(i))}$.
$a = m / i$.
$x(i)\in\reals$ and $y(i)\in\reals$ by \cref{reals_power,tuple_power,funs_type_apply}.
$(x(i),y(i))\in\reals\times\reals$ by \cref{times_tuple_intro}.
$m\in\reals$ and $0 \leq m$ by \cref{metric_on,funs_type_apply,metric_nonnegative}.
$a\in\reals$ and $0 \leq a$ by
\cref{real_div_naturalsplus_real,real_div_naturalsplus_nonnegative,subseteq}.
$a \leq 0$ by \cref{real_supremum_pred,real_supremum,real_upper_bound,real_lt_subst_left,real_lt_subst_right}.
$a = 0$ by \cref{real_add_ident,real_leq_antisym,real_lt_subst_right}.
$m = 0$ by \cref{real_div_naturalsplus_zero,subseteq}.
$x(i) = y(i)$ by \cref{metric_on,metric_zero_characterization}.
\end{subproof}
$\dom{x} = \naturalsPlus$ and $\dom{y} = \naturalsPlus$ by \cref{reals_power,tuple_power,funs_elim}.
$\dom{x}\subseteq\dom{y}$ and $\dom{y}\subseteq\dom{x}$ by \cref{subseteq_refl}.
$x\subseteq y$ and $y\subseteq x$ by \cref{reals_power,tuple_power,funs_elim,fun_subseteq,subseteq}.
$x = y$ by \cref{subseteq_antisymmetric}.
\end{subproof}
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have if $x = y$ then $d((x,y)) = 0$.
\begin{subproof}
Fix $x$.
Fix $y$ such that $x\in X$ and $y\in X$.
Assume $x = y$.
Let $A = \omegaMetricSet{x}{y}$.
Show that for all $a\in A$ we have $a \leq 0$.
\begin{subproof}
Fix $a$ such that $a\in A$.
Take $i\in\naturalsPlus$ such that $a = \apply{e}{(x(i),y(i))} / i$ by \cref{omega_metric_set}.
$x(i) = y(i)$ by \cref{real_lt_subst_left}.
$x(i)\in\reals$ and $y(i)\in\reals$ by \cref{reals_power,tuple_power,funs_type_apply}.
$(x(i),y(i))\in\reals\times\reals$ by \cref{times_tuple_intro}.
$\apply{e}{(x(i),y(i))} = 0$ by \cref{metric_on,metric_zero_characterization}.
$a = 0 / i$ by \cref{subseteq}.
$a = 0 \rmul \inv{i}$ by \cref{real_div}.
$i\in\reals$ and $0 < i$ and $\inv{i}\in\reals$ by
\cref{real_naturals_subset_reals,subseteq,naturalsplus_positive_real,real_pos_nonzero,real_mul_inverse}.
$a = 0$ by \cref{real_mul_zero}.
$a \leq 0$.
\end{subproof}
$0\in\reals$ by \cref{real_add_ident}.
For all $a$ such that $a\in A$ we have $a\in\reals$
by \cref{omega_metric_set,reals_power,tuple_power,funs_type_apply,times_tuple_intro,metric_on,real_div_naturalsplus_real}.
$A\subseteq\reals$ and $0$ is an upper bound of $A$ by \cref{subseteq,real_add_ident,real_upper_bound}.
$1\in\naturalsPlus$ by \cref{real_one_in_naturals}.
$\apply{e}{(x(1),y(1))} / 1\in A$ by \cref{omega_metric_set}.
$x(1) = y(1)$ by \cref{real_lt_subst_left}.
$x(1)\in\reals$ and $y(1)\in\reals$ by \cref{reals_power,tuple_power,real_one_in_naturals,funs_type_apply}.
$(x(1),y(1))\in\reals\times\reals$ by \cref{times_tuple_intro}.
$\apply{e}{(x(1),y(1))} = 0$ by \cref{metric_on,metric_zero_characterization}.
$\apply{e}{(x(1),y(1))} / 1 = 0 / 1$ by \cref{real_lt_subst_left}.
$0 / 1 = 0$ by
\cref{real_div,real_mul_ident,real_zero_lt_one,real_pos_nonzero,real_mul_inverse,real_mul_zero,real_lt_subst_left}.
$0\in A$ by \cref{real_lt_subst_right,subseteq}.
For all $b$ such that $b$ is an upper bound of $A$ we have $0 \leq b$ by \cref{real_upper_bound}.
$0$ is a supremum of $A$ by \cref{real_supremum}.
$((x,y),0)\in d$ by \cref{real_supremum_pred,omega_metric,pair_eq_iff,times_tuple_intro,real_add_ident}.
$(x,y)\in\dom{d}$ by \cref{dom_intro}.
$d((x,y)) = 0$ by \cref{funs_elim,function_apply_iff}.
\end{subproof}
Show that $d$ is zero-characterized on $X$.
\begin{subproof}
Follows by \cref{metric_zero_characterization}.
\end{subproof}
Show that for all $x,y$ such that $x\in X$ and $y\in X$ we have $d((x,y)) = d((y,x))$.
\begin{subproof}
Fix $x$.
Fix $y$ such that $x\in X$ and $y\in X$.
Let $A_1 = \omegaMetricSet{x}{y}$.
Let $A_2 = \omegaMetricSet{y}{x}$.
For all $a$ such that $a\in A_1$ we have $a\in A_2$
by \cref{omega_metric_set,reals_power,tuple_power,funs_type_apply,times_tuple_intro,metric_on,metric_symmetric,subseteq}.
$A_1\subseteq A_2$ by \cref{subseteq}.
For all $a$ such that $a\in A_2$ we have $a\in A_1$
by \cref{omega_metric_set,reals_power,tuple_power,funs_type_apply,times_tuple_intro,metric_on,metric_symmetric,subseteq}.
$A_2\subseteq A_1$ by \cref{subseteq}.
$A_1 = A_2$ by \cref{subseteq_antisymmetric}.
Let $r_1 = d((x,y))$.
Let $r_2 = d((y,x))$.
$(x,y)\in\dom{d}$ and $(y,x)\in\dom{d}$ by \cref{times_tuple_intro,funs_elim}.
$((x,y),r_1)\in d$ and $((y,x),r_2)\in d$ by \cref{funs_elim,function_apply_elim}.
Take $p_1,x_1,y_1,s_1$ such that
$p_1\in X\times X$ and $x_1\in X$ and $y_1\in X$ and $s_1\in\reals$ and
$((x,y),r_1) = (p_1,s_1)$ and $p_1 = (x_1,y_1)$ and
$\realSupremum{s_1}{\omegaMetricSet{x_1}{y_1}}$ by \cref{omega_metric}.
Take $p_2,x_2,y_2,s_2$ such that
$p_2\in X\times X$ and $x_2\in X$ and $y_2\in X$ and $s_2\in\reals$ and
$((y,x),r_2) = (p_2,s_2)$ and $p_2 = (x_2,y_2)$ and
$\realSupremum{s_2}{\omegaMetricSet{x_2}{y_2}}$ by \cref{omega_metric}.
$p_1 = (x,y)$ and $r_1 = s_1$ and $p_2 = (y,x)$ and $r_2 = s_2$ by \cref{pair_eq_iff}.
$x_1 = x$ and $y_1 = y$ and $x_2 = y$ and $y_2 = x$ by \cref{pair_eq_iff}.
$r_1 = r_2$ by \cref{real_supremum_pred,real_supremum_unique}.
$d((x,y)) = d((y,x))$.
\end{subproof}
Show that $d$ is symmetric on $X$.
\begin{subproof}
Follows by \cref{metric_symmetric}.
\end{subproof}
Show that for all $x,y,z$ such that $x\in X$ and $y\in X$ and $z\in X$ we have
$d((x,y)) + d((y,z)) \geq d((x,z))$.
\begin{subproof}
Fix $x$.
Fix $y$.
Fix $z$ such that $x\in X$ and $y\in X$ and $z\in X$.
Let $A_1 = \omegaMetricSet{x}{y}$.
Let $A_2 = \omegaMetricSet{y}{z}$.
Let $A_3 = \omegaMetricSet{x}{z}$.
Let $r_1 = d((x,y))$.
Let $r_2 = d((y,z))$.
Let $r_3 = d((x,z))$.
$(x,y)\in\dom{d}$ and $(y,z)\in\dom{d}$ and $(x,z)\in\dom{d}$ by \cref{times_tuple_intro,funs_elim}.
$((x,y),r_1)\in d$ and $((y,z),r_2)\in d$ and $((x,z),r_3)\in d$
by \cref{funs_elim,function_apply_elim}.
Take $p_1,x_1,y_1,s_1$ such that
$p_1\in X\times X$ and $x_1\in X$ and $y_1\in X$ and $s_1\in\reals$ and
$((x,y),r_1) = (p_1,s_1)$ and $p_1 = (x_1,y_1)$ and
$\realSupremum{s_1}{\omegaMetricSet{x_1}{y_1}}$ by \cref{omega_metric}.
Take $p_2,x_2,y_2,s_2$ such that
$p_2\in X\times X$ and $x_2\in X$ and $y_2\in X$ and $s_2\in\reals$ and
$((y,z),r_2) = (p_2,s_2)$ and $p_2 = (x_2,y_2)$ and
$\realSupremum{s_2}{\omegaMetricSet{x_2}{y_2}}$ by \cref{omega_metric}.
Take $p_3,x_3,y_3,s_3$ such that
$p_3\in X\times X$ and $x_3\in X$ and $y_3\in X$ and $s_3\in\reals$ and
$((x,z),r_3) = (p_3,s_3)$ and $p_3 = (x_3,y_3)$ and
$\realSupremum{s_3}{\omegaMetricSet{x_3}{y_3}}$ by \cref{omega_metric}.
$p_1 = (x,y)$ and $r_1 = s_1$ and $p_2 = (y,z)$ and $r_2 = s_2$ and
$p_3 = (x,z)$ and $r_3 = s_3$ by \cref{pair_eq_iff}.
$r_1\in\reals$ and $r_2\in\reals$ and $r_3\in\reals$.
$x_1 = x$ and $y_1 = y$ and $x_2 = y$ and $y_2 = z$ and
$x_3 = x$ and $y_3 = z$ by \cref{pair_eq_iff}.
For all $a$ such that $a\in A_3$ we have $a\in\reals$
by \cref{omega_metric_set,reals_power,tuple_power,funs_type_apply,times_tuple_intro,metric_on,real_div_naturalsplus_real}.
$A_3\subseteq\reals$ by \cref{subseteq}.
Show that for all $a\in A_3$ we have $a \leq r_1 + r_2$.
\begin{subproof}
Fix $a$ such that $a\in A_3$.
$a\in\reals$ by \cref{subseteq}.
Take $i\in\naturalsPlus$ such that $a = \apply{e}{(x(i),z(i))} / i$ by \cref{omega_metric_set}.
Let $a_1 = \apply{e}{(x(i),y(i))} / i$.
Let $a_2 = \apply{e}{(y(i),z(i))} / i$.
$a_1\in A_1$ and $a_2\in A_2$ by \cref{omega_metric_set}.
Let $m = \apply{e}{(x(i),z(i))}$.
Let $m_1 = \apply{e}{(x(i),y(i))}$.
Let $m_2 = \apply{e}{(y(i),z(i))}$.
$a = m / i$ and $a_1 = m_1 / i$ and $a_2 = m_2 / i$.
$x(i)\in\reals$ and $y(i)\in\reals$ and $z(i)\in\reals$ by \cref{reals_power,tuple_power,funs_type_apply}.
$(x(i),y(i))\in\reals\times\reals$ and
$(y(i),z(i))\in\reals\times\reals$ and
$(x(i),z(i))\in\reals\times\reals$ by \cref{times_tuple_intro}.
$m\in\reals$ and $m_1\in\reals$ and $m_2\in\reals$ by \cref{funs_type_apply}.
$m_1 + m_2\in\reals$ by \cref{real_add_closed}.
$m \leq m_1 + m_2$ by \cref{metric_on,metric_triangle_inequality}.
$m / i \leq (m_1 + m_2) / i$ by \cref{real_div_leq_same_denom}.
$(m_1 + m_2) / i = m_1 / i + m_2 / i$ by \cref{real_div_add_same_denom}.
$a \leq a_1 + a_2$ by \cref{subseteq}.
$a_1 \leq r_1$ and $a_2 \leq r_2$ by \cref{real_supremum_pred,real_supremum,real_upper_bound}.
$a_1\in\reals$ and $a_2\in\reals$ by \cref{real_div_naturalsplus_real,subseteq}.
$a_1 + a_2\in\reals$ and $r_1 + a_2\in\reals$ and $r_1 + r_2\in\reals$ by \cref{real_add_closed}.
$a_1 + a_2 \leq r_1 + a_2$ by \cref{real_leq_add}.
$r_1 + a_2 \leq r_1 + r_2$ by \cref{real_leq_add,real_add_comm}.
$a \leq r_1 + r_2$ by \cref{real_leq_trans}.
\end{subproof}
$r_1 + r_2$ is an upper bound of $A_3$ by \cref{real_upper_bound,real_add_closed}.
$r_3 \leq r_1 + r_2$ by \cref{real_supremum_pred,real_supremum}.
$d((x,z)) \leq d((x,y)) + d((y,z))$.
$d((x,y)) + d((y,z)) \geq d((x,z))$.
\end{subproof}
Show that $d$ satisfies the triangle inequality on $X$.
\begin{subproof}
Follows by \cref{metric_triangle_inequality}.
\end{subproof}
$d$ is a metric on $X$ by \cref{metric_on}.
\end{proof}
Let $X = \{(i,\reals) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus\}$.
Let $T = \{(i,\standardTopologyR) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus\}$.
Let $T_0 = \productTopologyIndexed{T}{X}$.
Then $\metricTopology{\omegaMetric}{\realsPower{\naturalsPlus}} = T_0$.
LaTeX source
\begin{theorem}
\label{omega_metric_product_topology}
Let $X = \{(i,\reals) \mid i\in\naturalsPlus\}$.
Let $T = \{(i,\standardTopologyR) \mid i\in\naturalsPlus\}$.
Let $T_0 = \productTopologyIndexed{T}{X}$.
Then $\metricTopology{\omegaMetric}{\realsPower{\naturalsPlus}} = T_0$.
\end{theorem}
Proof
Let $X_0 = \realsPower{\naturalsPlus}$.
Let $d = \omegaMetric$.
Let $T_1 = \metricTopology{d}{X_0}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exist $x,y$ such that $w = (x,y)$.
For all $i,y_1,y_2$ such that $(i,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $(i,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $y_1 = y_2$.
$X$ is a function by Definition 12, Definition 51.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ there exist $x,y$ such that $w = (x,y)$.
For all $i,y_1,y_2$ such that $(i,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ and $(i,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ we have $y_1 = y_2$.
$T$ is a function by Definition 12, Definition 51.
$\naturalsPlus\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{X}$ by Definition 1, Proposition 200.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ we have $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
$\dom{X}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1.
$\dom{X} = \naturalsPlus$ by Proposition 3.
$\naturalsPlus\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{T}$ by Definition 1, Proposition 200.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{T}$ we have $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
$\dom{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1.
$\dom{T} = \naturalsPlus$ by Proposition 3.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ we have $\apply{X}{i} = \reals$ and $\apply{T}{i} = \standardTopologyR$ by Definition 1, Proposition 346.
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 1, Definition 118, Lemma 76, Lemma 93, Proposition 346.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 42.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ by Definition 1.
Let $S_0 = \productSubbasis{T}{X}$.
Let $B_0 = \finiteIntersections{S_0}$.
$B_0$ is a basis for $T_0$ on $\productFamily{X}$ by Lemma 177.
$B_0$ is a basis for $T_0$ on $X_0$ by Lemma 209.
$d$ is a metric on $X_0$ by Theorem 27.
$\dom{d} = X_0\class{latex-symbol-tip latex-symbol-id-times}{\times} X_0$ by Definition 179, Proposition 359.
Let $B_1 = \metricBasis{d}{X_0}$.
$B_1$ is a basis on $X_0$ by Lemma 194.
$B_1$ is a basis for $T_1$ on $X_0$ by Definition 115, Definition 182.
Claim: For all $x,B_2$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ there exists $B_3\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ and $B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$.
Fix $x$.
Fix $B_2$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$.
Take $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} S_0$ such that $F$ is finite and inhabited and $B_2 = \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}\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}\naturalsPlus.\class{latex-symbol-tip latex-symbol-id-exists}{\exists} U\class{latex-symbol-tip latex-symbol-id-in}{\in}\standardTopologyR.\class{latex-symbol-tip latex-symbol-id-exists}{\exists} \class{latex-symbol-tip latex-symbol-id-eta}{\eta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals. \fst{w} = \preimg{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{U} \class{latex-symbol-tip latex-symbol-id-land}{\land} \apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in} U \class{latex-symbol-tip latex-symbol-id-land}{\land} 0 < \class{latex-symbol-tip latex-symbol-id-eta}{\eta} \class{latex-symbol-tip latex-symbol-id-land}{\land} \metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{\class{latex-symbol-tip latex-symbol-id-eta}{\eta}} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U \class{latex-symbol-tip latex-symbol-id-land}{\land} 0 < \snd{w} \class{latex-symbol-tip latex-symbol-id-land}{\land} \snd{w} = \class{latex-symbol-tip latex-symbol-id-eta}{\eta} / \class{latex-symbol-tip latex-symbol-id-beta}{\beta}\}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ there exist $y,z$ such that $w = (y,z)$.
$R$ is a relation by Definition 12.
Claim: For all $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $A\mathrel{R}\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 30.
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 1, Definition 172.
Take $U\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}}}{U}$ by Definition 171.
$\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Definition 1.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\preimg{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{U}$.
Take $z\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ such that $x\mathrel{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}} z$ by Proposition 246.
$(x,z)\class{latex-symbol-tip latex-symbol-id-in}{\in}\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}$.
Take $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{X}$ such that $(x,z) = (x_1,\apply{x_1}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}})$ by Definition 170.
$z = \apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}$ by Axiom 6.
$\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
$U\class{latex-symbol-tip latex-symbol-id-in}{\in}\standardTopologyR$ by Proposition 346.
$\standardBasisR$ is a basis on $\reals$ by Lemma 93.
$U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Axiom 12, Definition 1, Definition 101, Definition 118, Lemma 76.
$\standardMetricR$ is a metric on $\reals$ by Lemma 198.
$\boundedMetric{\standardMetricR}$ is a metric on $\reals$ by Theorem 21.
$U\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricTopology{\boundedMetric{\standardMetricR}}{\reals}$ by Definition 1, Lemma 198, Lemma 200, Theorem 22.
$U$ is open in $\reals$ with respect to $\metricTopology{\boundedMetric{\standardMetricR}}{\reals}$ by Definition 103, Definition 182, Lemma 76, Lemma 194.
Take $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ and $\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{\class{latex-symbol-tip latex-symbol-id-eta}{\eta}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Lemma 195.
Let $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} = \class{latex-symbol-tip latex-symbol-id-eta}{\eta} / \class{latex-symbol-tip latex-symbol-id-beta}{\beta}$.
$\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Lemma 265.
$\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-beta}{\beta}$ and $\inv{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \inv{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}$ by Axiom 22, Axiom 41, Definition 1, Lemma 20, Lemma 89, Proposition 463.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17.
$0 \rmul \inv{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}} < \class{latex-symbol-tip latex-symbol-id-eta}{\eta} \rmul \inv{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}$ by Axiom 38.
$0 < \class{latex-symbol-tip latex-symbol-id-eta}{\eta} \rmul \inv{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}$ by Lemma 82, Proposition 439.
$0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 65, Lemma 83.
$(A,\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon})\class{latex-symbol-tip latex-symbol-id-in}{\in} F\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ by Proposition 115.
$A\mathrel{R}\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 6, Axiom 10, Axiom 11.
Take $e$ such that $e$ 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{e}{A}$ by Axiom 54.
$e$ is a function and $\dom{e} = F$.
Let $E = \img{e}{F}$.
$E$ is finite by Lemma 192.
Take $A_0$ such that $A_0\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
$\apply{e}{A_0}\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ by Proposition 235, Proposition 348.
$E\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2, Proposition 235, Proposition 348.
For all $t$ such that $t\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ we have $t\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < t$ by Axiom 10, Axiom 11, Definition 1, Proposition 114, Proposition 235, Proposition 349.
$E\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1.
Take $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ such that $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ is a minimum of $E$ by Lemma 49.
$\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}$ by Definition 1.
Let $B_3 = \metricBall{d}{X_0}{x}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$.
$B_3\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ by Definition 1, Definition 180, Definition 181, Proposition 155.
Claim: For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$.
Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $d((x,y)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 180.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0\class{latex-symbol-tip latex-symbol-id-times}{\times} X_0$ by Proposition 115.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ by Definition 1.
Take $s$ such that $((x,y),s)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Proposition 199.
$d((x,y)) = s$ by Definition 1, Definition 179, Proposition 346, Proposition 359.
$s < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 82.
Take $p_0,x_0,y_0,r_0$ such that $p_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0\class{latex-symbol-tip latex-symbol-id-times}{\times} X_0$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $y_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $r_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((x,y),s) = (p_0,r_0)$ and $p_0 = (x_0,y_0)$ and $\realSupremum{r_0}{\omegaMetricSet{x_0}{y_0}}$ by Definition 208.
$p_0 = (x,y)$ and $s = r_0$ by Axiom 6.
$r_0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 82.
$x_0 = x$ and $y_0 = y$ by Axiom 6.
Claim: For all $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Fix $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
$(A,\apply{e}{A})\class{latex-symbol-tip latex-symbol-id-in}{\in} R$.
Let $w = (A,\apply{e}{A})$.
$w\class{latex-symbol-tip latex-symbol-id-in}{\in} R$.
Take $\class{latex-symbol-tip latex-symbol-id-beta}{\beta},U,\class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ such that $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $U\class{latex-symbol-tip latex-symbol-id-in}{\in}\standardTopologyR$ and $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\fst{w} = \preimg{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{U}$ and $\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $0 < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ and $\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{\class{latex-symbol-tip latex-symbol-id-eta}{\eta}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ and $0 < \snd{w}$ and $\snd{w} = \class{latex-symbol-tip latex-symbol-id-eta}{\eta} / \class{latex-symbol-tip latex-symbol-id-beta}{\beta}$.
$\fst{w} = A$ and $\snd{w} = \apply{e}{A}$ by Axiom 10, Axiom 11.
$A = \preimg{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{U}$.
$\apply{e}{A}\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ by Proposition 235, Proposition 348.
$\apply{e}{A}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \apply{e}{A}$ by Definition 74, Proposition 235, Proposition 348.
$s < \apply{e}{A}$ by Axiom 36, Lemma 81, Lemma 83.
Let $m = \apply{\boundedMetric{\standardMetricR}}{(x(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}),y(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}))}$.
Let $a = m / \class{latex-symbol-tip latex-symbol-id-beta}{\beta}$.
$x(\class{latex-symbol-tip latex-symbol-id-beta}{\beta})\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $y(\class{latex-symbol-tip latex-symbol-id-beta}{\beta})\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 191, Proposition 361.
$(x(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}),y(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ by Proposition 115.
$\standardMetricR$ is a metric on $\reals$ by Lemma 198.
$\boundedMetric{\standardMetricR}$ is a metric on $\reals$ by Theorem 21.
$m\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Lemma 265.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in}\omegaMetricSet{x}{y}$ by Definition 207.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} s$ by Definition 66, Definition 71, Definition 204.
$a < \apply{e}{A}$ by Lemma 266.
$a = m / \class{latex-symbol-tip latex-symbol-id-beta}{\beta}$ and $\apply{e}{A} = \class{latex-symbol-tip latex-symbol-id-eta}{\eta} / \class{latex-symbol-tip latex-symbol-id-beta}{\beta}$ by Definition 1.
$m < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Lemma 82, Lemma 83, Lemma 260.
$\apply{y}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{\class{latex-symbol-tip latex-symbol-id-eta}{\eta}}$ by Definition 180.
$\apply{y}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 1.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in}\preimg{\piIndex{X}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{U}$ by Definition 1, Definition 170, Definition 180, Lemma 209, Proposition 246.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ by Proposition 3, Proposition 30.
$B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$ by Definition 1.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ and $B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$ by Definition 176, Definition 179, Definition 180.
Claim: $T_1$ is finer than $T_0$ on $X_0$.
Follows by Lemma 80.
Claim: For all $x,B_2$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ there exists $B_3\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ and $B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$.
Fix $x$.
Fix $B_2$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $B_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B_1$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$.
Take $z,\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $\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}$ and $B_2 = \metricBall{d}{X_0}{z}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 181.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X_0}{z}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 1.
$d((z,x)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 180.
$(z,x)\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0\class{latex-symbol-tip latex-symbol-id-times}{\times} X_0$ by Proposition 115.
$d((z,x))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
Let $r = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} - d((z,x))$.
$0 < r$ by Lemma 26.
$r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64.
Let $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = r \rmul \inv{(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} < r$ by Lemma 254.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $0 < 1 / N$ and $1 / N < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Proposition 476.
Let $J = \initialSegment{N}$.
Let $R_g = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} J\class{latex-symbol-tip latex-symbol-id-times}{\times}\pow{\productFamily{X}} \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} i\class{latex-symbol-tip latex-symbol-id-in}{\in} J. \fst{w} = i \class{latex-symbol-tip latex-symbol-id-land}{\land} \snd{w} = \preimg{\piIndex{X}{i}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i}}{i \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}}}\}$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} R_g$ there exist $i,A$ such that $w = (i,A)$.
$R_g$ is a relation by Definition 12.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\preimg{\piIndex{X}{i}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i}}{i \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}}} \class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\productFamily{X}}$ by Axiom 6, Definition 1, Definition 170, Proposition 155, Proposition 246.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ there exists $A$ such that $i\mathrel{R_g} A$ by Axiom 6, Axiom 10, Axiom 11, Proposition 115.
Take $g$ such that $g$ is a function on $J$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $i\mathrel{R_g}\apply{g}{i}$ by Axiom 54.
Let $F = \img{g}{J}$.
$F$ is finite by Lemma 192, Lemma 208.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ by Axiom 42, Axiom 43, Definition 84.
$\apply{g}{1}\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Proposition 235, Proposition 348.
$F\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2, Proposition 235, Proposition 348.
Claim: For all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $A\class{latex-symbol-tip latex-symbol-id-in}{\in} S_0$.
Fix $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
Take $j\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $(j,A)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ by Proposition 235.
$j\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ and $A = \apply{g}{j}$ by Definition 1, Proposition 349.
$j\mathrel{R_g}\apply{g}{j}$.
$(j,\apply{g}{j})\class{latex-symbol-tip latex-symbol-id-in}{\in} R_g$.
$(j,\apply{g}{j})\class{latex-symbol-tip latex-symbol-id-in}{\in} J\class{latex-symbol-tip latex-symbol-id-times}{\times}\pow{\productFamily{X}}$ by Definition 1.
$A\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\productFamily{X}}$ by Axiom 11, Proposition 114.
Take $i_0\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $\fst{(j,\apply{g}{j})} = i_0$ and $\snd{(j,\apply{g}{j})} = \preimg{\piIndex{X}{i_0}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i_0}}{i_0 \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}}}$.
$j = i_0$ and $A = \preimg{\piIndex{X}{j}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{j}}{j \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}}}$ by Axiom 6, Axiom 10, Axiom 11, Proposition 346.
$j\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $j\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < j$ by Axiom 41, Definition 1, Definition 84, Lemma 89.
$j \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < j \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 14, Proposition 454.
Let $U = \metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{j}}{j \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$.
$\apply{x}{j}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 191, Proposition 361.
$U\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBasis{\boundedMetric{\standardMetricR}}{\reals}$ by Definition 1, Definition 180, Definition 181, Lemma 198, Proposition 155, Theorem 21.
$U\class{latex-symbol-tip latex-symbol-id-in}{\in}\standardTopologyR$ by Definition 115, Lemma 77, Lemma 255.
$U\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{T}{j}$ by Proposition 346.
$A\class{latex-symbol-tip latex-symbol-id-in}{\in}\productSubbasisAt{T}{X}{j}$ by Axiom 6, Definition 1, Definition 170, Definition 171, Proposition 155, Proposition 246.
$j\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X}$ by Definition 1.
$A\class{latex-symbol-tip latex-symbol-id-in}{\in} S_0$ by Definition 172.
$F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} S_0$ by Definition 1.
Let $B_3 = \inters{F}$.
For all $u$ such that $u\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ we have $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{S_0}$.
$B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\unions{S_0}$ by Definition 1.
$B_3\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\unions{S_0}}$ by Proposition 155.
$B_3\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ by Definition 125.
For all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $j\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $A = \preimg{\piIndex{X}{j}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{j}}{j \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}}}$ by Axiom 6, Axiom 10, Axiom 11, Proposition 235, Proposition 346.
For all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 14, Axiom 41, Definition 1, Definition 84, Definition 166, Definition 170, Definition 180, Definition 191, Lemma 89, Lemma 198, Lemma 209, Lemma 256, Proposition 246, Proposition 361, Proposition 454, Theorem 21.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\inters{F}$ by Proposition 30.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ by Definition 1.
Claim: For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$.
Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_3$.
$\apply{g}{1}\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Proposition 235, Proposition 348.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{g}{1}$ by Proposition 30.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ by Axiom 42, Axiom 43, Definition 84.
We have $1\mathrel{R_g}\apply{g}{1}$ by Definition 1.
Take $i_1\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $\fst{(1,\apply{g}{1})} = i_1$ and $\snd{(1,\apply{g}{1})} = \preimg{\piIndex{X}{i_1}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i_1}}{i_1 \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}}}$.
We have $1 = i_1$ and $\apply{g}{1} = \preimg{\piIndex{X}{1}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{1}}{1 \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}}}$ by Axiom 6, Axiom 10, Axiom 11.
Take $u_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{1}}{1 \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ such that $y\mathrel{\piIndex{X}{1}} u_0$ by Proposition 246.
$(y,u_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\piIndex{X}{1}$.
Take $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{X}$ such that $(y,u_0) = (y_2,\apply{y_2}{1})$ by Definition 170.
$y = y_2$ by Axiom 6.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{X}$ by Definition 1.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ by Definition 1, Lemma 209.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0\class{latex-symbol-tip latex-symbol-id-times}{\times} X_0$ and $(z,x)\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0\class{latex-symbol-tip latex-symbol-id-times}{\times} X_0$ and $(z,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0\class{latex-symbol-tip latex-symbol-id-times}{\times} X_0$ by Proposition 115.
$d((x,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((z,x))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((z,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{d}$ by Definition 1.
Take $s$ such that $((x,y),s)\class{latex-symbol-tip latex-symbol-id-in}{\in} d$ by Proposition 199.
$d((x,y)) = s$ by Definition 1, Definition 179, Proposition 346, Proposition 359.
Take $p_0,x_0,y_0,r_0$ such that $p_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0\class{latex-symbol-tip latex-symbol-id-times}{\times} X_0$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $y_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $r_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $((x,y),s) = (p_0,r_0)$ and $p_0 = (x_0,y_0)$ and $\realSupremum{r_0}{\omegaMetricSet{x_0}{y_0}}$ by Definition 208.
$p_0 = (x,y)$ and $s = r_0$ by Axiom 6.
$x_0 = x$ and $y_0 = y$ by Axiom 6.
Claim: For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\omegaMetricSet{x}{y}$ we have $a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
Fix $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\omegaMetricSet{x}{y}$.
Take $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $a = \apply{\boundedMetric{\standardMetricR}}{(x(i),y(i))} / i$ by Definition 207.
Let $m = \apply{\boundedMetric{\standardMetricR}}{(x(i),y(i))}$.
$a = m / i$.
$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 Definition 166, Definition 191, Proposition 361.
$(x(i),y(i))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals$ by Proposition 115.
$\standardMetricR$ is a metric on $\reals$ by Lemma 198.
$\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, Proposition 359, Theorem 21.
$m\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ by Definition 175, Definition 179, Lemma 198, Proposition 361, Theorem 21.
$m \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ by Lemma 201.
$\apply{g}{i}\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Proposition 235, Proposition 348.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{g}{i}$ by Proposition 30.
$i\mathrel{R_g}\apply{g}{i}$.
Take $i_0\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $\fst{(i,\apply{g}{i})} = i_0$ and $\snd{(i,\apply{g}{i})} = \preimg{\piIndex{X}{i_0}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i_0}}{i_0 \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}}}$.
$i = i_0$ and $\apply{g}{i} = \preimg{\piIndex{X}{i}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i}}{i \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}}}$ by Axiom 6, Axiom 10, Axiom 11, Proposition 346.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in}\preimg{\piIndex{X}{i}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i}}{i \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}}}$.
Take $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i}}{i \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ such that $y\mathrel{\piIndex{X}{i}} u$ by Proposition 246.
$(y,u)\class{latex-symbol-tip latex-symbol-id-in}{\in}\piIndex{X}{i}$.
Take $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{X}$ such that $(y,u) = (y_1,\apply{y_1}{i})$ by Definition 170.
$u = \apply{y}{i}$ by Axiom 6.
$\apply{y}{i}\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i}}{i \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$.
$m < i \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 180.
$i\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < i$ by Axiom 41, Definition 1, Lemma 89.
$i \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14.
$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$ and $0 < \inv{i}$ by Axiom 22, Proposition 463.
$m \rmul \inv{i} < (i \rmul \class{latex-symbol-tip latex-symbol-id-delta}{\delta}) \rmul \inv{i}$ by Axiom 38.
$m / i < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 19, Axiom 20, Axiom 21, Axiom 22, Definition 65, Lemma 82, Lemma 83.
$a < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1, Lemma 83.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
Claim: $N < i$.
Suppose not.
$i\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.
$i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ by Definition 84.
Contradiction.
$i < N$ or $N < i$ by Axiom 34.
$i < N$.
$i \class{latex-symbol-tip latex-symbol-id-leq}{\leq} N$.
$i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ by Definition 84.
Contradiction.
LaTeX source
\begin{byCase}
\caseOf{$i = N$.}
$i\in J$ by \cref{initial_segment_naturalsplus}.
Contradiction.
\caseOf{$i \neq N$.}
$i < N$ or $N < i$ by \cref{real_lt_trichotomy}.
$i < N$.
$i \leq N$.
$i\in J$ by \cref{initial_segment_naturalsplus}.
Contradiction.
\end{byCase}
$1 / i \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 / N$ by Lemma 259.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Lemma 265.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
$1 / i\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Lemma 265.
$1 / N\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Lemma 265.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 / i$ by Lemma 261.
$1 / i < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 82, Lemma 266.
$a < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 266.
$a \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
LaTeX source
\begin{byCase}
\caseOf{$i\in J$.}
$\apply{g}{i}\in F$ by \cref{function_apply_elim,img_iff}.
$y\in\apply{g}{i}$ by \cref{inters_iff_forall}.
$i\mathrel{R_g}\apply{g}{i}$.
Take $i_0\in J$ such that
$\fst{(i,\apply{g}{i})} = i_0$ and
$\snd{(i,\apply{g}{i})}
= \preimg{\piIndex{X}{i_0}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i_0}}{i_0 \rmul \delta}}$.
$i = i_0$ and
$\apply{g}{i} = \preimg{\piIndex{X}{i}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i}}{i \rmul \delta}}$
by \cref{fst_eq,snd_eq,pair_eq_iff,function_apply_intro}.
$y\in\preimg{\piIndex{X}{i}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i}}{i \rmul \delta}}$.
Take $u\in\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i}}{i \rmul \delta}$ such that
$y\mathrel{\piIndex{X}{i}} u$ by \cref{preimg_iff}.
$(y,u)\in\piIndex{X}{i}$.
Take $y_1\in\productFamily{X}$ such that $(y,u) = (y_1,\apply{y_1}{i})$ by \cref{projection_map_indexed}.
$u = \apply{y}{i}$ by \cref{pair_eq_iff}.
$\apply{y}{i}\in\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i}}{i \rmul \delta}$.
$m < i \rmul \delta$ by \cref{metric_ball}.
$i\in\reals$ and $0 < i$ by \cref{real_naturals_subset_reals,subseteq,naturalsplus_positive_real}.
$i \rmul \delta\in\reals$ by \cref{real_mul_closed}.
$i \neq 0$ by \cref{real_pos_nonzero}.
$\inv{i}\in\reals$ and $0 < \inv{i}$ by \cref{real_mul_inverse,real_inv_pos}.
$m \rmul \inv{i} < (i \rmul \delta) \rmul \inv{i}$ by \cref{real_lt_mul_pos}.
$m / i < \delta$ by
\cref{real_div,real_lt_subst_left,real_lt_subst_right,real_mul_assoc,real_mul_comm,real_mul_inverse,real_mul_ident}.
$a < \delta$ by \cref{real_lt_subst_right,subseteq}.
$a \leq \delta$.
\caseOf{$i\notin J$.}
Show that $N < i$.
\begin{subproof}
Suppose not.
$i\in\reals$ and $N\in\reals$ by \cref{real_naturals_subset_reals,subseteq}.
\begin{byCase}
\caseOf{$i = N$.}
$i\in J$ by \cref{initial_segment_naturalsplus}.
Contradiction.
\caseOf{$i \neq N$.}
$i < N$ or $N < i$ by \cref{real_lt_trichotomy}.
$i < N$.
$i \leq N$.
$i\in J$ by \cref{initial_segment_naturalsplus}.
Contradiction.
\end{byCase}
\end{subproof}
$1 / i \leq 1 / N$ by \cref{naturalsplus_reciprocal_antitone}.
$a\in\reals$ by \cref{real_div_naturalsplus_real}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
$1 / i\in\reals$ by \cref{real_div_naturalsplus_real}.
$1 / N\in\reals$ by \cref{real_div_naturalsplus_real}.
$a \leq 1 / i$ by \cref{real_div_leq_same_denom}.
$1 / i < \delta$ by \cref{real_leq_lt_trans,real_lt_subst_left}.
$a < \delta$ by \cref{real_leq_lt_trans}.
$a \leq \delta$.
\end{byCase}
For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\omegaMetricSet{x}{y}$ we have $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 166, Definition 179, Definition 191, Definition 207, Lemma 198, Lemma 265, Proposition 115, Proposition 361, Theorem 21.
$\omegaMetricSet{x}{y}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ is an upper bound of $\omegaMetricSet{x}{y}$ by Definition 66.
$r_0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 66, Definition 71, Definition 204.
$d((x,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 82, Lemma 83.
$d((z,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((z,x)) + d((x,y))$ by Definition 178, Definition 179.
$d((x,y)) + d((z,x))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + d((z,x))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $r + d((z,x))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$d((z,x)) + d((x,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((z,x)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$d((x,y)) + d((z,x)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + d((z,x))$ by Lemma 24.
$d((z,x)) + d((x,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + d((z,x))$ by Axiom 16, Lemma 23.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + d((z,x)) = d((z,x)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 16.
$d((z,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((z,x)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1, Lemma 23.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + d((z,x)) < r + d((z,x))$ by Axiom 37.
$d((z,x)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < r + d((z,x))$ by Axiom 16, Lemma 82.
$d((z,x)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < d((z,x)) + r$ by Axiom 16, Lemma 83.
$d((z,x)) + r = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 15, Axiom 16, Axiom 17, Axiom 18, Definition 64.
$d((z,x)) + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 83.
$d((z,y)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 266.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X_0}{z}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 180.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} B_2$ by Definition 1.
$B_3\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B_2$ by Definition 1.
Claim: $T_0$ is finer than $T_1$ on $X_0$.
Follows by Lemma 80.
Claim: $T_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_0$.
Follows by Definition 108.
Claim: $T_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_1$.
Follows by Definition 108.
$T_1 = T_0$ by Proposition 3.
$\metricTopology{\omegaMetric}{\realsPower{\naturalsPlus}} = T_0$.
LaTeX source
\begin{proof}
Let $X_0 = \realsPower{\naturalsPlus}$.
Let $d = \omegaMetric$.
Let $T_1 = \metricTopology{d}{X_0}$.
For all $w$ such that $w\in X$ there exist $x,y$ such that $w = (x,y)$.
For all $i,y_1,y_2$ such that $(i,y_1)\in X$ and $(i,y_2)\in X$ we have $y_1 = y_2$.
$X$ is a function by \cref{relation,rightunique}.
For all $w$ such that $w\in T$ there exist $x,y$ such that $w = (x,y)$.
For all $i,y_1,y_2$ such that $(i,y_1)\in T$ and $(i,y_2)\in T$ we have $y_1 = y_2$.
$T$ is a function by \cref{relation,rightunique}.
$\naturalsPlus\subseteq\dom{X}$ by \cref{dom_intro,subseteq}.
For all $i$ such that $i\in\dom{X}$ we have $i\in\naturalsPlus$.
$\dom{X}\subseteq\naturalsPlus$ by \cref{subseteq}.
$\dom{X} = \naturalsPlus$ by \cref{subseteq_antisymmetric}.
$\naturalsPlus\subseteq\dom{T}$ by \cref{dom_intro,subseteq}.
For all $i$ such that $i\in\dom{T}$ we have $i\in\naturalsPlus$.
$\dom{T}\subseteq\naturalsPlus$ by \cref{subseteq}.
$\dom{T} = \naturalsPlus$ by \cref{subseteq_antisymmetric}.
For all $i\in\dom{X}$ we have $\apply{X}{i} = \reals$ and $\apply{T}{i} = \standardTopologyR$
by \cref{subseteq,function_apply_intro}.
For all $i\in\dom{X}$ we have $\apply{T}{i}$ is a topology on $\apply{X}{i}$
by \cref{subseteq,function_apply_intro,standard_basis_is_basis,basis_topology_is_topology,standard_topology_reals}.
$1\in\naturalsPlus$ by \cref{real_one_in_naturals}.
$1\in\dom{X}$ by \cref{subseteq}.
Let $S_0 = \productSubbasis{T}{X}$.
Let $B_0 = \finiteIntersections{S_0}$.
$B_0$ is a basis for $T_0$ on $\productFamily{X}$ by \cref{product_subbasis_finite_intersections_basis}.
$B_0$ is a basis for $T_0$ on $X_0$ by \cref{product_family_reals_power}.
$d$ is a metric on $X_0$ by \cref{omega_metric_is_metric}.
$\dom{d} = X_0\times X_0$ by \cref{metric_on,funs_elim}.
Let $B_1 = \metricBasis{d}{X_0}$.
$B_1$ is a basis on $X_0$ by \cref{metric_basis_is_basis}.
$B_1$ is a basis for $T_1$ on $X_0$ by \cref{metric_topology,basis_for_topology}.
Show that for all $x,B_2$ such that $x\in X_0$ and $B_2\in B_0$ and $x\in B_2$
there exists $B_3\in B_1$ such that $x\in B_3$ and $B_3\subseteq B_2$.
\begin{subproof}
Fix $x$.
Fix $B_2$ such that $x\in X_0$ and $B_2\in B_0$ and $x\in B_2$.
Take $F\subseteq S_0$ such that $F$ is finite and inhabited and $B_2 = \inters{F}$ by \cref{finite_intersections}.
Let $R = \{w\in F\times\reals \mid \exists \beta\in\naturalsPlus.\exists U\in\standardTopologyR.\exists \eta\in\reals.
\fst{w} = \preimg{\piIndex{X}{\beta}}{U} \land \apply{x}{\beta}\in U \land
0 < \eta \land
\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{\beta}}{\eta} \subseteq U \land
0 < \snd{w} \land \snd{w} = \eta / \beta\}$.
For all $w$ such that $w\in R$ there exist $y,z$ such that $w = (y,z)$.
$R$ is a relation by \cref{relation}.
Show that for all $A\in F$ there exists $\epsilon\in\reals$ such that $A\mathrel{R}\epsilon$.
\begin{subproof}
Fix $A$ such that $A\in F$.
$x\in A$ by \cref{inters_iff_forall}.
Take $\beta\in\dom{X}$ such that $A\in\productSubbasisAt{T}{X}{\beta}$
by \cref{subseteq,product_subbasis_union_indexed}.
Take $U\in\apply{T}{\beta}$ such that $A = \preimg{\piIndex{X}{\beta}}{U}$ by \cref{product_subbasis_indexed}.
$\beta\in\naturalsPlus$ by \cref{subseteq}.
$x\in\preimg{\piIndex{X}{\beta}}{U}$.
Take $z\in U$ such that $x\mathrel{\piIndex{X}{\beta}} z$ by \cref{preimg_iff}.
$(x,z)\in\piIndex{X}{\beta}$.
Take $x_1\in\productFamily{X}$ such that $(x,z) = (x_1,\apply{x_1}{\beta})$ by \cref{projection_map_indexed}.
$z = \apply{x}{\beta}$ by \cref{pair_eq_iff}.
$\apply{x}{\beta}\in U$.
$U\in\standardTopologyR$ by \cref{function_apply_intro}.
$\standardBasisR$ is a basis on $\reals$ by \cref{standard_basis_is_basis}.
$U\subseteq\reals$
by \cref{basis_topology_is_topology,standard_topology_reals,topology_on,subseteq,pow_iff}.
$\standardMetricR$ is a metric on $\reals$ by \cref{standard_metric_is_metric}.
$\boundedMetric{\standardMetricR}$ is a metric on $\reals$ by \cref{bounded_metric_is_metric}.
$U\in\metricTopology{\boundedMetric{\standardMetricR}}{\reals}$
by \cref{standard_metric_topology,bounded_metric_topology,standard_metric_is_metric,subseteq}.
$U$ is open in $\reals$ with respect to $\metricTopology{\boundedMetric{\standardMetricR}}{\reals}$ by
\cref{open_in,basis_topology_is_topology,metric_basis_is_basis,metric_topology}.
Take $\eta\in\reals$ such that $0 < \eta$ and
$\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{\beta}}{\eta}\subseteq U$
by \cref{metric_open_iff}.
Let $\epsilon = \eta / \beta$.
$\epsilon\in\reals$ by \cref{real_div_naturalsplus_real}.
$\beta\in\reals$ and $0 < \beta$ and $\inv{\beta}\in\reals$ and $0 < \inv{\beta}$ by
\cref{real_naturals_subset_reals,subseteq,naturalsplus_positive_real,real_pos_nonzero,real_mul_inverse,real_inv_pos}.
$0\in\reals$ by \cref{real_add_ident}.
$0 \rmul \inv{\beta} < \eta \rmul \inv{\beta}$ by \cref{real_lt_mul_pos}.
$0 < \eta \rmul \inv{\beta}$ by \cref{real_mul_zero,real_lt_subst_left}.
$0 < \epsilon$ by \cref{real_div,real_lt_subst_right}.
$(A,\epsilon)\in F\times\reals$ by \cref{times_tuple_intro}.
$A\mathrel{R}\epsilon$ by \cref{fst_eq,snd_eq,pair_eq_iff}.
\end{subproof}
Take $e$ such that $e$ is a function on $F$ and for all $A\in F$ we have $A\mathrel{R}\apply{e}{A}$
by \cref{axiom_of_choice}.
$e$ is a function and $\dom{e} = F$.
Let $E = \img{e}{F}$.
$E$ is finite by \cref{finite_image_function}.
Take $A_0$ such that $A_0\in F$.
$\apply{e}{A_0}\in E$ by \cref{function_apply_elim,img_iff}.
$E\neq\emptyset$ by \cref{function_apply_elim,img_iff,emptyset}.
For all $t$ such that $t\in E$ we have $t\in\reals$ and $0 < t$
by \cref{img_iff,subseteq,function_apply_iff,fst_eq,snd_eq,times_tuple_elim}.
$E\subseteq\reals$ by \cref{subseteq}.
Take $\delta\in E$ such that $\delta$ is a minimum of $E$ by \cref{finite_real_minimum}.
$\delta\in\reals$ and $0 < \delta$ by \cref{subseteq}.
Let $B_3 = \metricBall{d}{X_0}{x}{\delta}$.
$B_3\in B_1$ by \cref{metric_ball,subseteq,powerset_intro,metric_basis}.
Show that for all $y$ such that $y\in B_3$ we have $y\in B_2$.
\begin{subproof}
Fix $y$ such that $y\in B_3$.
$y\in X_0$ and $d((x,y)) < \delta$ by \cref{metric_ball}.
$(x,y)\in X_0\times X_0$ by \cref{times_tuple_intro}.
$(x,y)\in\dom{d}$ by \cref{subseteq}.
Take $s$ such that $((x,y),s)\in d$ by \cref{dom_iff}.
$d((x,y)) = s$ by \cref{metric_on,funs_elim,subseteq,function_apply_intro}.
$s < \delta$ by \cref{real_lt_subst_left}.
Take $p_0,x_0,y_0,r_0$ such that
$p_0\in X_0\times X_0$ and $x_0\in X_0$ and $y_0\in X_0$ and $r_0\in\reals$ and
$((x,y),s) = (p_0,r_0)$ and $p_0 = (x_0,y_0)$ and
$\realSupremum{r_0}{\omegaMetricSet{x_0}{y_0}}$ by \cref{omega_metric}.
$p_0 = (x,y)$ and $s = r_0$ by \cref{pair_eq_iff}.
$r_0 < \delta$ by \cref{real_lt_subst_left}.
$x_0 = x$ and $y_0 = y$ by \cref{pair_eq_iff}.
Show that for all $A\in F$ we have $y\in A$.
\begin{subproof}
Fix $A$ such that $A\in F$.
$(A,\apply{e}{A})\in R$.
Let $w = (A,\apply{e}{A})$.
$w\in R$.
Take $\beta,U,\eta$ such that $\beta\in\naturalsPlus$ and $U\in\standardTopologyR$ and $\eta\in\reals$ and
$\fst{w} = \preimg{\piIndex{X}{\beta}}{U}$ and $\apply{x}{\beta}\in U$ and
$0 < \eta$ and
$\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{\beta}}{\eta}\subseteq U$ and
$0 < \snd{w}$ and $\snd{w} = \eta / \beta$.
$\fst{w} = A$ and $\snd{w} = \apply{e}{A}$ by \cref{fst_eq,snd_eq}.
$A = \preimg{\piIndex{X}{\beta}}{U}$.
$\apply{e}{A}\in E$ by \cref{function_apply_elim,img_iff}.
$\apply{e}{A}\in\reals$ by \cref{subseteq}.
$\delta \leq \apply{e}{A}$ by \cref{function_apply_elim,img_iff,real_minimum}.
$s < \apply{e}{A}$ by \cref{real_leq_split,real_lt_trans,real_lt_subst_right}.
Let $m = \apply{\boundedMetric{\standardMetricR}}{(x(\beta),y(\beta))}$.
Let $a = m / \beta$.
$x(\beta)\in\reals$ and $y(\beta)\in\reals$ by \cref{reals_power,tuple_power,funs_type_apply}.
$(x(\beta),y(\beta))\in\reals\times\reals$ by \cref{times_tuple_intro}.
$\standardMetricR$ is a metric on $\reals$ by \cref{standard_metric_is_metric}.
$\boundedMetric{\standardMetricR}$ is a metric on $\reals$ by \cref{bounded_metric_is_metric}.
$m\in\reals$ by \cref{metric_on,funs_type_apply}.
$a\in\reals$ by \cref{real_div_naturalsplus_real}.
$a\in\omegaMetricSet{x}{y}$ by \cref{omega_metric_set}.
$a \leq s$ by \cref{real_supremum_pred,real_supremum,real_upper_bound}.
$a < \apply{e}{A}$ by \cref{real_leq_lt_trans}.
$a = m / \beta$ and $\apply{e}{A} = \eta / \beta$ by \cref{subseteq}.
$m < \eta$ by \cref{real_div_lt_same_denom_cancel,real_lt_subst_left,real_lt_subst_right}.
$\apply{y}{\beta}\in\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{\beta}}{\eta}$ by \cref{metric_ball}.
$\apply{y}{\beta}\in U$ by \cref{subseteq}.
$y\in\preimg{\piIndex{X}{\beta}}{U}$ by
\cref{metric_ball,product_family_reals_power,subseteq,projection_map_indexed,preimg_iff}.
$y\in A$.
\end{subproof}
$y\in B_2$ by \cref{inters_iff_forall,subseteq_antisymmetric}.
\end{subproof}
$B_3\subseteq B_2$ by \cref{subseteq}.
$x\in B_3$ and $B_3\subseteq B_2$ by \cref{metric_ball,metric_zero_characterization,metric_on}.
\end{subproof}
Show that $T_1$ is finer than $T_0$ on $X_0$.
\begin{subproof}
Follows by \cref{basis_finer_criterion}.
\end{subproof}
Show that for all $x,B_2$ such that $x\in X_0$ and $B_2\in B_1$ and $x\in B_2$
there exists $B_3\in B_0$ such that $x\in B_3$ and $B_3\subseteq B_2$.
\begin{subproof}
Fix $x$.
Fix $B_2$ such that $x\in X_0$ and $B_2\in B_1$ and $x\in B_2$.
Take $z,\epsilon$ such that $z\in X_0$ and $\epsilon\in\reals$ and $0 < \epsilon$ and
$B_2 = \metricBall{d}{X_0}{z}{\epsilon}$ by \cref{metric_basis}.
$x\in\metricBall{d}{X_0}{z}{\epsilon}$ by \cref{subseteq}.
$d((z,x)) < \epsilon$ by \cref{metric_ball}.
$(z,x)\in X_0\times X_0$ by \cref{times_tuple_intro}.
$d((z,x))\in\reals$ by \cref{metric_on,funs_type_apply}.
Let $r = \epsilon - d((z,x))$.
$0 < r$ by \cref{real_lt_imp_pos_diff}.
$r\in\reals$ by \cref{real_sub,real_add_inverse,real_add_closed}.
Let $\delta = r \rmul \inv{(1+1)}$.
$\delta\in\reals$ and $0 < \delta$ and $\delta < r$ by \cref{positive_real_smaller_half}.
Take $N\in\naturalsPlus$ such that $0 < 1 / N$ and $1 / N < \delta$ by \cref{real_small_reciprocal}.
Let $J = \initialSegment{N}$.
Let $R_g = \{w\in J\times\pow{\productFamily{X}} \mid \exists i\in J.
\fst{w} = i \land
\snd{w} = \preimg{\piIndex{X}{i}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i}}{i \rmul \delta}}\}$.
For all $w$ such that $w\in R_g$ there exist $i,A$ such that $w = (i,A)$.
$R_g$ is a relation by \cref{relation}.
For all $i\in J$ we have
$\preimg{\piIndex{X}{i}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i}}{i \rmul \delta}}
\in\pow{\productFamily{X}}$
by \cref{preimg_iff,projection_map_indexed,pair_eq_iff,subseteq,powerset_intro}.
For all $i\in J$ there exists $A$ such that $i\mathrel{R_g} A$
by \cref{times_tuple_intro,fst_eq,snd_eq,pair_eq_iff}.
Take $g$ such that $g$ is a function on $J$ and for all $i\in J$ we have $i\mathrel{R_g}\apply{g}{i}$
by \cref{axiom_of_choice}.
Let $F = \img{g}{J}$.
$F$ is finite by \cref{initial_segment_finite,finite_image_function}.
$1\in J$ by \cref{real_one_in_naturals,real_one_leq_naturalsplus,initial_segment_naturalsplus}.
$\apply{g}{1}\in F$ by \cref{function_apply_elim,img_iff}.
$F\neq\emptyset$ by \cref{function_apply_elim,img_iff,emptyset}.
Show that for all $A$ such that $A\in F$ we have $A\in S_0$.
\begin{subproof}
Fix $A$ such that $A\in F$.
Take $j\in J$ such that $(j,A)\in g$ by \cref{img_iff}.
$j\in\dom{g}$ and $A = \apply{g}{j}$ by \cref{subseteq,function_apply_iff}.
$j\mathrel{R_g}\apply{g}{j}$.
$(j,\apply{g}{j})\in R_g$.
$(j,\apply{g}{j})\in J\times\pow{\productFamily{X}}$ by \cref{subseteq}.
$A\in\pow{\productFamily{X}}$ by \cref{times_tuple_elim,snd_eq}.
Take $i_0\in J$ such that
$\fst{(j,\apply{g}{j})} = i_0$ and
$\snd{(j,\apply{g}{j})}
= \preimg{\piIndex{X}{i_0}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i_0}}{i_0 \rmul \delta}}$.
$j = i_0$ and $A = \preimg{\piIndex{X}{j}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{j}}{j \rmul \delta}}$
by \cref{function_apply_intro,fst_eq,snd_eq,pair_eq_iff}.
$j\in\naturalsPlus$ and $j\in\reals$ and $0 < j$ by
\cref{initial_segment_naturalsplus,real_naturals_subset_reals,subseteq,naturalsplus_positive_real}.
$j \rmul \delta\in\reals$ and $0 < j \rmul \delta$ by \cref{real_mul_closed,real_mul_pos_pos_gt}.
Let $U = \metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{j}}{j \rmul \delta}$.
$\apply{x}{j}\in\reals$ by \cref{reals_power,tuple_power,funs_type_apply}.
$U\in\metricBasis{\boundedMetric{\standardMetricR}}{\reals}$ by
\cref{metric_ball,subseteq,powerset_intro,metric_basis,bounded_metric_is_metric,standard_metric_is_metric}.
$U\in\standardTopologyR$ by
\cref{standard_metric_basis_standard_topology,basis_for_topology,basis_elem_open_in_generated}.
$U\in\apply{T}{j}$ by \cref{function_apply_intro}.
$A\in\productSubbasisAt{T}{X}{j}$ by
\cref{preimg_iff,projection_map_indexed,pair_eq_iff,subseteq,powerset_intro,product_subbasis_indexed}.
$j\in\dom{X}$ by \cref{subseteq}.
$A\in S_0$ by \cref{product_subbasis_union_indexed}.
\end{subproof}
$F\subseteq S_0$ by \cref{subseteq}.
Let $B_3 = \inters{F}$.
For all $u$ such that $u\in B_3$ we have $u\in\unions{S_0}$.
$B_3\subseteq\unions{S_0}$ by \cref{subseteq}.
$B_3\in\pow{\unions{S_0}}$ by \cref{powerset_intro}.
$B_3\in B_0$ by \cref{finite_intersections}.
For all $A$ such that $A\in F$ there exists $j\in J$ such that
$A = \preimg{\piIndex{X}{j}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{j}}{j \rmul \delta}}$
by \cref{img_iff,function_apply_intro,fst_eq,snd_eq,pair_eq_iff}.
For all $A$ such that $A\in F$ we have $x\in A$
by \cref{initial_segment_naturalsplus,real_naturals_subset_reals,subseteq,naturalsplus_positive_real,real_mul_closed,real_mul_pos_pos_gt,reals_power,tuple_power,funs_type_apply,metric_ball_center,bounded_metric_is_metric,standard_metric_is_metric,metric_ball,product_family_reals_power,projection_map_indexed,preimg_iff}.
$x\in\inters{F}$ by \cref{inters_iff_forall}.
$x\in B_3$ by \cref{subseteq}.
Show that for all $y$ such that $y\in B_3$ we have $y\in B_2$.
\begin{subproof}
Fix $y$ such that $y\in B_3$.
$\apply{g}{1}\in F$ by \cref{function_apply_elim,img_iff}.
$y\in\apply{g}{1}$ by \cref{inters_iff_forall}.
$1\in J$ by \cref{real_one_in_naturals,real_one_leq_naturalsplus,initial_segment_naturalsplus}.
We have $1\mathrel{R_g}\apply{g}{1}$ by \cref{subseteq}.
Take $i_1\in J$ such that
$\fst{(1,\apply{g}{1})} = i_1$ and
$\snd{(1,\apply{g}{1})}
= \preimg{\piIndex{X}{i_1}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i_1}}{i_1 \rmul \delta}}$.
We have $1 = i_1$ and $\apply{g}{1}
= \preimg{\piIndex{X}{1}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{1}}{1 \rmul \delta}}$
by \cref{fst_eq,snd_eq,pair_eq_iff}.
Take $u_0\in\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{1}}{1 \rmul \delta}$ such that
$y\mathrel{\piIndex{X}{1}} u_0$ by \cref{preimg_iff}.
$(y,u_0)\in\piIndex{X}{1}$.
Take $y_2\in\productFamily{X}$ such that $(y,u_0) = (y_2,\apply{y_2}{1})$ by \cref{projection_map_indexed}.
$y = y_2$ by \cref{pair_eq_iff}.
$y\in\productFamily{X}$ by \cref{subseteq}.
$y\in X_0$ by \cref{product_family_reals_power,subseteq}.
$(x,y)\in X_0\times X_0$ and $(z,x)\in X_0\times X_0$ and $(z,y)\in X_0\times X_0$ by \cref{times_tuple_intro}.
$d((x,y))\in\reals$ and $d((z,x))\in\reals$ and $d((z,y))\in\reals$ by \cref{metric_on,funs_type_apply}.
$(x,y)\in\dom{d}$ by \cref{subseteq}.
Take $s$ such that $((x,y),s)\in d$ by \cref{dom_iff}.
$d((x,y)) = s$ by \cref{metric_on,funs_elim,subseteq,function_apply_intro}.
Take $p_0,x_0,y_0,r_0$ such that
$p_0\in X_0\times X_0$ and $x_0\in X_0$ and $y_0\in X_0$ and $r_0\in\reals$ and
$((x,y),s) = (p_0,r_0)$ and $p_0 = (x_0,y_0)$ and
$\realSupremum{r_0}{\omegaMetricSet{x_0}{y_0}}$ by \cref{omega_metric}.
$p_0 = (x,y)$ and $s = r_0$ by \cref{pair_eq_iff}.
$x_0 = x$ and $y_0 = y$ by \cref{pair_eq_iff}.
Show that for all $a\in\omegaMetricSet{x}{y}$ we have $a \leq \delta$.
\begin{subproof}
Fix $a$ such that $a\in\omegaMetricSet{x}{y}$.
Take $i\in\naturalsPlus$ such that $a = \apply{\boundedMetric{\standardMetricR}}{(x(i),y(i))} / i$ by \cref{omega_metric_set}.
Let $m = \apply{\boundedMetric{\standardMetricR}}{(x(i),y(i))}$.
$a = m / i$.
$x(i)\in\reals$ and $y(i)\in\reals$ by \cref{reals_power,tuple_power,funs_type_apply}.
$(x(i),y(i))\in\reals\times\reals$ by \cref{times_tuple_intro}.
$\standardMetricR$ is a metric on $\reals$ by \cref{standard_metric_is_metric}.
$\boundedMetric{\standardMetricR}\in\funs{\reals\times\reals}{\reals}$ by \cref{bounded_metric_is_metric,metric_on,funs_elim}.
$m\in\reals$ and $0 \leq m$ by \cref{bounded_metric_is_metric,standard_metric_is_metric,metric_on,funs_type_apply,metric_nonnegative}.
$m \leq 1$ by \cref{bounded_metric_leq_one}.
\begin{byCase}
\caseOf{$i\in J$.}
$\apply{g}{i}\in F$ by \cref{function_apply_elim,img_iff}.
$y\in\apply{g}{i}$ by \cref{inters_iff_forall}.
$i\mathrel{R_g}\apply{g}{i}$.
Take $i_0\in J$ such that
$\fst{(i,\apply{g}{i})} = i_0$ and
$\snd{(i,\apply{g}{i})}
= \preimg{\piIndex{X}{i_0}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i_0}}{i_0 \rmul \delta}}$.
$i = i_0$ and
$\apply{g}{i} = \preimg{\piIndex{X}{i}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i}}{i \rmul \delta}}$
by \cref{fst_eq,snd_eq,pair_eq_iff,function_apply_intro}.
$y\in\preimg{\piIndex{X}{i}}{\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i}}{i \rmul \delta}}$.
Take $u\in\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i}}{i \rmul \delta}$ such that
$y\mathrel{\piIndex{X}{i}} u$ by \cref{preimg_iff}.
$(y,u)\in\piIndex{X}{i}$.
Take $y_1\in\productFamily{X}$ such that $(y,u) = (y_1,\apply{y_1}{i})$ by \cref{projection_map_indexed}.
$u = \apply{y}{i}$ by \cref{pair_eq_iff}.
$\apply{y}{i}\in\metricBall{\boundedMetric{\standardMetricR}}{\reals}{\apply{x}{i}}{i \rmul \delta}$.
$m < i \rmul \delta$ by \cref{metric_ball}.
$i\in\reals$ and $0 < i$ by \cref{real_naturals_subset_reals,subseteq,naturalsplus_positive_real}.
$i \rmul \delta\in\reals$ by \cref{real_mul_closed}.
$i \neq 0$ by \cref{real_pos_nonzero}.
$\inv{i}\in\reals$ and $0 < \inv{i}$ by \cref{real_mul_inverse,real_inv_pos}.
$m \rmul \inv{i} < (i \rmul \delta) \rmul \inv{i}$ by \cref{real_lt_mul_pos}.
$m / i < \delta$ by
\cref{real_div,real_lt_subst_left,real_lt_subst_right,real_mul_assoc,real_mul_comm,real_mul_inverse,real_mul_ident}.
$a < \delta$ by \cref{real_lt_subst_right,subseteq}.
$a \leq \delta$.
\caseOf{$i\notin J$.}
Show that $N < i$.
\begin{subproof}
Suppose not.
$i\in\reals$ and $N\in\reals$ by \cref{real_naturals_subset_reals,subseteq}.
\begin{byCase}
\caseOf{$i = N$.}
$i\in J$ by \cref{initial_segment_naturalsplus}.
Contradiction.
\caseOf{$i \neq N$.}
$i < N$ or $N < i$ by \cref{real_lt_trichotomy}.
$i < N$.
$i \leq N$.
$i\in J$ by \cref{initial_segment_naturalsplus}.
Contradiction.
\end{byCase}
\end{subproof}
$1 / i \leq 1 / N$ by \cref{naturalsplus_reciprocal_antitone}.
$a\in\reals$ by \cref{real_div_naturalsplus_real}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
$1 / i\in\reals$ by \cref{real_div_naturalsplus_real}.
$1 / N\in\reals$ by \cref{real_div_naturalsplus_real}.
$a \leq 1 / i$ by \cref{real_div_leq_same_denom}.
$1 / i < \delta$ by \cref{real_leq_lt_trans,real_lt_subst_left}.
$a < \delta$ by \cref{real_leq_lt_trans}.
$a \leq \delta$.
\end{byCase}
\end{subproof}
For all $a\in\omegaMetricSet{x}{y}$ we have $a\in\reals$
by \cref{omega_metric_set,reals_power,tuple_power,funs_type_apply,times_tuple_intro,standard_metric_is_metric,bounded_metric_is_metric,metric_on,real_div_naturalsplus_real}.
$\omegaMetricSet{x}{y}\subseteq\reals$ by \cref{subseteq}.
$\delta\in\reals$ by \cref{subseteq}.
$\delta$ is an upper bound of $\omegaMetricSet{x}{y}$ by \cref{real_upper_bound}.
$r_0 \leq \delta$ by \cref{real_supremum_pred,real_supremum,real_upper_bound}.
$d((x,y)) \leq \delta$ by \cref{real_lt_subst_left,real_lt_subst_right}.
$d((z,y)) \leq d((z,x)) + d((x,y))$ by \cref{metric_on,metric_triangle_inequality}.
$d((x,y)) + d((z,x))\in\reals$ and $\delta + d((z,x))\in\reals$ and $r + d((z,x))\in\reals$
by \cref{real_add_closed}.
$d((z,x)) + d((x,y))\in\reals$ and $d((z,x)) + \delta\in\reals$ by \cref{real_add_closed}.
$d((x,y)) + d((z,x)) \leq \delta + d((z,x))$ by \cref{real_leq_add}.
$d((z,x)) + d((x,y)) \leq \delta + d((z,x))$ by \cref{real_add_comm,real_leq_trans}.
$\delta + d((z,x)) = d((z,x)) + \delta$ by \cref{real_add_comm}.
$d((z,y)) \leq d((z,x)) + \delta$ by \cref{real_leq_trans,subseteq}.
$\delta + d((z,x)) < r + d((z,x))$ by \cref{real_lt_add}.
$d((z,x)) + \delta < r + d((z,x))$ by \cref{real_add_comm,real_lt_subst_left}.
$d((z,x)) + \delta < d((z,x)) + r$ by \cref{real_add_comm,real_lt_subst_right}.
$d((z,x)) + r = \epsilon$ by
\cref{real_sub,real_add_assoc,real_add_inverse,real_add_comm,real_add_ident}.
$d((z,x)) + \delta < \epsilon$ by \cref{real_lt_subst_right}.
$d((z,y)) < \epsilon$ by \cref{real_leq_lt_trans}.
$y\in\metricBall{d}{X_0}{z}{\epsilon}$ by \cref{metric_ball}.
$y\in B_2$ by \cref{subseteq}.
\end{subproof}
$B_3\subseteq B_2$ by \cref{subseteq}.
\end{subproof}
Show that $T_0$ is finer than $T_1$ on $X_0$.
\begin{subproof}
Follows by \cref{basis_finer_criterion}.
\end{subproof}
Show that $T_1\subseteq T_0$.
\begin{subproof}
Follows by \cref{finer_topology}.
\end{subproof}
Show that $T_0\subseteq T_1$.
\begin{subproof}
Follows by \cref{finer_topology}.
\end{subproof}
$T_1 = T_0$ by \cref{subseteq_antisymmetric}.
$\metricTopology{\omegaMetric}{\realsPower{\naturalsPlus}} = T_0$.
\end{proof}