Topology (Munkres)
§45 Compactness in Metric Spaces
$A$ is totally 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 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 $C$ such that $C$ is finite and $C$ is a covering of $A$ and for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $U = A\inter\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
LaTeX source
\begin{definition}
\label{totally_bounded_subset_metric_space}
$A$ is totally bounded in $X$ with respect to $d$ iff
$d$ is a metric on $X$ and
$A\subseteq X$ and
for all $\epsilon\in\reals$ such that $0 < \epsilon$
there exists $C$ such that
$C$ is finite and
$C$ is a covering of $A$ and
for all $U\in C$ there exists $x\in X$ such that
$U = A\inter\metricBall{d}{X}{x}{\epsilon}$.
\end{definition}
$X$ is totally bounded with respect to $d$ iff $X$ is totally bounded in $X$ with respect to $d$.
LaTeX source
\begin{definition}
\label{totally_bounded_metric_space}
$X$ is totally bounded with respect to $d$ iff
$X$ is totally bounded in $X$ with respect to $d$.
\end{definition}
Assume $d$ is a metric on $X$.
Let $T = \metricTopology{d}{X}$.
Suppose $X$ is compact with respect to $T$.
Then $X$ is complete with respect to $d$.
LaTeX source
\begin{theorem}
\label{compact_metric_space_complete}
Assume $d$ is a metric on $X$.
Let $T = \metricTopology{d}{X}$.
Suppose $X$ is compact with respect to $T$.
Then $X$ is complete with respect to $d$.
\end{theorem}
Proof
$X$ is sequentially compact with respect to $T$ by Definition 115, Definition 182, Definition 185, Lemma 76, Lemma 194, Theorem 72.
Hence $X$ is complete with respect to $d$ by Definition 260, Definition 342, Lemma 662.
LaTeX source
\begin{proof}
$X$ is sequentially compact with respect to $T$
by \cref{metric_topology,metric_basis_is_basis,basis_for_topology,basis_topology_is_topology,metrizable,metrizable_compact_iff_limit_point_compact_iff_sequentially_compact}.
Hence $X$ is complete with respect to $d$
by \cref{cauchy_sequence,sequentially_compact,cauchy_subsequence_completeness_criterion}.
\end{proof}
Assume $d$ is a metric on $X$.
Let $T = \metricTopology{d}{X}$.
Suppose $X$ is compact with respect to $T$.
Then $X$ is totally bounded with respect to $d$.
LaTeX source
\begin{theorem}
\label{compact_metric_space_totally_bounded}
Assume $d$ is a metric on $X$.
Let $T = \metricTopology{d}{X}$.
Suppose $X$ is compact with respect to $T$.
Then $X$ is totally bounded with respect to $d$.
\end{theorem}
Proof
$X$ is sequentially compact with respect to $T$ by Definition 115, Definition 182, Definition 185, Lemma 76, Lemma 194, Theorem 72.
Thus 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 $C$ such that $C$ is finite and $C$ is a covering of $X$ and for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $U = X\inter\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 1, Definition 180, Lemma 408, Proposition 70.
Therefore $X$ is totally bounded with respect to $d$ by Definition 359, Definition 360, Proposition 2.
LaTeX source
\begin{proof}
$X$ is sequentially compact with respect to $T$
by \cref{metric_topology,metric_basis_is_basis,basis_for_topology,basis_topology_is_topology,metrizable,metrizable_compact_iff_limit_point_compact_iff_sequentially_compact}.
Thus for all $\epsilon\in\reals$ such that $0 < \epsilon$
there exists $C$ such that
$C$ is finite and
$C$ is a covering of $X$ and
for all $U\in C$ there exists $x\in X$ such that
$U = X\inter\metricBall{d}{X}{x}{\epsilon}$
by \cref{sequentially_compact_finite_ball_cover,metric_ball,inter_absorb_supseteq_left,subseteq}.
Therefore $X$ is totally bounded with respect to $d$
by \cref{subseteq_refl,totally_bounded_subset_metric_space,totally_bounded_metric_space}.
\end{proof}
Suppose $s$ is a sequence in $X$.
Suppose $J\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$.
Suppose $J$ is infinite.
Suppose $C$ is finite.
Suppose $C$ is a covering of $\img{s}{J}$.
Then there exists $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ such that $J\inter\preimg{s}{U}$ is infinite.
LaTeX source
\begin{lemma}
\label{finite_cover_infinite_sequence_trace}
Suppose $s$ is a sequence in $X$.
Suppose $J\subseteq\naturalsPlus$.
Suppose $J$ is infinite.
Suppose $C$ is finite.
Suppose $C$ is a covering of $\img{s}{J}$.
Then there exists $U\in C$ such that
$J\inter\preimg{s}{U}$ is infinite.
\end{lemma}
Proof
Let $h = \{(U, J\inter\preimg{s}{U}) \mid U\class{latex-symbol-tip latex-symbol-id-in}{\in} C\}$.
For all $U,V_1,V_2$ such that $(U,V_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ and $(U,V_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ we have $V_1 = V_2$ by Axiom 6.
Hence $h$ is right-unique and $h$ is a function by Definition 12, Definition 51.
Therefore $\dom{h} = C$ by Axiom 6, Definition 1, Proposition 3, Proposition 199, Proposition 200.
Let $F = \img{h}{C}$.
We have $F$ is finite by Lemma 192.
For all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{s}$ by Definition 1, Definition 55, Definition 158.
Hence for all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\apply{s}{n}\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{s}{J}$ by Definition 158, Proposition 235, Proposition 349, Proposition 356.
Therefore for all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ there exists $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ such that $\apply{s}{n}\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Axiom 4, Definition 1, Definition 245.
Thus for all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ there exists $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in} J\inter\preimg{s}{U}$ by Definition 158, Proposition 61, Proposition 246, Proposition 349, Proposition 356.
Hence for all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{F}$ by Axiom 4, Definition 1, Proposition 235, Proposition 349.
Therefore $\unions{F} = J$ by Axiom 4, Axiom 6, Definition 1, Definition 5, Proposition 3, Proposition 235.
Suppose not.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $J\inter\preimg{s}{U}$ is finite.
For all $K\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $K$ is finite by Proposition 235, Proposition 349.
Hence $J$ is finite by Lemma 360, Proposition 3.
Contradiction.
LaTeX source
\begin{proof}
Let $h = \{(U, J\inter\preimg{s}{U}) \mid U\in C\}$.
For all $U,V_1,V_2$ such that $(U,V_1)\in h$ and $(U,V_2)\in h$ we have $V_1 = V_2$
by \cref{pair_eq_iff}.
Hence $h$ is right-unique and $h$ is a function by \cref{rightunique,relation}.
Therefore $\dom{h} = C$ by \cref{pair_eq_iff,dom_intro,dom_iff,subseteq,subseteq_antisymmetric}.
Let $F = \img{h}{C}$.
We have $F$ is finite by \cref{finite_image_function}.
For all $n$ such that $n\in J$ we have $n\in\dom{s}$ by \cref{sequence_in,funs,subseteq}.
Hence for all $n$ such that $n\in J$ we have $\apply{s}{n}\in\img{s}{J}$
by \cref{img_iff,function_apply_iff,sequence_in,funs_is_function}.
Therefore for all $n$ such that $n\in J$ there exists $U\in C$ such that $\apply{s}{n}\in U$
by \cref{covering,subseteq,unions_iff}.
Thus for all $n$ such that $n\in J$ there exists $U\in C$ such that $n\in J\inter\preimg{s}{U}$
by \cref{inter_intro,preimg_iff,function_apply_iff,sequence_in,funs_is_function}.
Hence for all $n$ such that $n\in J$ we have $n\in\unions{F}$
by \cref{subseteq,img_iff,function_apply_iff,unions_iff}.
Therefore $\unions{F} = J$ by \cref{subseteq,unions_iff,img_iff,pair_eq_iff,inter,subseteq_antisymmetric}.
Suppose not.
For all $U\in C$ we have $J\inter\preimg{s}{U}$ is finite.
For all $K\in F$ we have $K$ is finite by \cref{img_iff,function_apply_iff}.
Hence $J$ is finite by \cref{subseteq_antisymmetric,finite_union_of_finite_family}.
Contradiction.
\end{proof}
Assume for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $U = X\inter\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
Suppose $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.
Then there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $U = X\inter\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
LaTeX source
\begin{lemma}
\label{totally_bounded_cover_member_ball}
Assume for all $U\in C$ there exists $x\in X$ such that
$U = X\inter\metricBall{d}{X}{x}{\epsilon}$.
Suppose $U\in C$.
Then there exists $x\in X$ such that
$U = X\inter\metricBall{d}{X}{x}{\epsilon}$.
\end{lemma}
Proof
Follows by definition.
LaTeX source
\begin{proof}
Follows by definition.
\end{proof}
Assume $d$ is a metric on $X$.
Assume $X$ is totally bounded with respect to $d$.
Suppose $s$ is a sequence in $X$.
Suppose $J\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$.
Suppose $J$ is infinite.
Suppose $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Then there exist $K,U$ such that $K\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} J$ and $K$ is infinite and for all $m\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $\apply{s}{m}\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $U = X\inter\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
LaTeX source
\begin{lemma}
\label{totally_bounded_infinite_sequence_epsilon_ball}
Assume $d$ is a metric on $X$.
Assume $X$ is totally bounded with respect to $d$.
Suppose $s$ is a sequence in $X$.
Suppose $J\subseteq\naturalsPlus$.
Suppose $J$ is infinite.
Suppose $\epsilon\in\reals$.
Suppose $0 < \epsilon$.
Then there exist $K,U$ such that
$K\subseteq J$ and
$K$ is infinite and
for all $m\in K$ we have $\apply{s}{m}\in U$ and
there exists $x\in X$ such that
$U = X\inter\metricBall{d}{X}{x}{\epsilon}$.
\end{lemma}
Proof
Take $C$ such that $C$ is finite and $C$ is a covering of $X$ and for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $U = X\inter\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 359, Definition 360.
Hence $C$ is a covering of $\img{s}{J}$ by Definition 1, Definition 55, Definition 158, Definition 245, Proposition 6, Proposition 235, Proposition 346, Proposition 356, Proposition 361.
Take $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ such that $J\inter\preimg{s}{U}$ is infinite by Lemma 824.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $U = X\inter\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Lemma 825.
Let $K = J\inter\preimg{s}{U}$.
Claim: $K\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} J$.
Follows by Proposition 73.
Claim: $K$ is infinite.
Follows by Proposition 73.
Claim: For all $m\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $\apply{s}{m}\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Follows by Definition 1, Definition 5, Definition 55, Definition 158, Proposition 246, Proposition 349, Proposition 356.
Claim: There exists $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $U = X\inter\metricBall{d}{X}{z}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
Trivial.
Follows by definition.
LaTeX source
\begin{proof}
Take $C$ such that
$C$ is finite and
$C$ is a covering of $X$ and
for all $U\in C$ there exists $x\in X$ such that
$U = X\inter\metricBall{d}{X}{x}{\epsilon}$
by \cref{totally_bounded_metric_space,totally_bounded_subset_metric_space}.
Hence $C$ is a covering of $\img{s}{J}$
by \cref{covering,img_iff,subseteq,sequence_in,funs,funs_is_function,function_apply_intro,funs_type_apply,subseteq_transitive}.
Take $U\in C$ such that $J\inter\preimg{s}{U}$ is infinite
by \cref{finite_cover_infinite_sequence_trace}.
Take $x\in X$ such that $U = X\inter\metricBall{d}{X}{x}{\epsilon}$
by \cref{totally_bounded_cover_member_ball}.
Let $K = J\inter\preimg{s}{U}$.
Show that $K\subseteq J$.
\begin{subproof}
Follows by \cref{inter_lower_left}.
\end{subproof}
Show that $K$ is infinite.
\begin{subproof}
Follows by \cref{inter_lower_left}.
\end{subproof}
Show that for all $m\in K$ we have $\apply{s}{m}\in U$.
\begin{subproof}
Follows by \cref{inter,subseteq,sequence_in,funs,preimg_iff,function_apply_iff,funs_is_function}.
\end{subproof}
Show that there exists $z\in X$ such that $U = X\inter\metricBall{d}{X}{z}{\epsilon}$.
\begin{subproof}
Trivial.
\end{subproof}
Follows by definition.
\end{proof}
Suppose $j$ is a sequence in $\pow{\naturalsPlus}$.
Suppose for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $\apply{j}{n}$ is infinite.
Then there exists $u$ such that $u$ is strictly increasing on $\naturalsPlus$ and for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $u(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{j}{n}$.
LaTeX source
\begin{lemma}
\label{infinite_naturalsplus_subset_sequence_diagonal}
Suppose $j$ is a sequence in $\pow{\naturalsPlus}$.
Suppose for all $n\in\naturalsPlus$ we have $\apply{j}{n}$ is infinite.
Then there exists $u$ such that
$u$ is strictly increasing on $\naturalsPlus$ and
for all $n\in\naturalsPlus$ we have $u(n)\in\apply{j}{n}$.
\end{lemma}
Proof
Let $D = \{p\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus\class{latex-symbol-tip latex-symbol-id-times}{\times}\naturalsPlus \mid \snd{p}\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{j}{\fst{p}}\}$.
Take $k$ such that $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{j}{1}$ by Axiom 42, Definition 1, Lemma 35, Proposition 10.
Let $a_0 = (1,k)$.
We have $a_0\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ and $\fst{a_0} = 1$ by Axiom 10, Axiom 11, Axiom 42, Definition 1, Definition 158, Proposition 115, Proposition 156, Proposition 361.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} D\class{latex-symbol-tip latex-symbol-id-times}{\times} D \mid \fst{\snd{w}} = \fst{\fst{w}} + 1 \class{latex-symbol-tip latex-symbol-id-land}{\land} \snd{\fst{w}} < \snd{\snd{w}}\}$.
Claim: For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ there exists $q$ such that $p\mathrel{R} q$.
Fix $p\class{latex-symbol-tip latex-symbol-id-in}{\in} D$.
Take $n_0,m_0$ such that $p = (n_0,m_0)$ by Proposition 121.
$n_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $m_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Proposition 114.
Hence $n_0 + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 45.
Thus $\apply{j}{(n_0 + 1)}$ is infinite and $\apply{j}{(n_0 + 1)}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1, Definition 158, Proposition 156, Proposition 361.
Take $w$ such that $w$ is strictly increasing on $\naturalsPlus$ and for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $w(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{j}{(n_0 + 1)}$ by Lemma 403.
Let $k_1 = \apply{w}{(m_0 + 1)}$.
We have $k_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{j}{(n_0 + 1)}$ and $k_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 45, Definition 1.
$m_0 + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} k_1$ by Axiom 45, Lemma 661.
Hence $m_0 < k_1$ by Axiom 41, Axiom 45, Definition 1, Lemma 399, Lemma 544.
Let $q = (n_0 + 1,k_1)$.
$q\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus\class{latex-symbol-tip latex-symbol-id-times}{\times}\naturalsPlus$ by Definition 1, Definition 158, Proposition 115, Proposition 156, Proposition 361.
$\fst{q} = n_0 + 1$ and $\snd{q} = k_1$ by Axiom 10, Axiom 11.
$\snd{q}\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{j}{\fst{q}}$ by Lemma 83.
Hence $(p,q)\class{latex-symbol-tip latex-symbol-id-in}{\in} D\class{latex-symbol-tip latex-symbol-id-times}{\times} D$ by Definition 1, Proposition 115.
$\fst{\snd{(p,q)}} = n_0 + 1$ and $\fst{\fst{(p,q)}} = n_0$ by Axiom 10, Axiom 11.
$\snd{\fst{(p,q)}} = m_0$ and $\snd{\snd{(p,q)}} = k_1$ by Axiom 10, Axiom 11.
Thus $\fst{\snd{(p,q)}} = \fst{\fst{(p,q)}} + 1$ and $\snd{\fst{(p,q)}} < \snd{\snd{(p,q)}}$ by Lemma 82, Lemma 83, Proposition 437.
Hence there exists $r$ such that $p\mathrel{R} r$ by Definition 1.
Take $f$ such that $f$ is a function on $D$ and for all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ we have $p\mathrel{R}\apply{f}{p}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
Hence $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{D}{D}$ by Definition 1, Proposition 114, Proposition 358.
Take $v$ such that $v$ is a sequence in $D$ and $v(1) = a_0$ and for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $v(n + 1) = \apply{f}{v(n)}$ by Lemma 407.
Let $g = \{(p,\snd{p}) \mid p\class{latex-symbol-tip latex-symbol-id-in}{\in} D\}$.
For all $p,y_1,y_2$ such that $(p,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ and $(p,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ we have $y_1 = y_2$.
Therefore $g$ is a function and $\dom{g} = D$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199.
For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ we have $g(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 6, Axiom 11, Definition 1, Proposition 121, Proposition 346.
Hence $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{D}{\naturalsPlus}$ by Proposition 358.
Let $u = g\class{latex-symbol-tip latex-symbol-id-circ}{\circ} v$.
Hence $u$ is a sequence in $\naturalsPlus$ by Definition 158, Proposition 382.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $u(n) = \snd{v(n)}$ by Definition 55, Definition 158, Proposition 257, Proposition 346, Proposition 348, Proposition 356, Proposition 361.
Let $P = \{n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \fst{v(n)} = n\}$.
$P\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in} P$ by Axiom 10, Axiom 42, Proposition 113.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in} P$ we have $n + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} P$ by Axiom 10, Axiom 11, Axiom 45, Definition 1, Definition 158, Lemma 407, Proposition 361, Proposition 437.
Hence 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} P$ by Proposition 445.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $u(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{j}{n}$ by Axiom 11, Definition 1, Definition 158, Proposition 361.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $v(n)\mathrel{R} v(n + 1)$ by Definition 158, Lemma 407, Proposition 348, Proposition 361.
Therefore for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $u(n) < u(n + 1)$ by Axiom 10, Axiom 11, Axiom 45, Lemma 82, Lemma 83.
Let $T_0 = \{n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \text{for all $m\in\naturalsPlus$ such that $m < n$ we have $u(m) < u(n)$}\}$.
$T_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in} T_0$ by Axiom 36, Axiom 39, Axiom 41, Axiom 42, Axiom 43, Definition 1, Lemma 83.
Claim: For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in} T_0$ we have $n + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} T_0$.
Fix $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in} T_0$.
It suffices to show that for all $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $m < n + 1$ we have $u(m) < u(n + 1)$.
Fix $m$ such that $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $m < n + 1$.
Suppose not.
Thus $m < n$ or $m = n$ or $m = n + 1$ by Axiom 44.
Contradiction by Lemma 82.
We have $u(m) < u(n)$ by Definition 1.
Hence $u(m) < u(n + 1)$ by Axiom 36, Axiom 41, Axiom 45, Definition 1, Definition 158, Proposition 361.
Contradiction.
Contradiction by Axiom 39, Axiom 41, Definition 1, Lemma 82.
LaTeX source
\begin{byCase}
\caseOf{$m = n$.}
Contradiction by \cref{real_lt_subst_left}.
\caseOf{$m < n$.}
We have $u(m) < u(n)$ by \cref{subseteq}.
Hence $u(m) < u(n + 1)$
by \cref{sequence_in,real_naturals_closed_succ,real_naturals_subset_reals,subseteq,funs_type_apply,real_lt_trans}.
Contradiction.
\caseOf{$m = n + 1$.}
Contradiction
by \cref{real_lt_subst_left,real_naturals_subset_reals,subseteq,real_lt_irreflexive}.
\end{byCase}
Hence 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} T_0$ by Proposition 445.
Therefore for all $m,n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $m < n$ we have $u(m) < u(n)$ by Definition 1.
Hence $u$ is strictly increasing on $\naturalsPlus$ by Definition 158, Definition 258.
Follows by definition.
LaTeX source
\begin{proof}
Let $D = \{p\in\naturalsPlus\times\naturalsPlus \mid \snd{p}\in\apply{j}{\fst{p}}\}$.
Take $k$ such that $k\in\apply{j}{1}$ by \cref{real_one_in_naturals,emptyset_is_finite,nonempty_inhabited,subseteq}.
Let $a_0 = (1,k)$.
We have $a_0\in D$ and $\fst{a_0} = 1$ by \cref{real_one_in_naturals,times_tuple_intro,fst_eq,snd_eq,sequence_in,funs_type_apply,powerset_elim,subseteq}.
Let $R = \{w\in D\times D \mid
\fst{\snd{w}} = \fst{\fst{w}} + 1 \land \snd{\fst{w}} < \snd{\snd{w}}\}$.
Show that for all $p\in D$ there exists $q$ such that $p\mathrel{R} q$.
\begin{subproof}
Fix $p\in D$.
Take $n_0,m_0$ such that $p = (n_0,m_0)$ by \cref{times_elem_is_tuple}.
$n_0\in\naturalsPlus$ and $m_0\in\naturalsPlus$ by \cref{times_tuple_elim}.
Hence $n_0 + 1\in\naturalsPlus$ by \cref{real_naturals_closed_succ}.
Thus $\apply{j}{(n_0 + 1)}$ is infinite and $\apply{j}{(n_0 + 1)}\subseteq\naturalsPlus$
by \cref{subseteq,sequence_in,funs_type_apply,powerset_elim}.
Take $w$ such that
$w$ is strictly increasing on $\naturalsPlus$ and
for all $n\in\naturalsPlus$ we have $w(n)\in\apply{j}{(n_0 + 1)}$
by \cref{infinite_naturalsplus_has_strictly_increasing_sequence}.
Let $k_1 = \apply{w}{(m_0 + 1)}$.
We have $k_1\in\apply{j}{(n_0 + 1)}$ and $k_1\in\naturalsPlus$ by \cref{real_naturals_closed_succ,subseteq}.
$m_0 + 1 \leq k_1$ by \cref{real_naturals_closed_succ,strictly_increasing_naturalsplus_geq_identity}.
Hence $m_0 < k_1$
by \cref{real_naturals_lt_succ_local,real_naturals_subset_reals,real_naturals_closed_succ,subseteq,real_lt_leq_trans_local}.
Let $q = (n_0 + 1,k_1)$.
$q\in\naturalsPlus\times\naturalsPlus$ by \cref{times_tuple_intro,subseteq,sequence_in,funs_type_apply,powerset_elim}.
$\fst{q} = n_0 + 1$ and $\snd{q} = k_1$ by \cref{fst_eq,snd_eq}.
$\snd{q}\in\apply{j}{\fst{q}}$ by \cref{real_lt_subst_right}.
Hence $(p,q)\in D\times D$ by \cref{times_tuple_intro,subseteq}.
$\fst{\snd{(p,q)}} = n_0 + 1$ and $\fst{\fst{(p,q)}} = n_0$ by \cref{fst_eq,snd_eq}.
$\snd{\fst{(p,q)}} = m_0$ and $\snd{\snd{(p,q)}} = k_1$ by \cref{fst_eq,snd_eq}.
Thus $\fst{\snd{(p,q)}} = \fst{\fst{(p,q)}} + 1$ and
$\snd{\fst{(p,q)}} < \snd{\snd{(p,q)}}$
by \cref{real_lt_subst_left,real_lt_subst_right,real_add_eq_subst}.
Hence there exists $r$ such that $p\mathrel{R} r$ by \cref{subseteq}.
\end{subproof}
Take $f$ such that $f$ is a function on $D$ and for all $p\in D$ we have
$p\mathrel{R}\apply{f}{p}$ by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
Hence $f\in\funs{D}{D}$ by \cref{funs_intro,subseteq,times_tuple_elim}.
Take $v$ such that
$v$ is a sequence in $D$ and
$v(1) = a_0$ and
for all $n\in\naturalsPlus$ we have $v(n + 1) = \apply{f}{v(n)}$
by \cref{iteration_sequence_naturalsplus}.
Let $g = \{(p,\snd{p}) \mid p\in D\}$.
For all $p,y_1,y_2$ such that $(p,y_1)\in g$ and $(p,y_2)\in g$ we have $y_1 = y_2$.
Therefore $g$ is a function and $\dom{g} = D$
by \cref{rightunique,relation,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
For all $p\in\dom{g}$ we have $g(p)\in\naturalsPlus$
by \cref{pair_eq_iff,function_apply_intro,subseteq,times_elem_is_tuple,snd_eq}.
Hence $g\in\funs{D}{\naturalsPlus}$ by \cref{funs_intro}.
Let $u = g\circ v$.
Hence $u$ is a sequence in $\naturalsPlus$ by \cref{sequence_in,funs_circ}.
For all $n\in\naturalsPlus$ we have $u(n) = \snd{v(n)}$
by \cref{funs,sequence_in,funs_is_function,function_apply_elim,funs_type_apply,circ_iff,function_apply_intro}.
Let $P = \{n\in\naturalsPlus \mid \fst{v(n)} = n\}$.
$P\subseteq\naturalsPlus$ by \cref{subseteq}.
$1\in P$ by \cref{real_one_in_naturals,fst_eq,pair_eq_pair_of_proj}.
For all $n\in P$ we have $n + 1\in P$
by \cref{real_naturals_closed_succ,iteration_sequence_naturalsplus,sequence_in,funs_type_apply,fst_eq,snd_eq,real_add_eq_subst,subseteq}.
Hence for all $n\in\naturalsPlus$ we have $n\in P$ by \cref{real_naturals_induction}.
For all $n\in\naturalsPlus$ we have $u(n)\in\apply{j}{n}$
by \cref{funs_type_apply,sequence_in,snd_eq,subseteq}.
For all $n\in\naturalsPlus$ we have $v(n)\mathrel{R} v(n + 1)$
by \cref{iteration_sequence_naturalsplus,sequence_in,funs_type_apply,function_apply_elim}.
Therefore for all $n\in\naturalsPlus$ we have $u(n) < u(n + 1)$
by \cref{real_naturals_closed_succ,snd_eq,real_lt_subst_left,real_lt_subst_right,fst_eq}.
Let $T_0 = \{n\in\naturalsPlus \mid \text{for all $m\in\naturalsPlus$ such that $m < n$ we have $u(m) < u(n)$}\}$.
$T_0\subseteq\naturalsPlus$ by \cref{subseteq}.
$1\in T_0$ by \cref{real_one_in_naturals,real_one_leq_naturalsplus,real_naturals_subset_reals,subseteq,real_lt_subst_right,real_lt_trans,real_lt_irreflexive}.
Show that for all $n\in T_0$ we have $n + 1\in T_0$.
\begin{subproof}
Fix $n$ such that $n\in T_0$.
It suffices to show that for all $m\in\naturalsPlus$ such that $m < n + 1$ we have $u(m) < u(n + 1)$.
Fix $m$ such that $m\in\naturalsPlus$ and $m < n + 1$.
Suppose not.
Thus $m < n$ or $m = n$ or $m = n + 1$ by \cref{real_succ_discrete}.
\begin{byCase}
\caseOf{$m = n$.}
Contradiction by \cref{real_lt_subst_left}.
\caseOf{$m < n$.}
We have $u(m) < u(n)$ by \cref{subseteq}.
Hence $u(m) < u(n + 1)$
by \cref{sequence_in,real_naturals_closed_succ,real_naturals_subset_reals,subseteq,funs_type_apply,real_lt_trans}.
Contradiction.
\caseOf{$m = n + 1$.}
Contradiction
by \cref{real_lt_subst_left,real_naturals_subset_reals,subseteq,real_lt_irreflexive}.
\end{byCase}
\end{subproof}
Hence for all $n\in\naturalsPlus$ we have $n\in T_0$ by \cref{real_naturals_induction}.
Therefore for all $m,n\in\naturalsPlus$ such that $m < n$ we have $u(m) < u(n)$ by \cref{subseteq}.
Hence $u$ is strictly increasing on $\naturalsPlus$ by \cref{sequence_in,strictly_increasing_on_set}.
Follows by definition.
\end{proof}
Assume $d$ is a metric on $X$.
Suppose $x,y,z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Suppose $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $d((x,z)) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$.
Suppose $d((y,z)) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$.
Then $d((x,y)) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} + \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$.
LaTeX source
\begin{lemma}
\label{metric_common_center_double_bound}
Assume $d$ is a metric on $X$.
Suppose $x,y,z\in X$.
Suppose $\alpha\in\reals$.
Suppose $d((x,z)) < \alpha$.
Suppose $d((y,z)) < \alpha$.
Then $d((x,y)) < \alpha + \alpha$.
\end{lemma}
Proof
We have $d((x,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((y,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((z,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((x,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
Thus $d((z,y)) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ by Definition 177, Definition 179, Lemma 82, Proposition 115.
Therefore $d((x,z)) + d((z,y)) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} + \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ by Proposition 450.
We have $d((x,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x,z)) + d((z,y))$ by Definition 178, Definition 179, Proposition 115.
Hence $d((x,y)) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} + \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ by Axiom 13, Lemma 266.
LaTeX source
\begin{proof}
We have $d((x,z))\in\reals$ and $d((y,z))\in\reals$ and
$d((z,y))\in\reals$ and $d((x,y))\in\reals$
by \cref{times_tuple_intro,metric_on,funs_type_apply}.
Thus $d((z,y)) < \alpha$ by \cref{times_tuple_intro,metric_on,metric_symmetric,real_lt_subst_left}.
Therefore $d((x,z)) + d((z,y)) < \alpha + \alpha$ by \cref{real_lt_add_two}.
We have $d((x,y)) \leq d((x,z)) + d((z,y))$ by \cref{times_tuple_intro,metric_on,metric_triangle_inequality}.
Hence $d((x,y)) < \alpha + \alpha$ by \cref{real_add_closed,real_leq_lt_trans}.
\end{proof}
Suppose $m_2 = 1 + 1$.
Then $m_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < m_2$ and $m_2\class{latex-symbol-tip latex-symbol-id-neq}{\neq} 0$ and $\inv{m_2}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \inv{m_2}$.
LaTeX source
\begin{lemma}
\label{one_plus_one_reciprocal_positive}
Suppose $m_2 = 1 + 1$.
Then $m_2\in\reals$ and $0 < m_2$ and $m_2\neq 0$ and $\inv{m_2}\in\reals$ and $0 < \inv{m_2}$.
\end{lemma}
Proof
$1 + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < 1 + 1$ by Axiom 13, Axiom 17, Axiom 36, Axiom 37, Axiom 41, Axiom 42, Definition 1, Proposition 462.
Claim: $m_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Follows by Axiom 13.
Claim: $0 < m_2$.
Follows by Lemma 83.
Claim: $m_2\class{latex-symbol-tip latex-symbol-id-neq}{\neq} 0$.
Follows by Lemma 20.
Claim: $\inv{m_2}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Follows by Axiom 22.
Claim: $0 < \inv{m_2}$.
Follows by Proposition 463.
LaTeX source
\begin{proof}
$1 + 1\in\reals$ and $0 < 1 + 1$
by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_add_ident,real_add_closed,real_zero_lt_one,real_lt_add,real_lt_trans}.
Show that $m_2\in\reals$.
\begin{subproof}
Follows by \cref{real_add_closed}.
\end{subproof}
Show that $0 < m_2$.
\begin{subproof}
Follows by \cref{real_lt_subst_right}.
\end{subproof}
Show that $m_2\neq 0$.
\begin{subproof}
Follows by \cref{real_pos_nonzero}.
\end{subproof}
Show that $\inv{m_2}\in\reals$.
\begin{subproof}
Follows by \cref{real_mul_inverse}.
\end{subproof}
Show that $0 < \inv{m_2}$.
\begin{subproof}
Follows by \cref{real_inv_pos}.
\end{subproof}
\end{proof}
Assume $d$ is a metric on $X$.
Assume $X$ is complete with respect to $d$.
Assume $X$ is totally bounded with respect to $d$.
Let $T = \metricTopology{d}{X}$.
Then $X$ is compact with respect to $T$.
LaTeX source
\begin{theorem}
\label{complete_totally_bounded_metric_space_compact}
Assume $d$ is a metric on $X$.
Assume $X$ is complete with respect to $d$.
Assume $X$ is totally bounded with respect to $d$.
Let $T = \metricTopology{d}{X}$.
Then $X$ is compact with respect to $T$.
\end{theorem}
Proof
$T$ is a topology on $X$ by Definition 115, Definition 182, Lemma 76, Lemma 194.
Claim: For all $s$ such that $s$ is a sequence in $X$ there exist $t,x$ such that $t$ is a sequence in $X$ and $t$ is a subsequence of $s$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $t$ converges to $x$ in $X$ with respect to $T$.
Fix $s$ such that $s$ is a sequence in $X$.
Take $J_1,U_1$ such that $J_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ and $J_1$ is infinite and for all $m\class{latex-symbol-tip latex-symbol-id-in}{\in} J_1$ we have $\apply{s}{m}\class{latex-symbol-tip latex-symbol-id-in}{\in} U_1$ and there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $U_1 = X\inter\metricBall{d}{X}{x}{1 / 1}$ by Axiom 42, Lemma 90, Lemma 267, Lemma 394, Lemma 826, Proposition 2.
Let $A = \{p\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus\class{latex-symbol-tip latex-symbol-id-times}{\times}\pow{\naturalsPlus} \mid \text{$\snd{p}$ is infinite}\}$.
Let $a_0 = (1,J_1)$.
We have $a_0\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $\fst{a_0} = 1$ by Axiom 10, Axiom 11, Axiom 42, Definition 1, Proposition 115, Proposition 155.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} A\class{latex-symbol-tip latex-symbol-id-times}{\times} A \mid \text{$\fst{\snd{w}} = \fst{\fst{w}} + 1$ and $\snd{\snd{w}}\subseteq\snd{\fst{w}}$ and there exists $U$ such that for all $m\in\snd{\snd{w}}$ we have $\apply{s}{m}\in U$ and there exists $x\in X$ such that $U = X\inter\metricBall{d}{X}{x}{1 / (\fst{\snd{w}})}$}\}$.
Claim: For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ there exists $q$ such that $p\mathrel{R} q$.
Fix $p\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Take $n_0,J$ such that $p = (n_0,J)$ by Proposition 121.
$n_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $J\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\naturalsPlus}$ by Proposition 114.
Thus $J$ is infinite and $J\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Axiom 10, Axiom 11, Definition 1, Proposition 156.
Take $K,U$ such that $K\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} J$ and $K$ is infinite and for all $m\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $\apply{s}{m}\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $U = X\inter\metricBall{d}{X}{x}{1 / (n_0 + 1)}$ by Axiom 45, Lemma 90, Lemma 267, Lemma 826.
Let $q = (n_0 + 1,K)$.
Hence $(p,q)\class{latex-symbol-tip latex-symbol-id-in}{\in} A\class{latex-symbol-tip latex-symbol-id-times}{\times} A$ by Axiom 11, Axiom 45, Definition 1, Proposition 115, Proposition 155.
$\fst{\snd{(p,q)}} = n_0 + 1$ and $\fst{\fst{(p,q)}} = n_0$ by Axiom 10, Axiom 11.
$\snd{\snd{(p,q)}} = K$ and $\snd{\fst{(p,q)}} = J$ by Axiom 10, Axiom 11.
Thus $\fst{\snd{(p,q)}} = \fst{\fst{(p,q)}} + 1$ and $\snd{\snd{(p,q)}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\snd{\fst{(p,q)}}$ by Proposition 437.
Hence there exists $r$ such that $p\mathrel{R} r$ by Lemma 82, Lemma 83, Proposition 437.
Take $f$ such that $f$ is a function on $A$ and for all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $p\mathrel{R}\apply{f}{p}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
Hence $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{A}{A}$ by Definition 1, Proposition 114, Proposition 358.
Take $v$ such that $v$ is a sequence in $A$ and $v(1) = a_0$ and for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $v(n + 1) = \apply{f}{v(n)}$ by Lemma 407.
Let $g = \{(p,\snd{p}) \mid p\class{latex-symbol-tip latex-symbol-id-in}{\in} A\}$.
For all $p,y_1,y_2$ such that $(p,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ and $(p,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ we have $y_1 = y_2$.
Therefore $g$ is a function and $\dom{g} = A$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199.
For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ we have $g(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\naturalsPlus}$ by Axiom 6, Axiom 11, Definition 1, Proposition 121, Proposition 346.
Hence $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{A}{\pow{\naturalsPlus}}$ by Proposition 358.
Let $j = g\class{latex-symbol-tip latex-symbol-id-circ}{\circ} v$.
We have $j$ is a sequence in $\pow{\naturalsPlus}$ by Definition 158, Proposition 382.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $j(n) = \snd{v(n)}$ by Definition 55, Definition 158, Proposition 257, Proposition 346, Proposition 348, Proposition 356, Proposition 361.
Let $P = \{n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \fst{v(n)} = n\}$.
$P\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1.
Claim: $1\class{latex-symbol-tip latex-symbol-id-in}{\in} P$.
Follows by Axiom 10, Axiom 42, Proposition 113.
Claim: For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in} P$ we have $n + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} P$.
Follows by Axiom 10, Axiom 11, Axiom 45, Definition 1, Definition 158, Lemma 407, Proposition 361, Proposition 437.
Hence 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} P$ by Proposition 445.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $\apply{j}{n}$ is infinite by Axiom 11, Definition 1, Definition 158, Proposition 361.
Take $u$ such that $u$ is strictly increasing on $\naturalsPlus$ and for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $u(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{j}{n}$ by Lemma 827.
Hence $u$ is a sequence in $\naturalsPlus$ by Definition 158, Definition 258.
Let $t = s\class{latex-symbol-tip latex-symbol-id-circ}{\circ} u$.
Thus $t$ is a sequence in $X$ by Definition 158, Proposition 382.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $t(n) = \apply{s}{\apply{u}{n}}$ by Definition 55, Definition 158, Proposition 257, Proposition 346, Proposition 348, Proposition 356, Proposition 361.
Hence $t$ is a subsequence of $s$ by Definition 259.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $v(n)\mathrel{R} v(n + 1)$ by Definition 158, Lemma 407, Proposition 348, Proposition 361.
Hence for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $j(n + 1)\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} j(n)$ by Axiom 10, Axiom 11, Axiom 45, Definition 1.
Let $A_0 = \{m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \text{for all $n\in\naturalsPlus$ if $n \leq m$ then $j(m)\subseteq j(n)$}\}$.
$A_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1.
Claim: $1\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0$.
Follows by Axiom 41, Axiom 42, Axiom 43, Definition 1, Lemma 25, Proposition 2.
Claim: For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0$ we have $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0$.
Follows by Axiom 45, Definition 1, Lemma 29, Proposition 2, Proposition 6.
Hence for all $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $m\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0$ by Proposition 445.
Let $Q = \{n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \text{there exists $U$ such that for all $m\in j(n)$ we have $\apply{s}{m}\in U$ and there exists $x\in X$ such that $U = X\inter\metricBall{d}{X}{x}{1 / n}$}\}$.
$Q\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1.
For all $m\class{latex-symbol-tip latex-symbol-id-in}{\in} j(1)$ we have $\apply{s}{m}\class{latex-symbol-tip latex-symbol-id-in}{\in} U_1$ by Axiom 11, Axiom 42, Definition 1, Proposition 113.
Take $x_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $U_1 = X\inter\metricBall{d}{X}{x_1}{1 / 1}$.
Claim: $1\class{latex-symbol-tip latex-symbol-id-in}{\in} Q$.
Follows by Axiom 42, Definition 1.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in} Q$ there exists $U$ such that for all $m\class{latex-symbol-tip latex-symbol-id-in}{\in} j(n + 1)$ we have $\apply{s}{m}\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $U = X\inter\metricBall{d}{X}{x}{1 / (\fst{v(n + 1)})}$ by Axiom 10, Axiom 11, Definition 1, Definition 158, Lemma 407, Proposition 348, Proposition 361.
Claim: For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in} Q$ we have $n + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} Q$.
Follows by Axiom 6, Axiom 10, Axiom 11, Axiom 45, Definition 1.
Hence 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} Q$ by Proposition 445.
Claim: For all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n,m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $d((t(n),t(m))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Let $m_2 = 1 + 1$.
Let $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} / m_2$.
We have $m_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < m_2$ and $m_2\class{latex-symbol-tip latex-symbol-id-neq}{\neq} 0$ and $\inv{m_2}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \inv{m_2}$ by Lemma 829.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17, Axiom 41, Axiom 42, Definition 1.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} \rmul \inv{m_2}$ by Definition 65.
Hence $\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 Axiom 14, Axiom 38, Lemma 82, Proposition 439.
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.
Take $U$ such that for all $m\class{latex-symbol-tip latex-symbol-id-in}{\in} j(N)$ we have $\apply{s}{m}\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $U = X\inter\metricBall{d}{X}{x}{1 / N}$ by Definition 1.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $U = X\inter\metricBall{d}{X}{x}{1 / N}$.
It suffices to show that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have for all $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ then $d((t(n),t(m))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Fix $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ and $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$.
$u(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} j(n)$ and $u(m)\class{latex-symbol-tip latex-symbol-id-in}{\in} j(m)$ by Definition 1.
Hence $j(n)\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} j(N)$ and $j(m)\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} j(N)$ by Definition 1.
Thus $u(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} j(N)$ and $u(m)\class{latex-symbol-tip latex-symbol-id-in}{\in} j(N)$ by Definition 1.
Therefore $t(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $t(m)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 1.
$t(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\inter\metricBall{d}{X}{x}{1 / N}$ and $t(m)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\inter\metricBall{d}{X}{x}{1 / N}$.
$t(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $t(m)\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 5.
Thus $t(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X}{x}{1 / N}$ and $t(m)\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X}{x}{1 / N}$ by Definition 5.
Hence $d((t(n),x)) < 1 / N$ and $d((t(m),x)) < 1 / N$ by Definition 177, Definition 179, Definition 180, Lemma 82.
$1 / N\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Lemma 90.
Thus $d((t(n),t(m))) < 1 / N + 1 / N$ by Lemma 828.
$d((t(n),t(m)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
We have $1 / N + 1 / N\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
Therefore $1 / N + 1 / N < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Proposition 450.
Hence $d((t(n),t(m))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 36.
Thus $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 65, Lemma 458, Proposition 437.
Therefore $d((t(n),t(m))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 83.
Follows by definition.
Hence $t$ is a Cauchy sequence in $X$ with respect to $d$ by Definition 342.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $t$ converges to $x$ in $X$ with respect to $T$ by Definition 343.
Follows by definition.
Hence $X$ is sequentially compact with respect to $T$ by Definition 260.
Claim: For all $A$ if $A$ is an open covering of $X$ with respect to $T$ then there exists $B$ such that $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ and $B$ is finite and $B$ is a covering of $X$.
Fix $A$ such that $A$ is an open covering of $X$ with respect to $T$.
There exists $C$ such that $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ and $C$ is finite and $C$ is a covering of $X$ by Definition 245, Lemma 35, Proposition 11, Proposition 28.
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 for all $B$ such that $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and for all $x,y\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ we have $d((x,y)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ there exists $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Lemma 406.
Let $m_2 = 1 + 1$.
Let $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} = \class{latex-symbol-tip latex-symbol-id-delta}{\delta} / m_2$.
We have $m_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < m_2$ and $m_2\class{latex-symbol-tip latex-symbol-id-neq}{\neq} 0$ and $\inv{m_2}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \inv{m_2}$ by Lemma 829.
$\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} = \class{latex-symbol-tip latex-symbol-id-delta}{\delta} \rmul \inv{m_2}$ by Definition 65.
Hence $\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}$ by Axiom 14, Axiom 17, Axiom 38, Lemma 82, Proposition 439.
Take $B$ such that $B$ is finite and $B$ is a covering of $X$ and for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $U = \metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Lemma 408.
We have for all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ there exists $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 1, Definition 65, Definition 177, Definition 179, Definition 180, Lemma 82, Lemma 83, Lemma 458, Lemma 828, Proposition 115, Proposition 361, Proposition 437.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} B\class{latex-symbol-tip latex-symbol-id-times}{\times} A \mid \fst{w}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \snd{w}\}$.
For all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ there exists $U$ such that $V\mathrel{R} U$ by Axiom 10, Axiom 11, Definition 1, Proposition 115.
Take $h$ such that $h$ is a function on $B$ and for all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ we have $V\mathrel{R}\apply{h}{V}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
Let $C = \img{h}{B}$.
Hence $C$ is finite by Lemma 192.
Therefore $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Definition 1, Proposition 114, Proposition 235, Proposition 346.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{C}$ by Axiom 4, Axiom 10, Axiom 11, Definition 1, Definition 245, Proposition 235, Proposition 348.
Hence $C$ is a covering of $X$ by Definition 1, Definition 245.
Follows by definition.
LaTeX source
\begin{byCase}
\caseOf{$X = \emptyset$.}
There exists $C$ such that $C\subseteq A$ and $C$ is finite and $C$ is a covering of $X$
by \cref{emptyset_subseteq,emptyset_is_finite,unions_emptyset,covering}.
\caseOf{$X\neq\emptyset$.}
Take $\delta\in\reals$ such that $0 < \delta$ and
for all $B$ such that $B\subseteq X$ and
for all $x,y\in B$ we have $d((x,y)) < \delta$
there exists $U\in A$ such that $B\subseteq U$
by \cref{sequentially_compact_lebesgue}.
Let $m_2 = 1 + 1$.
Let $\epsilon = \delta / m_2$.
We have $m_2\in\reals$ and $0 < m_2$ and $m_2\neq 0$ and $\inv{m_2}\in\reals$ and
$0 < \inv{m_2}$
by \cref{one_plus_one_reciprocal_positive}.
$\epsilon = \delta \rmul \inv{m_2}$ by \cref{real_div}.
Hence $\epsilon\in\reals$ and $0 < \epsilon$
by \cref{real_mul_closed,real_add_ident,real_lt_mul_pos,real_mul_zero,real_lt_subst_left}.
Take $B$ such that
$B$ is finite and
$B$ is a covering of $X$ and
for all $U\in B$ there exists $x\in X$ such that $U = \metricBall{d}{X}{x}{\epsilon}$
by \cref{sequentially_compact_finite_ball_cover}.
We have for all $V\in B$ there exists $U\in A$ such that $V\subseteq U$
by \cref{metric_ball,subseteq,metric_on,metric_symmetric,real_lt_subst_left,times_tuple_intro,funs_type_apply,metric_common_center_double_bound,real_half_plus_half,real_div,real_add_eq_subst,real_lt_subst_right}.
Let $R = \{w\in B\times A \mid \fst{w}\subseteq \snd{w}\}$.
For all $V\in B$ there exists $U$ such that $V\mathrel{R} U$
by \cref{subseteq,times_tuple_intro,fst_eq,snd_eq}.
Take $h$ such that $h$ is a function on $B$ and for all $V\in B$ we have $V\mathrel{R}\apply{h}{V}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
Let $C = \img{h}{B}$.
Hence $C$ is finite by \cref{finite_image_function}.
Therefore $C\subseteq A$ by \cref{img_iff,function_apply_intro,subseteq,times_tuple_elim}.
For all $x$ such that $x\in X$ we have $x\in\unions{C}$
by \cref{covering,subseteq,unions_iff,fst_eq,snd_eq,function_apply_elim,img_iff}.
Hence $C$ is a covering of $X$ by \cref{subseteq,covering}.
Follows by definition.
\end{byCase}
Hence $X$ is compact with respect to $T$ by Definition 247.
LaTeX source
\begin{proof}
$T$ is a topology on $X$ by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology,basis_for_topology}.
Show that for all $s$ such that $s$ is a sequence in $X$
there exist $t,x$ such that
$t$ is a sequence in $X$ and
$t$ is a subsequence of $s$ and
$x\in X$ and
$t$ converges to $x$ in $X$ with respect to $T$.
\begin{subproof}
Fix $s$ such that $s$ is a sequence in $X$.
Take $J_1,U_1$ such that
$J_1\subseteq\naturalsPlus$ and
$J_1$ is infinite and
for all $m\in J_1$ we have $\apply{s}{m}\in U_1$ and
there exists $x\in X$ such that
$U_1 = X\inter\metricBall{d}{X}{x}{1 / 1}$
by \cref{subseteq_refl,naturalsplus_infinite,real_one_in_naturals,naturalsplus_reciprocal_real,positive_reciprocal_naturalsplus,totally_bounded_infinite_sequence_epsilon_ball}.
Let $A = \{p\in\naturalsPlus\times\pow{\naturalsPlus} \mid \text{$\snd{p}$ is infinite}\}$.
Let $a_0 = (1,J_1)$.
We have $a_0\in A$ and $\fst{a_0} = 1$
by \cref{real_one_in_naturals,times_tuple_intro,powerset_intro,snd_eq,fst_eq,subseteq}.
Let $R = \{w\in A\times A \mid \text{$\fst{\snd{w}} = \fst{\fst{w}} + 1$ and
$\snd{\snd{w}}\subseteq\snd{\fst{w}}$ and
there exists $U$ such that
for all $m\in\snd{\snd{w}}$ we have $\apply{s}{m}\in U$ and
there exists $x\in X$ such that
$U = X\inter\metricBall{d}{X}{x}{1 / (\fst{\snd{w}})}$}\}$.
Show that for all $p\in A$ there exists $q$ such that $p\mathrel{R} q$.
\begin{subproof}
Fix $p\in A$.
Take $n_0,J$ such that $p = (n_0,J)$ by \cref{times_elem_is_tuple}.
$n_0\in\naturalsPlus$ and $J\in\pow{\naturalsPlus}$ by \cref{times_tuple_elim}.
Thus $J$ is infinite and $J\subseteq\naturalsPlus$ by \cref{powerset_elim,fst_eq,snd_eq,subseteq}.
Take $K,U$ such that
$K\subseteq J$ and
$K$ is infinite and
for all $m\in K$ we have $\apply{s}{m}\in U$ and
there exists $x\in X$ such that
$U = X\inter\metricBall{d}{X}{x}{1 / (n_0 + 1)}$
by \cref{real_naturals_closed_succ,naturalsplus_reciprocal_real,positive_reciprocal_naturalsplus,totally_bounded_infinite_sequence_epsilon_ball}.
Let $q = (n_0 + 1,K)$.
Hence $(p,q)\in A\times A$ by \cref{times_tuple_intro,powerset_intro,snd_eq,subseteq,real_naturals_closed_succ}.
$\fst{\snd{(p,q)}} = n_0 + 1$ and $\fst{\fst{(p,q)}} = n_0$
by \cref{fst_eq,snd_eq}.
$\snd{\snd{(p,q)}} = K$ and $\snd{\fst{(p,q)}} = J$
by \cref{fst_eq,snd_eq}.
Thus $\fst{\snd{(p,q)}} = \fst{\fst{(p,q)}} + 1$ and
$\snd{\snd{(p,q)}}\subseteq\snd{\fst{(p,q)}}$
by \cref{real_add_eq_subst}.
Hence there exists $r$ such that $p\mathrel{R} r$
by \cref{real_add_eq_subst,real_lt_subst_left,real_lt_subst_right}.
\end{subproof}
Take $f$ such that $f$ is a function on $A$ and for all $p\in A$ we have
$p\mathrel{R}\apply{f}{p}$ by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
Hence $f\in\funs{A}{A}$ by \cref{funs_intro,subseteq,times_tuple_elim}.
Take $v$ such that
$v$ is a sequence in $A$ and
$v(1) = a_0$ and
for all $n\in\naturalsPlus$ we have $v(n + 1) = \apply{f}{v(n)}$
by \cref{iteration_sequence_naturalsplus}.
Let $g = \{(p,\snd{p}) \mid p\in A\}$.
For all $p,y_1,y_2$ such that $(p,y_1)\in g$ and $(p,y_2)\in g$ we have $y_1 = y_2$.
Therefore $g$ is a function and $\dom{g} = A$
by \cref{rightunique,relation,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
For all $p\in\dom{g}$ we have $g(p)\in\pow{\naturalsPlus}$
by \cref{pair_eq_iff,function_apply_intro,subseteq,times_elem_is_tuple,snd_eq}.
Hence $g\in\funs{A}{\pow{\naturalsPlus}}$ by \cref{funs_intro}.
Let $j = g\circ v$.
We have $j$ is a sequence in $\pow{\naturalsPlus}$ by \cref{sequence_in,funs_circ}.
For all $n\in\naturalsPlus$ we have $j(n) = \snd{v(n)}$
by \cref{funs,sequence_in,funs_is_function,function_apply_elim,funs_type_apply,circ_iff,function_apply_intro}.
Let $P = \{n\in\naturalsPlus \mid \fst{v(n)} = n\}$.
$P\subseteq\naturalsPlus$ by \cref{subseteq}.
Show that $1\in P$.
\begin{subproof}
Follows by \cref{real_one_in_naturals,fst_eq,pair_eq_pair_of_proj}.
\end{subproof}
Show that for all $n\in P$ we have $n + 1\in P$.
\begin{subproof}
Follows by \cref{real_naturals_closed_succ,iteration_sequence_naturalsplus,sequence_in,funs_type_apply,subseteq,fst_eq,snd_eq,real_add_eq_subst}.
\end{subproof}
Hence for all $n\in\naturalsPlus$ we have $n\in P$ by \cref{real_naturals_induction}.
For all $n\in\naturalsPlus$ we have $\apply{j}{n}$ is infinite
by \cref{funs_type_apply,sequence_in,snd_eq,subseteq}.
Take $u$ such that
$u$ is strictly increasing on $\naturalsPlus$ and
for all $n\in\naturalsPlus$ we have $u(n)\in\apply{j}{n}$
by \cref{infinite_naturalsplus_subset_sequence_diagonal}.
Hence $u$ is a sequence in $\naturalsPlus$ by \cref{sequence_in,strictly_increasing_on_set}.
Let $t = s\circ u$.
Thus $t$ is a sequence in $X$ by \cref{sequence_in,funs_circ}.
For all $n\in\naturalsPlus$ we have $t(n) = \apply{s}{\apply{u}{n}}$
by \cref{funs,sequence_in,funs_is_function,function_apply_elim,funs_type_apply,circ_iff,function_apply_intro}.
Hence $t$ is a subsequence of $s$ by \cref{subsequence}.
For all $n\in\naturalsPlus$ we have $v(n)\mathrel{R} v(n + 1)$
by \cref{iteration_sequence_naturalsplus,sequence_in,funs_type_apply,function_apply_elim}.
Hence for all $n\in\naturalsPlus$ we have $j(n + 1)\subseteq j(n)$
by \cref{real_naturals_closed_succ,snd_eq,subseteq,fst_eq}.
Let $A_0 = \{m\in\naturalsPlus \mid \text{for all $n\in\naturalsPlus$ if $n \leq m$ then
$j(m)\subseteq j(n)$}\}$.
$A_0\subseteq\naturalsPlus$ by \cref{subseteq}.
Show that $1\in A_0$.
\begin{subproof}
Follows by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_one_leq_naturalsplus,real_leq_antisym,subseteq_refl}.
\end{subproof}
Show that for all $k\in A_0$ we have $k + 1\in A_0$.
\begin{subproof}
Follows by \cref{subseteq,real_naturals_closed_succ,real_naturals_leq_succ_elim,subseteq_refl,subseteq_transitive}.
\end{subproof}
Hence for all $m\in\naturalsPlus$ we have $m\in A_0$ by \cref{real_naturals_induction}.
Let $Q = \{n\in\naturalsPlus \mid \text{there exists $U$ such that
for all $m\in j(n)$ we have $\apply{s}{m}\in U$ and
there exists $x\in X$ such that
$U = X\inter\metricBall{d}{X}{x}{1 / n}$}\}$.
$Q\subseteq\naturalsPlus$ by \cref{subseteq}.
For all $m\in j(1)$ we have $\apply{s}{m}\in U_1$
by \cref{real_one_in_naturals,snd_eq,pair_eq_pair_of_proj,subseteq}.
Take $x_1\in X$ such that $U_1 = X\inter\metricBall{d}{X}{x_1}{1 / 1}$.
Show that $1\in Q$.
\begin{subproof}
Follows by \cref{real_one_in_naturals,subseteq}.
\end{subproof}
For all $n\in Q$ there exists $U$ such that
for all $m\in j(n + 1)$ we have $\apply{s}{m}\in U$ and
there exists $x\in X$ such that
$U = X\inter\metricBall{d}{X}{x}{1 / (\fst{v(n + 1)})}$
by \cref{iteration_sequence_naturalsplus,sequence_in,funs_type_apply,function_apply_elim,fst_eq,snd_eq,subseteq}.
Show that for all $n\in Q$ we have $n + 1\in Q$.
\begin{subproof}
Follows by \cref{real_naturals_closed_succ,subseteq,pair_eq_iff,fst_eq,snd_eq}.
\end{subproof}
Hence for all $n\in\naturalsPlus$ we have $n\in Q$ by \cref{real_naturals_induction}.
Show that for all $\epsilon\in\reals$ such that $0 < \epsilon$
there exists $N\in\naturalsPlus$ such that
for all $n,m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$d((t(n),t(m))) < \epsilon$.
\begin{subproof}
Fix $\epsilon$ such that $\epsilon\in\reals$ and $0 < \epsilon$.
Let $m_2 = 1 + 1$.
Let $\delta = \epsilon / m_2$.
We have $m_2\in\reals$ and $0 < m_2$ and $m_2\neq 0$ and $\inv{m_2}\in\reals$ and
$0 < \inv{m_2}$
by \cref{one_plus_one_reciprocal_positive}.
$0\in\reals$ by \cref{real_add_ident,real_one_in_naturals,real_naturals_subset_reals,subseteq}.
$\delta = \epsilon \rmul \inv{m_2}$ by \cref{real_div}.
Hence $\delta\in\reals$ and $0 < \delta$
by \cref{real_mul_closed,real_lt_mul_pos,real_mul_zero,real_lt_subst_left}.
Take $N\in\naturalsPlus$ such that $0 < 1 / N$ and $1 / N < \delta$ by \cref{real_small_reciprocal}.
Take $U$ such that
for all $m\in j(N)$ we have $\apply{s}{m}\in U$ and
there exists $x\in X$ such that
$U = X\inter\metricBall{d}{X}{x}{1 / N}$ by \cref{subseteq}.
Take $x\in X$ such that $U = X\inter\metricBall{d}{X}{x}{1 / N}$.
It suffices to show that for all $n\in\naturalsPlus$ we have for all $m\in\naturalsPlus$ if $N \leq n$ and $N \leq m$ then
$d((t(n),t(m))) < \epsilon$.
Fix $n\in\naturalsPlus$.
Fix $m\in\naturalsPlus$.
Assume $N \leq n$ and $N \leq m$.
$u(n)\in j(n)$ and $u(m)\in j(m)$ by \cref{subseteq}.
Hence $j(n)\subseteq j(N)$ and $j(m)\subseteq j(N)$ by \cref{subseteq}.
Thus $u(n)\in j(N)$ and $u(m)\in j(N)$ by \cref{subseteq}.
Therefore $t(n)\in U$ and $t(m)\in U$ by \cref{subseteq}.
$t(n)\in X\inter\metricBall{d}{X}{x}{1 / N}$ and
$t(m)\in X\inter\metricBall{d}{X}{x}{1 / N}$.
$t(n)\in X$ and $t(m)\in X$ by \cref{inter}.
Thus $t(n)\in\metricBall{d}{X}{x}{1 / N}$ and
$t(m)\in\metricBall{d}{X}{x}{1 / N}$ by \cref{inter}.
Hence $d((t(n),x)) < 1 / N$ and $d((t(m),x)) < 1 / N$
by \cref{metric_ball,metric_on,metric_symmetric,real_lt_subst_left}.
$1 / N\in\reals$ by \cref{naturalsplus_reciprocal_real}.
Thus $d((t(n),t(m))) < 1 / N + 1 / N$
by \cref{metric_common_center_double_bound}.
$d((t(n),t(m)))\in\reals$ by \cref{times_tuple_intro,metric_on,funs_type_apply}.
We have $1 / N + 1 / N\in\reals$ and
$\delta + \delta\in\reals$ by \cref{real_add_closed}.
Therefore $1 / N + 1 / N < \delta + \delta$ by \cref{real_lt_add_two}.
Hence $d((t(n),t(m))) < \delta + \delta$ by \cref{real_lt_trans}.
Thus $\delta + \delta = \epsilon$ by \cref{real_half_plus_half,real_div,real_add_eq_subst}.
Therefore $d((t(n),t(m))) < \epsilon$ by \cref{real_lt_subst_right}.
Follows by definition.
\end{subproof}
Hence $t$ is a Cauchy sequence in $X$ with respect to $d$ by \cref{cauchy_sequence}.
Take $x\in X$ such that $t$ converges to $x$ in $X$ with respect to $T$
by \cref{complete_metric_space}.
Follows by definition.
\end{subproof}
Hence $X$ is sequentially compact with respect to $T$ by \cref{sequentially_compact}.
Show that for all $A$ if $A$ is an open covering of $X$ with respect to $T$ then
there exists $B$ such that $B\subseteq A$ and $B$ is finite and $B$ is a covering of $X$.
\begin{subproof}
Fix $A$ such that $A$ is an open covering of $X$ with respect to $T$.
\begin{byCase}
\caseOf{$X = \emptyset$.}
There exists $C$ such that $C\subseteq A$ and $C$ is finite and $C$ is a covering of $X$
by \cref{emptyset_subseteq,emptyset_is_finite,unions_emptyset,covering}.
\caseOf{$X\neq\emptyset$.}
Take $\delta\in\reals$ such that $0 < \delta$ and
for all $B$ such that $B\subseteq X$ and
for all $x,y\in B$ we have $d((x,y)) < \delta$
there exists $U\in A$ such that $B\subseteq U$
by \cref{sequentially_compact_lebesgue}.
Let $m_2 = 1 + 1$.
Let $\epsilon = \delta / m_2$.
We have $m_2\in\reals$ and $0 < m_2$ and $m_2\neq 0$ and $\inv{m_2}\in\reals$ and
$0 < \inv{m_2}$
by \cref{one_plus_one_reciprocal_positive}.
$\epsilon = \delta \rmul \inv{m_2}$ by \cref{real_div}.
Hence $\epsilon\in\reals$ and $0 < \epsilon$
by \cref{real_mul_closed,real_add_ident,real_lt_mul_pos,real_mul_zero,real_lt_subst_left}.
Take $B$ such that
$B$ is finite and
$B$ is a covering of $X$ and
for all $U\in B$ there exists $x\in X$ such that $U = \metricBall{d}{X}{x}{\epsilon}$
by \cref{sequentially_compact_finite_ball_cover}.
We have for all $V\in B$ there exists $U\in A$ such that $V\subseteq U$
by \cref{metric_ball,subseteq,metric_on,metric_symmetric,real_lt_subst_left,times_tuple_intro,funs_type_apply,metric_common_center_double_bound,real_half_plus_half,real_div,real_add_eq_subst,real_lt_subst_right}.
Let $R = \{w\in B\times A \mid \fst{w}\subseteq \snd{w}\}$.
For all $V\in B$ there exists $U$ such that $V\mathrel{R} U$
by \cref{subseteq,times_tuple_intro,fst_eq,snd_eq}.
Take $h$ such that $h$ is a function on $B$ and for all $V\in B$ we have $V\mathrel{R}\apply{h}{V}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
Let $C = \img{h}{B}$.
Hence $C$ is finite by \cref{finite_image_function}.
Therefore $C\subseteq A$ by \cref{img_iff,function_apply_intro,subseteq,times_tuple_elim}.
For all $x$ such that $x\in X$ we have $x\in\unions{C}$
by \cref{covering,subseteq,unions_iff,fst_eq,snd_eq,function_apply_elim,img_iff}.
Hence $C$ is a covering of $X$ by \cref{subseteq,covering}.
Follows by definition.
\end{byCase}
\end{subproof}
Hence $X$ is compact with respect to $T$ by \cref{compact}.
\end{proof}
$F$ is equicontinuous at $x_0$ from $X$ to $Y$ with respect to $T$ and $d$ iff $T$ is a topology on $X$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $d$ is a metric on $Y$ and $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\funs{X}{Y}$ and for all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ there exists $U$ such that $U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and for all $x, f$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $d((\apply{f}{x},\apply{f}{x_0})) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
LaTeX source
\begin{definition}
\label{equicontinuous_at_point}
$F$ is equicontinuous at $x_0$ from $X$ to $Y$ with respect to $T$ and $d$ iff
$T$ is a topology on $X$ and
$x_0\in X$ and
$d$ is a metric on $Y$ and
$F\subseteq\funs{X}{Y}$ and
for all $\epsilon\in\reals$ such that $0 < \epsilon$
there exists $U$ such that
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
for all $x, f$ such that $x\in U$ and $f\in F$ we have
$d((\apply{f}{x},\apply{f}{x_0})) < \epsilon$.
\end{definition}
$F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$ iff $T$ is a topology on $X$ and $d$ is a metric on $Y$ and $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\funs{X}{Y}$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $F$ is equicontinuous at $x$ from $X$ to $Y$ with respect to $T$ and $d$.
LaTeX source
\begin{definition}
\label{equicontinuous_family}
$F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$ iff
$T$ is a topology on $X$ and
$d$ is a metric on $Y$ and
$F\subseteq\funs{X}{Y}$ and
for all $x\in X$ we have
$F$ is equicontinuous at $x$ from $X$ to $Y$ with respect to $T$ and $d$.
\end{definition}
Assume $T$ is a topology on $X$.
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T$.
Suppose $A$ is finite.
Suppose $A$ is inhabited.
Suppose for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Then $\inters{A}$ is a neighborhood of $x$ in $X$ with respect to $T$.
LaTeX source
\begin{lemma}
\label{finite_neighborhood_intersection}
Assume $T$ is a topology on $X$.
Suppose $A\subseteq T$.
Suppose $A$ is finite.
Suppose $A$ is inhabited.
Suppose for all $U\in A$ we have $x\in U$.
Then $\inters{A}$ is a neighborhood of $x$ in $X$ with respect to $T$.
\end{lemma}
Proof
Follows by Definition 103, Definition 153, Lemma 124, Proposition 30.
LaTeX source
\begin{proof}
Follows by \cref{finite_intersections_open_in_topology,open_in,inters_iff_forall,neighborhood}.
\end{proof}
Assume $d$ is a metric on $Y$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Suppose $f,g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$.
Suppose $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Suppose $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} < 1$.
Suppose $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Then for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((f(x),g(x))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
LaTeX source
\begin{lemma}
\label{uniform_metric_small_implies_pointwise_small}
Assume $d$ is a metric on $Y$.
Assume $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Suppose $f,g\in\funs{X}{Y}$.
Suppose $\epsilon\in\reals$.
Suppose $0 < \epsilon$.
Suppose $\epsilon < 1$.
Suppose $\rho((f,g)) < \epsilon$.
Then for all $x\in X$ we have
$d((f(x),g(x))) < \epsilon$.
\end{lemma}
Proof
Let $e = \boundedMetric{d}$.
We have $e$ is a metric on $Y$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Definition 344, Proposition 115, Proposition 361, Theorem 21.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $e((f(x),g(x))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ and $e((f(x),g(x)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Lemma 672, Proposition 115, Proposition 361.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $e((f(x),g(x))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Follows by Lemma 266.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $e((f(x),g(x))) = d((f(x),g(x)))$.
Follows by Axiom 36, Axiom 41, Axiom 42, Definition 1, Lemma 205, Proposition 115, Proposition 361.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((f(x),g(x))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Follows by Lemma 82.
LaTeX source
\begin{proof}
Let $e = \boundedMetric{d}$.
We have $e$ is a metric on $Y$ and $\rho((f,g))\in\reals$
by \cref{bounded_metric_is_metric,uniform_metric_on_function_space,times_tuple_intro,metric_on,funs_type_apply}.
For all $x\in X$ we have $e((f(x),g(x))) \leq \rho((f,g))$ and $e((f(x),g(x)))\in\reals$
by \cref{uniform_function_metric_coordinate_leq,times_tuple_intro,funs_type_apply,metric_on}.
Show that for all $x\in X$ we have $e((f(x),g(x))) < \epsilon$.
\begin{subproof}
Follows by \cref{real_leq_lt_trans}.
\end{subproof}
Show that for all $x\in X$ we have $e((f(x),g(x))) = d((f(x),g(x)))$.
\begin{subproof}
Follows by \cref{funs_type_apply,times_tuple_intro,bounded_metric_apply_value_lt_one,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_lt_trans}.
\end{subproof}
Show that for all $x\in X$ we have $d((f(x),g(x))) < \epsilon$.
\begin{subproof}
Follows by \cref{real_lt_subst_left}.
\end{subproof}
\end{proof}
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $Z$.
Suppose $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Z$.
Suppose $F$ is totally bounded in $Z$ with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$.
Suppose $F$ is inhabited.
Suppose $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Then there exists $H$ such that $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} F$ and $H$ is finite and for all $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,h)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
LaTeX source
\begin{lemma}
\label{totally_bounded_subset_finite_internal_net}
Assume $\rho$ is a metric on $Z$.
Suppose $F\subseteq Z$.
Suppose $F$ is totally bounded in $Z$ with respect to $\rho$.
Suppose $F$ is inhabited.
Suppose $\epsilon\in\reals$.
Suppose $0 < \epsilon$.
Then there exists $H$ such that
$H\subseteq F$ and
$H$ is finite and
for all $f\in F$ there exists $h\in H$ such that
$\rho((f,h)) < \epsilon$.
\end{lemma}
Proof
Let $m_2 = 1 + 1$.
We have $m_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < m_2$ and $m_2\class{latex-symbol-tip latex-symbol-id-neq}{\neq} 0$ and $\inv{m_2}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \inv{m_2}$ by Lemma 829.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17, Axiom 41, Axiom 42, Definition 1.
Let $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} / m_2$.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} \rmul \inv{m_2}$ by Definition 65.
Hence $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 14.
Therefore $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 38, Lemma 82, Proposition 439.
Take $C$ such that $C$ is finite and $C$ is a covering of $F$ and for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ there exists $z\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ such that $U = F\inter\metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{Z}{z}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ by Definition 359.
Let $D = \{U\class{latex-symbol-tip latex-symbol-id-in}{\in} C \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} f. f\class{latex-symbol-tip latex-symbol-id-in}{\in} U\}$.
$D$ is finite by Definition 1, Lemma 44.
Take $f_0$ such that $f_0\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
$f_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{C}$ by Definition 1, Definition 245.
Take $U_0\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ such that $f_0\class{latex-symbol-tip latex-symbol-id-in}{\in} U_0$ by Axiom 4.
Hence $U_0\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Definition 1.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} D\class{latex-symbol-tip latex-symbol-id-times}{\times} F \mid \snd{w}\class{latex-symbol-tip latex-symbol-id-in}{\in}\fst{w}\}$.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ there exists $f$ such that $U\mathrel{R} f$ by Axiom 10, Axiom 11, Definition 1, Lemma 82, Proposition 62, Proposition 115.
Take $g$ such that $g$ is a function on $D$ and for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ we have $U\mathrel{R}\apply{g}{U}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
Let $H = \img{g}{D}$.
Claim: $H$ is finite.
Follows by Lemma 192.
Claim: $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} F$.
Follows by Definition 1, Proposition 114, Proposition 235, Proposition 346, Proposition 348.
Claim: For all $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,h)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $f$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
Take $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Axiom 4, Definition 1, Definition 245.
Therefore $U\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Definition 1.
Let $h = g(U)$.
We have $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ and $U\mathrel{R} h$ by Proposition 235, Proposition 348.
Thus $h\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Axiom 10, Axiom 11.
Take $z\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ such that $U = F\inter\metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{Z}{z}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ by Definition 1.
Hence $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F\inter\metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{Z}{z}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} F\inter\metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{Z}{z}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ by Lemma 82, Lemma 83.
$f\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ by Definition 1, Proposition 62.
Therefore $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{Z}{z}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{Z}{z}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ by Proposition 63.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((z,f)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((z,h)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 180.
Thus $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,z)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((h,z)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 177, Definition 179, Lemma 82.
Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,h)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 65, Lemma 83, Lemma 458, Lemma 828, Proposition 437.
Follows by definition.
LaTeX source
\begin{proof}
Let $m_2 = 1 + 1$.
We have $m_2\in\reals$ and $0 < m_2$ and $m_2\neq 0$ and $\inv{m_2}\in\reals$ and
$0 < \inv{m_2}$
by \cref{one_plus_one_reciprocal_positive}.
$0\in\reals$ by \cref{real_add_ident,real_one_in_naturals,real_naturals_subset_reals,subseteq}.
Let $\delta = \epsilon / m_2$.
$\delta = \epsilon \rmul \inv{m_2}$ by \cref{real_div}.
Hence $\delta\in\reals$ by \cref{real_mul_closed}.
Therefore $0 < \delta$ by \cref{real_lt_mul_pos,real_mul_zero,real_lt_subst_left}.
Take $C$ such that
$C$ is finite and
$C$ is a covering of $F$ and
for all $U\in C$ there exists $z\in Z$ such that
$U = F\inter\metricBall{\rho}{Z}{z}{\delta}$
by \cref{totally_bounded_subset_metric_space}.
Let $D = \{U\in C \mid \exists f. f\in U\}$.
$D$ is finite by \cref{subseteq,subseteq_finite_is_finite}.
Take $f_0$ such that $f_0\in F$.
$f_0\in\unions{C}$ by \cref{covering,subseteq}.
Take $U_0\in C$ such that $f_0\in U_0$ by \cref{unions_iff}.
Hence $U_0\in D$ by \cref{subseteq}.
Let $R = \{w\in D\times F \mid \snd{w}\in\fst{w}\}$.
For all $U\in D$ there exists $f$ such that $U\mathrel{R} f$
by \cref{subseteq,inter_elim_left,real_lt_subst_left,times_tuple_intro,fst_eq,snd_eq}.
Take $g$ such that
$g$ is a function on $D$ and
for all $U\in D$ we have $U\mathrel{R}\apply{g}{U}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
Let $H = \img{g}{D}$.
Show that $H$ is finite.
\begin{subproof}
Follows by \cref{finite_image_function}.
\end{subproof}
Show that $H\subseteq F$.
\begin{subproof}
Follows by \cref{img_iff,function_apply_intro,function_apply_elim,times_tuple_elim,subseteq}.
\end{subproof}
Show that for all $f\in F$ there exists $h\in H$ such that
$\rho((f,h)) < \epsilon$.
\begin{subproof}
Fix $f$ such that $f\in F$.
Take $U\in C$ such that $f\in U$ by \cref{covering,subseteq,unions_iff}.
Therefore $U\in D$ by \cref{subseteq}.
Let $h = g(U)$.
We have $h\in H$ and $U\mathrel{R} h$ by \cref{img_iff,function_apply_elim}.
Thus $h\in U$ by \cref{snd_eq,fst_eq}.
Take $z\in Z$ such that $U = F\inter\metricBall{\rho}{Z}{z}{\delta}$ by \cref{subseteq}.
Hence $f\in F\inter\metricBall{\rho}{Z}{z}{\delta}$ and
$h\in F\inter\metricBall{\rho}{Z}{z}{\delta}$ by \cref{real_lt_subst_left,real_lt_subst_right}.
$f\in Z$ and $h\in Z$ by \cref{subseteq,inter_elim_left}.
Therefore $f\in\metricBall{\rho}{Z}{z}{\delta}$ and
$h\in\metricBall{\rho}{Z}{z}{\delta}$ by \cref{inter_elim_right}.
Hence $\rho((z,f)) < \delta$ and $\rho((z,h)) < \delta$ by \cref{metric_ball}.
Thus $\rho((f,z)) < \delta$ and $\rho((h,z)) < \delta$
by \cref{metric_on,metric_symmetric,real_lt_subst_left}.
Therefore $\rho((f,h)) < \epsilon$
by \cref{metric_common_center_double_bound,real_half_plus_half,real_div,real_add_eq_subst,real_lt_subst_right}.
Follows by definition.
\end{subproof}
\end{proof}
Assume $T$ is a topology on $X$.
Assume $d$ is a metric on $Y$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Suppose $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Suppose $H$ is finite.
Suppose $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Suppose $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Then there exists $U$ such that $U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and for all $x, h$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ we have $d((h(x),h(x_0))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
LaTeX source
\begin{lemma}
\label{finite_continuous_family_common_neighborhood}
Assume $T$ is a topology on $X$.
Assume $d$ is a metric on $Y$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Suppose $H\subseteq C$.
Suppose $H$ is finite.
Suppose $x_0\in X$.
Suppose $\epsilon\in\reals$.
Suppose $0 < \epsilon$.
Then there exists $U$ such that
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
for all $x, h$ such that $x\in U$ and $h\in H$ we have
$d((h(x),h(x_0))) < \epsilon$.
\end{lemma}
Proof
Claim: There exists $U$ such that $U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and for all $x, h$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ we have $d((h(x),h(x_0))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Follows by Axiom 2, Definition 101, Definition 103, Definition 153, Lemma 83.
$H$ is inhabited by Proposition 10.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} H\class{latex-symbol-tip latex-symbol-id-times}{\times} T \mid \text{$\snd{w}$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and for all $x\in\snd{w}$ we have $d((\apply{\fst{w}}{x},\apply{\fst{w}}{x_0})) < \epsilon$}\}$.
Claim: For all $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ there exists $U$ such that $h\mathrel{R} U$.
Fix $h$ such that $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$.
We have $h$ is continuous from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$ by Definition 1, Definition 345.
$h(x_0)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 160, Proposition 361.
Therefore $h$ is continuous at $x_0$ from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$ by Lemma 161.
Let $V = \metricBall{d}{Y}{h(x_0)}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
Hence $V$ is a neighborhood of $h(x_0)$ in $Y$ with respect to $\metricTopology{d}{Y}$ by Definition 1, Definition 103, Definition 115, Definition 153, Definition 176, Definition 179, Definition 180, Definition 181, Definition 182, Lemma 76, Lemma 77, Lemma 82, Lemma 194, Proposition 155.
Take $U$ such that $U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and $\img{h}{U}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ by Definition 161.
Thus for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ we have $d((h(x),h(x_0))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 1, Definition 55, Definition 101, Definition 103, Definition 153, Definition 160, Definition 177, Definition 179, Definition 180, Lemma 82, Proposition 61, Proposition 156, Proposition 356, Proposition 361, Proposition 364.
Hence $(h,U)\class{latex-symbol-tip latex-symbol-id-in}{\in} H\class{latex-symbol-tip latex-symbol-id-times}{\times} T$ by Definition 103, Definition 153, Proposition 115.
Thus there exists $W_0$ such that $h\mathrel{R} W_0$ by Axiom 10, Axiom 11, Definition 1.
Take $u$ such that $u$ is a function on $H$ and for all $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ we have $h\mathrel{R}\apply{u}{h}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
Let $A = \img{u}{H}$.
Hence $A$ is finite and $A$ is inhabited by Lemma 192, Proposition 10, Proposition 235, Proposition 348.
Let $W = \inters{A}$.
Claim: $W$ is a neighborhood of $x_0$ in $X$ with respect to $T$.
Follows by Axiom 11, Definition 1, Definition 153, Lemma 830, Proposition 114, Proposition 235, Proposition 346, Proposition 348.
Claim: For all $x, h$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ we have $d((h(x),h(x_0))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Follows by Axiom 10, Axiom 11, Definition 1, Proposition 30, Proposition 235, Proposition 348.
Follows by definition.
LaTeX source
\begin{byCase}
\caseOf{$H = \emptyset$.}
Show that there exists $U$ such that
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
for all $x, h$ such that $x\in U$ and $h\in H$ we have
$d((h(x),h(x_0))) < \epsilon$.
\begin{subproof}
Follows by \cref{topology_on,open_in,neighborhood,real_lt_subst_right,emptyset}.
\end{subproof}
\caseOf{$H\neq\emptyset$.}
$H$ is inhabited by \cref{nonempty_inhabited}.
Let $R = \{w\in H\times T \mid \text{$\snd{w}$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
for all $x\in\snd{w}$ we have
$d((\apply{\fst{w}}{x},\apply{\fst{w}}{x_0})) < \epsilon$}\}$.
Show that for all $h\in H$ there exists $U$ such that $h\mathrel{R} U$.
\begin{subproof}
Fix $h$ such that $h\in H$.
We have $h$ is continuous from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$
by \cref{subseteq,continuous_function_set}.
$h(x_0)\in Y$ by \cref{continuous,funs_type_apply}.
Therefore $h$ is continuous at $x_0$ from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$
by \cref{continuous_implies_continuous_at}.
Let $V = \metricBall{d}{Y}{h(x_0)}{\epsilon}$.
Hence $V$ is a neighborhood of $h(x_0)$ in $Y$ with respect to $\metricTopology{d}{Y}$
by \cref{metric_ball,subseteq,powerset_intro,metric_basis,metric_basis_is_basis,basis_elem_open_in_generated,metric_topology,open_in,basis_topology_is_topology,basis_for_topology,metric_zero_characterization,real_lt_subst_left,metric_on,neighborhood}.
Take $U$ such that
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
$\img{h}{U}\subseteq V$
by \cref{continuous_at}.
Thus for all $x\in U$ we have $d((h(x),h(x_0))) < \epsilon$
by \cref{neighborhood,open_in,topology_on,powerset_elim,subseteq,continuous,funs,inter_intro,funs_is_function,img_of_function_intro,metric_ball,metric_on,metric_symmetric,real_lt_subst_left,funs_type_apply}.
Hence $(h,U)\in H\times T$ by \cref{neighborhood,open_in,times_tuple_intro}.
Thus there exists $W_0$ such that $h\mathrel{R} W_0$ by \cref{subseteq,fst_eq,snd_eq}.
\end{subproof}
Take $u$ such that
$u$ is a function on $H$ and
for all $h\in H$ we have $h\mathrel{R}\apply{u}{h}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
Let $A = \img{u}{H}$.
Hence $A$ is finite and $A$ is inhabited
by \cref{finite_image_function,function_apply_elim,img_iff,nonempty_inhabited}.
Let $W = \inters{A}$.
Show that $W$ is a neighborhood of $x_0$ in $X$ with respect to $T$.
\begin{subproof}
Follows by \cref{img_iff,function_apply_intro,function_apply_elim,subseteq,times_tuple_elim,snd_eq,neighborhood,finite_neighborhood_intersection}.
\end{subproof}
Show that for all $x, h$ such that $x\in W$ and $h\in H$ we have $d((h(x),h(x_0))) < \epsilon$.
\begin{subproof}
Follows by \cref{function_apply_elim,img_iff,inters_iff_forall,subseteq,fst_eq,snd_eq}.
\end{subproof}
Follows by definition.
\end{byCase}
LaTeX source
\begin{proof}
\begin{byCase}
\caseOf{$H = \emptyset$.}
Show that there exists $U$ such that
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
for all $x, h$ such that $x\in U$ and $h\in H$ we have
$d((h(x),h(x_0))) < \epsilon$.
\begin{subproof}
Follows by \cref{topology_on,open_in,neighborhood,real_lt_subst_right,emptyset}.
\end{subproof}
\caseOf{$H\neq\emptyset$.}
$H$ is inhabited by \cref{nonempty_inhabited}.
Let $R = \{w\in H\times T \mid \text{$\snd{w}$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
for all $x\in\snd{w}$ we have
$d((\apply{\fst{w}}{x},\apply{\fst{w}}{x_0})) < \epsilon$}\}$.
Show that for all $h\in H$ there exists $U$ such that $h\mathrel{R} U$.
\begin{subproof}
Fix $h$ such that $h\in H$.
We have $h$ is continuous from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$
by \cref{subseteq,continuous_function_set}.
$h(x_0)\in Y$ by \cref{continuous,funs_type_apply}.
Therefore $h$ is continuous at $x_0$ from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$
by \cref{continuous_implies_continuous_at}.
Let $V = \metricBall{d}{Y}{h(x_0)}{\epsilon}$.
Hence $V$ is a neighborhood of $h(x_0)$ in $Y$ with respect to $\metricTopology{d}{Y}$
by \cref{metric_ball,subseteq,powerset_intro,metric_basis,metric_basis_is_basis,basis_elem_open_in_generated,metric_topology,open_in,basis_topology_is_topology,basis_for_topology,metric_zero_characterization,real_lt_subst_left,metric_on,neighborhood}.
Take $U$ such that
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
$\img{h}{U}\subseteq V$
by \cref{continuous_at}.
Thus for all $x\in U$ we have $d((h(x),h(x_0))) < \epsilon$
by \cref{neighborhood,open_in,topology_on,powerset_elim,subseteq,continuous,funs,inter_intro,funs_is_function,img_of_function_intro,metric_ball,metric_on,metric_symmetric,real_lt_subst_left,funs_type_apply}.
Hence $(h,U)\in H\times T$ by \cref{neighborhood,open_in,times_tuple_intro}.
Thus there exists $W_0$ such that $h\mathrel{R} W_0$ by \cref{subseteq,fst_eq,snd_eq}.
\end{subproof}
Take $u$ such that
$u$ is a function on $H$ and
for all $h\in H$ we have $h\mathrel{R}\apply{u}{h}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
Let $A = \img{u}{H}$.
Hence $A$ is finite and $A$ is inhabited
by \cref{finite_image_function,function_apply_elim,img_iff,nonempty_inhabited}.
Let $W = \inters{A}$.
Show that $W$ is a neighborhood of $x_0$ in $X$ with respect to $T$.
\begin{subproof}
Follows by \cref{img_iff,function_apply_intro,function_apply_elim,subseteq,times_tuple_elim,snd_eq,neighborhood,finite_neighborhood_intersection}.
\end{subproof}
Show that for all $x, h$ such that $x\in W$ and $h\in H$ we have $d((h(x),h(x_0))) < \epsilon$.
\begin{subproof}
Follows by \cref{function_apply_elim,img_iff,inters_iff_forall,subseteq,fst_eq,snd_eq}.
\end{subproof}
Follows by definition.
\end{byCase}
\end{proof}
Suppose $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Then 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 $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < 1$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
LaTeX source
\begin{lemma}
\label{positive_real_small_triple_bound}
Suppose $\epsilon\in\reals$.
Suppose $0 < \epsilon$.
Then there exists $\delta\in\reals$ such that
$0 < \delta$ and
$\delta < 1$ and
$\delta + \delta + \delta < \epsilon$.
\end{lemma}
Proof
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
$1 + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < 1 + 1$ and $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 Lemma 829.
$0 < 1$ by Proposition 462.
Hence $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} < 1$ or $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} = 1$ or $1 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 34.
Let $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} / (1 + 1)$.
$\class{latex-symbol-tip latex-symbol-id-eta}{\eta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Axiom 14, Axiom 17, Axiom 22, Axiom 38, Definition 65, Lemma 82, Proposition 439, Proposition 463.
We have $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} + \class{latex-symbol-tip latex-symbol-id-eta}{\eta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 458.
Hence $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} < 1$ by Axiom 17, Axiom 36, Axiom 37, Lemma 82, Lemma 83, Lemma 458.
Let $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-eta}{\eta} / (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}$ by Axiom 14, Axiom 17, Axiom 22, Axiom 38, Definition 65, Lemma 82, Proposition 439, Proposition 463.
We have $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Lemma 458.
Hence $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Axiom 17, Axiom 37, Lemma 82, Lemma 83.
Therefore $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < 1$ by Axiom 17, Axiom 36, Axiom 37, Lemma 82, Lemma 83, Lemma 458.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-eta}{\eta} < \class{latex-symbol-tip latex-symbol-id-eta}{\eta} + \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Axiom 37.
Thus $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 15, Axiom 16, Lemma 82, Lemma 83, Lemma 458.
Follows by definition.
Let $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} / (1 + 1)$.
$\class{latex-symbol-tip latex-symbol-id-eta}{\eta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Axiom 14, Axiom 17, Axiom 22, Axiom 38, Definition 65, Lemma 82, Proposition 439, Proposition 463.
We have $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} + \class{latex-symbol-tip latex-symbol-id-eta}{\eta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 458.
Hence $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} < 1$ by Axiom 17, Axiom 37, Lemma 82, Lemma 83, Lemma 458.
Let $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-eta}{\eta} / (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}$ by Axiom 14, Axiom 17, Axiom 22, Axiom 38, Definition 65, Lemma 82, Proposition 439, Proposition 463.
We have $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Lemma 458.
Hence $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Axiom 17, Axiom 37, Lemma 82, Lemma 83.
Therefore $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < 1$ by Axiom 17, Axiom 36, Axiom 37, Lemma 82, Lemma 83, Lemma 458.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-eta}{\eta} < \class{latex-symbol-tip latex-symbol-id-eta}{\eta} + \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Axiom 37.
Thus $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 15, Axiom 16, Lemma 82, Lemma 83, Lemma 458.
Follows by definition.
Let $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} = 1 / (1 + 1)$.
$\class{latex-symbol-tip latex-symbol-id-eta}{\eta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Axiom 14, Axiom 17, Axiom 22, Axiom 38, Definition 65, Lemma 82, Proposition 439, Proposition 463.
We have $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} + \class{latex-symbol-tip latex-symbol-id-eta}{\eta} = 1$ by Lemma 458.
Hence $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} < 1$ by Axiom 17, Axiom 37, Lemma 82.
Let $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-eta}{\eta} / (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}$ by Axiom 14, Axiom 17, Axiom 22, Axiom 38, Definition 65, Lemma 82, Proposition 439, Proposition 463.
We have $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Lemma 458.
Hence $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Axiom 17, Axiom 37, Lemma 82, Lemma 83.
Therefore $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < 1$ by Axiom 36.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-eta}{\eta} < \class{latex-symbol-tip latex-symbol-id-eta}{\eta} + \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Axiom 37.
Hence $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 13, Axiom 16, Axiom 36, Lemma 82, Lemma 83, Lemma 458.
Thus $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 15, Axiom 16, Lemma 82, Lemma 458.
Follows by definition.
LaTeX source
\begin{byCase}
\caseOf{$\epsilon < 1$.}
Let $\eta = \epsilon / (1 + 1)$.
$\eta\in\reals$ and $0 < \eta$
by \cref{real_div,real_mul_inverse,real_mul_closed,real_add_ident,real_lt_mul_pos,real_inv_pos,real_mul_zero,real_lt_subst_left}.
We have $\eta + \eta = \epsilon$ by \cref{real_half_plus_half}.
Hence $\eta < 1$ by \cref{real_half_plus_half,real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right,real_lt_trans}.
Let $\delta = \eta / (1 + 1)$.
$\delta\in\reals$ and $0 < \delta$
by \cref{real_div,real_mul_inverse,real_mul_closed,real_add_ident,real_lt_mul_pos,real_inv_pos,real_mul_zero,real_lt_subst_left}.
We have $\delta + \delta = \eta$ by \cref{real_half_plus_half}.
Hence $\delta < \eta$ by \cref{real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right}.
Therefore $\delta < 1$ by \cref{real_half_plus_half,real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right,real_lt_trans}.
$\delta + \eta < \eta + \eta$ by \cref{real_lt_add}.
Thus $\delta + \delta + \delta < \epsilon$
by \cref{real_add_comm,real_add_assoc,real_half_plus_half,real_lt_subst_left,real_lt_subst_right}.
Follows by definition.
\caseOf{$\epsilon = 1$.}
Let $\eta = \epsilon / (1 + 1)$.
$\eta\in\reals$ and $0 < \eta$
by \cref{real_div,real_mul_inverse,real_mul_closed,real_add_ident,real_lt_mul_pos,real_inv_pos,real_mul_zero,real_lt_subst_left}.
We have $\eta + \eta = \epsilon$ by \cref{real_half_plus_half}.
Hence $\eta < 1$ by \cref{real_half_plus_half,real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right}.
Let $\delta = \eta / (1 + 1)$.
$\delta\in\reals$ and $0 < \delta$
by \cref{real_div,real_mul_inverse,real_mul_closed,real_add_ident,real_lt_mul_pos,real_inv_pos,real_mul_zero,real_lt_subst_left}.
We have $\delta + \delta = \eta$ by \cref{real_half_plus_half}.
Hence $\delta < \eta$ by \cref{real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right}.
Therefore $\delta < 1$ by \cref{real_half_plus_half,real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right,real_lt_trans}.
$\delta + \eta < \eta + \eta$ by \cref{real_lt_add}.
Thus $\delta + \delta + \delta < \epsilon$
by \cref{real_add_comm,real_add_assoc,real_half_plus_half,real_lt_subst_left,real_lt_subst_right}.
Follows by definition.
\caseOf{$1 < \epsilon$.}
Let $\eta = 1 / (1 + 1)$.
$\eta\in\reals$ and $0 < \eta$
by \cref{real_div,real_mul_inverse,real_mul_closed,real_add_ident,real_lt_mul_pos,real_inv_pos,real_mul_zero,real_lt_subst_left}.
We have $\eta + \eta = 1$ by \cref{real_half_plus_half}.
Hence $\eta < 1$ by \cref{real_add_ident,real_lt_add,real_lt_subst_left}.
Let $\delta = \eta / (1 + 1)$.
$\delta\in\reals$ and $0 < \delta$
by \cref{real_div,real_mul_inverse,real_mul_closed,real_add_ident,real_lt_mul_pos,real_inv_pos,real_mul_zero,real_lt_subst_left}.
We have $\delta + \delta = \eta$ by \cref{real_half_plus_half}.
Hence $\delta < \eta$ by \cref{real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right}.
Therefore $\delta < 1$ by \cref{real_lt_trans}.
$\delta + \eta < \eta + \eta$ by \cref{real_lt_add}.
Hence $\eta + \delta < \epsilon$
by \cref{real_add_closed,real_add_comm,real_half_plus_half,real_lt_trans,real_lt_subst_left,real_lt_subst_right}.
Thus $\delta + \delta + \delta < \epsilon$
by \cref{real_add_comm,real_add_assoc,real_half_plus_half,real_lt_subst_left}.
Follows by definition.
\end{byCase}
LaTeX source
\begin{proof}
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
$1 + 1\in\reals$ and $0 < 1 + 1$ and $1 + 1\neq 0$ and $\inv{(1 + 1)}\in\reals$ and
$0 < \inv{(1 + 1)}$ by \cref{one_plus_one_reciprocal_positive}.
$0 < 1$ by \cref{real_zero_lt_one}.
Hence $\epsilon < 1$ or $\epsilon = 1$ or $1 < \epsilon$ by \cref{real_lt_trichotomy}.
\begin{byCase}
\caseOf{$\epsilon < 1$.}
Let $\eta = \epsilon / (1 + 1)$.
$\eta\in\reals$ and $0 < \eta$
by \cref{real_div,real_mul_inverse,real_mul_closed,real_add_ident,real_lt_mul_pos,real_inv_pos,real_mul_zero,real_lt_subst_left}.
We have $\eta + \eta = \epsilon$ by \cref{real_half_plus_half}.
Hence $\eta < 1$ by \cref{real_half_plus_half,real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right,real_lt_trans}.
Let $\delta = \eta / (1 + 1)$.
$\delta\in\reals$ and $0 < \delta$
by \cref{real_div,real_mul_inverse,real_mul_closed,real_add_ident,real_lt_mul_pos,real_inv_pos,real_mul_zero,real_lt_subst_left}.
We have $\delta + \delta = \eta$ by \cref{real_half_plus_half}.
Hence $\delta < \eta$ by \cref{real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right}.
Therefore $\delta < 1$ by \cref{real_half_plus_half,real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right,real_lt_trans}.
$\delta + \eta < \eta + \eta$ by \cref{real_lt_add}.
Thus $\delta + \delta + \delta < \epsilon$
by \cref{real_add_comm,real_add_assoc,real_half_plus_half,real_lt_subst_left,real_lt_subst_right}.
Follows by definition.
\caseOf{$\epsilon = 1$.}
Let $\eta = \epsilon / (1 + 1)$.
$\eta\in\reals$ and $0 < \eta$
by \cref{real_div,real_mul_inverse,real_mul_closed,real_add_ident,real_lt_mul_pos,real_inv_pos,real_mul_zero,real_lt_subst_left}.
We have $\eta + \eta = \epsilon$ by \cref{real_half_plus_half}.
Hence $\eta < 1$ by \cref{real_half_plus_half,real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right}.
Let $\delta = \eta / (1 + 1)$.
$\delta\in\reals$ and $0 < \delta$
by \cref{real_div,real_mul_inverse,real_mul_closed,real_add_ident,real_lt_mul_pos,real_inv_pos,real_mul_zero,real_lt_subst_left}.
We have $\delta + \delta = \eta$ by \cref{real_half_plus_half}.
Hence $\delta < \eta$ by \cref{real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right}.
Therefore $\delta < 1$ by \cref{real_half_plus_half,real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right,real_lt_trans}.
$\delta + \eta < \eta + \eta$ by \cref{real_lt_add}.
Thus $\delta + \delta + \delta < \epsilon$
by \cref{real_add_comm,real_add_assoc,real_half_plus_half,real_lt_subst_left,real_lt_subst_right}.
Follows by definition.
\caseOf{$1 < \epsilon$.}
Let $\eta = 1 / (1 + 1)$.
$\eta\in\reals$ and $0 < \eta$
by \cref{real_div,real_mul_inverse,real_mul_closed,real_add_ident,real_lt_mul_pos,real_inv_pos,real_mul_zero,real_lt_subst_left}.
We have $\eta + \eta = 1$ by \cref{real_half_plus_half}.
Hence $\eta < 1$ by \cref{real_add_ident,real_lt_add,real_lt_subst_left}.
Let $\delta = \eta / (1 + 1)$.
$\delta\in\reals$ and $0 < \delta$
by \cref{real_div,real_mul_inverse,real_mul_closed,real_add_ident,real_lt_mul_pos,real_inv_pos,real_mul_zero,real_lt_subst_left}.
We have $\delta + \delta = \eta$ by \cref{real_half_plus_half}.
Hence $\delta < \eta$ by \cref{real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right}.
Therefore $\delta < 1$ by \cref{real_lt_trans}.
$\delta + \eta < \eta + \eta$ by \cref{real_lt_add}.
Hence $\eta + \delta < \epsilon$
by \cref{real_add_closed,real_add_comm,real_half_plus_half,real_lt_trans,real_lt_subst_left,real_lt_subst_right}.
Thus $\delta + \delta + \delta < \epsilon$
by \cref{real_add_comm,real_add_assoc,real_half_plus_half,real_lt_subst_left}.
Follows by definition.
\end{byCase}
\end{proof}
Assume $T$ is a topology on $X$.
Assume $d$ is a metric on $Y$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Suppose $F$ is totally bounded in $\funs{X}{Y}$ with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$.
Then $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
LaTeX source
\begin{lemma}
\label{totally_bounded_function_family_equicontinuous}
Assume $T$ is a topology on $X$.
Assume $d$ is a metric on $Y$.
Assume $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\subseteq C$.
Suppose $F$ is totally bounded in $\funs{X}{Y}$ with respect to $\rho$.
Then $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
\end{lemma}
Proof
$F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\funs{X}{Y}$ by Definition 1, Definition 345.
Claim: For all $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $F$ is equicontinuous at $x_0$ from $X$ to $Y$ with respect to $T$ and $d$.
Follows by Axiom 2, Definition 101, Definition 103, Definition 153, Definition 361, Lemma 83.
Hence $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$ by Definition 362.
$F$ is inhabited by Proposition 10.
Claim: For all $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $F$ is equicontinuous at $x_0$ from $X$ to $Y$ with respect to $T$ and $d$.
Fix $x_0$ such that $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Claim: For all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ there exists $U$ such that $U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and for all $x, f$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $d((\apply{f}{x},\apply{f}{x_0})) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Take $\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 $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < 1$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 834.
Take $H$ such that $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} F$ and $H$ is finite and for all $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,h)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 344, Lemma 832.
Hence $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Proposition 6.
Take $U$ such that $U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and for all $x, h$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ we have $d((h(x),h(x_0))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 833.
Claim: For all $x, f$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $d((\apply{f}{x},\apply{f}{x_0})) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $x$.
Fix $f$.
Assume $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
Take $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,h)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ by Definition 1, Definition 101, Definition 103, Definition 153, Proposition 6, Proposition 156.
Hence $d((f(x),h(x))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 831.
Therefore $d((h(x_0),f(x_0))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 177, Definition 179, Lemma 82, Lemma 831, Proposition 361.
We have $d((h(x),h(x_0))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1.
Let $a = d((f(x),h(x)))$.
Let $b = d((h(x),h(x_0)))$.
Let $c = d((h(x_0),f(x_0)))$.
We have $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-delta}{\delta}$ and $b < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $c < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 179, Lemma 82, Lemma 83, Proposition 115, Proposition 361.
Hence $a + b < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Proposition 450.
Thus $(a + b) + c < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 13, Axiom 15, Axiom 36, Lemma 83, Proposition 450.
We have $d((f(x),f(x_0))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a + d((h(x),f(x_0)))$ by Definition 178, Definition 179, Proposition 361.
We have $d((h(x),f(x_0))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b + c$ by Definition 178, Definition 179, Proposition 361.
We have $d((h(x),f(x_0)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((f(x),f(x_0)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
$a + d((h(x),f(x_0)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $(a + b) + c\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $b + c\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
$a + d((h(x),f(x_0))) < (a + b) + c$ or $a + d((h(x),f(x_0))) = (a + b) + c$ by Axiom 15, Axiom 16, Axiom 37, Lemma 81, Lemma 82, Lemma 83, Proposition 437.
Therefore $a + d((h(x),f(x_0))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 36, Lemma 82.
Hence $d((f(x),f(x_0))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 36, Lemma 81, Lemma 82.
Follows by definition.
Hence $F$ is equicontinuous at $x_0$ from $X$ to $Y$ with respect to $T$ and $d$ by Definition 361.
Hence $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$ by Definition 362.
LaTeX source
\begin{byCase}
\caseOf{$F = \emptyset$.}
Show that for all $x_0\in X$ we have
$F$ is equicontinuous at $x_0$ from $X$ to $Y$ with respect to $T$ and $d$.
\begin{subproof}
Follows by \cref{topology_on,open_in,neighborhood,real_lt_subst_right,emptyset,equicontinuous_at_point}.
\end{subproof}
Hence $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$
by \cref{equicontinuous_family}.
\caseOf{$F\neq\emptyset$.}
$F$ is inhabited by \cref{nonempty_inhabited}.
Show that for all $x_0\in X$ we have
$F$ is equicontinuous at $x_0$ from $X$ to $Y$ with respect to $T$ and $d$.
\begin{subproof}
Fix $x_0$ such that $x_0\in X$.
Show that for all $\epsilon\in\reals$ such that $0 < \epsilon$
there exists $U$ such that
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
for all $x, f$ such that $x\in U$ and $f\in F$ we have
$d((\apply{f}{x},\apply{f}{x_0})) < \epsilon$.
\begin{subproof}
Fix $\epsilon$ such that $\epsilon\in\reals$ and $0 < \epsilon$.
Take $\delta\in\reals$ such that
$0 < \delta$ and
$\delta < 1$ and
$\delta + \delta + \delta < \epsilon$
by \cref{positive_real_small_triple_bound}.
Take $H$ such that
$H\subseteq F$ and
$H$ is finite and
for all $f\in F$ there exists $h\in H$ such that
$\rho((f,h)) < \delta$
by \cref{uniform_metric_on_function_space,totally_bounded_subset_finite_internal_net}.
Hence $H\subseteq C$ by \cref{subseteq_transitive}.
Take $U$ such that
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
for all $x, h$ such that $x\in U$ and $h\in H$ we have
$d((h(x),h(x_0))) < \delta$
by \cref{finite_continuous_family_common_neighborhood}.
Show that for all $x, f$ such that $x\in U$ and $f\in F$ we have
$d((\apply{f}{x},\apply{f}{x_0})) < \epsilon$.
\begin{subproof}
Fix $x$.
Fix $f$.
Assume $x\in U$ and $f\in F$.
Take $h\in H$ such that $\rho((f,h)) < \delta$ by \cref{subseteq}.
We have $x\in X$ and $f\in\funs{X}{Y}$ and $h\in\funs{X}{Y}$
by \cref{neighborhood,open_in,topology_on,powerset_elim,subseteq,subseteq_transitive}.
Hence $d((f(x),h(x))) < \delta$ by \cref{uniform_metric_small_implies_pointwise_small}.
Therefore $d((h(x_0),f(x_0))) < \delta$
by \cref{uniform_metric_small_implies_pointwise_small,metric_on,metric_symmetric,funs_type_apply,real_lt_subst_left}.
We have $d((h(x),h(x_0))) < \delta$ by \cref{subseteq}.
Let $a = d((f(x),h(x)))$.
Let $b = d((h(x),h(x_0)))$.
Let $c = d((h(x_0),f(x_0)))$.
We have $a\in\reals$ and $b\in\reals$ and $c\in\reals$ and
$a < \delta$ and $b < \delta$ and $c < \delta$
by \cref{metric_on,times_tuple_intro,funs_type_apply,real_lt_subst_left,real_lt_subst_right}.
Hence $a + b < \delta + \delta$ by \cref{real_lt_add_two}.
Thus $(a + b) + c < \epsilon$
by \cref{real_lt_add_two,real_add_closed,real_add_assoc,real_lt_trans,real_lt_subst_right}.
We have $d((f(x),f(x_0))) \leq a + d((h(x),f(x_0)))$
by \cref{metric_on,metric_triangle_inequality,funs_type_apply}.
We have $d((h(x),f(x_0))) \leq b + c$
by \cref{metric_on,metric_triangle_inequality,funs_type_apply}.
We have $d((h(x),f(x_0)))\in\reals$ and $d((f(x),f(x_0)))\in\reals$
by \cref{metric_on,funs_type_apply,times_tuple_intro}.
$a + d((h(x),f(x_0)))\in\reals$ and $(a + b) + c\in\reals$ and $b + c\in\reals$
by \cref{real_add_closed}.
$a + d((h(x),f(x_0))) < (a + b) + c$ or
$a + d((h(x),f(x_0))) = (a + b) + c$
by \cref{real_leq_split,real_lt_add,real_add_comm,real_lt_subst_left,real_lt_subst_right,real_add_assoc,real_add_eq_subst}.
Therefore $a + d((h(x),f(x_0))) < \epsilon$ by \cref{real_lt_trans,real_lt_subst_left}.
Hence $d((f(x),f(x_0))) < \epsilon$
by \cref{real_leq_split,real_lt_trans,real_lt_subst_left}.
\end{subproof}
Follows by definition.
\end{subproof}
Hence $F$ is equicontinuous at $x_0$ from $X$ to $Y$ with respect to $T$ and $d$
by \cref{equicontinuous_at_point}.
\end{subproof}
Hence $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$
by \cref{equicontinuous_family}.
\end{byCase}
LaTeX source
\begin{proof}
$F\subseteq\funs{X}{Y}$ by \cref{subseteq,continuous_function_set}.
\begin{byCase}
\caseOf{$F = \emptyset$.}
Show that for all $x_0\in X$ we have
$F$ is equicontinuous at $x_0$ from $X$ to $Y$ with respect to $T$ and $d$.
\begin{subproof}
Follows by \cref{topology_on,open_in,neighborhood,real_lt_subst_right,emptyset,equicontinuous_at_point}.
\end{subproof}
Hence $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$
by \cref{equicontinuous_family}.
\caseOf{$F\neq\emptyset$.}
$F$ is inhabited by \cref{nonempty_inhabited}.
Show that for all $x_0\in X$ we have
$F$ is equicontinuous at $x_0$ from $X$ to $Y$ with respect to $T$ and $d$.
\begin{subproof}
Fix $x_0$ such that $x_0\in X$.
Show that for all $\epsilon\in\reals$ such that $0 < \epsilon$
there exists $U$ such that
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
for all $x, f$ such that $x\in U$ and $f\in F$ we have
$d((\apply{f}{x},\apply{f}{x_0})) < \epsilon$.
\begin{subproof}
Fix $\epsilon$ such that $\epsilon\in\reals$ and $0 < \epsilon$.
Take $\delta\in\reals$ such that
$0 < \delta$ and
$\delta < 1$ and
$\delta + \delta + \delta < \epsilon$
by \cref{positive_real_small_triple_bound}.
Take $H$ such that
$H\subseteq F$ and
$H$ is finite and
for all $f\in F$ there exists $h\in H$ such that
$\rho((f,h)) < \delta$
by \cref{uniform_metric_on_function_space,totally_bounded_subset_finite_internal_net}.
Hence $H\subseteq C$ by \cref{subseteq_transitive}.
Take $U$ such that
$U$ is a neighborhood of $x_0$ in $X$ with respect to $T$ and
for all $x, h$ such that $x\in U$ and $h\in H$ we have
$d((h(x),h(x_0))) < \delta$
by \cref{finite_continuous_family_common_neighborhood}.
Show that for all $x, f$ such that $x\in U$ and $f\in F$ we have
$d((\apply{f}{x},\apply{f}{x_0})) < \epsilon$.
\begin{subproof}
Fix $x$.
Fix $f$.
Assume $x\in U$ and $f\in F$.
Take $h\in H$ such that $\rho((f,h)) < \delta$ by \cref{subseteq}.
We have $x\in X$ and $f\in\funs{X}{Y}$ and $h\in\funs{X}{Y}$
by \cref{neighborhood,open_in,topology_on,powerset_elim,subseteq,subseteq_transitive}.
Hence $d((f(x),h(x))) < \delta$ by \cref{uniform_metric_small_implies_pointwise_small}.
Therefore $d((h(x_0),f(x_0))) < \delta$
by \cref{uniform_metric_small_implies_pointwise_small,metric_on,metric_symmetric,funs_type_apply,real_lt_subst_left}.
We have $d((h(x),h(x_0))) < \delta$ by \cref{subseteq}.
Let $a = d((f(x),h(x)))$.
Let $b = d((h(x),h(x_0)))$.
Let $c = d((h(x_0),f(x_0)))$.
We have $a\in\reals$ and $b\in\reals$ and $c\in\reals$ and
$a < \delta$ and $b < \delta$ and $c < \delta$
by \cref{metric_on,times_tuple_intro,funs_type_apply,real_lt_subst_left,real_lt_subst_right}.
Hence $a + b < \delta + \delta$ by \cref{real_lt_add_two}.
Thus $(a + b) + c < \epsilon$
by \cref{real_lt_add_two,real_add_closed,real_add_assoc,real_lt_trans,real_lt_subst_right}.
We have $d((f(x),f(x_0))) \leq a + d((h(x),f(x_0)))$
by \cref{metric_on,metric_triangle_inequality,funs_type_apply}.
We have $d((h(x),f(x_0))) \leq b + c$
by \cref{metric_on,metric_triangle_inequality,funs_type_apply}.
We have $d((h(x),f(x_0)))\in\reals$ and $d((f(x),f(x_0)))\in\reals$
by \cref{metric_on,funs_type_apply,times_tuple_intro}.
$a + d((h(x),f(x_0)))\in\reals$ and $(a + b) + c\in\reals$ and $b + c\in\reals$
by \cref{real_add_closed}.
$a + d((h(x),f(x_0))) < (a + b) + c$ or
$a + d((h(x),f(x_0))) = (a + b) + c$
by \cref{real_leq_split,real_lt_add,real_add_comm,real_lt_subst_left,real_lt_subst_right,real_add_assoc,real_add_eq_subst}.
Therefore $a + d((h(x),f(x_0))) < \epsilon$ by \cref{real_lt_trans,real_lt_subst_left}.
Hence $d((f(x),f(x_0))) < \epsilon$
by \cref{real_leq_split,real_lt_trans,real_lt_subst_left}.
\end{subproof}
Follows by definition.
\end{subproof}
Hence $F$ is equicontinuous at $x_0$ from $X$ to $Y$ with respect to $T$ and $d$
by \cref{equicontinuous_at_point}.
\end{subproof}
Hence $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$
by \cref{equicontinuous_family}.
\end{byCase}
\end{proof}
Assume $d$ is a metric on $Y$.
Suppose $y_1,y_2,z\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$.
Suppose $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $d((y_1,z)) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$.
Suppose $d((y_2,z)) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$.
Then $d((y_1,y_2)) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} + \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$.
LaTeX source
\begin{lemma}
\label{common_center_small_ball_distance_bound}
Assume $d$ is a metric on $Y$.
Suppose $y_1,y_2,z\in Y$.
Suppose $\alpha\in\reals$.
Suppose $d((y_1,z)) < \alpha$.
Suppose $d((y_2,z)) < \alpha$.
Then $d((y_1,y_2)) < \alpha + \alpha$.
\end{lemma}
Proof
Follows by Lemma 828.
LaTeX source
\begin{proof}
Follows by \cref{metric_common_center_double_bound}.
\end{proof}
Suppose $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
Then there exists $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ and $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} + \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} = \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
LaTeX source
\begin{lemma}
\label{positive_real_half_decomposition}
Suppose $\delta\in\reals$.
Suppose $0 < \delta$.
Then there exists $\alpha\in\reals$ such that
$0 < \alpha$ and
$\alpha + \alpha = \delta$ and
$\alpha < \delta$.
\end{lemma}
Proof
Let $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} = \class{latex-symbol-tip latex-symbol-id-delta}{\delta} / (1 + 1)$.
Claim: $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ and $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} + \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} = \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
Follows by definition.
LaTeX source
\begin{proof}
Let $\alpha = \delta / (1 + 1)$.
Show that $\alpha\in\reals$ and $0 < \alpha$ and $\alpha + \alpha = \delta$ and $\alpha < \delta$.
\begin{subproof}
Follows by \cref{real_half_of_positive,real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right}.
\end{subproof}
Follows by definition.
\end{proof}
Suppose $A$ is finite.
Suppose $B$ is finite.
Then $A\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ is finite.
LaTeX source
\begin{lemma}
\label{finite_cartesian_product}
Suppose $A$ is finite.
Suppose $B$ is finite.
Then $A\times B$ is finite.
\end{lemma}
Proof
Claim: For all $p$ we have $p\class{latex-symbol-tip latex-symbol-id-notin}{\notin} A\class{latex-symbol-tip latex-symbol-id-times}{\times} B$.
Fix $p$.
Suppose not.
Then $p\class{latex-symbol-tip latex-symbol-id-in}{\in} A\class{latex-symbol-tip latex-symbol-id-times}{\times} B$.
Take $a,b$ such that $p = (a,b)$ and $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Definition 7.
Contradiction.
Hence $A\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ is empty.
Thus $A\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ is finite by Definition 89.
Take $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that there exists a bijection from $\initialSegment{n}$ to $A$ by Definition 89.
Take $f$ such that $f$ is a bijection from $\initialSegment{n}$ to $A$.
We have $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\surj{\initialSegment{n}}{A}$ and $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{A}$ by Definition 58, Proposition 389.
$\initialSegment{n}$ is finite by Lemma 208.
Let $g = \{(i,\{f(i)\}\class{latex-symbol-tip latex-symbol-id-times}{\times} B) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in} \initialSegment{n}\}$.
For all $i,U_1,U_2$ such that $(i,U_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ and $(i,U_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ we have $U_1 = U_2$ by Axiom 6.
Hence $g$ is a function on $\initialSegment{n}$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
Let $H = \img{g}{\initialSegment{n}}$.
Hence $H$ is finite by Lemma 192.
Claim: For all $C\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ we have $C$ is finite.
Fix $C$ such that $C\class{latex-symbol-tip latex-symbol-id-in}{\in} H$.
Take $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ such that $(i,C)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ by Proposition 235.
We have $C = \{f(i)\}\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ by Proposition 346.
Let $h = \{(b,(f(i),b)) \mid b\class{latex-symbol-tip latex-symbol-id-in}{\in} B\}$.
For all $b,y_1,y_2$ such that $(b,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ and $(b,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ we have $y_1 = y_2$ by Axiom 6.
We have $h$ is a function by Definition 12, Definition 51.
Therefore $\dom{h} = B$ by Axiom 6, Definition 1, Proposition 3, Proposition 199, Proposition 200.
For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\ran{h}$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Axiom 6, Lemma 83, Proposition 20, Proposition 115, Proposition 208.
We have $\ran{h}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Definition 1.
For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\ran{h}$ by Axiom 6, Definition 7, Lemma 82, Proposition 21, Proposition 209.
We have $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\ran{h}$ by Definition 1.
Hence $\ran{h} = C$ by Proposition 3.
Therefore $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{B}{C}$ by Definition 1, Proposition 3, Proposition 209, Proposition 349, Proposition 358.
For all $y\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ there exists $b\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $h(b) = y$.
We have $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\surj{B}{C}$ and $h$ is injective by Axiom 6, Definition 57, Proposition 349, Proposition 386.
Hence $h$ is a bijection from $B$ to $C$ by Definition 57, Definition 58.
Therefore $C$ is finite by Lemma 150.
Hence $\unions{H}$ is finite by Lemma 360.
Claim: For all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} A\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ we have $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{H}$.
We have $A\class{latex-symbol-tip latex-symbol-id-times}{\times} B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\unions{H}$ by Definition 1.
Claim: For all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{H}$ we have $p\class{latex-symbol-tip latex-symbol-id-in}{\in} A\class{latex-symbol-tip latex-symbol-id-times}{\times} B$.
We have $\unions{H}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ by Definition 1.
Thus $\unions{H} = A\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ by Proposition 3.
Therefore $A\class{latex-symbol-tip latex-symbol-id-times}{\times} B$ is finite.
LaTeX source
\begin{byCase}
\caseOf{$A$ is empty.}
Show that for all $p$ we have $p\notin A\times B$.
\begin{subproof}
Fix $p$.
Suppose not.
Then $p\in A\times B$.
Take $a,b$ such that $p = (a,b)$ and $a\in A$ and $b\in B$ by \cref{times}.
Contradiction.
\end{subproof}
Hence $A\times B$ is empty.
Thus $A\times B$ is finite by \cref{finite}.
\caseOf{$A$ is not empty.}
Take $n\in\naturalsPlus$ such that there exists a bijection from $\initialSegment{n}$ to $A$
by \cref{finite}.
Take $f$ such that $f$ is a bijection from $\initialSegment{n}$ to $A$.
We have $f\in\surj{\initialSegment{n}}{A}$ and $f\in\funs{\initialSegment{n}}{A}$ by \cref{bijections,bijections_to_funs}.
$\initialSegment{n}$ is finite by \cref{initial_segment_finite}.
Let $g = \{(i,\{f(i)\}\times B) \mid i\in \initialSegment{n}\}$.
For all $i,U_1,U_2$ such that $(i,U_1)\in g$ and $(i,U_2)\in g$ we have $U_1 = U_2$
by \cref{pair_eq_iff}.
Hence $g$ is a function on $\initialSegment{n}$
by \cref{rightunique,relation,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
Let $H = \img{g}{\initialSegment{n}}$.
Hence $H$ is finite by \cref{finite_image_function}.
Show that for all $C\in H$ we have $C$ is finite.
\begin{subproof}
Fix $C$ such that $C\in H$.
Take $i\in\initialSegment{n}$ such that $(i,C)\in g$ by \cref{img_iff}.
We have $C = \{f(i)\}\times B$ by \cref{function_apply_intro}.
Let $h = \{(b,(f(i),b)) \mid b\in B\}$.
For all $b,y_1,y_2$ such that $(b,y_1)\in h$ and $(b,y_2)\in h$ we have $y_1 = y_2$
by \cref{pair_eq_iff}.
We have $h$ is a function by \cref{rightunique,relation}.
Therefore $\dom{h} = B$ by
\cref{dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
For all $y$ such that $y\in\ran{h}$ we have $y\in C$
by \cref{ran_iff,pair_eq_iff,singleton_intro,times_tuple_intro,real_lt_subst_right}.
We have $\ran{h}\subseteq C$ by \cref{subseteq}.
For all $y$ such that $y\in C$ we have $y\in\ran{h}$
by \cref{real_lt_subst_left,times,singleton_elim,pair_eq_iff,ran_intro}.
We have $C\subseteq\ran{h}$ by \cref{subseteq}.
Hence $\ran{h} = C$ by \cref{subseteq_antisymmetric}.
Therefore $h\in\funs{B}{C}$ by \cref{function_apply_iff,ran_intro,subseteq,funs_intro,subseteq_antisymmetric}.
For all $y\in C$ there exists $b\in B$ such that $h(b) = y$.
We have $h\in\surj{B}{C}$ and $h$ is injective
by \cref{surj,function_apply_iff,pair_eq_iff,injective_function}.
Hence $h$ is a bijection from $B$ to $C$ by \cref{surj,bijections}.
Therefore $C$ is finite by \cref{finite_bijection}.
\end{subproof}
Hence $\unions{H}$ is finite by \cref{finite_union_of_finite_family}.
Show that for all $p$ such that $p\in A\times B$ we have $p\in\unions{H}$.
\begin{subproof}
Follows by \cref{times,surj,function_apply_intro,img_iff,function_apply_iff,singleton_intro,times_tuple_intro,real_lt_subst_left,real_lt_subst_right,unions_iff}.
\end{subproof}
We have $A\times B\subseteq\unions{H}$ by \cref{subseteq}.
Show that for all $p$ such that $p\in\unions{H}$ we have $p\in A\times B$.
\begin{subproof}
Follows by \cref{unions_iff,img_iff,function_apply_intro,real_lt_subst_right,times,singleton_elim,bijections_to_funs,funs_type_apply,subseteq,real_lt_subst_left,times_tuple_intro}.
\end{subproof}
We have $\unions{H}\subseteq A\times B$ by \cref{subseteq}.
Thus $\unions{H} = A\times B$ by \cref{subseteq_antisymmetric}.
Therefore $A\times B$ is finite.
\end{byCase}
LaTeX source
\begin{proof}
\begin{byCase}
\caseOf{$A$ is empty.}
Show that for all $p$ we have $p\notin A\times B$.
\begin{subproof}
Fix $p$.
Suppose not.
Then $p\in A\times B$.
Take $a,b$ such that $p = (a,b)$ and $a\in A$ and $b\in B$ by \cref{times}.
Contradiction.
\end{subproof}
Hence $A\times B$ is empty.
Thus $A\times B$ is finite by \cref{finite}.
\caseOf{$A$ is not empty.}
Take $n\in\naturalsPlus$ such that there exists a bijection from $\initialSegment{n}$ to $A$
by \cref{finite}.
Take $f$ such that $f$ is a bijection from $\initialSegment{n}$ to $A$.
We have $f\in\surj{\initialSegment{n}}{A}$ and $f\in\funs{\initialSegment{n}}{A}$ by \cref{bijections,bijections_to_funs}.
$\initialSegment{n}$ is finite by \cref{initial_segment_finite}.
Let $g = \{(i,\{f(i)\}\times B) \mid i\in \initialSegment{n}\}$.
For all $i,U_1,U_2$ such that $(i,U_1)\in g$ and $(i,U_2)\in g$ we have $U_1 = U_2$
by \cref{pair_eq_iff}.
Hence $g$ is a function on $\initialSegment{n}$
by \cref{rightunique,relation,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
Let $H = \img{g}{\initialSegment{n}}$.
Hence $H$ is finite by \cref{finite_image_function}.
Show that for all $C\in H$ we have $C$ is finite.
\begin{subproof}
Fix $C$ such that $C\in H$.
Take $i\in\initialSegment{n}$ such that $(i,C)\in g$ by \cref{img_iff}.
We have $C = \{f(i)\}\times B$ by \cref{function_apply_intro}.
Let $h = \{(b,(f(i),b)) \mid b\in B\}$.
For all $b,y_1,y_2$ such that $(b,y_1)\in h$ and $(b,y_2)\in h$ we have $y_1 = y_2$
by \cref{pair_eq_iff}.
We have $h$ is a function by \cref{rightunique,relation}.
Therefore $\dom{h} = B$ by
\cref{dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
For all $y$ such that $y\in\ran{h}$ we have $y\in C$
by \cref{ran_iff,pair_eq_iff,singleton_intro,times_tuple_intro,real_lt_subst_right}.
We have $\ran{h}\subseteq C$ by \cref{subseteq}.
For all $y$ such that $y\in C$ we have $y\in\ran{h}$
by \cref{real_lt_subst_left,times,singleton_elim,pair_eq_iff,ran_intro}.
We have $C\subseteq\ran{h}$ by \cref{subseteq}.
Hence $\ran{h} = C$ by \cref{subseteq_antisymmetric}.
Therefore $h\in\funs{B}{C}$ by \cref{function_apply_iff,ran_intro,subseteq,funs_intro,subseteq_antisymmetric}.
For all $y\in C$ there exists $b\in B$ such that $h(b) = y$.
We have $h\in\surj{B}{C}$ and $h$ is injective
by \cref{surj,function_apply_iff,pair_eq_iff,injective_function}.
Hence $h$ is a bijection from $B$ to $C$ by \cref{surj,bijections}.
Therefore $C$ is finite by \cref{finite_bijection}.
\end{subproof}
Hence $\unions{H}$ is finite by \cref{finite_union_of_finite_family}.
Show that for all $p$ such that $p\in A\times B$ we have $p\in\unions{H}$.
\begin{subproof}
Follows by \cref{times,surj,function_apply_intro,img_iff,function_apply_iff,singleton_intro,times_tuple_intro,real_lt_subst_left,real_lt_subst_right,unions_iff}.
\end{subproof}
We have $A\times B\subseteq\unions{H}$ by \cref{subseteq}.
Show that for all $p$ such that $p\in\unions{H}$ we have $p\in A\times B$.
\begin{subproof}
Follows by \cref{unions_iff,img_iff,function_apply_intro,real_lt_subst_right,times,singleton_elim,bijections_to_funs,funs_type_apply,subseteq,real_lt_subst_left,times_tuple_intro}.
\end{subproof}
We have $\unions{H}\subseteq A\times B$ by \cref{subseteq}.
Thus $\unions{H} = A\times B$ by \cref{subseteq_antisymmetric}.
Therefore $A\times B$ is finite.
\end{byCase}
\end{proof}
Suppose $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Suppose $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{r}$.
Then $\{(1,a)\}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{1}}{\initialSegment{r}}$.
LaTeX source
\begin{lemma}
\label{singleton_initial_segment_function}
Suppose $r\in\naturalsPlus$.
Suppose $a\in\initialSegment{r}$.
Then $\{(1,a)\}\in\funs{\initialSegment{1}}{\initialSegment{r}}$.
\end{lemma}
Proof
$\{(1,a)\}$ is a function by Axiom 6, Definition 12, Definition 51, Proposition 21.
Claim: $\dom{\{(1,a)\}} = \initialSegment{1}$.
Follows by Axiom 6, Axiom 41, Axiom 42, Axiom 43, Definition 1, Definition 84, Lemma 25, Proposition 3, Proposition 20, Proposition 21, Proposition 199, Proposition 200.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{\{(1,a)\}}$ we have $\apply{\{(1,a)\}}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{r}$.
Follows by Axiom 6, Definition 12, Definition 51, Lemma 82, Proposition 20, Proposition 21, Proposition 199, Proposition 346.
Hence $\{(1,a)\}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{1}}{\initialSegment{r}}$ by Proposition 358.
LaTeX source
\begin{proof}
$\{(1,a)\}$ is a function by \cref{singleton_elim,pair_eq_iff,rightunique,relation}.
Show that $\dom{\{(1,a)\}} = \initialSegment{1}$.
\begin{subproof}
Follows by \cref{dom_iff,singleton_elim,pair_eq_iff,real_one_in_naturals,initial_segment_naturalsplus,real_naturals_subset_reals,subseteq,real_one_leq_naturalsplus,real_leq_antisym,singleton_intro,dom_intro,subseteq_antisymmetric}.
\end{subproof}
Show that for all $x$ such that $x\in\dom{\{(1,a)\}}$ we have $\apply{\{(1,a)\}}{x}\in\initialSegment{r}$.
\begin{subproof}
Follows by \cref{dom_iff,singleton_elim,pair_eq_iff,singleton_intro,function_apply_intro,rightunique,relation,real_lt_subst_left}.
\end{subproof}
Hence $\{(1,a)\}\in\funs{\initialSegment{1}}{\initialSegment{r}}$ by \cref{funs_intro}.
\end{proof}
Suppose $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Suppose $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Then $\funs{\initialSegment{n}}{\initialSegment{m}}$ is finite.
LaTeX source
\begin{lemma}
\label{finite_initial_segment_function_space}
Suppose $n\in\naturalsPlus$.
Suppose $m\in\naturalsPlus$.
Then $\funs{\initialSegment{n}}{\initialSegment{m}}$ is finite.
\end{lemma}
Proof
Let $A = \{k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \text{for all $m\in\naturalsPlus$ we have $\funs{\initialSegment{k}}{\initialSegment{m}}$ is finite}\}$.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1.
Claim: For all $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $\funs{\initialSegment{1}}{\initialSegment{r}}$ is finite.
Fix $r$ such that $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $g = \{(a,\{(1,a)\}) \mid a\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{r}\}$.
For all $a,b_1,b_2$ such that $(a,b_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ and $(a,b_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ we have $b_1 = b_2$ by Axiom 6.
Hence $g$ is a function by Definition 12, Definition 51.
For all $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ we have $g(a)\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{1}}{\initialSegment{r}}$ by Axiom 6, Definition 1, Lemma 82, Lemma 839, Proposition 199, Proposition 346.
We have $\dom{g} = \initialSegment{r}$ by Axiom 6, Definition 1, Proposition 3, Proposition 199, Proposition 200.
Hence $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{r}}{\funs{\initialSegment{1}}{\initialSegment{r}}}$ by Proposition 358.
For all $a_1,a_2$ such that $a_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ and $a_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ and $g(a_1) = g(a_2)$ we have $a_1 = a_2$ by Axiom 6, Definition 1, Lemma 82, Lemma 83, Proposition 22, Proposition 346.
Claim: $g$ is injective.
Follows by Proposition 356, Proposition 386.
Claim: For all $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{1}}{\initialSegment{r}}$ there exists $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{r}$ such that $g(a) = u$.
Fix $u$ such that $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{1}}{\initialSegment{r}}$.
Let $a = u(1)$.
We have $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{r}$ by Axiom 42, Definition 84, Proposition 361.
We have $g(a) = \{(1,a)\}$ by Definition 1, Proposition 346.
$u$ is a function and $\dom{u} = \initialSegment{1}$ by Proposition 359.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{1}$ we have $x = 1$ by Axiom 41, Axiom 42, Axiom 43, Definition 1, Definition 84, Lemma 25.
Hence for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{1}$ we have $\apply{\{(1,a)\}}{x} = u(x)$ by Axiom 6, Lemma 82, Lemma 83, Lemma 839, Proposition 20, Proposition 346, Proposition 355, Proposition 356, Proposition 359.
Hence $\{(1,a)\} = u$ by Lemma 438, Lemma 839, Proposition 355, Proposition 356, Proposition 359.
Follows by definition.
Claim: $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\surj{\initialSegment{r}}{\funs{\initialSegment{1}}{\initialSegment{r}}}$.
Follows by Definition 57.
Hence $g$ is a bijection from $\initialSegment{r}$ to $\funs{\initialSegment{1}}{\initialSegment{r}}$ by Definition 57, Definition 58.
Therefore $\funs{\initialSegment{1}}{\initialSegment{r}}$ is finite by Lemma 150, Lemma 208.
Therefore $1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by 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$.
Claim: For all $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $\funs{\initialSegment{k + 1}}{\initialSegment{r}}$ is finite.
Fix $r$ such that $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
We have $\funs{\initialSegment{k}}{\initialSegment{r}}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{r}$ is finite by Definition 1, Lemma 208, Lemma 838.
Let $g = \{(p,\fst{p}\union\{(k + 1,\snd{p})\}) \mid p\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k}}{\initialSegment{r}}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{r}\}$.
For all $p,u_1,u_2$ such that $(p,u_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ and $(p,u_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ we have $u_1 = u_2$ by Axiom 6.
Hence $g$ is a function by Definition 12, Definition 51.
Claim: For all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ we have $g(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k + 1}}{\initialSegment{r}}$.
Fix $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$.
Take $u$ such that $(p,u)\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ by Proposition 199.
We have $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k}}{\initialSegment{r}}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{r}$ by Axiom 6, Definition 1.
Take $v,b$ such that $p = (v,b)$ by Proposition 121.
We have $v\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k}}{\initialSegment{r}}$ and $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{r}$ by Proposition 114.
Hence $(p,\fst{p}\union\{(k + 1,\snd{p})\})\class{latex-symbol-tip latex-symbol-id-in}{\in} g$ by Definition 1.
We have $g(p) = v\union\{(k + 1,b)\}$ by Axiom 10, Axiom 11, Proposition 346.
Let $s = \{(k + 1,b)\}$.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{v}\inter\dom{s}$ we have $v(x) = s(x)$ by Axiom 6, Axiom 13, Axiom 36, Axiom 39, Axiom 41, Axiom 42, Axiom 45, Definition 1, Definition 84, Lemma 83, Lemma 399, Proposition 21, Proposition 62, Proposition 63, Proposition 199, Proposition 359.
Hence $v\union s$ is a function by Axiom 6, Definition 12, Definition 51, Lemma 170, Proposition 21, Proposition 356.
We have $\dom{s} = \{k + 1\}$ by Axiom 6, Definition 1, Proposition 3, Proposition 20, Proposition 21, Proposition 199, Proposition 200.
Hence $\dom{(v\union s)} = \initialSegment{k}\union\{k + 1\}$ by Lemma 83, Proposition 205, Proposition 359.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}\union\{k + 1\}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k + 1}$ by Axiom 5, Axiom 13, Axiom 16, Axiom 17, Axiom 36, Axiom 37, Axiom 41, Axiom 42, Axiom 45, Definition 1, Definition 84, Lemma 82, Proposition 21, Proposition 462.
We have $\dom{(v\union s)}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\initialSegment{k + 1}$ by Definition 1.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k + 1}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{(v\union s)}$ by Axiom 5, Definition 84, Lemma 29, Lemma 83, Proposition 20, Proposition 205, Proposition 359.
We have $\initialSegment{k + 1}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{(v\union s)}$ by Definition 1.
Thus $\dom{(v\union s)} = \initialSegment{k + 1}$ by Definition 1, Proposition 3.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{(v\union s)}$ we have $(v\union s)(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{r}$ by Axiom 5, Axiom 6, Lemma 82, Proposition 20, Proposition 21, Proposition 199, Proposition 205, Proposition 346, Proposition 348, Proposition 359, Proposition 361.
Hence $v\union s\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k + 1}}{\initialSegment{r}}$ by Proposition 358.
Therefore $g(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k + 1}}{\initialSegment{r}}$ by Lemma 82.
Hence $\dom{g} = \funs{\initialSegment{k}}{\initialSegment{r}}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{r}$ by Axiom 6, Definition 1, Proposition 3, Proposition 199, Proposition 200.
Therefore $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\funs{\initialSegment{k}}{\initialSegment{r}}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{r}}{\funs{\initialSegment{k + 1}}{\initialSegment{r}}}$ by Proposition 358.
We have $g$ is a function and $g$ is a relation and $\dom{g} = \funs{\initialSegment{k}}{\initialSegment{r}}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{r}$ by Definition 55, Proposition 355, Proposition 356.
Claim: For all $p_1,p_2$ such that $p_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k}}{\initialSegment{r}}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{r}$ and $p_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k}}{\initialSegment{r}}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{r}$ and $g(p_1) = g(p_2)$ we have $p_1 = p_2$.
Fix $p_1$.
Fix $p_2$ such that $p_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k}}{\initialSegment{r}}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{r}$ and $p_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k}}{\initialSegment{r}}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{r}$ and $g(p_1) = g(p_2)$.
Take $v_1,b_1$ such that $p_1 = (v_1,b_1)$ by Proposition 121.
Take $v_2,b_2$ such that $p_2 = (v_2,b_2)$ by Proposition 121.
Hence $v_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k}}{\initialSegment{r}}$ and $b_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{r}$ and $v_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k}}{\initialSegment{r}}$ and $b_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{r}$ by Proposition 114.
We have $g(p_1) = v_1\union\{(k + 1,b_1)\}$ and $g(p_2) = v_2\union\{(k + 1,b_2)\}$ by Axiom 10, Axiom 11, Proposition 346.
Hence $v_1\union\{(k + 1,b_1)\} = v_2\union\{(k + 1,b_2)\}$ by Lemma 82, Lemma 83.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}$ we have $v_1(x) = v_2(x)$.
Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}$.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{v_1}$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{v_2}$ by Proposition 359.
$v_1$ is a function and $v_1$ is a relation and $v_1$ is right-unique by Proposition 345, Proposition 355, Proposition 356.
$v_2$ is a function and $v_2$ is a relation and $v_2$ is right-unique by Proposition 345, Proposition 355, Proposition 356.
Let $u_2 = v_2\union\{(k + 1,b_2)\}$.
We have $u_2$ is a function and $u_2$ is a relation and $u_2$ is right-unique by Lemma 83, Proposition 345, Proposition 355, Proposition 356, Proposition 361.
We have $(x,v_1(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} v_1$ by Proposition 348.
Hence $(x,v_1(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} v_1\union\{(k + 1,b_1)\}$ by Axiom 5.
We have $(x,v_1(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} u_2$ by Lemma 82, Lemma 83.
Hence $u_2(x) = v_1(x)$ by Proposition 346.
We have $(x,v_2(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} v_2$ by Proposition 348.
Thus $(x,v_2(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} u_2$ by Axiom 5.
Therefore $u_2(x) = v_2(x)$ by Proposition 346.
Thus $v_1(x) = v_2(x)$ by Lemma 82, Lemma 83.
Hence $v_1 = v_2$ by Lemma 438.
We have $(k + 1,b_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} v_2\union\{(k + 1,b_2)\}$ by Axiom 5, Lemma 82, Proposition 20.
Claim: $(k + 1,b_1)\class{latex-symbol-tip latex-symbol-id-notin}{\notin} v_2$.
Suppose not.
We have $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{v_2}$ by Proposition 199.
Hence $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}$ by Proposition 359.
$k + 1 < k$ or $k + 1 = k$ by Definition 84.
$k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Definition 1.
We have $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.
$k < k + 1$ by Axiom 16, Axiom 17, Axiom 37, Lemma 82, Proposition 462.
Hence $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
LaTeX source
\begin{byCase}
\caseOf{$k + 1 < k$.}
Contradiction by \cref{real_lt_irreflexive,real_lt_trans}.
\caseOf{$k + 1 = k$.}
We have $k < k$ by \cref{real_lt_subst_left}.
Contradiction by \cref{real_lt_irreflexive}.
\end{byCase}
$(k + 1,b_1)\class{latex-symbol-tip latex-symbol-id-in}{\in}\{(k + 1,b_2)\}$ by Axiom 5.
Hence $(k + 1,b_1) = (k + 1,b_2)$ by Proposition 21.
Hence $b_1 = b_2$ by Axiom 6.
Thus $p_1 = p_2$ by Axiom 6.
Claim: $g$ is injective.
Follows by Definition 55, Proposition 386.
Claim: For all $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k + 1}}{\initialSegment{r}}$ there exists $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k}}{\initialSegment{r}}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{r}$ such that $g(p) = u$.
Fix $u$ such that $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k + 1}}{\initialSegment{r}}$.
Let $v = \restrl{u}{\initialSegment{k}}$.
$k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Definition 1.
We have $u$ is a function and $\dom{u} = \initialSegment{k + 1}$ by Proposition 359.
$v$ is a function by Proposition 383.
$\dom{v} = \initialSegment{k}$ by Definition 1, Lemma 121, Proposition 3, Proposition 265, Proposition 269.
Therefore $v\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k}}{\initialSegment{r}}$ by Definition 1, Lemma 121, Proposition 264, Proposition 358, Proposition 359, Proposition 384.
Let $b = u(k + 1)$.
We have $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{r}$ by Axiom 45, Definition 84, Proposition 361.
Let $p = (v,b)$.
We have $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k}}{\initialSegment{r}}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{r}$ by Proposition 115.
We have $g(p) = v\union\{(k + 1,b)\}$ by Axiom 10, Axiom 11, Proposition 346.
$v\union\{(k + 1,b)\}$ is a function and $\dom{(v\union\{(k + 1,b)\})} = \initialSegment{k + 1}$ by Lemma 82, Proposition 359, Proposition 361.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k + 1}$ we have $(v\union\{(k + 1,b)\})(x) = u(x)$ by Axiom 5, Definition 1, Definition 84, Lemma 29, Lemma 82, Lemma 83, Lemma 121, Proposition 20, Proposition 346, Proposition 348, Proposition 359, Proposition 384.
Hence $v\union\{(k + 1,b)\} = u$ by Lemma 438.
Follows by definition.
Claim: $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\surj{\funs{\initialSegment{k}}{\initialSegment{r}}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{r}}{\funs{\initialSegment{k + 1}}{\initialSegment{r}}}$.
Follows by Definition 57.
Hence $g$ is a bijection from $\funs{\initialSegment{k}}{\initialSegment{r}}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{r}$ to $\funs{\initialSegment{k + 1}}{\initialSegment{r}}$ by Definition 57, Definition 58.
Therefore $\funs{\initialSegment{k + 1}}{\initialSegment{r}}$ is finite by Lemma 150.
Therefore $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 45, Definition 1.
Hence $n\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 445.
Therefore $\funs{\initialSegment{n}}{\initialSegment{m}}$ is finite by Definition 1.
LaTeX source
\begin{proof}
Let $A = \{k\in\naturalsPlus \mid \text{for all $m\in\naturalsPlus$ we have $\funs{\initialSegment{k}}{\initialSegment{m}}$ is finite}\}$.
$A\subseteq\naturalsPlus$ by \cref{subseteq}.
Show that for all $r\in\naturalsPlus$ we have $\funs{\initialSegment{1}}{\initialSegment{r}}$ is finite.
\begin{subproof}
Fix $r$ such that $r\in\naturalsPlus$.
Let $g = \{(a,\{(1,a)\}) \mid a\in\initialSegment{r}\}$.
For all $a,b_1,b_2$ such that $(a,b_1)\in g$ and $(a,b_2)\in g$ we have $b_1 = b_2$
by \cref{pair_eq_iff}.
Hence $g$ is a function by \cref{rightunique,relation}.
For all $a$ such that $a\in\dom{g}$ we have $g(a)\in\funs{\initialSegment{1}}{\initialSegment{r}}$
by \cref{dom_iff,pair_eq_iff,subseteq,function_apply_intro,singleton_initial_segment_function,real_lt_subst_left}.
We have $\dom{g} = \initialSegment{r}$ by
\cref{dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
Hence $g\in\funs{\initialSegment{r}}{\funs{\initialSegment{1}}{\initialSegment{r}}}$ by \cref{funs_intro}.
For all $a_1,a_2$ such that $a_1\in\dom{g}$ and $a_2\in\dom{g}$ and $g(a_1) = g(a_2)$ we have $a_1 = a_2$
by \cref{subseteq,function_apply_intro,real_lt_subst_left,real_lt_subst_right,singleton_iff,pair_eq_iff}.
Show that $g$ is injective.
\begin{subproof}
Follows by \cref{injective_function,funs_is_function}.
\end{subproof}
Show that for all $u\in\funs{\initialSegment{1}}{\initialSegment{r}}$ there exists $a\in\initialSegment{r}$ such that $g(a) = u$.
\begin{subproof}
Fix $u$ such that $u\in\funs{\initialSegment{1}}{\initialSegment{r}}$.
Let $a = u(1)$.
We have $a\in\initialSegment{r}$ by \cref{real_one_in_naturals,initial_segment_naturalsplus,funs_type_apply}.
We have $g(a) = \{(1,a)\}$ by \cref{subseteq,function_apply_intro}.
$u$ is a function and $\dom{u} = \initialSegment{1}$ by \cref{funs_elim}.
For all $x\in\initialSegment{1}$ we have $x = 1$
by \cref{initial_segment_naturalsplus,real_one_in_naturals,real_naturals_subset_reals,subseteq,real_one_leq_naturalsplus,real_leq_antisym}.
Hence for all $x\in\initialSegment{1}$ we have $\apply{\{(1,a)\}}{x} = u(x)$
by \cref{singleton_initial_segment_function,funs_is_function,funs_is_relation,funs_elim,singleton_intro,pair_eq_iff,function_apply_intro,real_lt_subst_left,real_lt_subst_right}.
Hence $\{(1,a)\} = u$
by \cref{singleton_initial_segment_function,funs_is_function,funs_is_relation,funs_elim,functions_eq_iff}.
Follows by definition.
\end{subproof}
Show that $g\in\surj{\initialSegment{r}}{\funs{\initialSegment{1}}{\initialSegment{r}}}$.
\begin{subproof}
Follows by \cref{surj}.
\end{subproof}
Hence $g$ is a bijection from $\initialSegment{r}$ to $\funs{\initialSegment{1}}{\initialSegment{r}}$ by \cref{bijections,surj}.
Therefore $\funs{\initialSegment{1}}{\initialSegment{r}}$ is finite by \cref{initial_segment_finite,finite_bijection}.
\end{subproof}
Therefore $1\in A$ by \cref{real_one_in_naturals,subseteq}.
Show that for all $k\in A$ we have $k + 1\in A$.
\begin{subproof}
Fix $k$ such that $k\in A$.
Show that for all $r\in\naturalsPlus$ we have $\funs{\initialSegment{k + 1}}{\initialSegment{r}}$ is finite.
\begin{subproof}
Fix $r$ such that $r\in\naturalsPlus$.
We have $\funs{\initialSegment{k}}{\initialSegment{r}}\times\initialSegment{r}$ is finite
by \cref{subseteq,initial_segment_finite,finite_cartesian_product}.
Let $g = \{(p,\fst{p}\union\{(k + 1,\snd{p})\}) \mid p\in\funs{\initialSegment{k}}{\initialSegment{r}}\times\initialSegment{r}\}$.
For all $p,u_1,u_2$ such that $(p,u_1)\in g$ and $(p,u_2)\in g$ we have $u_1 = u_2$
by \cref{pair_eq_iff}.
Hence $g$ is a function by \cref{rightunique,relation}.
Show that for all $p$ such that $p\in\dom{g}$ we have $g(p)\in\funs{\initialSegment{k + 1}}{\initialSegment{r}}$.
\begin{subproof}
Fix $p$ such that $p\in\dom{g}$.
Take $u$ such that $(p,u)\in g$ by \cref{dom_iff}.
We have $p\in\funs{\initialSegment{k}}{\initialSegment{r}}\times\initialSegment{r}$ by \cref{pair_eq_iff,subseteq}.
Take $v,b$ such that $p = (v,b)$ by \cref{times_elem_is_tuple}.
We have $v\in\funs{\initialSegment{k}}{\initialSegment{r}}$ and $b\in\initialSegment{r}$ by \cref{times_tuple_elim}.
Hence $(p,\fst{p}\union\{(k + 1,\snd{p})\})\in g$ by \cref{subseteq}.
We have $g(p) = v\union\{(k + 1,b)\}$ by \cref{fst_eq,snd_eq,function_apply_intro}.
Let $s = \{(k + 1,b)\}$.
For all $x$ such that $x\in\dom{v}\inter\dom{s}$ we have $v(x) = s(x)$
by \cref{inter_elim_left,inter_elim_right,funs_elim,dom_iff,singleton_elim,pair_eq_iff,initial_segment_naturalsplus,real_naturals_subset_reals,subseteq,real_naturals_closed_succ,real_add_closed,real_one_in_naturals,real_naturals_lt_succ_local,real_lt_subst_right,real_lt_trans,real_lt_irreflexive}.
Hence $v\union s$ is a function by \cref{funs_is_function,singleton_elim,pair_eq_iff,rightunique,relation,union_compatible_functions}.
We have $\dom{s} = \{k + 1\}$
by \cref{subseteq_antisymmetric,subseteq,dom_iff,singleton_elim,pair_eq_iff,dom_intro,singleton_intro}.
Hence $\dom{(v\union s)} = \initialSegment{k}\union\{k + 1\}$ by \cref{dom_union,funs_elim,real_lt_subst_right}.
For all $x$ such that $x\in\initialSegment{k}\union\{k + 1\}$ we have $x\in\initialSegment{k + 1}$
by \cref{subseteq,real_naturals_closed_succ,union_iff,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,singleton_elim}.
We have $\dom{(v\union s)}\subseteq\initialSegment{k + 1}$ by \cref{subseteq}.
For all $x$ such that $x\in\initialSegment{k + 1}$ we have $x\in\dom{(v\union s)}$
by \cref{singleton_intro,real_lt_subst_right,union_iff,real_naturals_leq_succ_elim,initial_segment_naturalsplus,funs_elim,dom_union}.
We have $\initialSegment{k + 1}\subseteq\dom{(v\union s)}$ by \cref{subseteq}.
Thus $\dom{(v\union s)} = \initialSegment{k + 1}$ by \cref{subseteq_antisymmetric,subseteq}.
For all $x$ such that $x\in\dom{(v\union s)}$ we have $(v\union s)(x)\in\initialSegment{r}$
by \cref{dom_union,union_iff,funs_elim,function_apply_elim,function_apply_intro,funs_type_apply,real_lt_subst_left,dom_iff,singleton_elim,pair_eq_iff,singleton_intro}.
Hence $v\union s\in\funs{\initialSegment{k + 1}}{\initialSegment{r}}$ by \cref{funs_intro}.
Therefore $g(p)\in\funs{\initialSegment{k + 1}}{\initialSegment{r}}$ by \cref{real_lt_subst_left}.
\end{subproof}
Hence $\dom{g} = \funs{\initialSegment{k}}{\initialSegment{r}}\times\initialSegment{r}$ by
\cref{dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
Therefore $g\in\funs{\funs{\initialSegment{k}}{\initialSegment{r}}\times\initialSegment{r}}{\funs{\initialSegment{k + 1}}{\initialSegment{r}}}$ by \cref{funs_intro}.
We have $g$ is a function and $g$ is a relation and
$\dom{g} = \funs{\initialSegment{k}}{\initialSegment{r}}\times\initialSegment{r}$
by \cref{funs_is_function,funs_is_relation,funs}.
Show that for all $p_1,p_2$ such that $p_1\in\funs{\initialSegment{k}}{\initialSegment{r}}\times\initialSegment{r}$ and
$p_2\in\funs{\initialSegment{k}}{\initialSegment{r}}\times\initialSegment{r}$ and
$g(p_1) = g(p_2)$ we have $p_1 = p_2$.
\begin{subproof}
Fix $p_1$.
Fix $p_2$ such that $p_1\in\funs{\initialSegment{k}}{\initialSegment{r}}\times\initialSegment{r}$ and
$p_2\in\funs{\initialSegment{k}}{\initialSegment{r}}\times\initialSegment{r}$ and
$g(p_1) = g(p_2)$.
Take $v_1,b_1$ such that $p_1 = (v_1,b_1)$ by \cref{times_elem_is_tuple}.
Take $v_2,b_2$ such that $p_2 = (v_2,b_2)$ by \cref{times_elem_is_tuple}.
Hence $v_1\in\funs{\initialSegment{k}}{\initialSegment{r}}$ and $b_1\in\initialSegment{r}$ and
$v_2\in\funs{\initialSegment{k}}{\initialSegment{r}}$ and $b_2\in\initialSegment{r}$ by \cref{times_tuple_elim}.
We have $g(p_1) = v_1\union\{(k + 1,b_1)\}$ and $g(p_2) = v_2\union\{(k + 1,b_2)\}$
by \cref{fst_eq,snd_eq,function_apply_intro}.
Hence $v_1\union\{(k + 1,b_1)\} = v_2\union\{(k + 1,b_2)\}$ by \cref{real_lt_subst_left,real_lt_subst_right}.
Show that for all $x\in\initialSegment{k}$ we have $v_1(x) = v_2(x)$.
\begin{subproof}
Fix $x$ such that $x\in\initialSegment{k}$.
We have $x\in\dom{v_1}$ and $x\in\dom{v_2}$ by \cref{funs_elim}.
$v_1$ is a function and $v_1$ is a relation and $v_1$ is right-unique
by \cref{funs_is_function,funs_is_relation,function_rightunique}.
$v_2$ is a function and $v_2$ is a relation and $v_2$ is right-unique
by \cref{funs_is_function,funs_is_relation,function_rightunique}.
Let $u_2 = v_2\union\{(k + 1,b_2)\}$.
We have $u_2$ is a function and $u_2$ is a relation and $u_2$ is right-unique
by \cref{real_lt_subst_right,funs_type_apply,funs_is_function,funs_is_relation,function_rightunique}.
We have $(x,v_1(x))\in v_1$ by \cref{function_apply_elim}.
Hence $(x,v_1(x))\in v_1\union\{(k + 1,b_1)\}$ by \cref{union_iff}.
We have $(x,v_1(x))\in u_2$ by \cref{real_lt_subst_left,real_lt_subst_right}.
Hence $u_2(x) = v_1(x)$ by \cref{function_apply_intro}.
We have $(x,v_2(x))\in v_2$ by \cref{function_apply_elim}.
Thus $(x,v_2(x))\in u_2$ by \cref{union_iff}.
Therefore $u_2(x) = v_2(x)$ by \cref{function_apply_intro}.
Thus $v_1(x) = v_2(x)$ by \cref{real_lt_subst_left,real_lt_subst_right}.
\end{subproof}
Hence $v_1 = v_2$ by \cref{functions_eq_iff}.
We have $(k + 1,b_1)\in v_2\union\{(k + 1,b_2)\}$ by \cref{union_iff,singleton_intro,real_lt_subst_left}.
Show that $(k + 1,b_1)\notin v_2$.
\begin{subproof}
Suppose not.
We have $k + 1\in\dom{v_2}$ by \cref{dom_iff}.
Hence $k + 1\in\initialSegment{k}$ by \cref{funs_elim}.
$k + 1 < k$ or $k + 1 = k$ by \cref{initial_segment_naturalsplus}.
$k\in\naturalsPlus$ by \cref{subseteq}.
We have $k\in\reals$ and $1\in\reals$ and $0\in\reals$
by \cref{real_naturals_subset_reals,subseteq,real_one_in_naturals,real_add_ident}.
$k < k + 1$ by \cref{real_zero_lt_one,real_lt_add,real_add_ident,real_add_comm,real_lt_subst_left}.
Hence $k + 1\in\reals$ by \cref{real_add_closed}.
\begin{byCase}
\caseOf{$k + 1 < k$.}
Contradiction by \cref{real_lt_irreflexive,real_lt_trans}.
\caseOf{$k + 1 = k$.}
We have $k < k$ by \cref{real_lt_subst_left}.
Contradiction by \cref{real_lt_irreflexive}.
\end{byCase}
\end{subproof}
$(k + 1,b_1)\in\{(k + 1,b_2)\}$ by \cref{union_iff}.
Hence $(k + 1,b_1) = (k + 1,b_2)$ by \cref{singleton_elim}.
Hence $b_1 = b_2$ by \cref{pair_eq_iff}.
Thus $p_1 = p_2$ by \cref{pair_eq_iff}.
\end{subproof}
Show that $g$ is injective.
\begin{subproof}
Follows by \cref{injective_function,funs}.
\end{subproof}
Show that for all $u\in\funs{\initialSegment{k + 1}}{\initialSegment{r}}$ there exists $p\in\funs{\initialSegment{k}}{\initialSegment{r}}\times\initialSegment{r}$ such that $g(p) = u$.
\begin{subproof}
Fix $u$ such that $u\in\funs{\initialSegment{k + 1}}{\initialSegment{r}}$.
Let $v = \restrl{u}{\initialSegment{k}}$.
$k\in\naturalsPlus$ by \cref{subseteq}.
We have $u$ is a function and $\dom{u} = \initialSegment{k + 1}$ by \cref{funs_elim}.
$v$ is a function by \cref{restrl_of_function_is_function}.
$\dom{v} = \initialSegment{k}$
by \cref{initial_segment_subset_succ,subseteq,elem_dom_and_restr_implies_elem_of_restr,restrl_dom,subseteq_antisymmetric}.
Therefore $v\in\funs{\initialSegment{k}}{\initialSegment{r}}$
by \cref{funs_elim,initial_segment_subset_succ,subseteq,restrl_of_function_apply,funs_intro,elem_dom_of_restrl_implies_elem_dom_and_restr}.
Let $b = u(k + 1)$.
We have $b\in\initialSegment{r}$ by \cref{real_naturals_closed_succ,initial_segment_naturalsplus,funs_type_apply}.
Let $p = (v,b)$.
We have $p\in\funs{\initialSegment{k}}{\initialSegment{r}}\times\initialSegment{r}$ by \cref{times_tuple_intro}.
We have $g(p) = v\union\{(k + 1,b)\}$ by \cref{fst_eq,snd_eq,function_apply_intro}.
$v\union\{(k + 1,b)\}$ is a function and $\dom{(v\union\{(k + 1,b)\})} = \initialSegment{k + 1}$
by \cref{funs_type_apply,real_lt_subst_left,funs_elim}.
For all $x\in\initialSegment{k + 1}$ we have $(v\union\{(k + 1,b)\})(x) = u(x)$
by \cref{union_iff,singleton_intro,function_apply_intro,real_lt_subst_left,real_naturals_leq_succ_elim,initial_segment_naturalsplus,funs_elim,function_apply_elim,initial_segment_subset_succ,subseteq,real_lt_subst_right,restrl_of_function_apply}.
Hence $v\union\{(k + 1,b)\} = u$ by \cref{functions_eq_iff}.
Follows by definition.
\end{subproof}
Show that $g\in\surj{\funs{\initialSegment{k}}{\initialSegment{r}}\times\initialSegment{r}}{\funs{\initialSegment{k + 1}}{\initialSegment{r}}}$.
\begin{subproof}
Follows by \cref{surj}.
\end{subproof}
Hence $g$ is a bijection from $\funs{\initialSegment{k}}{\initialSegment{r}}\times\initialSegment{r}$ to $\funs{\initialSegment{k + 1}}{\initialSegment{r}}$
by \cref{bijections,surj}.
Therefore $\funs{\initialSegment{k + 1}}{\initialSegment{r}}$ is finite by \cref{finite_bijection}.
\end{subproof}
Therefore $k + 1\in A$ by \cref{subseteq,real_naturals_closed_succ}.
\end{subproof}
Hence $n\in A$ by \cref{real_naturals_induction}.
Therefore $\funs{\initialSegment{n}}{\initialSegment{m}}$ is finite by \cref{subseteq}.
\end{proof}
Suppose $A$ is finite.
Suppose $B$ is finite.
Then $\funs{A}{B}$ is finite.
LaTeX source
\begin{lemma}
\label{finite_function_space}
Suppose $A$ is finite.
Suppose $B$ is finite.
Then $\funs{A}{B}$ is finite.
\end{lemma}
Proof
For all $f$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{A}{B}$ we have $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\{\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}\}$.
We have $\funs{A}{B}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\{\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}\}$ by Definition 1.
Therefore $\funs{A}{B}$ is finite by Lemma 40, Lemma 44, Proposition 16, Proposition 25.
Take $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that there exists a bijection from $\initialSegment{n}$ to $A$ by Definition 89.
Take $f$ such that $f$ is a bijection from $\initialSegment{n}$ to $A$.
Claim: $\funs{A}{B}$ is empty.
Claim: For all $u$ we have $u\class{latex-symbol-tip latex-symbol-id-notin}{\notin}\funs{A}{B}$.
Fix $u$.
Suppose not.
Then $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{A}{B}$.
Take $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 10.
Then $u(a)\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Proposition 361.
Contradiction.
Thus $\funs{A}{B}$ is finite by Definition 89.
Take $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that there exists a bijection from $\initialSegment{m}$ to $B$ by Definition 89.
Take $e$ such that $e$ is a bijection from $\initialSegment{m}$ to $B$.
Let $R = \funs{\initialSegment{n}}{\initialSegment{m}}$.
We have $R$ is finite by Lemma 840.
$\converse{f}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{A}{\initialSegment{n}}$ and $\converse{e}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{B}{\initialSegment{m}}$ by Proposition 396.
$\converse{f}$ is a function and $\dom{\converse{f}} = A$ and $\converse{e}$ is a function and $\dom{\converse{e}} = B$ by Proposition 359.
$f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{A}$ and $e\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{m}}{B}$ by Proposition 389.
Let $q = \{(u,e\class{latex-symbol-tip latex-symbol-id-circ}{\circ} (u\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \converse{f})) \mid u\class{latex-symbol-tip latex-symbol-id-in}{\in} R\}$.
For all $u,v_1,v_2$ such that $(u,v_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} q$ and $(u,v_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} q$ we have $v_1 = v_2$ by Axiom 6.
Hence $q$ is a function on $R$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
Let $H = \img{q}{R}$.
Hence $H$ is finite by Lemma 192.
Claim: $\funs{A}{B}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} H$.
Claim: For all $v$ such that $v\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{A}{B}$ we have $v\class{latex-symbol-tip latex-symbol-id-in}{\in} H$.
Fix $v$ such that $v\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{A}{B}$.
Let $u = \converse{e}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} (v\class{latex-symbol-tip latex-symbol-id-circ}{\circ} f)$.
We have $v\class{latex-symbol-tip latex-symbol-id-circ}{\circ} f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{B}$ by Proposition 382.
Hence $u\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Proposition 382.
We have $q(u) = e\class{latex-symbol-tip latex-symbol-id-circ}{\circ} (u\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \converse{f})$ by Proposition 346.
Claim: $e\class{latex-symbol-tip latex-symbol-id-circ}{\circ} (u\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \converse{f}) = v$.
We have $e\class{latex-symbol-tip latex-symbol-id-circ}{\circ} (u\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \converse{f})\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{A}{B}$ by Proposition 382.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $\apply{e\class{latex-symbol-tip latex-symbol-id-circ}{\circ} (u\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \converse{f})}{x} = v(x)$.
Fix $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Let $x_0 = (\converse{f})(x)$.
$x_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ by Proposition 361.
$(x,x_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\converse{f}$ by Proposition 348.
Hence $(x_0,x)\class{latex-symbol-tip latex-symbol-id-in}{\in} f$ by Proposition 186.
$f(x_0) = x$ by Proposition 346, Proposition 356, Proposition 389.
$v(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Proposition 361.
Let $y_0 = (\converse{e})(v(x))$.
$y_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}$ by Proposition 361.
$(v(x),y_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\converse{e}$ by Proposition 348.
Hence $(y_0,v(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} e$ by Proposition 186.
$e(y_0) = v(x)$ by Proposition 346, Proposition 356, Proposition 389.
We have $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\initialSegment{m}}$ by Definition 1.
$u$ is a function and $\dom{u} = \initialSegment{n}$ by Proposition 359.
$v$ is a function and $\dom{v} = A$ by Proposition 359.
$f$ is a function and $\dom{f} = \initialSegment{n}$ by Proposition 359, Proposition 389.
$e$ is a function and $\dom{e} = \initialSegment{m}$ by Proposition 359, Proposition 389.
We have $u\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\converse{f}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{A}{\initialSegment{m}}$ by Proposition 382.
$(x_0,u(x_0))\class{latex-symbol-tip latex-symbol-id-in}{\in} u$ by Proposition 348.
$(x,u(x_0))\class{latex-symbol-tip latex-symbol-id-in}{\in} u\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\converse{f}$ by Proposition 255.
$\apply{u\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\converse{f}}{x} = u(x_0)$ by Proposition 346, Proposition 356.
$(x_0,f(x_0))\class{latex-symbol-tip latex-symbol-id-in}{\in} f$ by Proposition 348.
$(f(x_0),v(f(x_0)))\class{latex-symbol-tip latex-symbol-id-in}{\in} v$ by Lemma 83, Proposition 348.
$(x_0,v(f(x_0)))\class{latex-symbol-tip latex-symbol-id-in}{\in} v\class{latex-symbol-tip latex-symbol-id-circ}{\circ} f$ by Proposition 255.
$\apply{v\class{latex-symbol-tip latex-symbol-id-circ}{\circ} f}{x_0} = v(f(x_0))$ by Proposition 346, Proposition 356, Proposition 382.
Hence $\apply{v\class{latex-symbol-tip latex-symbol-id-circ}{\circ} f}{x_0} = v(x)$ by Lemma 83.
$(x_0,\apply{v\class{latex-symbol-tip latex-symbol-id-circ}{\circ} f}{x_0})\class{latex-symbol-tip latex-symbol-id-in}{\in} v\class{latex-symbol-tip latex-symbol-id-circ}{\circ} f$ by Definition 55, Proposition 348, Proposition 382.
$(\apply{v\class{latex-symbol-tip latex-symbol-id-circ}{\circ} f}{x_0},\apply{\converse{e}}{\apply{v\class{latex-symbol-tip latex-symbol-id-circ}{\circ} f}{x_0}})\class{latex-symbol-tip latex-symbol-id-in}{\in}\converse{e}$ by Definition 55, Proposition 348.
$(x_0,\apply{\converse{e}}{\apply{v\class{latex-symbol-tip latex-symbol-id-circ}{\circ} f}{x_0}})\class{latex-symbol-tip latex-symbol-id-in}{\in} \converse{e}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} (v\class{latex-symbol-tip latex-symbol-id-circ}{\circ} f)$ by Proposition 255.
$(x_0,\apply{\converse{e}}{\apply{v\class{latex-symbol-tip latex-symbol-id-circ}{\circ} f}{x_0}})\class{latex-symbol-tip latex-symbol-id-in}{\in} u$ by Lemma 82.
$u(x_0) = \apply{\converse{e}}{\apply{v\class{latex-symbol-tip latex-symbol-id-circ}{\circ} f}{x_0}}$ by Proposition 346, Proposition 356.
Hence $u(x_0) = y_0$ by Lemma 82, Lemma 83.
Thus $\apply{u\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\converse{f}}{x} = y_0$ by Lemma 83.
$(x,\apply{u\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\converse{f}}{x})\class{latex-symbol-tip latex-symbol-id-in}{\in} u\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\converse{f}$ by Definition 55, Proposition 348.
$(\apply{u\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\converse{f}}{x},e(\apply{u\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\converse{f}}{x}))\class{latex-symbol-tip latex-symbol-id-in}{\in} e$ by Definition 55, Proposition 348, Proposition 361, Proposition 389.
$(x,e(\apply{u\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\converse{f}}{x}))\class{latex-symbol-tip latex-symbol-id-in}{\in} e\class{latex-symbol-tip latex-symbol-id-circ}{\circ} (u\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\converse{f})$ by Proposition 255.
$\apply{e\class{latex-symbol-tip latex-symbol-id-circ}{\circ} (u\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \converse{f})}{x} = e(\apply{u\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\converse{f}}{x})$ by Proposition 346, Proposition 356.
Thus $\apply{e\class{latex-symbol-tip latex-symbol-id-circ}{\circ} (u\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \converse{f})}{x} = v(x)$ by Lemma 82, Lemma 83.
Therefore $e\class{latex-symbol-tip latex-symbol-id-circ}{\circ} (u\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \converse{f}) = v$ by Lemma 438.
Thus $q(u) = v$ by Lemma 82.
Therefore $v\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ by Proposition 235, Proposition 349.
Therefore $\funs{A}{B}$ is finite by Lemma 44.
LaTeX source
\begin{byCase}
\caseOf{$B$ is empty.}
Show that $\funs{A}{B}$ is empty.
\begin{subproof}
Show that for all $u$ we have $u\notin\funs{A}{B}$.
\begin{subproof}
Fix $u$.
Suppose not.
Then $u\in\funs{A}{B}$.
Take $a$ such that $a\in A$ by \cref{nonempty_inhabited}.
Then $u(a)\in B$ by \cref{funs_type_apply}.
Contradiction.
\end{subproof}
\end{subproof}
Thus $\funs{A}{B}$ is finite by \cref{finite}.
\caseOf{$B$ is not empty.}
Take $m\in\naturalsPlus$ such that there exists a bijection from $\initialSegment{m}$ to $B$
by \cref{finite}.
Take $e$ such that $e$ is a bijection from $\initialSegment{m}$ to $B$.
Let $R = \funs{\initialSegment{n}}{\initialSegment{m}}$.
We have $R$ is finite by \cref{finite_initial_segment_function_space}.
$\converse{f}\in\funs{A}{\initialSegment{n}}$ and
$\converse{e}\in\funs{B}{\initialSegment{m}}$
by \cref{bijective_converse_are_funs}.
$\converse{f}$ is a function and $\dom{\converse{f}} = A$ and
$\converse{e}$ is a function and $\dom{\converse{e}} = B$
by \cref{funs_elim}.
$f\in\funs{\initialSegment{n}}{A}$ and $e\in\funs{\initialSegment{m}}{B}$
by \cref{bijections_to_funs}.
Let $q = \{(u,e\circ (u\circ \converse{f})) \mid u\in R\}$.
For all $u,v_1,v_2$ such that $(u,v_1)\in q$ and $(u,v_2)\in q$ we have $v_1 = v_2$
by \cref{pair_eq_iff}.
Hence $q$ is a function on $R$
by \cref{rightunique,relation,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
Let $H = \img{q}{R}$.
Hence $H$ is finite by \cref{finite_image_function}.
Show that $\funs{A}{B}\subseteq H$.
\begin{subproof}
Show that for all $v$ such that $v\in\funs{A}{B}$ we have $v\in H$.
\begin{subproof}
Fix $v$ such that $v\in\funs{A}{B}$.
Let $u = \converse{e}\circ (v\circ f)$.
We have $v\circ f\in\funs{\initialSegment{n}}{B}$ by \cref{funs_circ}.
Hence $u\in R$ by \cref{funs_circ}.
We have $q(u) = e\circ (u\circ \converse{f})$ by \cref{function_apply_intro}.
Show that $e\circ (u\circ \converse{f}) = v$.
\begin{subproof}
We have $e\circ (u\circ \converse{f})\in\funs{A}{B}$ by \cref{funs_circ}.
Show that for all $x\in A$ we have $\apply{e\circ (u\circ \converse{f})}{x} = v(x)$.
\begin{subproof}
Fix $x\in A$.
Let $x_0 = (\converse{f})(x)$.
$x_0\in\initialSegment{n}$ by \cref{funs_type_apply}.
$(x,x_0)\in\converse{f}$ by \cref{function_apply_elim}.
Hence $(x_0,x)\in f$ by \cref{converse_iff}.
$f(x_0) = x$ by \cref{function_apply_intro,bijections_to_funs,funs_is_function}.
$v(x)\in B$ by \cref{funs_type_apply}.
Let $y_0 = (\converse{e})(v(x))$.
$y_0\in\initialSegment{m}$ by \cref{funs_type_apply}.
$(v(x),y_0)\in\converse{e}$ by \cref{function_apply_elim}.
Hence $(y_0,v(x))\in e$ by \cref{converse_iff}.
$e(y_0) = v(x)$ by \cref{function_apply_intro,bijections_to_funs,funs_is_function}.
We have $u\in\funs{\initialSegment{n}}{\initialSegment{m}}$ by \cref{subseteq}.
$u$ is a function and $\dom{u} = \initialSegment{n}$ by \cref{funs_elim}.
$v$ is a function and $\dom{v} = A$ by \cref{funs_elim}.
$f$ is a function and $\dom{f} = \initialSegment{n}$ by \cref{bijections_to_funs,funs_elim}.
$e$ is a function and $\dom{e} = \initialSegment{m}$ by \cref{bijections_to_funs,funs_elim}.
We have $u\circ\converse{f}\in\funs{A}{\initialSegment{m}}$ by \cref{funs_circ}.
$(x_0,u(x_0))\in u$ by \cref{function_apply_elim}.
$(x,u(x_0))\in u\circ\converse{f}$ by \cref{circ_elem_intro}.
$\apply{u\circ\converse{f}}{x} = u(x_0)$
by \cref{function_apply_intro,funs_is_function}.
$(x_0,f(x_0))\in f$ by \cref{function_apply_elim}.
$(f(x_0),v(f(x_0)))\in v$ by \cref{function_apply_elim,real_lt_subst_right}.
$(x_0,v(f(x_0)))\in v\circ f$ by \cref{circ_elem_intro}.
$\apply{v\circ f}{x_0} = v(f(x_0))$
by \cref{function_apply_intro,funs_is_function,funs_circ}.
Hence $\apply{v\circ f}{x_0} = v(x)$ by \cref{real_lt_subst_right}.
$(x_0,\apply{v\circ f}{x_0})\in v\circ f$ by \cref{function_apply_elim,funs_circ,funs}.
$(\apply{v\circ f}{x_0},\apply{\converse{e}}{\apply{v\circ f}{x_0}})\in\converse{e}$
by \cref{function_apply_elim,funs}.
$(x_0,\apply{\converse{e}}{\apply{v\circ f}{x_0}})\in \converse{e}\circ (v\circ f)$
by \cref{circ_elem_intro}.
$(x_0,\apply{\converse{e}}{\apply{v\circ f}{x_0}})\in u$ by \cref{real_lt_subst_left}.
$u(x_0) = \apply{\converse{e}}{\apply{v\circ f}{x_0}}$
by \cref{function_apply_intro,funs_is_function}.
Hence $u(x_0) = y_0$ by \cref{real_lt_subst_left,real_lt_subst_right}.
Thus $\apply{u\circ\converse{f}}{x} = y_0$ by \cref{real_lt_subst_right}.
$(x,\apply{u\circ\converse{f}}{x})\in u\circ\converse{f}$ by \cref{function_apply_elim,funs}.
$(\apply{u\circ\converse{f}}{x},e(\apply{u\circ\converse{f}}{x}))\in e$
by \cref{function_apply_elim,bijections_to_funs,funs,funs_type_apply}.
$(x,e(\apply{u\circ\converse{f}}{x}))\in e\circ (u\circ\converse{f})$
by \cref{circ_elem_intro}.
$\apply{e\circ (u\circ \converse{f})}{x} = e(\apply{u\circ\converse{f}}{x})$
by \cref{function_apply_intro,funs_is_function}.
Thus $\apply{e\circ (u\circ \converse{f})}{x} = v(x)$
by \cref{real_lt_subst_left,real_lt_subst_right}.
\end{subproof}
Therefore $e\circ (u\circ \converse{f}) = v$ by \cref{functions_eq_iff}.
\end{subproof}
Thus $q(u) = v$ by \cref{real_lt_subst_left}.
Therefore $v\in H$ by \cref{img_iff,function_apply_iff}.
\end{subproof}
\end{subproof}
Therefore $\funs{A}{B}$ is finite by \cref{subseteq_finite_is_finite}.
\end{byCase}
LaTeX source
\begin{byCase}
\caseOf{$A$ is empty.}
For all $f$ such that $f\in\funs{A}{B}$ we have $f\in\{\emptyset\}$.
We have $\funs{A}{B}\subseteq\{\emptyset\}$ by \cref{subseteq}.
Therefore $\funs{A}{B}$ is finite by \cref{singleton_subset_intro,upair_intro_left,pair_is_finite,subseteq_finite_is_finite}.
\caseOf{$A$ is not empty.}
Take $n\in\naturalsPlus$ such that there exists a bijection from $\initialSegment{n}$ to $A$
by \cref{finite}.
Take $f$ such that $f$ is a bijection from $\initialSegment{n}$ to $A$.
\begin{byCase}
\caseOf{$B$ is empty.}
Show that $\funs{A}{B}$ is empty.
\begin{subproof}
Show that for all $u$ we have $u\notin\funs{A}{B}$.
\begin{subproof}
Fix $u$.
Suppose not.
Then $u\in\funs{A}{B}$.
Take $a$ such that $a\in A$ by \cref{nonempty_inhabited}.
Then $u(a)\in B$ by \cref{funs_type_apply}.
Contradiction.
\end{subproof}
\end{subproof}
Thus $\funs{A}{B}$ is finite by \cref{finite}.
\caseOf{$B$ is not empty.}
Take $m\in\naturalsPlus$ such that there exists a bijection from $\initialSegment{m}$ to $B$
by \cref{finite}.
Take $e$ such that $e$ is a bijection from $\initialSegment{m}$ to $B$.
Let $R = \funs{\initialSegment{n}}{\initialSegment{m}}$.
We have $R$ is finite by \cref{finite_initial_segment_function_space}.
$\converse{f}\in\funs{A}{\initialSegment{n}}$ and
$\converse{e}\in\funs{B}{\initialSegment{m}}$
by \cref{bijective_converse_are_funs}.
$\converse{f}$ is a function and $\dom{\converse{f}} = A$ and
$\converse{e}$ is a function and $\dom{\converse{e}} = B$
by \cref{funs_elim}.
$f\in\funs{\initialSegment{n}}{A}$ and $e\in\funs{\initialSegment{m}}{B}$
by \cref{bijections_to_funs}.
Let $q = \{(u,e\circ (u\circ \converse{f})) \mid u\in R\}$.
For all $u,v_1,v_2$ such that $(u,v_1)\in q$ and $(u,v_2)\in q$ we have $v_1 = v_2$
by \cref{pair_eq_iff}.
Hence $q$ is a function on $R$
by \cref{rightunique,relation,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
Let $H = \img{q}{R}$.
Hence $H$ is finite by \cref{finite_image_function}.
Show that $\funs{A}{B}\subseteq H$.
\begin{subproof}
Show that for all $v$ such that $v\in\funs{A}{B}$ we have $v\in H$.
\begin{subproof}
Fix $v$ such that $v\in\funs{A}{B}$.
Let $u = \converse{e}\circ (v\circ f)$.
We have $v\circ f\in\funs{\initialSegment{n}}{B}$ by \cref{funs_circ}.
Hence $u\in R$ by \cref{funs_circ}.
We have $q(u) = e\circ (u\circ \converse{f})$ by \cref{function_apply_intro}.
Show that $e\circ (u\circ \converse{f}) = v$.
\begin{subproof}
We have $e\circ (u\circ \converse{f})\in\funs{A}{B}$ by \cref{funs_circ}.
Show that for all $x\in A$ we have $\apply{e\circ (u\circ \converse{f})}{x} = v(x)$.
\begin{subproof}
Fix $x\in A$.
Let $x_0 = (\converse{f})(x)$.
$x_0\in\initialSegment{n}$ by \cref{funs_type_apply}.
$(x,x_0)\in\converse{f}$ by \cref{function_apply_elim}.
Hence $(x_0,x)\in f$ by \cref{converse_iff}.
$f(x_0) = x$ by \cref{function_apply_intro,bijections_to_funs,funs_is_function}.
$v(x)\in B$ by \cref{funs_type_apply}.
Let $y_0 = (\converse{e})(v(x))$.
$y_0\in\initialSegment{m}$ by \cref{funs_type_apply}.
$(v(x),y_0)\in\converse{e}$ by \cref{function_apply_elim}.
Hence $(y_0,v(x))\in e$ by \cref{converse_iff}.
$e(y_0) = v(x)$ by \cref{function_apply_intro,bijections_to_funs,funs_is_function}.
We have $u\in\funs{\initialSegment{n}}{\initialSegment{m}}$ by \cref{subseteq}.
$u$ is a function and $\dom{u} = \initialSegment{n}$ by \cref{funs_elim}.
$v$ is a function and $\dom{v} = A$ by \cref{funs_elim}.
$f$ is a function and $\dom{f} = \initialSegment{n}$ by \cref{bijections_to_funs,funs_elim}.
$e$ is a function and $\dom{e} = \initialSegment{m}$ by \cref{bijections_to_funs,funs_elim}.
We have $u\circ\converse{f}\in\funs{A}{\initialSegment{m}}$ by \cref{funs_circ}.
$(x_0,u(x_0))\in u$ by \cref{function_apply_elim}.
$(x,u(x_0))\in u\circ\converse{f}$ by \cref{circ_elem_intro}.
$\apply{u\circ\converse{f}}{x} = u(x_0)$
by \cref{function_apply_intro,funs_is_function}.
$(x_0,f(x_0))\in f$ by \cref{function_apply_elim}.
$(f(x_0),v(f(x_0)))\in v$ by \cref{function_apply_elim,real_lt_subst_right}.
$(x_0,v(f(x_0)))\in v\circ f$ by \cref{circ_elem_intro}.
$\apply{v\circ f}{x_0} = v(f(x_0))$
by \cref{function_apply_intro,funs_is_function,funs_circ}.
Hence $\apply{v\circ f}{x_0} = v(x)$ by \cref{real_lt_subst_right}.
$(x_0,\apply{v\circ f}{x_0})\in v\circ f$ by \cref{function_apply_elim,funs_circ,funs}.
$(\apply{v\circ f}{x_0},\apply{\converse{e}}{\apply{v\circ f}{x_0}})\in\converse{e}$
by \cref{function_apply_elim,funs}.
$(x_0,\apply{\converse{e}}{\apply{v\circ f}{x_0}})\in \converse{e}\circ (v\circ f)$
by \cref{circ_elem_intro}.
$(x_0,\apply{\converse{e}}{\apply{v\circ f}{x_0}})\in u$ by \cref{real_lt_subst_left}.
$u(x_0) = \apply{\converse{e}}{\apply{v\circ f}{x_0}}$
by \cref{function_apply_intro,funs_is_function}.
Hence $u(x_0) = y_0$ by \cref{real_lt_subst_left,real_lt_subst_right}.
Thus $\apply{u\circ\converse{f}}{x} = y_0$ by \cref{real_lt_subst_right}.
$(x,\apply{u\circ\converse{f}}{x})\in u\circ\converse{f}$ by \cref{function_apply_elim,funs}.
$(\apply{u\circ\converse{f}}{x},e(\apply{u\circ\converse{f}}{x}))\in e$
by \cref{function_apply_elim,bijections_to_funs,funs,funs_type_apply}.
$(x,e(\apply{u\circ\converse{f}}{x}))\in e\circ (u\circ\converse{f})$
by \cref{circ_elem_intro}.
$\apply{e\circ (u\circ \converse{f})}{x} = e(\apply{u\circ\converse{f}}{x})$
by \cref{function_apply_intro,funs_is_function}.
Thus $\apply{e\circ (u\circ \converse{f})}{x} = v(x)$
by \cref{real_lt_subst_left,real_lt_subst_right}.
\end{subproof}
Therefore $e\circ (u\circ \converse{f}) = v$ by \cref{functions_eq_iff}.
\end{subproof}
Thus $q(u) = v$ by \cref{real_lt_subst_left}.
Therefore $v\in H$ by \cref{img_iff,function_apply_iff}.
\end{subproof}
\end{subproof}
Therefore $\funs{A}{B}$ is finite by \cref{subseteq_finite_is_finite}.
\end{byCase}
\end{byCase}
LaTeX source
\begin{proof}
\begin{byCase}
\caseOf{$A$ is empty.}
For all $f$ such that $f\in\funs{A}{B}$ we have $f\in\{\emptyset\}$.
We have $\funs{A}{B}\subseteq\{\emptyset\}$ by \cref{subseteq}.
Therefore $\funs{A}{B}$ is finite by \cref{singleton_subset_intro,upair_intro_left,pair_is_finite,subseteq_finite_is_finite}.
\caseOf{$A$ is not empty.}
Take $n\in\naturalsPlus$ such that there exists a bijection from $\initialSegment{n}$ to $A$
by \cref{finite}.
Take $f$ such that $f$ is a bijection from $\initialSegment{n}$ to $A$.
\begin{byCase}
\caseOf{$B$ is empty.}
Show that $\funs{A}{B}$ is empty.
\begin{subproof}
Show that for all $u$ we have $u\notin\funs{A}{B}$.
\begin{subproof}
Fix $u$.
Suppose not.
Then $u\in\funs{A}{B}$.
Take $a$ such that $a\in A$ by \cref{nonempty_inhabited}.
Then $u(a)\in B$ by \cref{funs_type_apply}.
Contradiction.
\end{subproof}
\end{subproof}
Thus $\funs{A}{B}$ is finite by \cref{finite}.
\caseOf{$B$ is not empty.}
Take $m\in\naturalsPlus$ such that there exists a bijection from $\initialSegment{m}$ to $B$
by \cref{finite}.
Take $e$ such that $e$ is a bijection from $\initialSegment{m}$ to $B$.
Let $R = \funs{\initialSegment{n}}{\initialSegment{m}}$.
We have $R$ is finite by \cref{finite_initial_segment_function_space}.
$\converse{f}\in\funs{A}{\initialSegment{n}}$ and
$\converse{e}\in\funs{B}{\initialSegment{m}}$
by \cref{bijective_converse_are_funs}.
$\converse{f}$ is a function and $\dom{\converse{f}} = A$ and
$\converse{e}$ is a function and $\dom{\converse{e}} = B$
by \cref{funs_elim}.
$f\in\funs{\initialSegment{n}}{A}$ and $e\in\funs{\initialSegment{m}}{B}$
by \cref{bijections_to_funs}.
Let $q = \{(u,e\circ (u\circ \converse{f})) \mid u\in R\}$.
For all $u,v_1,v_2$ such that $(u,v_1)\in q$ and $(u,v_2)\in q$ we have $v_1 = v_2$
by \cref{pair_eq_iff}.
Hence $q$ is a function on $R$
by \cref{rightunique,relation,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
Let $H = \img{q}{R}$.
Hence $H$ is finite by \cref{finite_image_function}.
Show that $\funs{A}{B}\subseteq H$.
\begin{subproof}
Show that for all $v$ such that $v\in\funs{A}{B}$ we have $v\in H$.
\begin{subproof}
Fix $v$ such that $v\in\funs{A}{B}$.
Let $u = \converse{e}\circ (v\circ f)$.
We have $v\circ f\in\funs{\initialSegment{n}}{B}$ by \cref{funs_circ}.
Hence $u\in R$ by \cref{funs_circ}.
We have $q(u) = e\circ (u\circ \converse{f})$ by \cref{function_apply_intro}.
Show that $e\circ (u\circ \converse{f}) = v$.
\begin{subproof}
We have $e\circ (u\circ \converse{f})\in\funs{A}{B}$ by \cref{funs_circ}.
Show that for all $x\in A$ we have $\apply{e\circ (u\circ \converse{f})}{x} = v(x)$.
\begin{subproof}
Fix $x\in A$.
Let $x_0 = (\converse{f})(x)$.
$x_0\in\initialSegment{n}$ by \cref{funs_type_apply}.
$(x,x_0)\in\converse{f}$ by \cref{function_apply_elim}.
Hence $(x_0,x)\in f$ by \cref{converse_iff}.
$f(x_0) = x$ by \cref{function_apply_intro,bijections_to_funs,funs_is_function}.
$v(x)\in B$ by \cref{funs_type_apply}.
Let $y_0 = (\converse{e})(v(x))$.
$y_0\in\initialSegment{m}$ by \cref{funs_type_apply}.
$(v(x),y_0)\in\converse{e}$ by \cref{function_apply_elim}.
Hence $(y_0,v(x))\in e$ by \cref{converse_iff}.
$e(y_0) = v(x)$ by \cref{function_apply_intro,bijections_to_funs,funs_is_function}.
We have $u\in\funs{\initialSegment{n}}{\initialSegment{m}}$ by \cref{subseteq}.
$u$ is a function and $\dom{u} = \initialSegment{n}$ by \cref{funs_elim}.
$v$ is a function and $\dom{v} = A$ by \cref{funs_elim}.
$f$ is a function and $\dom{f} = \initialSegment{n}$ by \cref{bijections_to_funs,funs_elim}.
$e$ is a function and $\dom{e} = \initialSegment{m}$ by \cref{bijections_to_funs,funs_elim}.
We have $u\circ\converse{f}\in\funs{A}{\initialSegment{m}}$ by \cref{funs_circ}.
$(x_0,u(x_0))\in u$ by \cref{function_apply_elim}.
$(x,u(x_0))\in u\circ\converse{f}$ by \cref{circ_elem_intro}.
$\apply{u\circ\converse{f}}{x} = u(x_0)$
by \cref{function_apply_intro,funs_is_function}.
$(x_0,f(x_0))\in f$ by \cref{function_apply_elim}.
$(f(x_0),v(f(x_0)))\in v$ by \cref{function_apply_elim,real_lt_subst_right}.
$(x_0,v(f(x_0)))\in v\circ f$ by \cref{circ_elem_intro}.
$\apply{v\circ f}{x_0} = v(f(x_0))$
by \cref{function_apply_intro,funs_is_function,funs_circ}.
Hence $\apply{v\circ f}{x_0} = v(x)$ by \cref{real_lt_subst_right}.
$(x_0,\apply{v\circ f}{x_0})\in v\circ f$ by \cref{function_apply_elim,funs_circ,funs}.
$(\apply{v\circ f}{x_0},\apply{\converse{e}}{\apply{v\circ f}{x_0}})\in\converse{e}$
by \cref{function_apply_elim,funs}.
$(x_0,\apply{\converse{e}}{\apply{v\circ f}{x_0}})\in \converse{e}\circ (v\circ f)$
by \cref{circ_elem_intro}.
$(x_0,\apply{\converse{e}}{\apply{v\circ f}{x_0}})\in u$ by \cref{real_lt_subst_left}.
$u(x_0) = \apply{\converse{e}}{\apply{v\circ f}{x_0}}$
by \cref{function_apply_intro,funs_is_function}.
Hence $u(x_0) = y_0$ by \cref{real_lt_subst_left,real_lt_subst_right}.
Thus $\apply{u\circ\converse{f}}{x} = y_0$ by \cref{real_lt_subst_right}.
$(x,\apply{u\circ\converse{f}}{x})\in u\circ\converse{f}$ by \cref{function_apply_elim,funs}.
$(\apply{u\circ\converse{f}}{x},e(\apply{u\circ\converse{f}}{x}))\in e$
by \cref{function_apply_elim,bijections_to_funs,funs,funs_type_apply}.
$(x,e(\apply{u\circ\converse{f}}{x}))\in e\circ (u\circ\converse{f})$
by \cref{circ_elem_intro}.
$\apply{e\circ (u\circ \converse{f})}{x} = e(\apply{u\circ\converse{f}}{x})$
by \cref{function_apply_intro,funs_is_function}.
Thus $\apply{e\circ (u\circ \converse{f})}{x} = v(x)$
by \cref{real_lt_subst_left,real_lt_subst_right}.
\end{subproof}
Therefore $e\circ (u\circ \converse{f}) = v$ by \cref{functions_eq_iff}.
\end{subproof}
Thus $q(u) = v$ by \cref{real_lt_subst_left}.
Therefore $v\in H$ by \cref{img_iff,function_apply_iff}.
\end{subproof}
\end{subproof}
Therefore $\funs{A}{B}$ is finite by \cref{subseteq_finite_is_finite}.
\end{byCase}
\end{byCase}
\end{proof}
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $d$ is a metric on $Y$.
Assume $Y$ is compact with respect to $\metricTopology{d}{Y}$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Suppose $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
Then 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 $H$ such that $H$ is finite and $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\funs{X}{Y}$ and for all $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $g\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
LaTeX source
\begin{lemma}
\label{equicontinuous_function_family_uniform_net}
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $d$ is a metric on $Y$.
Assume $Y$ is compact with respect to $\metricTopology{d}{Y}$.
Assume $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\subseteq C$.
Suppose $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
Then for all $\epsilon\in\reals$ such that $0 < \epsilon$
there exists $H$ such that
$H$ is finite and
$H\subseteq\funs{X}{Y}$ and
for all $f\in F$ there exists $g\in H$ such that
$\rho((f,g)) < \epsilon$.
\end{lemma}
Proof
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $\funs{X}{Y}$ by Definition 344.
$F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\funs{X}{Y}$ by Definition 1, Definition 345.
We have $Y$ is totally bounded with respect to $d$ by Definition 115, Definition 182, Lemma 76, Lemma 194, Theorem 119.
Fix $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Take $\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 $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < 1$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 834.
Take $C_Y$ such that $C_Y$ is finite and $C_Y$ is a covering of $Y$ and for all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} C_Y$ there exists $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ such that $V = Y\inter\metricBall{d}{Y}{y}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ by Definition 359, Definition 360.
Let $R_Y = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} C_Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y \mid \fst{w} = Y\inter\metricBall{d}{Y}{\snd{w}}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\}$.
For all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} C_Y$ there exists $y$ such that $V\mathrel{R_Y} y$ by Axiom 10, Axiom 11, Definition 1, Proposition 115.
Take $p$ such that $p$ is a function on $C_Y$ and for all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} C_Y$ we have $V\mathrel{R_Y}\apply{p}{V}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
We have $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C_Y}{Y}$ by Definition 1, Proposition 114, Proposition 348, Proposition 358, Proposition 359.
For all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} C_Y$ we have $V = Y\inter\metricBall{d}{Y}{p(V)}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ by Axiom 10, Axiom 11, Definition 1.
Let $N = \{U\class{latex-symbol-tip latex-symbol-id-in}{\in} T \mid \text{there exists $a\in X$ such that $U$ is a neighborhood of $a$ in $X$ with respect to $T$ and for all $x,f$ such that $x\in U$ and $f\in F$ we have $d((\apply{f}{x},\apply{f}{a})) < \delta$}\}$.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{N}$ by Axiom 4, Definition 1, Definition 103, Definition 153, Definition 361, Definition 362.
Hence $N$ is an open covering of $X$ with respect to $T$ by Definition 1, Definition 103, Definition 245, Definition 246.
Take $K$ such that $K\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} N$ and $K$ is finite and $K$ is a covering of $X$ by Definition 247.
Let $R_X = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} K\class{latex-symbol-tip latex-symbol-id-times}{\times} X \mid \text{$\fst{w}$ is a neighborhood of $\snd{w}$ in $X$ with respect to $T$ and for all $x,f$ such that $x\in\fst{w}$ and $f\in F$ we have $d((\apply{f}{x},\apply{f}{\snd{w}})) < \delta$}\}$.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ there exists $a$ such that $U\mathrel{R_X} a$ by Axiom 10, Axiom 11, Definition 1, Proposition 115.
Take $c$ such that $c$ is a function on $K$ and for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $U\mathrel{R_X}\apply{c}{U}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
We have $c\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{K}{X}$ by Definition 1, Proposition 114, Proposition 348, Proposition 358, Proposition 359.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $U$ is a neighborhood of $c(U)$ in $X$ with respect to $T$ and for all $x,f$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $d((\apply{f}{x},\apply{f}{c(U)})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 10, Axiom 11, Definition 1.
Let $R_u = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} K \mid \fst{w}\class{latex-symbol-tip latex-symbol-id-in}{\in}\snd{w}\}$.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $U$ such that $x\mathrel{R_u} U$ by Axiom 4, Axiom 10, Axiom 11, Definition 1, Definition 245, Proposition 115.
Take $u$ such that $u$ is a function on $X$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $x\mathrel{R_u}\apply{u}{x}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
We have $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{K}$ by Definition 1, Proposition 114, Proposition 348, Proposition 358, Proposition 359.
Let $A = \funs{K}{C_Y}$.
We have $A$ is finite by Lemma 841.
Let $h = \{(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha},p\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} u) \mid \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} A\}$.
For all $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha},g_1,g_2$ such that $(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha},g_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ and $(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha},g_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ we have $g_1 = g_2$ by Axiom 6.
Hence $h$ is a function on $A$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
Let $H = \img{h}{A}$.
Therefore $H$ is finite by Lemma 192.
For all $g$ such that $g\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ we have $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ by Lemma 82, Proposition 235, Proposition 258, Proposition 346, Proposition 382.
Hence $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\funs{X}{Y}$ by Definition 1.
Claim: For all $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $g\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $f$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
We have $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ by Definition 1, Definition 345.
Let $R_f = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} K\class{latex-symbol-tip latex-symbol-id-times}{\times} C_Y \mid \apply{f}{\apply{c}{\fst{w}}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\snd{w}\}$.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ there exists $V$ such that $U\mathrel{R_f} V$ by Axiom 4, Axiom 10, Axiom 11, Definition 1, Definition 245, Proposition 115, Proposition 361.
Take $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}$ such that $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}$ is a function on $K$ and for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $U\mathrel{R_f}\apply{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}{U}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
We have $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 1, Proposition 114, Proposition 348, Proposition 358, Proposition 359.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $f(c(U))\class{latex-symbol-tip latex-symbol-id-in}{\in}\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(U)$ by Axiom 10, Axiom 11, Definition 1.
$(\class{latex-symbol-tip latex-symbol-id-beta}{\beta},p\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} u)\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ by Definition 1.
Hence $h(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}) = p\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} u$ by Proposition 346.
Let $g = h(\class{latex-symbol-tip latex-symbol-id-beta}{\beta})$.
We have $g\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ by Proposition 235, Proposition 349.
Therefore $g = p\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} u$ by Lemma 82.
We have $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ by Definition 1.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((f(x),g(x))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} u(x)$ by Axiom 10, Axiom 11, Proposition 348.
We have $u(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ and $c(u(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Proposition 361.
$u(x)$ is a neighborhood of $c(u(x))$ in $X$ with respect to $T$ and for all $y,h_0$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} u(x)$ and $h_0\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $d((\apply{h_0}{y},\apply{h_0}{c(u(x))})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1.
Hence $d((f(x),f(c(u(x))))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1.
We have $f(c(u(x)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(u(x))$ by Definition 1.
Hence $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(u(x)) = Y\inter\metricBall{d}{Y}{p(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(u(x)))}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ by Definition 1, Proposition 361.
$f(c(u(x)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{Y}{p(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(u(x)))}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ by Lemma 82, Proposition 63.
Hence $d((p(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(u(x))),f(c(u(x))))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 180.
We have $d((f(c(u(x))),p(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(u(x))))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 177, Definition 179, Lemma 82, Proposition 115, Proposition 361.
$\class{latex-symbol-tip latex-symbol-id-beta}{\beta}$ is a function and $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}$ is a relation and $\dom{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}} = K$ and $\ran{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C_Y$ by Definition 1, Proposition 355, Proposition 356, Proposition 359, Proposition 363.
$u$ is a function and $u$ is a relation and $\dom{u} = X$ and $\ran{u}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} K$ by Definition 1, Proposition 355, Proposition 356, Proposition 359, Proposition 363.
$p$ is a function and $p$ is a relation and $\dom{p} = C_Y$ by Proposition 355, Proposition 356, Proposition 359.
Hence $\ran{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{p}$ by Lemma 83.
We have $(p\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\class{latex-symbol-tip latex-symbol-id-beta}{\beta})(u(x)) = p(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(u(x)))$ by Proposition 373.
$p\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\class{latex-symbol-tip latex-symbol-id-beta}{\beta}$ is a function and $p\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\class{latex-symbol-tip latex-symbol-id-beta}{\beta}$ is a relation and $\dom{(p\class{latex-symbol-tip latex-symbol-id-circ}{\circ}\class{latex-symbol-tip latex-symbol-id-beta}{\beta})} = K$ by Proposition 355, Proposition 356, Proposition 359, Proposition 382.
Hence $g(x) = p(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(u(x)))$ by Lemma 82, Lemma 83, Proposition 373.
We have $d((f(c(u(x))),g(x))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 83.
Hence $d((f(x),g(x))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 836, Proposition 361.
Take $E$ such that $E = \{r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} X. ((r = d((\apply{f}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}},\apply{g}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}})) \class{latex-symbol-tip latex-symbol-id-land}{\land} d((\apply{f}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}},\apply{g}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}})) < 1) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (r = 1 \class{latex-symbol-tip latex-symbol-id-land}{\land} 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((\apply{f}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}},\apply{g}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}))))\}$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ is a supremum of $E$ by Definition 344.
We have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ is an upper bound of $E$ by Definition 71.
Claim: For all $r$ such that $r\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ we have $r \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}$.
Fix $r$ such that $r\class{latex-symbol-tip latex-symbol-id-in}{\in} E$.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $((r = d((\apply{f}{x},\apply{g}{x})) \class{latex-symbol-tip latex-symbol-id-land}{\land} d((\apply{f}{x},\apply{g}{x})) < 1) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (r = 1 \class{latex-symbol-tip latex-symbol-id-land}{\land} 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((\apply{f}{x},\apply{g}{x}))))$ by Definition 1.
We have $r \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}$ by Definition 1, Lemma 82, Lemma 231.
We have $1 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 13, Axiom 36, Axiom 41, Axiom 42, Definition 1, Definition 179, Lemma 81, Lemma 82, Proposition 115, Proposition 361.
Hence $r \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}$ by Lemma 82, Lemma 231.
LaTeX source
\begin{byCase}
\caseOf{$r = d((\apply{f}{x},\apply{g}{x}))$ and $d((\apply{f}{x},\apply{g}{x})) < 1$.}
We have $r \leq \delta + \delta$ by \cref{subseteq,real_lt_subst_left,real_lt_imp_leq}.
\caseOf{$r = 1$ and $1 \leq d((\apply{f}{x},\apply{g}{x}))$.}
We have $1 < \delta + \delta$
by \cref{metric_on,funs_type_apply,times_tuple_intro,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_add_closed,real_leq_split,real_lt_trans,real_lt_subst_left}.
Hence $r \leq \delta + \delta$ by \cref{real_lt_subst_left,real_lt_imp_leq}.
\end{byCase}
$E\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Definition 1.
Hence $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ is an upper bound of $E$ by Definition 66.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 71.
Thus $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 13, Axiom 15, Axiom 16, Axiom 17, Axiom 36, Axiom 37, Lemma 82, Lemma 83.
Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 36, Definition 179, Lemma 81, Lemma 82, Proposition 115, Proposition 361.
Follows by definition.
LaTeX source
\begin{proof}
$\rho$ is a metric on $\funs{X}{Y}$ by \cref{uniform_metric_on_function_space}.
$F\subseteq\funs{X}{Y}$ by \cref{subseteq,continuous_function_set}.
We have $Y$ is totally bounded with respect to $d$
by \cref{metric_topology,metric_basis_is_basis,basis_for_topology,basis_topology_is_topology,compact_metric_space_totally_bounded}.
Fix $\epsilon$ such that $\epsilon\in\reals$ and $0 < \epsilon$.
Take $\delta\in\reals$ such that
$0 < \delta$ and
$\delta < 1$ and
$\delta + \delta + \delta < \epsilon$
by \cref{positive_real_small_triple_bound}.
Take $C_Y$ such that
$C_Y$ is finite and
$C_Y$ is a covering of $Y$ and
for all $V\in C_Y$ there exists $y\in Y$ such that
$V = Y\inter\metricBall{d}{Y}{y}{\delta}$
by \cref{totally_bounded_metric_space,totally_bounded_subset_metric_space}.
Let $R_Y = \{w\in C_Y\times Y \mid \fst{w} = Y\inter\metricBall{d}{Y}{\snd{w}}{\delta}\}$.
For all $V\in C_Y$ there exists $y$ such that $V\mathrel{R_Y} y$
by \cref{subseteq,times_tuple_intro,fst_eq,snd_eq}.
Take $p$ such that
$p$ is a function on $C_Y$ and
for all $V\in C_Y$ we have $V\mathrel{R_Y}\apply{p}{V}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
We have $p\in\funs{C_Y}{Y}$
by \cref{funs_elim,function_apply_elim,subseteq,times_tuple_elim,funs_intro}.
For all $V\in C_Y$ we have $V = Y\inter\metricBall{d}{Y}{p(V)}{\delta}$
by \cref{subseteq,fst_eq,snd_eq}.
Let $N = \{U\in T \mid \text{there exists $a\in X$ such that
$U$ is a neighborhood of $a$ in $X$ with respect to $T$ and
for all $x,f$ such that $x\in U$ and $f\in F$ we have $d((\apply{f}{x},\apply{f}{a})) < \delta$}\}$.
For all $x$ such that $x\in X$ we have $x\in\unions{N}$
by \cref{equicontinuous_family,equicontinuous_at_point,neighborhood,open_in,subseteq,unions_iff}.
Hence $N$ is an open covering of $X$ with respect to $T$
by \cref{subseteq,covering,open_in,open_covering}.
Take $K$ such that
$K\subseteq N$ and
$K$ is finite and
$K$ is a covering of $X$
by \cref{compact}.
Let $R_X = \{w\in K\times X \mid \text{$\fst{w}$ is a neighborhood of $\snd{w}$ in $X$ with respect to $T$ and
for all $x,f$ such that $x\in\fst{w}$ and $f\in F$ we have
$d((\apply{f}{x},\apply{f}{\snd{w}})) < \delta$}\}$.
For all $U\in K$ there exists $a$ such that $U\mathrel{R_X} a$
by \cref{subseteq,times_tuple_intro,fst_eq,snd_eq}.
Take $c$ such that
$c$ is a function on $K$ and
for all $U\in K$ we have $U\mathrel{R_X}\apply{c}{U}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
We have $c\in\funs{K}{X}$
by \cref{funs_elim,function_apply_elim,subseteq,times_tuple_elim,funs_intro}.
For all $U\in K$ we have
$U$ is a neighborhood of $c(U)$ in $X$ with respect to $T$ and
for all $x,f$ such that $x\in U$ and $f\in F$ we have
$d((\apply{f}{x},\apply{f}{c(U)})) < \delta$
by \cref{subseteq,fst_eq,snd_eq}.
Let $R_u = \{w\in X\times K \mid \fst{w}\in\snd{w}\}$.
For all $x\in X$ there exists $U$ such that $x\mathrel{R_u} U$
by \cref{covering,subseteq,unions_iff,times_tuple_intro,fst_eq,snd_eq}.
Take $u$ such that
$u$ is a function on $X$ and
for all $x\in X$ we have $x\mathrel{R_u}\apply{u}{x}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
We have $u\in\funs{X}{K}$
by \cref{funs_elim,function_apply_elim,subseteq,times_tuple_elim,funs_intro}.
Let $A = \funs{K}{C_Y}$.
We have $A$ is finite by \cref{finite_function_space}.
Let $h = \{(\alpha,p\circ\alpha\circ u) \mid \alpha\in A\}$.
For all $\alpha,g_1,g_2$ such that $(\alpha,g_1)\in h$ and $(\alpha,g_2)\in h$ we have $g_1 = g_2$
by \cref{pair_eq_iff}.
Hence $h$ is a function on $A$
by \cref{rightunique,relation,subseteq_antisymmetric,subseteq,dom_intro,pair_eq_iff,dom_iff}.
Let $H = \img{h}{A}$.
Therefore $H$ is finite by \cref{finite_image_function}.
For all $g$ such that $g\in H$ we have $g\in\funs{X}{Y}$
by \cref{img_iff,function_apply_intro,real_lt_subst_left,funs_circ,circ_assoc}.
Hence $H\subseteq\funs{X}{Y}$ by \cref{subseteq}.
Show that for all $f\in F$ there exists $g\in H$ such that $\rho((f,g)) < \epsilon$.
\begin{subproof}
Fix $f$ such that $f\in F$.
We have $f\in\funs{X}{Y}$ by \cref{subseteq,continuous_function_set}.
Let $R_f = \{w\in K\times C_Y \mid \apply{f}{\apply{c}{\fst{w}}}\in\snd{w}\}$.
For all $U\in K$ there exists $V$ such that $U\mathrel{R_f} V$
by \cref{funs_type_apply,covering,subseteq,unions_iff,times_tuple_intro,fst_eq,snd_eq}.
Take $\beta$ such that
$\beta$ is a function on $K$ and
for all $U\in K$ we have $U\mathrel{R_f}\apply{\beta}{U}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
We have $\beta\in A$
by \cref{funs_elim,function_apply_elim,subseteq,times_tuple_elim,funs_intro}.
For all $U\in K$ we have $f(c(U))\in\beta(U)$ by \cref{subseteq,fst_eq,snd_eq}.
$(\beta,p\circ\beta\circ u)\in h$ by \cref{subseteq}.
Hence $h(\beta) = p\circ\beta\circ u$ by \cref{function_apply_intro}.
Let $g = h(\beta)$.
We have $g\in H$ by \cref{img_iff,function_apply_iff}.
Therefore $g = p\circ\beta\circ u$ by \cref{real_lt_subst_left}.
We have $g\in\funs{X}{Y}$ by \cref{subseteq}.
Show that for all $x\in X$ we have $d((f(x),g(x))) < \delta + \delta$.
\begin{subproof}
Fix $x$ such that $x\in X$.
We have $x\in u(x)$ by \cref{function_apply_elim,fst_eq,snd_eq}.
We have $u(x)\in K$ and $c(u(x))\in X$ by \cref{funs_type_apply}.
$u(x)$ is a neighborhood of $c(u(x))$ in $X$ with respect to $T$ and
for all $y,h_0$ such that $y\in u(x)$ and $h_0\in F$ we have
$d((\apply{h_0}{y},\apply{h_0}{c(u(x))})) < \delta$ by \cref{subseteq}.
Hence $d((f(x),f(c(u(x))))) < \delta$ by \cref{subseteq}.
We have $f(c(u(x)))\in\beta(u(x))$ by \cref{subseteq}.
Hence $\beta(u(x)) = Y\inter\metricBall{d}{Y}{p(\beta(u(x)))}{\delta}$ by \cref{funs_type_apply,subseteq}.
$f(c(u(x)))\in\metricBall{d}{Y}{p(\beta(u(x)))}{\delta}$
by \cref{real_lt_subst_left,inter_elim_right}.
Hence $d((p(\beta(u(x))),f(c(u(x))))) < \delta$ by \cref{metric_ball}.
We have $d((f(c(u(x))),p(\beta(u(x))))) < \delta$
by \cref{metric_on,metric_symmetric,funs_type_apply,real_lt_subst_left,times_tuple_intro}.
$\beta$ is a function and $\beta$ is a relation and $\dom{\beta} = K$ and $\ran{\beta}\subseteq C_Y$
by \cref{funs_is_function,funs_is_relation,funs_elim,funs_ran,subseteq}.
$u$ is a function and $u$ is a relation and $\dom{u} = X$ and $\ran{u}\subseteq K$
by \cref{funs_is_function,funs_is_relation,funs_elim,funs_ran,subseteq}.
$p$ is a function and $p$ is a relation and $\dom{p} = C_Y$
by \cref{funs_is_function,funs_is_relation,funs_elim}.
Hence $\ran{\beta}\subseteq\dom{p}$ by \cref{real_lt_subst_right}.
We have $(p\circ\beta)(u(x)) = p(\beta(u(x)))$ by \cref{circ_apply}.
$p\circ\beta$ is a function and $p\circ\beta$ is a relation and $\dom{(p\circ\beta)} = K$
by \cref{funs_circ,funs_is_function,funs_is_relation,funs_elim}.
Hence $g(x) = p(\beta(u(x)))$
by \cref{circ_apply,real_lt_subst_left,real_lt_subst_right}.
We have $d((f(c(u(x))),g(x))) < \delta$ by \cref{real_lt_subst_right}.
Hence $d((f(x),g(x))) < \delta + \delta$
by \cref{common_center_small_ball_distance_bound,funs_type_apply}.
\end{subproof}
Take $E$ such that
$E = \{r\in\reals \mid \exists \alpha\in X.
((r = d((\apply{f}{\alpha},\apply{g}{\alpha})) \land d((\apply{f}{\alpha},\apply{g}{\alpha})) < 1) \lor
(r = 1 \land 1 \leq d((\apply{f}{\alpha},\apply{g}{\alpha}))))\}$ and
$\rho((f,g))$ is a supremum of $E$
by \cref{uniform_metric_on_function_space}.
We have $\rho((f,g))$ is an upper bound of $E$ by \cref{real_supremum}.
Show that for all $r$ such that $r\in E$ we have $r \leq \delta + \delta$.
\begin{subproof}
Fix $r$ such that $r\in E$.
Take $x\in X$ such that
$((r = d((\apply{f}{x},\apply{g}{x})) \land d((\apply{f}{x},\apply{g}{x})) < 1) \lor
(r = 1 \land 1 \leq d((\apply{f}{x},\apply{g}{x}))))$
by \cref{subseteq}.
\begin{byCase}
\caseOf{$r = d((\apply{f}{x},\apply{g}{x}))$ and $d((\apply{f}{x},\apply{g}{x})) < 1$.}
We have $r \leq \delta + \delta$ by \cref{subseteq,real_lt_subst_left,real_lt_imp_leq}.
\caseOf{$r = 1$ and $1 \leq d((\apply{f}{x},\apply{g}{x}))$.}
We have $1 < \delta + \delta$
by \cref{metric_on,funs_type_apply,times_tuple_intro,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_add_closed,real_leq_split,real_lt_trans,real_lt_subst_left}.
Hence $r \leq \delta + \delta$ by \cref{real_lt_subst_left,real_lt_imp_leq}.
\end{byCase}
\end{subproof}
$E\subseteq\reals$ and $\delta + \delta\in\reals$ by \cref{subseteq,real_add_closed}.
Hence $\delta + \delta$ is an upper bound of $E$ by \cref{real_upper_bound}.
Hence $\rho((f,g)) \leq \delta + \delta$ by \cref{real_supremum}.
Thus $\delta + \delta < \epsilon$
by \cref{real_add_closed,real_add_ident,real_lt_add,real_add_comm,real_add_assoc,real_lt_trans,real_lt_subst_left,real_lt_subst_right}.
Therefore $\rho((f,g)) < \epsilon$
by \cref{metric_on,funs_type_apply,times_tuple_intro,real_leq_split,real_lt_trans,real_lt_subst_left}.
\end{subproof}
Follows by definition.
\end{proof}
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $Z$.
Assume $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Z$.
Suppose 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 $H$ such that $H$ is finite and $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Z$ and for all $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $g\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Then $F$ is totally bounded in $Z$ with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$.
LaTeX source
\begin{lemma}
\label{finite_metric_subset_totally_bounded_from_net}
Assume $\rho$ is a metric on $Z$.
Assume $F\subseteq Z$.
Suppose for all $\epsilon\in\reals$ such that $0 < \epsilon$
there exists $H$ such that
$H$ is finite and
$H\subseteq Z$ and
for all $f\in F$ there exists $g\in H$ such that
$\rho((f,g)) < \epsilon$.
Then $F$ is totally bounded in $Z$ with respect to $\rho$.
\end{lemma}
Proof
Claim: For all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ there exists $D$ such that $D$ is finite and $D$ is a covering of $F$ and for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ there exists $z\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ such that $U = F\inter\metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{Z}{z}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
Fix $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Take $H$ such that $H$ is finite and $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Z$ and for all $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $g\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Let $h = \{(g,F\inter\metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{Z}{g}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}) \mid g\class{latex-symbol-tip latex-symbol-id-in}{\in} H\}$.
For all $g,U_1,U_2$ such that $(g,U_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ and $(g,U_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ we have $U_1 = U_2$ by Axiom 6.
Hence $h$ is a function on $H$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
Let $D = \img{h}{H}$.
Therefore $D$ is finite by Lemma 192.
For all $f$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{D}$ by Axiom 4, Definition 1, Definition 177, Definition 179, Definition 180, Lemma 82, Proposition 61, Proposition 115, Proposition 235, Proposition 349.
Hence $D$ is a covering of $F$ by Definition 1, Definition 245.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ there exists $z\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ such that $U = F\inter\metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{Z}{z}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 1, Lemma 83, Proposition 235, Proposition 346.
Follows by definition.
Hence $F$ is totally bounded in $Z$ with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ by Definition 359.
LaTeX source
\begin{proof}
Show that for all $\epsilon\in\reals$ such that $0 < \epsilon$
there exists $D$ such that
$D$ is finite and
$D$ is a covering of $F$ and
for all $U\in D$ there exists $z\in Z$ such that
$U = F\inter\metricBall{\rho}{Z}{z}{\epsilon}$.
\begin{subproof}
Fix $\epsilon$ such that $\epsilon\in\reals$ and $0 < \epsilon$.
Take $H$ such that
$H$ is finite and
$H\subseteq Z$ and
for all $f\in F$ there exists $g\in H$ such that
$\rho((f,g)) < \epsilon$.
Let $h = \{(g,F\inter\metricBall{\rho}{Z}{g}{\epsilon}) \mid g\in H\}$.
For all $g,U_1,U_2$ such that $(g,U_1)\in h$ and $(g,U_2)\in h$ we have $U_1 = U_2$
by \cref{pair_eq_iff}.
Hence $h$ is a function on $H$
by \cref{rightunique,relation,subseteq_antisymmetric,subseteq,dom_intro,pair_eq_iff,dom_iff}.
Let $D = \img{h}{H}$.
Therefore $D$ is finite by \cref{finite_image_function}.
For all $f$ such that $f\in F$ we have $f\in\unions{D}$
by \cref{subseteq,metric_on,metric_symmetric,times_tuple_intro,real_lt_subst_left,metric_ball,inter_intro,img_iff,function_apply_iff,unions_iff}.
Hence $D$ is a covering of $F$ by \cref{subseteq,covering}.
For all $U\in D$ there exists $z\in Z$ such that
$U = F\inter\metricBall{\rho}{Z}{z}{\epsilon}$
by \cref{img_iff,subseteq,function_apply_intro,real_lt_subst_right}.
Follows by definition.
\end{subproof}
Hence $F$ is totally bounded in $Z$ with respect to $\rho$
by \cref{totally_bounded_subset_metric_space}.
\end{proof}
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $d$ is a metric on $Y$.
Assume $Y$ is compact with respect to $\metricTopology{d}{Y}$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Suppose $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
Then 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 $D$ such that $D$ is finite and $D$ is a covering of $F$ and for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ there exists $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ such that $U = F\inter\metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{X}{Y}}{g}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
LaTeX source
\begin{lemma}
\label{equicontinuous_function_family_uniform_cover}
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $d$ is a metric on $Y$.
Assume $Y$ is compact with respect to $\metricTopology{d}{Y}$.
Assume $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\subseteq C$.
Suppose $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
Then for all $\epsilon\in\reals$ such that $0 < \epsilon$
there exists $D$ such that
$D$ is finite and
$D$ is a covering of $F$ and
for all $U\in D$ there exists $g\in\funs{X}{Y}$ such that
$U = F\inter\metricBall{\rho}{\funs{X}{Y}}{g}{\epsilon}$.
\end{lemma}
Proof
Follows by Definition 1, Definition 344, Definition 345, Definition 359, Lemma 842, Lemma 843.
LaTeX source
\begin{proof}
Follows by \cref{uniform_metric_on_function_space,subseteq,continuous_function_set,finite_metric_subset_totally_bounded_from_net,equicontinuous_function_family_uniform_net,totally_bounded_subset_metric_space}.
\end{proof}
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $d$ is a metric on $Y$.
Assume $Y$ is compact with respect to $\metricTopology{d}{Y}$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Suppose $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
Then $F$ is totally bounded in $\funs{X}{Y}$ with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$.
LaTeX source
\begin{lemma}
\label{equicontinuous_function_family_totally_bounded_uniform}
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $d$ is a metric on $Y$.
Assume $Y$ is compact with respect to $\metricTopology{d}{Y}$.
Assume $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\subseteq C$.
Suppose $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
Then $F$ is totally bounded in $\funs{X}{Y}$ with respect to $\rho$.
\end{lemma}
Proof
Follows by Definition 1, Definition 344, Definition 345, Definition 359, Lemma 844.
LaTeX source
\begin{proof}
Follows by \cref{equicontinuous_function_family_uniform_cover,uniform_metric_on_function_space,subseteq,continuous_function_set,totally_bounded_subset_metric_space}.
\end{proof}
Assume $d$ is a metric on $Y$.
Suppose $x_1,x_2,x_3,x_4\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$.
Suppose $a,b,c\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $d((x_1,x_2)) < a$.
Suppose $d((x_2,x_3)) < b$.
Suppose $d((x_3,x_4)) < c$.
Then $d((x_1,x_4)) < a + b + c$.
LaTeX source
\begin{lemma}
\label{metric_three_step_lt_sum}
Assume $d$ is a metric on $Y$.
Suppose $x_1,x_2,x_3,x_4\in Y$.
Suppose $a,b,c\in\reals$.
Suppose $d((x_1,x_2)) < a$.
Suppose $d((x_2,x_3)) < b$.
Suppose $d((x_3,x_4)) < c$.
Then $d((x_1,x_4)) < a + b + c$.
\end{lemma}
Proof
We have $d((x_2,x_4)) < b + c$ by Axiom 13, Axiom 36, Definition 178, Definition 179, Lemma 81, Lemma 82, Proposition 115, Proposition 361, Proposition 450.
Hence $d((x_1,x_4)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x_1,x_2)) + d((x_2,x_4))$ by Definition 178, Definition 179, Proposition 115.
Thus $d((x_1,x_2)) + d((x_2,x_4)) < a + (b + c)$ by Axiom 13, Definition 179, Proposition 115, Proposition 361, Proposition 450.
Hence $d((x_1,x_4)) < a + b + c$ by Axiom 13, Axiom 15, Axiom 36, Definition 179, Lemma 81, Lemma 82, Proposition 115, Proposition 361.
LaTeX source
\begin{proof}
We have $d((x_2,x_4)) < b + c$
by \cref{real_lt_add_two,metric_on,metric_triangle_inequality,funs_type_apply,times_tuple_intro,real_add_closed,real_leq_split,real_lt_trans,real_lt_subst_left}.
Hence $d((x_1,x_4)) \leq d((x_1,x_2)) + d((x_2,x_4))$
by \cref{metric_on,metric_triangle_inequality,times_tuple_intro}.
Thus $d((x_1,x_2)) + d((x_2,x_4)) < a + (b + c)$
by \cref{real_lt_add_two,metric_on,funs_type_apply,times_tuple_intro,real_add_closed}.
Hence $d((x_1,x_4)) < a + b + c$
by \cref{metric_on,funs_type_apply,times_tuple_intro,real_add_closed,real_add_assoc,real_leq_split,real_lt_trans,real_lt_subst_left}.
\end{proof}
Assume $X$ is inhabited.
Assume $d$ is a metric on $Y$.
Assume $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\funs{X}{Y}$.
Assume $\sigma$ is the sup metric on $C$ with respect to $X$ and $Y$ and $d$.
Suppose $f,g\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.
Suppose $M\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((f(x),g(x))) < M$.
Then $\sigma((f,g)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$.
LaTeX source
\begin{lemma}
\label{sup_metric_upper_bound_from_pointwise}
Assume $X$ is inhabited.
Assume $d$ is a metric on $Y$.
Assume $C\subseteq\funs{X}{Y}$.
Assume $\sigma$ is the sup metric on $C$ with respect to $X$ and $Y$ and $d$.
Suppose $f,g\in C$.
Suppose $M\in\reals$.
Suppose for all $x\in X$ we have $d((f(x),g(x))) < M$.
Then $\sigma((f,g)) \leq M$.
\end{lemma}
Proof
Follows by Definition 1, Definition 66, Definition 71, Definition 179, Definition 347, Definition 348, Lemma 82, Lemma 231, Proposition 115, Proposition 361.
LaTeX source
\begin{proof}
Follows by \cref{sup_metric_on_bounded_function_space,function_distance_set,subseteq,real_lt_subst_left,real_lt_imp_leq,funs_type_apply,metric_on,times_tuple_intro,real_upper_bound,real_supremum}.
\end{proof}
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $X$ is inhabited.
Assume $d$ is a metric on $Y$.
Assume $Y$ is compact with respect to $\metricTopology{d}{Y}$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $C$ is inhabited.
Assume $\sigma$ is the sup metric on $C$ with respect to $X$ and $Y$ and $d$.
Assume $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Suppose $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
Then $F$ is totally bounded in $C$ with respect to $\sigma$.
LaTeX source
\begin{lemma}
\label{equicontinuous_function_family_totally_bounded_sup}
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $X$ is inhabited.
Assume $d$ is a metric on $Y$.
Assume $Y$ is compact with respect to $\metricTopology{d}{Y}$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $C$ is inhabited.
Assume $\sigma$ is the sup metric on $C$ with respect to $X$ and $Y$ and $d$.
Assume $F\subseteq C$.
Suppose $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
Then $F$ is totally bounded in $C$ with respect to $\sigma$.
\end{lemma}
Proof
$\sigma$ is a metric on $C$ by Definition 348.
Claim: For all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ there exists $H$ such that $H$ is finite and $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ and for all $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $g\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $\sigma((f,g)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Take $\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 $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < 1$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 834.
Take $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ and $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} + \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} = \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 837.
We have $Y$ is totally bounded with respect to $d$ by Theorem 119.
Take $C_Y$ such that $C_Y$ is finite and $C_Y$ is a covering of $Y$ and for all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} C_Y$ there exists $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ such that $V = Y\inter\metricBall{d}{Y}{y}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ by Definition 359, Definition 360.
Let $R_Y = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} C_Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y \mid \fst{w} = Y\inter\metricBall{d}{Y}{\snd{w}}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}\}$.
For all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} C_Y$ there exists $y$ such that $V\mathrel{R_Y} y$ by Axiom 10, Axiom 11, Definition 1, Proposition 115.
Take $p$ such that $p$ is a function on $C_Y$ and for all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} C_Y$ we have $V\mathrel{R_Y}\apply{p}{V}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
We have $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C_Y}{Y}$ by Definition 1, Proposition 114, Proposition 348, Proposition 358, Proposition 359.
For all $V\class{latex-symbol-tip latex-symbol-id-in}{\in} C_Y$ we have $V = Y\inter\metricBall{d}{Y}{p(V)}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ by Axiom 10, Axiom 11, Definition 1.
Let $N = \{U\class{latex-symbol-tip latex-symbol-id-in}{\in} T \mid \text{there exists $a\in X$ such that $U$ is a neighborhood of $a$ in $X$ with respect to $T$ and for all $x,f$ such that $x\in U$ and $f\in F$ we have $d((\apply{f}{x},\apply{f}{a})) < \delta$}\}$.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{N}$ by Axiom 4, Definition 1, Definition 103, Definition 153, Definition 361, Definition 362.
Hence $N$ is a covering of $X$ by Definition 1, Definition 245.
For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} N$ we have $U$ is open in $X$ with respect to $T$ by Definition 1, Definition 103.
Hence $N$ is an open covering of $X$ with respect to $T$ by Definition 246.
Take $K$ such that $K\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} N$ and $K$ is finite and $K$ is a covering of $X$ by Definition 247.
Let $R_X = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} K\class{latex-symbol-tip latex-symbol-id-times}{\times} X \mid \text{$\fst{w}$ is a neighborhood of $\snd{w}$ in $X$ with respect to $T$ and for all $x,f$ such that $x\in\fst{w}$ and $f\in F$ we have $d((\apply{f}{x},\apply{f}{\snd{w}})) < \delta$}\}$.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ there exists $a$ such that $U\mathrel{R_X} a$ by Axiom 10, Axiom 11, Definition 1, Proposition 115.
Take $c$ such that $c$ is a function on $K$ and for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $U\mathrel{R_X}\apply{c}{U}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
We have $c\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{K}{X}$ by Definition 1, Proposition 114, Proposition 348, Proposition 358, Proposition 359.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $U$ is a neighborhood of $c(U)$ in $X$ with respect to $T$ and for all $x,f$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $d((\apply{f}{x},\apply{f}{c(U)})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 10, Axiom 11, Definition 1.
Let $R_u = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} K \mid \fst{w}\class{latex-symbol-tip latex-symbol-id-in}{\in}\snd{w}\}$.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $U$ such that $x\mathrel{R_u} U$ by Axiom 4, Axiom 10, Axiom 11, Definition 1, Definition 245, Proposition 115.
Take $u$ such that $u$ is a function on $X$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $x\mathrel{R_u}\apply{u}{x}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
We have $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{K}$ by Definition 1, Proposition 114, Proposition 348, Proposition 358, Proposition 359.
Let $A = \funs{K}{C_Y}$.
We have $A$ is finite by Lemma 841.
Let $A_0 = \{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in} A \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} f\class{latex-symbol-tip latex-symbol-id-in}{\in} F. \class{latex-symbol-tip latex-symbol-id-forall}{\forall} U\class{latex-symbol-tip latex-symbol-id-in}{\in} K. \apply{f}{\apply{c}{U}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}{U}\}$.
Hence $A_0$ is finite by Definition 1, Lemma 44.
Let $R_q = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0\class{latex-symbol-tip latex-symbol-id-times}{\times} F \mid \class{latex-symbol-tip latex-symbol-id-forall}{\forall} U\class{latex-symbol-tip latex-symbol-id-in}{\in} K. \apply{\snd{w}}{\apply{c}{U}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{\fst{w}}{U}\}$.
For all $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0$ there exists $f$ such that $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\mathrel{R_q} f$ by Axiom 10, Axiom 11, Definition 1, Proposition 115.
Take $q$ such that $q$ is a function on $A_0$ and for all $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0$ we have $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\mathrel{R_q}\apply{q}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
For all $\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}\dom{q}$ we have $q(\class{latex-symbol-tip latex-symbol-id-beta}{\beta})\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Definition 1, Proposition 114, Proposition 348, Proposition 359.
Hence $q\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{A_0}{F}$ by Definition 1, Proposition 114, Proposition 348, Proposition 358, Proposition 359.
For all $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0$ we have for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $\apply{\apply{q}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}}{\apply{c}{U}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}{U}$ by Axiom 10, Axiom 11, Definition 1.
Let $H = \img{q}{A_0}$.
We have $H$ is finite by Lemma 192.
Hence $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Proposition 6, Proposition 237, Proposition 363.
Claim: For all $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $g\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $\sigma((f,g)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $f$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
We have $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ by Definition 1, Definition 345.
Let $R_f = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} K\class{latex-symbol-tip latex-symbol-id-times}{\times} C_Y \mid \apply{f}{\apply{c}{\fst{w}}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\snd{w}\}$.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ there exists $V$ such that $U\mathrel{R_f} V$ by Axiom 4, Axiom 10, Axiom 11, Definition 1, Definition 245, Proposition 115, Proposition 361.
Take $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}$ such that $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}$ is a function on $K$ and for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $U\mathrel{R_f}\apply{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}{U}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
We have $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 1, Proposition 114, Proposition 348, Proposition 358, Proposition 359.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $\apply{f}{\apply{c}{U}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}{U}$ by Axiom 10, Axiom 11, Definition 1.
Hence $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in} A_0$ by Definition 1.
Let $g = \apply{q}{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}$.
Claim: $g\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$.
Follows by Definition 1, Definition 345, Lemma 82, Proposition 235, Proposition 349.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((f(x),g(x))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} u(x)$ by Axiom 10, Axiom 11, Proposition 348.
We have $u(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ by Proposition 361.
We have $c(u(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Proposition 361.
$u(x)$ is a neighborhood of $c(u(x))$ in $X$ with respect to $T$ and for all $y,h_0$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} u(x)$ and $h_0\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $d((\apply{h_0}{y},\apply{h_0}{c(u(x))})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1.
Hence $d((f(x),f(c(u(x))))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1.
We have $d((g(x),g(c(u(x))))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1.
Thus $d((g(c(u(x))),g(x))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 177, Definition 179, Lemma 82, Proposition 115, Proposition 361.
We have $f(c(u(x)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(u(x))$ and $g(c(u(x)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(u(x))$ by Definition 1, Lemma 82.
Thus $f(c(u(x)))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\inter\metricBall{d}{Y}{p(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(u(x)))}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ and $g(c(u(x)))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\inter\metricBall{d}{Y}{p(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(u(x)))}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}}$ by Definition 1, Lemma 82, Proposition 361.
Therefore $d((f(c(u(x))),p(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(u(x))))) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ and $d((g(c(u(x))),p(\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(u(x))))) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ by Definition 177, Definition 179, Definition 180, Lemma 82, Proposition 63, Proposition 115, Proposition 361.
Hence $d((f(c(u(x))),g(c(u(x))))) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} + \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ by Lemma 836, Proposition 361.
Thus $d((f(c(u(x))),g(c(u(x))))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 83.
Therefore $d((f(x),g(x))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 846, Proposition 361.
We have $f\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Definition 1.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
Hence $\sigma((f,g)) \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} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 13, Definition 1, Definition 345, Lemma 847.
$\sigma((f,g))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
Therefore $\sigma((f,g)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 36, Lemma 81, Lemma 82.
Follows by definition.
Hence $F$ is totally bounded in $C$ with respect to $\sigma$ by Lemma 843.
LaTeX source
\begin{proof}
$\sigma$ is a metric on $C$ by \cref{sup_metric_on_bounded_function_space}.
Show that for all $\epsilon\in\reals$ such that $0 < \epsilon$
there exists $H$ such that
$H$ is finite and
$H\subseteq C$ and
for all $f\in F$ there exists $g\in H$ such that
$\sigma((f,g)) < \epsilon$.
\begin{subproof}
Fix $\epsilon$ such that $\epsilon\in\reals$ and $0 < \epsilon$.
Take $\delta\in\reals$ such that
$0 < \delta$ and
$\delta < 1$ and
$\delta + \delta + \delta < \epsilon$
by \cref{positive_real_small_triple_bound}.
Take $\alpha\in\reals$ such that
$0 < \alpha$ and
$\alpha + \alpha = \delta$ and
$\alpha < \delta$
by \cref{positive_real_half_decomposition}.
We have $Y$ is totally bounded with respect to $d$ by \cref{compact_metric_space_totally_bounded}.
Take $C_Y$ such that
$C_Y$ is finite and
$C_Y$ is a covering of $Y$ and
for all $V\in C_Y$ there exists $y\in Y$ such that
$V = Y\inter\metricBall{d}{Y}{y}{\alpha}$
by \cref{totally_bounded_metric_space,totally_bounded_subset_metric_space}.
Let $R_Y = \{w\in C_Y\times Y \mid \fst{w} = Y\inter\metricBall{d}{Y}{\snd{w}}{\alpha}\}$.
For all $V\in C_Y$ there exists $y$ such that $V\mathrel{R_Y} y$
by \cref{subseteq,times_tuple_intro,fst_eq,snd_eq}.
Take $p$ such that
$p$ is a function on $C_Y$ and
for all $V\in C_Y$ we have $V\mathrel{R_Y}\apply{p}{V}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
We have $p\in\funs{C_Y}{Y}$
by \cref{funs_elim,function_apply_elim,subseteq,times_tuple_elim,funs_intro}.
For all $V\in C_Y$ we have $V = Y\inter\metricBall{d}{Y}{p(V)}{\alpha}$
by \cref{subseteq,fst_eq,snd_eq}.
Let $N = \{U\in T \mid \text{there exists $a\in X$ such that
$U$ is a neighborhood of $a$ in $X$ with respect to $T$ and
for all $x,f$ such that $x\in U$ and $f\in F$ we have $d((\apply{f}{x},\apply{f}{a})) < \delta$}\}$.
For all $x$ such that $x\in X$ we have $x\in\unions{N}$
by \cref{equicontinuous_family,equicontinuous_at_point,neighborhood,open_in,subseteq,unions_iff}.
Hence $N$ is a covering of $X$ by \cref{subseteq,covering}.
For all $U$ such that $U\in N$ we have $U$ is open in $X$ with respect to $T$
by \cref{subseteq,open_in}.
Hence $N$ is an open covering of $X$ with respect to $T$ by \cref{open_covering}.
Take $K$ such that
$K\subseteq N$ and
$K$ is finite and
$K$ is a covering of $X$
by \cref{compact}.
Let $R_X = \{w\in K\times X \mid \text{$\fst{w}$ is a neighborhood of $\snd{w}$ in $X$ with respect to $T$ and
for all $x,f$ such that $x\in\fst{w}$ and $f\in F$ we have
$d((\apply{f}{x},\apply{f}{\snd{w}})) < \delta$}\}$.
For all $U\in K$ there exists $a$ such that $U\mathrel{R_X} a$
by \cref{subseteq,times_tuple_intro,fst_eq,snd_eq}.
Take $c$ such that
$c$ is a function on $K$ and
for all $U\in K$ we have $U\mathrel{R_X}\apply{c}{U}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
We have $c\in\funs{K}{X}$
by \cref{funs_elim,function_apply_elim,subseteq,times_tuple_elim,funs_intro}.
For all $U\in K$ we have
$U$ is a neighborhood of $c(U)$ in $X$ with respect to $T$ and
for all $x,f$ such that $x\in U$ and $f\in F$ we have
$d((\apply{f}{x},\apply{f}{c(U)})) < \delta$
by \cref{subseteq,fst_eq,snd_eq}.
Let $R_u = \{w\in X\times K \mid \fst{w}\in\snd{w}\}$.
For all $x\in X$ there exists $U$ such that $x\mathrel{R_u} U$
by \cref{covering,subseteq,unions_iff,times_tuple_intro,fst_eq,snd_eq}.
Take $u$ such that
$u$ is a function on $X$ and
for all $x\in X$ we have $x\mathrel{R_u}\apply{u}{x}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
We have $u\in\funs{X}{K}$
by \cref{funs_elim,function_apply_elim,subseteq,times_tuple_elim,funs_intro}.
Let $A = \funs{K}{C_Y}$.
We have $A$ is finite by \cref{finite_function_space}.
Let $A_0 = \{\beta\in A \mid \exists f\in F. \forall U\in K. \apply{f}{\apply{c}{U}}\in\apply{\beta}{U}\}$.
Hence $A_0$ is finite by \cref{subseteq,subseteq_finite_is_finite}.
Let $R_q = \{w\in A_0\times F \mid \forall U\in K. \apply{\snd{w}}{\apply{c}{U}}\in\apply{\fst{w}}{U}\}$.
For all $\beta\in A_0$ there exists $f$ such that $\beta\mathrel{R_q} f$
by \cref{subseteq,times_tuple_intro,fst_eq,snd_eq}.
Take $q$ such that
$q$ is a function on $A_0$ and
for all $\beta\in A_0$ we have $\beta\mathrel{R_q}\apply{q}{\beta}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
For all $\beta$ such that $\beta\in\dom{q}$ we have $q(\beta)\in F$
by \cref{funs_elim,function_apply_elim,subseteq,times_tuple_elim}.
Hence $q\in\funs{A_0}{F}$ by \cref{funs_elim,function_apply_elim,subseteq,times_tuple_elim,funs_intro}.
For all $\beta\in A_0$ we have
for all $U\in K$ we have $\apply{\apply{q}{\beta}}{\apply{c}{U}}\in\apply{\beta}{U}$
by \cref{subseteq,fst_eq,snd_eq}.
Let $H = \img{q}{A_0}$.
We have $H$ is finite by \cref{finite_image_function}.
Hence $H\subseteq C$ by \cref{img_subseteq_ran,funs_ran,subseteq_transitive}.
Show that for all $f\in F$ there exists $g\in H$ such that
$\sigma((f,g)) < \epsilon$.
\begin{subproof}
Fix $f$ such that $f\in F$.
We have $f\in\funs{X}{Y}$ by \cref{subseteq,continuous_function_set}.
Let $R_f = \{w\in K\times C_Y \mid \apply{f}{\apply{c}{\fst{w}}}\in\snd{w}\}$.
For all $U\in K$ there exists $V$ such that $U\mathrel{R_f} V$
by \cref{funs_type_apply,covering,subseteq,unions_iff,times_tuple_intro,fst_eq,snd_eq}.
Take $\beta$ such that
$\beta$ is a function on $K$ and
for all $U\in K$ we have $U\mathrel{R_f}\apply{\beta}{U}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
We have $\beta\in A$
by \cref{funs_elim,function_apply_elim,subseteq,times_tuple_elim,funs_intro}.
For all $U\in K$ we have $\apply{f}{\apply{c}{U}}\in\apply{\beta}{U}$
by \cref{subseteq,fst_eq,snd_eq}.
Hence $\beta\in A_0$ by \cref{subseteq}.
Let $g = \apply{q}{\beta}$.
Show that $g\in H$ and $g\in C$ and $g\in\funs{X}{Y}$.
\begin{subproof}
Follows by \cref{img_iff,function_apply_iff,real_lt_subst_left,subseteq,continuous_function_set}.
\end{subproof}
Show that for all $x\in X$ we have $d((f(x),g(x))) < \delta + \delta + \delta$.
\begin{subproof}
Fix $x$ such that $x\in X$.
We have $x\in u(x)$ by \cref{function_apply_elim,fst_eq,snd_eq}.
We have $u(x)\in K$ by \cref{funs_type_apply}.
We have $c(u(x))\in X$ by \cref{funs_type_apply}.
$u(x)$ is a neighborhood of $c(u(x))$ in $X$ with respect to $T$ and
for all $y,h_0$ such that $y\in u(x)$ and $h_0\in F$ we have
$d((\apply{h_0}{y},\apply{h_0}{c(u(x))})) < \delta$ by \cref{subseteq}.
Hence $d((f(x),f(c(u(x))))) < \delta$ by \cref{subseteq}.
We have $d((g(x),g(c(u(x))))) < \delta$ by \cref{subseteq}.
Thus $d((g(c(u(x))),g(x))) < \delta$
by \cref{metric_on,metric_symmetric,funs_type_apply,real_lt_subst_left,times_tuple_intro}.
We have $f(c(u(x)))\in\beta(u(x))$ and $g(c(u(x)))\in\beta(u(x))$
by \cref{subseteq,real_lt_subst_left}.
Thus $f(c(u(x)))\in Y\inter\metricBall{d}{Y}{p(\beta(u(x)))}{\alpha}$ and
$g(c(u(x)))\in Y\inter\metricBall{d}{Y}{p(\beta(u(x)))}{\alpha}$
by \cref{subseteq,funs_type_apply,real_lt_subst_left}.
Therefore $d((f(c(u(x))),p(\beta(u(x))))) < \alpha$ and
$d((g(c(u(x))),p(\beta(u(x))))) < \alpha$
by \cref{inter_elim_right,metric_ball,metric_on,metric_symmetric,funs_type_apply,real_lt_subst_left,times_tuple_intro}.
Hence $d((f(c(u(x))),g(c(u(x))))) < \alpha + \alpha$
by \cref{common_center_small_ball_distance_bound,funs_type_apply}.
Thus $d((f(c(u(x))),g(c(u(x))))) < \delta$ by \cref{real_lt_subst_right}.
Therefore $d((f(x),g(x))) < \delta + \delta + \delta$
by \cref{metric_three_step_lt_sum,funs_type_apply}.
\end{subproof}
We have $f\in C$ by \cref{subseteq}.
$\delta + \delta + \delta\in\reals$ by \cref{real_add_closed}.
Hence $\sigma((f,g)) \leq \delta + \delta + \delta$
by \cref{sup_metric_upper_bound_from_pointwise,subseteq,continuous_function_set,real_add_closed}.
$\sigma((f,g))\in\reals$ by \cref{metric_on,funs_type_apply,times_tuple_intro}.
Therefore $\sigma((f,g)) < \epsilon$
by \cref{real_leq_split,real_lt_trans,real_lt_subst_left}.
\end{subproof}
Follows by definition.
\end{subproof}
Hence $F$ is totally bounded in $C$ with respect to $\sigma$
by \cref{finite_metric_subset_totally_bounded_from_net}.
\end{proof}
Assume $d$ is a metric on $X$.
Let $T = \metricTopology{d}{X}$.
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Suppose $A$ is compact with respect to $\subspaceTopology{T}{A}$.
Then $A$ is totally bounded in $X$ with respect to $d$.
LaTeX source
\begin{lemma}
\label{compact_metric_subspace_ambient_totally_bounded}
Assume $d$ is a metric on $X$.
Let $T = \metricTopology{d}{X}$.
Suppose $A\subseteq X$.
Suppose $A$ is compact with respect to $\subspaceTopology{T}{A}$.
Then $A$ is totally bounded in $X$ with respect to $d$.
\end{lemma}
Proof
$T$ is a topology on $X$ by Definition 115, Definition 182, Lemma 76, Lemma 194.
Claim: For all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ there exists $D$ such that $D$ is finite and $D$ is a covering of $A$ and for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $U = A\inter\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
Fix $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Let $C = \{\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}} \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} A\}$.
We have $C$ is a covering of $A$ by Axiom 4, Definition 1, Definition 176, Definition 179, Definition 180, Definition 245, Lemma 82.
For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $U$ is open in $X$ with respect to $T$ by Definition 1, Definition 103, Definition 115, Definition 180, Definition 181, Definition 182, Lemma 76, Lemma 77, Lemma 82, Lemma 194, Proposition 155.
Take $B$ such that $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ and $B$ is finite and $B$ is a covering of $A$ by Definition 147, Lemma 356.
Let $h = \{(U, A\inter U) \mid U\class{latex-symbol-tip latex-symbol-id-in}{\in} B\}$.
We have $h$ is a function on $B$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
Let $D = \img{h}{B}$.
$D$ is finite by Lemma 192.
$D$ is a covering of $A$ by Axiom 4, Definition 1, Definition 245, Proposition 61, Proposition 235, Proposition 349.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ there exists $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $U = A\inter\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 1, Lemma 83, Proposition 235, Proposition 346.
Follows by definition.
Therefore $A$ is totally bounded in $X$ with respect to $d$ by Definition 359.
LaTeX source
\begin{proof}
$T$ is a topology on $X$
by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology,basis_for_topology}.
Show that for all $\epsilon\in\reals$ such that $0 < \epsilon$
there exists $D$ such that
$D$ is finite and
$D$ is a covering of $A$ and
for all $U\in D$ there exists $x\in X$ such that
$U = A\inter\metricBall{d}{X}{x}{\epsilon}$.
\begin{subproof}
Fix $\epsilon$ such that $\epsilon\in\reals$ and $0 < \epsilon$.
Let $C = \{\metricBall{d}{X}{x}{\epsilon} \mid x\in A\}$.
We have $C$ is a covering of $A$
by \cref{subseteq,metric_ball,metric_on,metric_zero_characterization,real_lt_subst_left,unions_iff,covering}.
For all $U$ such that $U\in C$ we have $U$ is open in $X$ with respect to $T$
by \cref{subseteq,metric_ball,metric_basis,powerset_intro,real_lt_subst_left,metric_topology,metric_basis_is_basis,basis_topology_is_topology,basis_for_topology,basis_elem_open_in_generated,open_in}.
Take $B$ such that
$B\subseteq C$ and
$B$ is finite and
$B$ is a covering of $A$
by \cref{subspace_of,compact_subspace_open_covering}.
Let $h = \{(U, A\inter U) \mid U\in B\}$.
We have $h$ is a function on $B$ by \cref{rightunique,relation,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
Let $D = \img{h}{B}$.
$D$ is finite by \cref{finite_image_function}.
$D$ is a covering of $A$
by \cref{covering,subseteq,unions_iff,inter_intro,img_iff,function_apply_iff}.
For all $U\in D$ there exists $x\in X$ such that
$U = A\inter\metricBall{d}{X}{x}{\epsilon}$
by \cref{img_iff,subseteq,function_apply_intro,real_lt_subst_right}.
Follows by definition.
\end{subproof}
Therefore $A$ is totally bounded in $X$ with respect to $d$
by \cref{totally_bounded_subset_metric_space}.
\end{proof}
Assume $d$ is a metric on $X$.
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Suppose $A$ is finite.
Then $A$ is bounded in $X$ with respect to $d$.
LaTeX source
\begin{lemma}
\label{finite_metric_subset_bounded}
Assume $d$ is a metric on $X$.
Suppose $A\subseteq X$.
Suppose $A$ is finite.
Then $A$ is bounded in $X$ with respect to $d$.
\end{lemma}
Proof
Let $M = 0$.
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$ by Axiom 2, Proposition 4, Proposition 12.
Therefore $A$ is bounded in $X$ with respect to $d$ by Axiom 17, Definition 187.
Take $a_0$ such that $a_0\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 10.
Let $f = \{(a,d((a,a_0))) \mid a\class{latex-symbol-tip latex-symbol-id-in}{\in} A\}$.
We have $f$ is a function on $A$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
Let $D = \img{f}{A}$.
$D$ is finite by Lemma 192.
For all $r\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ we have $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1, Definition 179, Lemma 82, Proposition 115, Proposition 235, Proposition 346, Proposition 361.
$D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Definition 1.
We have $D\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Axiom 2, Definition 1, Proposition 235, Proposition 349.
Take $M\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ such that $M$ is a maximum of $D$ by Lemma 47.
Claim: For all $x,y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $d((x,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M + M$.
Fix $x$.
Fix $y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $a_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1.
Hence $(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(x,a_0)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(a_0,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Proposition 115.
Therefore $d((x,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x,a_0)) + d((a_0,y))$ by Definition 178, Definition 179.
Hence $d((x,a_0)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ and $d((a_0,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ by Definition 1, Definition 73, Definition 177, Definition 179, Lemma 82, Lemma 83, Proposition 235, Proposition 346, Proposition 349.
We have $d((x,a_0))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((a_0,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((x,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $M\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 73, Definition 179, Proposition 361.
Hence $d((x,a_0)) + d((a_0,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M + d((x,a_0))$ by Axiom 16, Lemma 24.
$M + d((x,a_0)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M + M$ by Axiom 16, Lemma 24.
We have $d((x,a_0)) + d((a_0,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $M + d((x,a_0))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $M + M\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
Thus $d((x,a_0)) + d((a_0,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M + M$ by Lemma 23.
Therefore $d((x,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M + M$ by Lemma 23.
Therefore $A$ is bounded in $X$ with respect to $d$ by Axiom 13, Definition 73, Definition 187.
LaTeX source
\begin{byCase}
\caseOf{$A = \emptyset$.}
Let $M = 0$.
For all $a_1,a_2\in A$ we have $d((a_1,a_2)) \leq M$
by \cref{subseteq_emptyset_iff,elem_subseteq,emptyset}.
Therefore $A$ is bounded in $X$ with respect to $d$ by \cref{real_add_ident,metric_bounded}.
\caseOf{$A\neq\emptyset$.}
Take $a_0$ such that $a_0\in A$ by \cref{nonempty_inhabited}.
Let $f = \{(a,d((a,a_0))) \mid a\in A\}$.
We have $f$ is a function on $A$ by \cref{rightunique,relation,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
Let $D = \img{f}{A}$.
$D$ is finite by \cref{finite_image_function}.
For all $r\in D$ we have $r\in\reals$
by \cref{img_iff,subseteq,times_tuple_intro,function_apply_intro,metric_on,funs_type_apply,real_lt_subst_left}.
$D\subseteq\reals$ by \cref{subseteq}.
We have $D\neq\emptyset$
by \cref{subseteq,function_apply_iff,img_iff,emptyset}.
Take $M\in D$ such that $M$ is a maximum of $D$ by \cref{finite_real_maximum}.
Show that for all $x,y\in A$ we have $d((x,y)) \leq M + M$.
\begin{subproof}
Fix $x$.
Fix $y$ such that $x\in A$ and $y\in A$.
We have $x\in X$ and $y\in X$ and $a_0\in X$ by \cref{subseteq}.
Hence $(x,y)\in X\times X$ and $(x,a_0)\in X\times X$ and $(a_0,y)\in X\times X$
by \cref{times_tuple_intro}.
Therefore $d((x,y)) \leq d((x,a_0)) + d((a_0,y))$
by \cref{metric_on,metric_triangle_inequality}.
Hence $d((x,a_0)) \leq M$ and $d((a_0,y)) \leq M$
by \cref{subseteq,function_apply_iff,img_iff,function_apply_intro,real_lt_subst_left,real_lt_subst_right,real_maximum,metric_on,metric_symmetric}.
We have $d((x,a_0))\in\reals$ and $d((a_0,y))\in\reals$ and $d((x,y))\in\reals$ and $M\in\reals$
by \cref{metric_on,funs_type_apply,real_maximum}.
Hence $d((x,a_0)) + d((a_0,y)) \leq M + d((x,a_0))$ by \cref{real_leq_add,real_add_comm}.
$M + d((x,a_0)) \leq M + M$ by \cref{real_leq_add,real_add_comm}.
We have $d((x,a_0)) + d((a_0,y))\in\reals$ and $M + d((x,a_0))\in\reals$ and $M + M\in\reals$
by \cref{real_add_closed}.
Thus $d((x,a_0)) + d((a_0,y)) \leq M + M$ by \cref{real_leq_trans}.
Therefore $d((x,y)) \leq M + M$ by \cref{real_leq_trans}.
\end{subproof}
Therefore $A$ is bounded in $X$ with respect to $d$ by \cref{real_maximum,real_add_closed,metric_bounded}.
\end{byCase}
LaTeX source
\begin{proof}
\begin{byCase}
\caseOf{$A = \emptyset$.}
Let $M = 0$.
For all $a_1,a_2\in A$ we have $d((a_1,a_2)) \leq M$
by \cref{subseteq_emptyset_iff,elem_subseteq,emptyset}.
Therefore $A$ is bounded in $X$ with respect to $d$ by \cref{real_add_ident,metric_bounded}.
\caseOf{$A\neq\emptyset$.}
Take $a_0$ such that $a_0\in A$ by \cref{nonempty_inhabited}.
Let $f = \{(a,d((a,a_0))) \mid a\in A\}$.
We have $f$ is a function on $A$ by \cref{rightunique,relation,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
Let $D = \img{f}{A}$.
$D$ is finite by \cref{finite_image_function}.
For all $r\in D$ we have $r\in\reals$
by \cref{img_iff,subseteq,times_tuple_intro,function_apply_intro,metric_on,funs_type_apply,real_lt_subst_left}.
$D\subseteq\reals$ by \cref{subseteq}.
We have $D\neq\emptyset$
by \cref{subseteq,function_apply_iff,img_iff,emptyset}.
Take $M\in D$ such that $M$ is a maximum of $D$ by \cref{finite_real_maximum}.
Show that for all $x,y\in A$ we have $d((x,y)) \leq M + M$.
\begin{subproof}
Fix $x$.
Fix $y$ such that $x\in A$ and $y\in A$.
We have $x\in X$ and $y\in X$ and $a_0\in X$ by \cref{subseteq}.
Hence $(x,y)\in X\times X$ and $(x,a_0)\in X\times X$ and $(a_0,y)\in X\times X$
by \cref{times_tuple_intro}.
Therefore $d((x,y)) \leq d((x,a_0)) + d((a_0,y))$
by \cref{metric_on,metric_triangle_inequality}.
Hence $d((x,a_0)) \leq M$ and $d((a_0,y)) \leq M$
by \cref{subseteq,function_apply_iff,img_iff,function_apply_intro,real_lt_subst_left,real_lt_subst_right,real_maximum,metric_on,metric_symmetric}.
We have $d((x,a_0))\in\reals$ and $d((a_0,y))\in\reals$ and $d((x,y))\in\reals$ and $M\in\reals$
by \cref{metric_on,funs_type_apply,real_maximum}.
Hence $d((x,a_0)) + d((a_0,y)) \leq M + d((x,a_0))$ by \cref{real_leq_add,real_add_comm}.
$M + d((x,a_0)) \leq M + M$ by \cref{real_leq_add,real_add_comm}.
We have $d((x,a_0)) + d((a_0,y))\in\reals$ and $M + d((x,a_0))\in\reals$ and $M + M\in\reals$
by \cref{real_add_closed}.
Thus $d((x,a_0)) + d((a_0,y)) \leq M + M$ by \cref{real_leq_trans}.
Therefore $d((x,y)) \leq M + M$ by \cref{real_leq_trans}.
\end{subproof}
Therefore $A$ is bounded in $X$ with respect to $d$ by \cref{real_maximum,real_add_closed,metric_bounded}.
\end{byCase}
\end{proof}
Assume $d$ is a metric on $X$.
Let $T = \metricTopology{d}{X}$.
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Suppose $A$ is bounded in $X$ with respect to $d$.
Let $B = \closure{A}{X}{T}$.
Then $B$ is bounded in $X$ with respect to $d$.
LaTeX source
\begin{lemma}
\label{closure_metric_bounded}
Assume $d$ is a metric on $X$.
Let $T = \metricTopology{d}{X}$.
Suppose $A\subseteq X$.
Suppose $A$ is bounded in $X$ with respect to $d$.
Let $B = \closure{A}{X}{T}$.
Then $B$ is bounded in $X$ with respect to $d$.
\end{lemma}
Proof
$T$ is a topology on $X$ by Definition 115, Definition 182, Lemma 76, Lemma 194.
Hence $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 1, Definition 149, Lemma 144.
Take $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$ by Definition 187.
Claim: For all $x,z\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ we have $d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 + (M + 1) + 1$.
Fix $x$.
Fix $z$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < 1$ by Axiom 41, Axiom 42, Definition 1, Proposition 462.
Hence $\metricBall{d}{X}{x}{1}$ is open in $X$ with respect to $T$ by Definition 1, Definition 103, Definition 115, Definition 180, Definition 181, Definition 182, Lemma 77, Lemma 194, Proposition 155.
Hence $\metricBall{d}{X}{x}{1}$ intersects $A$ by Definition 176, Definition 179, Definition 180, Lemma 82, Theorem 11.
Take $a_1$ such that $a_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X}{x}{1}\inter A$ by Definition 152, Proposition 10.
We have $\metricBall{d}{X}{z}{1}$ is open in $X$ with respect to $T$ by Definition 1, Definition 103, Definition 115, Definition 180, Definition 181, Definition 182, Lemma 77, Lemma 82, Lemma 194, Proposition 155.
Hence $\metricBall{d}{X}{z}{1}$ intersects $A$ by Definition 176, Definition 179, Definition 180, Lemma 82, Theorem 11.
Take $a_2$ such that $a_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X}{z}{1}\inter A$ by Definition 152, Proposition 10.
We have $a_1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $a_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $d((x,a_1)) < 1$ by Definition 180, Proposition 62, Proposition 63.
We have $a_2\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $a_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $d((z,a_2)) < 1$ by Definition 180, Proposition 62, Proposition 63.
We have $d((a_1,a_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$.
Hence $d((a_2,z)) < 1$ by Definition 177, Definition 179, Lemma 82, Proposition 115.
We have $(x,a_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(a_1,a_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ and $(a_2,z)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} X$ by Proposition 115.
We have $d((x,a_1))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((a_1,a_2))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((a_2,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $M\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
We have $M + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
Therefore $M < M + 1$ by Axiom 16, Axiom 17, Axiom 37, Lemma 82.
Thus $d((a_1,a_2)) < M + 1$ by Axiom 36, Lemma 81, Lemma 82.
Hence $d((x,z)) < 1 + (M + 1) + 1$ by Lemma 846.
Therefore $d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 + (M + 1) + 1$ by Lemma 231.
Therefore $B$ is bounded in $X$ with respect to $d$ by Axiom 13, Axiom 41, Axiom 42, Definition 1, Definition 187.
LaTeX source
\begin{proof}
$T$ is a topology on $X$
by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology,basis_for_topology}.
Hence $B\subseteq X$ by \cref{closure_closed_in,closed_in,subseteq}.
Take $M\in\reals$ such that for all $a_1,a_2\in A$ we have $d((a_1,a_2)) \leq M$
by \cref{metric_bounded}.
Show that for all $x,z\in B$ we have $d((x,z)) \leq 1 + (M + 1) + 1$.
\begin{subproof}
Fix $x$.
Fix $z$ such that $x\in B$ and $z\in B$.
We have $x\in X$ and $z\in X$ by \cref{subseteq}.
$1\in\reals$ and $0 < 1$
by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_zero_lt_one}.
Hence $\metricBall{d}{X}{x}{1}$ is open in $X$ with respect to $T$
by \cref{metric_ball,subseteq,metric_basis,metric_basis_is_basis,basis_elem_open_in_generated,metric_topology,basis_for_topology,powerset_intro,open_in}.
Hence $\metricBall{d}{X}{x}{1}$ intersects $A$
by \cref{metric_ball,metric_on,metric_zero_characterization,real_lt_subst_left,closure_iff_intersects_open}.
Take $a_1$ such that $a_1\in\metricBall{d}{X}{x}{1}\inter A$ by \cref{intersects,nonempty_inhabited}.
We have $\metricBall{d}{X}{z}{1}$ is open in $X$ with respect to $T$
by \cref{metric_ball,subseteq,metric_basis,metric_basis_is_basis,basis_elem_open_in_generated,metric_topology,basis_for_topology,powerset_intro,open_in,real_lt_subst_left}.
Hence $\metricBall{d}{X}{z}{1}$ intersects $A$
by \cref{metric_ball,metric_on,metric_zero_characterization,real_lt_subst_left,closure_iff_intersects_open}.
Take $a_2$ such that $a_2\in\metricBall{d}{X}{z}{1}\inter A$ by \cref{intersects,nonempty_inhabited}.
We have $a_1\in A$ and $a_1\in X$ and $d((x,a_1)) < 1$
by \cref{inter_elim_left,inter_elim_right,metric_ball}.
We have $a_2\in A$ and $a_2\in X$ and $d((z,a_2)) < 1$
by \cref{inter_elim_left,inter_elim_right,metric_ball}.
We have $d((a_1,a_2)) \leq M$.
Hence $d((a_2,z)) < 1$ by \cref{metric_on,metric_symmetric,real_lt_subst_left,times_tuple_intro}.
We have $(x,a_1)\in X\times X$ and $(a_1,a_2)\in X\times X$ and $(a_2,z)\in X\times X$
by \cref{times_tuple_intro}.
We have $d((x,a_1))\in\reals$ and $d((a_1,a_2))\in\reals$ and $d((a_2,z))\in\reals$ and
$M\in\reals$ by \cref{metric_on,funs_type_apply}.
We have $M + 1\in\reals$ by \cref{real_add_closed}.
Therefore $M < M + 1$ by \cref{real_lt_add,real_add_ident,real_add_comm,real_lt_subst_left}.
Thus $d((a_1,a_2)) < M + 1$ by \cref{real_leq_split,real_lt_trans,real_lt_subst_left}.
Hence $d((x,z)) < 1 + (M + 1) + 1$
by \cref{metric_three_step_lt_sum}.
Therefore $d((x,z)) \leq 1 + (M + 1) + 1$ by \cref{real_lt_imp_leq}.
\end{subproof}
Therefore $B$ is bounded in $X$ with respect to $d$
by \cref{real_add_closed,real_naturals_subset_reals,real_one_in_naturals,subseteq,metric_bounded}.
\end{proof}
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $d$ is a metric on $Y$.
Assume $d = \squareMetric{n}$ or $d = \euclideanMetric{n}$.
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$.
Suppose $A$ is bounded in $Y$ with respect to $d$.
Suppose $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Suppose $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Then there exists $H$ such that $H$ is finite and $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ and for all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ there exists $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $d((a,h)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
LaTeX source
\begin{lemma}
\label{bounded_reals_power_subset_finite_internal_net}
Assume $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $d$ is a metric on $Y$.
Assume $d = \squareMetric{n}$ or $d = \euclideanMetric{n}$.
Suppose $A\subseteq Y$.
Suppose $A$ is bounded in $Y$ with respect to $d$.
Suppose $\epsilon\in\reals$.
Suppose $0 < \epsilon$.
Then there exists $H$ such that
$H$ is finite and
$H\subseteq Y$ and
for all $a\in A$ there exists $h\in H$ such that
$d((a,h)) < \epsilon$.
\end{lemma}
Proof
Let $S = \metricTopology{d}{Y}$.
Let $B = \closure{A}{Y}{S}$.
$S$ is a topology on $Y$ by Definition 115, Definition 182, Lemma 76, Lemma 194.
We have $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ by Definition 1, Definition 151.
We have $B$ is bounded in $Y$ with respect to $d$ by Lemma 851.
Let $d_0 = \squareMetric{n}$.
We have $S = \metricTopology{d_0}{Y}$ by Lemma 82, Lemma 371.
Hence $B$ is closed in $Y$ with respect to $\metricTopology{d_0}{Y}$ by Lemma 83, Lemma 144.
We have $B$ is bounded in $Y$ with respect to $\euclideanMetric{n}$ or $B$ is bounded in $Y$ with respect to $d_0$ by Lemma 83.
Thus $B$ is compact with respect to $\subspaceTopology{\metricTopology{d_0}{Y}}{B}$ by Theorem 66.
Hence $B$ is totally bounded in $Y$ with respect to $d$ by Lemma 82, Lemma 849.
We have $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B$ by Lemma 146.
Claim: There exists $H$ such that $H$ is finite and $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ and for all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ there exists $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $d((a,h)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Follows by Axiom 2, Definition 1, Lemma 35, Lemma 82, Proposition 6, Proposition 11, Proposition 12.
Follows by definition.
Claim: There exists $H$ such that $H$ is finite and $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ and for all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ there exists $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $d((a,h)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Follows by Definition 1, Lemma 832, Proposition 6, Proposition 10.
Follows by definition.
LaTeX source
\begin{byCase}
\caseOf{$B = \emptyset$.}
Show that there exists $H$ such that
$H$ is finite and
$H\subseteq Y$ and
for all $a\in A$ there exists $h\in H$ such that
$d((a,h)) < \epsilon$.
\begin{subproof}
Follows by \cref{subseteq_emptyset_iff,subseteq_transitive,emptyset_is_finite,emptyset_subseteq,subseteq,real_lt_subst_left,emptyset}.
\end{subproof}
Follows by definition.
\caseOf{$B\neq\emptyset$.}
Show that there exists $H$ such that
$H$ is finite and
$H\subseteq Y$ and
for all $a\in A$ there exists $h\in H$ such that
$d((a,h)) < \epsilon$.
\begin{subproof}
Follows by \cref{nonempty_inhabited,totally_bounded_subset_finite_internal_net,subseteq_transitive,subseteq}.
\end{subproof}
Follows by definition.
\end{byCase}
LaTeX source
\begin{proof}
Let $S = \metricTopology{d}{Y}$.
Let $B = \closure{A}{Y}{S}$.
$S$ is a topology on $Y$
by \cref{metric_topology,metric_basis_is_basis,basis_for_topology,basis_topology_is_topology}.
We have $B\subseteq Y$ by \cref{closure,subseteq}.
We have $B$ is bounded in $Y$ with respect to $d$ by \cref{closure_metric_bounded}.
Let $d_0 = \squareMetric{n}$.
We have $S = \metricTopology{d_0}{Y}$
by \cref{square_metric_topology_equals_euclidean,real_lt_subst_left}.
Hence $B$ is closed in $Y$ with respect to $\metricTopology{d_0}{Y}$
by \cref{closure_closed_in,real_lt_subst_right}.
We have $B$ is bounded in $Y$ with respect to $\euclideanMetric{n}$ or
$B$ is bounded in $Y$ with respect to $d_0$ by \cref{real_lt_subst_right}.
Thus $B$ is compact with respect to $\subspaceTopology{\metricTopology{d_0}{Y}}{B}$
by \cref{compact_reals_power_iff_closed_bounded}.
Hence $B$ is totally bounded in $Y$ with respect to $d$
by \cref{real_lt_subst_left,compact_metric_subspace_ambient_totally_bounded}.
We have $A\subseteq B$ by \cref{subseteq_closure}.
\begin{byCase}
\caseOf{$B = \emptyset$.}
Show that there exists $H$ such that
$H$ is finite and
$H\subseteq Y$ and
for all $a\in A$ there exists $h\in H$ such that
$d((a,h)) < \epsilon$.
\begin{subproof}
Follows by \cref{subseteq_emptyset_iff,subseteq_transitive,emptyset_is_finite,emptyset_subseteq,subseteq,real_lt_subst_left,emptyset}.
\end{subproof}
Follows by definition.
\caseOf{$B\neq\emptyset$.}
Show that there exists $H$ such that
$H$ is finite and
$H\subseteq Y$ and
for all $a\in A$ there exists $h\in H$ such that
$d((a,h)) < \epsilon$.
\begin{subproof}
Follows by \cref{nonempty_inhabited,totally_bounded_subset_finite_internal_net,subseteq_transitive,subseteq}.
\end{subproof}
Follows by definition.
\end{byCase}
\end{proof}
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $d$ is a metric on $Y$.
Assume $d = \squareMetric{n}$ or $d = \euclideanMetric{n}$.
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Suppose $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
Suppose for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $A$ such that $A = \{\apply{f}{x} \mid f\class{latex-symbol-tip latex-symbol-id-in}{\in} F\}$ and $A$ is bounded in $Y$ with respect to $d$.
Then $F$ is totally bounded in $\funs{X}{Y}$ with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$.
LaTeX source
\begin{lemma}
\label{equicontinuous_pointwise_bounded_function_family_totally_bounded_uniform}
Assume $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $d$ is a metric on $Y$.
Assume $d = \squareMetric{n}$ or $d = \euclideanMetric{n}$.
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\subseteq C$.
Suppose $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
Suppose for all $x\in X$ there exists $A$ such that
$A = \{\apply{f}{x} \mid f\in F\}$ and
$A$ is bounded in $Y$ with respect to $d$.
Then $F$ is totally bounded in $\funs{X}{Y}$ with respect to $\rho$.
\end{lemma}
Proof
Let $Z = \funs{X}{Y}$.
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $Z$ by Definition 344.
$F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Z$ by Definition 1, Definition 345.
Claim: For all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ there exists $H$ such that $H$ is finite and $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Z$ and for all $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $g\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Take $\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 $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < 1$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 834.
Let $N = \{U\class{latex-symbol-tip latex-symbol-id-in}{\in} T \mid \text{there exists $a\in X$ such that $U$ is a neighborhood of $a$ in $X$ with respect to $T$ and for all $x,f$ such that $x\in U$ and $f\in F$ we have $d((\apply{f}{x},\apply{f}{a})) < \delta$}\}$.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and for all $y,f$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $d((\apply{f}{y},\apply{f}{x})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 361, Definition 362.
Hence $N$ is a covering of $X$ by Axiom 4, Definition 1, Definition 103, Definition 153, Definition 245.
For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} N$ we have $U$ is open in $X$ with respect to $T$ by Definition 1, Definition 103.
Therefore $N$ is an open covering of $X$ with respect to $T$ by Definition 246.
Take $K$ such that $K\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} N$ and $K$ is finite and $K$ is a covering of $X$ by Definition 247.
Let $R_c = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} K\class{latex-symbol-tip latex-symbol-id-times}{\times} X \mid \text{$\fst{w}$ is a neighborhood of $\snd{w}$ in $X$ with respect to $T$ and for all $x,f$ such that $x\in\fst{w}$ and $f\in F$ we have $d((\apply{f}{x},\apply{f}{\snd{w}})) < \delta$}\}$.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ there exists $a$ such that $U\mathrel{R_c} a$ by Axiom 10, Axiom 11, Definition 1, Proposition 115.
Take $c$ such that $c$ is a function on $K$ and for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $U\mathrel{R_c}\apply{c}{U}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
We have $c\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{K}{X}$ by Definition 1, Proposition 114, Proposition 348, Proposition 358, Proposition 359.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $U$ is a neighborhood of $c(U)$ in $X$ with respect to $T$ and for all $x,f$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $d((\apply{f}{x},\apply{f}{c(U)})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 10, Axiom 11, Definition 1.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ there exists $A$ such that $A$ is finite and $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ and for all $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $d((\apply{f}{c(U)},y)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1, Definition 187, Lemma 852, Proposition 361.
Let $R_m = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} K\class{latex-symbol-tip latex-symbol-id-times}{\times}\pow{Y} \mid \text{$\snd{w}$ is finite and $\snd{w}\subseteq Y$ and for all $f\in F$ there exists $y\in\snd{w}$ such that $d((\apply{f}{c(\fst{w})},y)) < \delta$}\}$.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ there exists $A$ such that $U\mathrel{R_m} A$ by Axiom 10, Axiom 11, Definition 1, Proposition 115, Proposition 155.
Take $m$ such that $m$ is a function on $K$ and for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $U\mathrel{R_m}\apply{m}{U}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $m(U)$ is finite and $m(U)\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ and for all $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $y\class{latex-symbol-tip latex-symbol-id-in}{\in} m(U)$ such that $d((\apply{f}{c(U)},y)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 10, Axiom 11, Definition 1.
Let $M_0 = \img{m}{K}$.
We have $M_0$ is finite by Lemma 192.
For all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} M_0$ we have $A$ is finite by Definition 1, Proposition 235, Proposition 346.
Let $D = \unions{M_0}$.
Hence $D$ is finite by Lemma 360.
$D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ by Axiom 4, Definition 1, Proposition 235, Proposition 346.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $m(U)\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} D$ by Axiom 4, Definition 1, Proposition 235, Proposition 349.
Let $R_u = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} K \mid \fst{w}\class{latex-symbol-tip latex-symbol-id-in}{\in}\snd{w}\}$.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $U$ such that $x\mathrel{R_u} U$ by Axiom 4, Axiom 10, Axiom 11, Definition 1, Definition 245, Proposition 115.
Take $u$ such that $u$ is a function on $X$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $x\mathrel{R_u}\apply{u}{x}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
Hence $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{K}$ by Definition 1, Proposition 114, Proposition 348, Proposition 358, Proposition 359.
Let $A = \funs{K}{D}$.
We have $A$ is finite by Lemma 841.
Let $h = \{(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha},\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} u) \mid \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} A\}$.
We have $h$ is a function on $A$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
Let $H = \img{h}{A}$.
Therefore $H$ is finite by Lemma 192.
$H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Z$ by Definition 1, Lemma 82, Proposition 235, Proposition 346, Proposition 360, Proposition 382.
Claim: For all $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $g\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $f$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
We have $f\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ by Definition 1, Definition 345.
Let $R_f = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} K\class{latex-symbol-tip latex-symbol-id-times}{\times} D \mid \snd{w}\class{latex-symbol-tip latex-symbol-id-in}{\in} m(\fst{w}) \class{latex-symbol-tip latex-symbol-id-land}{\land} d((\apply{f}{c(\fst{w})},\snd{w})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\}$.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ there exists $y$ such that $U\mathrel{R_f} y$ by Axiom 10, Axiom 11, Definition 1, Proposition 115.
Take $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}$ such that $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}$ is a function on $K$ and for all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $U\mathrel{R_f}\apply{\class{latex-symbol-tip latex-symbol-id-beta}{\beta}}{U}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
We have $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 1, Proposition 114, Proposition 348, Proposition 358, Proposition 359.
For all $U\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ we have $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(U)\class{latex-symbol-tip latex-symbol-id-in}{\in} m(U)$ and $d((\apply{f}{c(U)},\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(U))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 10, Axiom 11, Definition 1.
Let $g = h(\class{latex-symbol-tip latex-symbol-id-beta}{\beta})$.
Claim: $g\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ and $g = \class{latex-symbol-tip latex-symbol-id-beta}{\beta}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} u$.
Follows by Definition 1, Lemma 82, Proposition 235, Proposition 346, Proposition 349.
We have $g\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ by Definition 1.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $d((f(x),g(x))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} u(x)$ by Axiom 10, Axiom 11, Proposition 348.
We have $u(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ by Proposition 361.
We have $u(x)$ is a neighborhood of $c(u(x))$ in $X$ with respect to $T$ and for all $y,h_0$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} u(x)$ and $h_0\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $d((\apply{h_0}{y},\apply{h_0}{c(u(x))})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1.
Hence $d((f(x),f(c(u(x))))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1.
We have $\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(u(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} m(u(x))$ and $d((f(c(u(x))),\class{latex-symbol-tip latex-symbol-id-beta}{\beta}(u(x)))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1.
We have $g(x) = \class{latex-symbol-tip latex-symbol-id-beta}{\beta}(u(x))$ by Definition 1, Lemma 82, Proposition 355, Proposition 356, Proposition 359, Proposition 363, Proposition 373.
Therefore $d((f(c(u(x))),g(x))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 83.
We have $f(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $f(c(u(x)))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $g(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 1, Proposition 361.
Hence $d((g(x),f(c(u(x))))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 177, Definition 179, Lemma 82, Proposition 115.
Therefore $d((f(x),g(x))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 836.
Let $e = \boundedMetric{d}$.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $e((f(x),g(x))) \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}$.
Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
We have $f(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $g(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 1, Proposition 361.
Let $p = (f(x),g(x))$.
We have $p\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Proposition 115.
Hence $d(p) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1, Lemma 82.
$e$ is a metric on $Y$ by Theorem 21.
We have $e\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y}{\reals}$ by Definition 179.
We have $d(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 41, Axiom 42, Definition 1, Definition 179, Proposition 361.
Hence $d(p) < 1$ by Axiom 36.
Therefore $e(p) = d(p)$ by Lemma 204.
Hence $e((f(x),g(x))) \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}$ by Lemma 82, Lemma 231.
We have $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 41, Axiom 42, Definition 1.
Hence $1 \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}$ by Axiom 34.
Therefore $e(p) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ by Lemma 201.
We have $e(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
Thus $e((f(x),g(x))) \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}$ by Lemma 23, Lemma 82.
LaTeX source
\begin{byCase}
\caseOf{$\delta + \delta < 1$.}
We have $d(p)\in\reals$ and $\delta + \delta\in\reals$ and $1\in\reals$
by \cref{metric_on,funs_type_apply,real_add_closed,real_one_in_naturals,real_naturals_subset_reals,subseteq}.
Hence $d(p) < 1$ by \cref{real_lt_trans}.
Therefore $e(p) = d(p)$ by \cref{bounded_metric_apply_below_one}.
Hence $e((f(x),g(x))) \leq \delta + \delta$ by \cref{real_lt_imp_leq,real_lt_subst_left}.
\caseOf{it is wrong that $\delta + \delta < 1$.}
We have $\delta + \delta\in\reals$ and $1\in\reals$
by \cref{real_add_closed,real_one_in_naturals,real_naturals_subset_reals,subseteq}.
Hence $1 \leq \delta + \delta$ by \cref{real_lt_trichotomy}.
Therefore $e(p) \leq 1$ by \cref{bounded_metric_leq_one}.
We have $e(p)\in\reals$ by \cref{metric_on,funs_type_apply}.
Thus $e((f(x),g(x))) \leq \delta + \delta$ by \cref{real_leq_trans,real_lt_subst_left}.
\end{byCase}
We have $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 677.
We have $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 15, Axiom 16, Axiom 17, Axiom 37, Lemma 82, Lemma 83.
We have $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
Hence $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 36.
We have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 36, Lemma 81, Lemma 82.
Claim: $H$ is finite and $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Z$ and for all $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $g\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Trivial.
Follows by definition.
Hence $F$ is totally bounded in $Z$ with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ by Lemma 843.
LaTeX source
\begin{proof}
Let $Z = \funs{X}{Y}$.
$\rho$ is a metric on $Z$ by \cref{uniform_metric_on_function_space}.
$F\subseteq Z$ by \cref{subseteq,continuous_function_set}.
Show that for all $\epsilon\in\reals$ such that $0 < \epsilon$
there exists $H$ such that
$H$ is finite and
$H\subseteq Z$ and
for all $f\in F$ there exists $g\in H$ such that
$\rho((f,g)) < \epsilon$.
\begin{subproof}
Fix $\epsilon$ such that $\epsilon\in\reals$ and $0 < \epsilon$.
Take $\delta\in\reals$ such that
$0 < \delta$ and
$\delta < 1$ and
$\delta + \delta + \delta < \epsilon$
by \cref{positive_real_small_triple_bound}.
Let $N = \{U\in T \mid \text{there exists $a\in X$ such that
$U$ is a neighborhood of $a$ in $X$ with respect to $T$ and
for all $x,f$ such that $x\in U$ and $f\in F$ we have $d((\apply{f}{x},\apply{f}{a})) < \delta$}\}$.
For all $x$ such that $x\in X$ there exists $U$ such that
$U$ is a neighborhood of $x$ in $X$ with respect to $T$ and
for all $y,f$ such that $y\in U$ and $f\in F$ we have
$d((\apply{f}{y},\apply{f}{x})) < \delta$
by \cref{equicontinuous_family,equicontinuous_at_point}.
Hence $N$ is a covering of $X$
by \cref{neighborhood,open_in,subseteq,unions_iff,covering}.
For all $U$ such that $U\in N$ we have $U$ is open in $X$ with respect to $T$
by \cref{subseteq,open_in}.
Therefore $N$ is an open covering of $X$ with respect to $T$ by \cref{open_covering}.
Take $K$ such that
$K\subseteq N$ and
$K$ is finite and
$K$ is a covering of $X$
by \cref{compact}.
Let $R_c = \{w\in K\times X \mid \text{$\fst{w}$ is a neighborhood of $\snd{w}$ in $X$ with respect to $T$ and
for all $x,f$ such that $x\in\fst{w}$ and $f\in F$ we have
$d((\apply{f}{x},\apply{f}{\snd{w}})) < \delta$}\}$.
For all $U\in K$ there exists $a$ such that $U\mathrel{R_c} a$
by \cref{subseteq,times_tuple_intro,fst_eq,snd_eq}.
Take $c$ such that
$c$ is a function on $K$ and
for all $U\in K$ we have $U\mathrel{R_c}\apply{c}{U}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
We have $c\in\funs{K}{X}$ by \cref{funs_elim,function_apply_elim,subseteq,times_tuple_elim,funs_intro}.
For all $U\in K$ we have
$U$ is a neighborhood of $c(U)$ in $X$ with respect to $T$ and
for all $x,f$ such that $x\in U$ and $f\in F$ we have
$d((\apply{f}{x},\apply{f}{c(U)})) < \delta$
by \cref{subseteq,fst_eq,snd_eq}.
For all $U\in K$ there exists $A$ such that
$A$ is finite and
$A\subseteq Y$ and
for all $f\in F$ there exists $y\in A$ such that
$d((\apply{f}{c(U)},y)) < \delta$
by \cref{funs_type_apply,subseteq,metric_bounded,bounded_reals_power_subset_finite_internal_net}.
Let $R_m = \{w\in K\times\pow{Y} \mid \text{$\snd{w}$ is finite and
$\snd{w}\subseteq Y$ and
for all $f\in F$ there exists $y\in\snd{w}$ such that
$d((\apply{f}{c(\fst{w})},y)) < \delta$}\}$.
For all $U\in K$ there exists $A$ such that $U\mathrel{R_m} A$
by \cref{subseteq,times_tuple_intro,powerset_intro,fst_eq,snd_eq}.
Take $m$ such that
$m$ is a function on $K$ and
for all $U\in K$ we have $U\mathrel{R_m}\apply{m}{U}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
For all $U\in K$ we have
$m(U)$ is finite and
$m(U)\subseteq Y$ and
for all $f\in F$ there exists $y\in m(U)$ such that
$d((\apply{f}{c(U)},y)) < \delta$
by \cref{subseteq,fst_eq,snd_eq}.
Let $M_0 = \img{m}{K}$.
We have $M_0$ is finite by \cref{finite_image_function}.
For all $A$ such that $A\in M_0$ we have $A$ is finite
by \cref{img_iff,function_apply_intro,subseteq}.
Let $D = \unions{M_0}$.
Hence $D$ is finite by \cref{finite_union_of_finite_family}.
$D\subseteq Y$ by \cref{subseteq,unions_iff,img_iff,function_apply_intro}.
For all $U\in K$ we have $m(U)\subseteq D$
by \cref{subseteq,img_iff,function_apply_iff,unions_iff}.
Let $R_u = \{w\in X\times K \mid \fst{w}\in\snd{w}\}$.
For all $x\in X$ there exists $U$ such that $x\mathrel{R_u} U$
by \cref{covering,subseteq,unions_iff,times_tuple_intro,fst_eq,snd_eq}.
Take $u$ such that
$u$ is a function on $X$ and
for all $x\in X$ we have $x\mathrel{R_u}\apply{u}{x}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
Hence $u\in\funs{X}{K}$ by \cref{funs_elim,function_apply_elim,subseteq,times_tuple_elim,funs_intro}.
Let $A = \funs{K}{D}$.
We have $A$ is finite by \cref{finite_function_space}.
Let $h = \{(\alpha,\alpha\circ u) \mid \alpha\in A\}$.
We have $h$ is a function on $A$ by \cref{rightunique,relation,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
Let $H = \img{h}{A}$.
Therefore $H$ is finite by \cref{finite_image_function}.
$H\subseteq Z$
by \cref{subseteq,img_iff,function_apply_intro,real_lt_subst_left,funs_circ,funs_weaken_codom}.
Show that for all $f\in F$ there exists $g\in H$ such that $\rho((f,g)) < \epsilon$.
\begin{subproof}
Fix $f$ such that $f\in F$.
We have $f\in Z$ by \cref{subseteq,continuous_function_set}.
Let $R_f = \{w\in K\times D \mid \snd{w}\in m(\fst{w}) \land d((\apply{f}{c(\fst{w})},\snd{w})) < \delta\}$.
For all $U\in K$ there exists $y$ such that $U\mathrel{R_f} y$
by \cref{subseteq,times_tuple_intro,fst_eq,snd_eq}.
Take $\beta$ such that
$\beta$ is a function on $K$ and
for all $U\in K$ we have $U\mathrel{R_f}\apply{\beta}{U}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
We have $\beta\in A$
by \cref{funs_elim,function_apply_elim,subseteq,times_tuple_elim,funs_intro}.
For all $U\in K$ we have
$\beta(U)\in m(U)$ and
$d((\apply{f}{c(U)},\beta(U))) < \delta$
by \cref{subseteq,fst_eq,snd_eq}.
Let $g = h(\beta)$.
Show that $g\in H$ and $g = \beta\circ u$.
\begin{subproof}
Follows by \cref{subseteq,function_apply_intro,img_iff,function_apply_iff,real_lt_subst_left}.
\end{subproof}
We have $g\in Z$ by \cref{subseteq}.
Show that for all $x\in X$ we have $d((f(x),g(x))) < \delta + \delta$.
\begin{subproof}
Fix $x$ such that $x\in X$.
We have $x\in u(x)$ by \cref{function_apply_elim,fst_eq,snd_eq}.
We have $u(x)\in K$ by \cref{funs_type_apply}.
We have $u(x)$ is a neighborhood of $c(u(x))$ in $X$ with respect to $T$ and
for all $y,h_0$ such that $y\in u(x)$ and $h_0\in F$ we have
$d((\apply{h_0}{y},\apply{h_0}{c(u(x))})) < \delta$ by \cref{subseteq}.
Hence $d((f(x),f(c(u(x))))) < \delta$ by \cref{subseteq}.
We have $\beta(u(x))\in m(u(x))$ and $d((f(c(u(x))),\beta(u(x)))) < \delta$ by \cref{subseteq}.
We have $g(x) = \beta(u(x))$
by \cref{circ_apply,real_lt_subst_left,funs_is_function,funs_is_relation,funs_elim,funs_ran,subseteq}.
Therefore $d((f(c(u(x))),g(x))) < \delta$ by \cref{real_lt_subst_right}.
We have $f(x)\in Y$ and $f(c(u(x)))\in Y$ and $g(x)\in Y$
by \cref{funs_type_apply,subseteq}.
Hence $d((g(x),f(c(u(x))))) < \delta$
by \cref{metric_on,metric_symmetric,real_lt_subst_left,times_tuple_intro}.
Therefore $d((f(x),g(x))) < \delta + \delta$
by \cref{common_center_small_ball_distance_bound}.
\end{subproof}
Let $e = \boundedMetric{d}$.
Show that for all $x\in X$ we have $e((f(x),g(x))) \leq \delta + \delta$.
\begin{subproof}
Fix $x$ such that $x\in X$.
We have $f(x)\in Y$ and $g(x)\in Y$ by \cref{subseteq,funs_type_apply}.
Let $p = (f(x),g(x))$.
We have $p\in Y\times Y$ by \cref{times_tuple_intro}.
Hence $d(p) < \delta + \delta$ by \cref{subseteq,real_lt_subst_left}.
$e$ is a metric on $Y$ by \cref{bounded_metric_is_metric}.
We have $e\in\funs{Y\times Y}{\reals}$ by \cref{metric_on}.
\begin{byCase}
\caseOf{$\delta + \delta < 1$.}
We have $d(p)\in\reals$ and $\delta + \delta\in\reals$ and $1\in\reals$
by \cref{metric_on,funs_type_apply,real_add_closed,real_one_in_naturals,real_naturals_subset_reals,subseteq}.
Hence $d(p) < 1$ by \cref{real_lt_trans}.
Therefore $e(p) = d(p)$ by \cref{bounded_metric_apply_below_one}.
Hence $e((f(x),g(x))) \leq \delta + \delta$ by \cref{real_lt_imp_leq,real_lt_subst_left}.
\caseOf{it is wrong that $\delta + \delta < 1$.}
We have $\delta + \delta\in\reals$ and $1\in\reals$
by \cref{real_add_closed,real_one_in_naturals,real_naturals_subset_reals,subseteq}.
Hence $1 \leq \delta + \delta$ by \cref{real_lt_trichotomy}.
Therefore $e(p) \leq 1$ by \cref{bounded_metric_leq_one}.
We have $e(p)\in\reals$ by \cref{metric_on,funs_type_apply}.
Thus $e((f(x),g(x))) \leq \delta + \delta$ by \cref{real_leq_trans,real_lt_subst_left}.
\end{byCase}
\end{subproof}
We have $\delta + \delta\in\reals$ by \cref{real_add_closed}.
Hence $\rho((f,g)) \leq \delta + \delta$
by \cref{uniform_metric_leq_from_coordinate_bounds}.
We have $\delta + \delta < \delta + \delta + \delta$
by \cref{real_lt_add,real_add_ident,real_add_assoc,real_add_comm,real_lt_subst_left,real_lt_subst_right}.
We have $\delta + \delta\in\reals$ and $\delta + \delta + \delta\in\reals$ and $\epsilon\in\reals$
by \cref{real_add_closed}.
Hence $\delta + \delta < \epsilon$ by \cref{real_lt_trans}.
We have $\rho((f,g))\in\reals$ by \cref{metric_on,funs_type_apply,times_tuple_intro}.
Therefore $\rho((f,g)) < \epsilon$
by \cref{real_leq_split,real_lt_trans,real_lt_subst_left}.
\end{subproof}
Show that $H$ is finite and
$H\subseteq Z$ and
for all $f\in F$ there exists $g\in H$ such that
$\rho((f,g)) < \epsilon$.
\begin{subproof}
Trivial.
\end{subproof}
Follows by definition.
\end{subproof}
Hence $F$ is totally bounded in $Z$ with respect to $\rho$
by \cref{finite_metric_subset_totally_bounded_from_net}.
\end{proof}
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $d$ is a metric on $Y$.
Assume $d = \squareMetric{n}$ or $d = \euclideanMetric{n}$.
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Let $G = \closure{F}{\funs{X}{Y}}{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{X}{Y}}}$.
Suppose $G$ is compact with respect to $\subspaceTopology{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{X}{Y}}}{G}$.
Then $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
LaTeX source
\begin{theorem}
\label{ascoli_compact_closure_implies_equicontinuous}
Assume $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $d$ is a metric on $Y$.
Assume $d = \squareMetric{n}$ or $d = \euclideanMetric{n}$.
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\subseteq C$.
Let $G = \closure{F}{\funs{X}{Y}}{\metricTopology{\rho}{\funs{X}{Y}}}$.
Suppose $G$ is compact with respect to $\subspaceTopology{\metricTopology{\rho}{\funs{X}{Y}}}{G}$.
Then $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
\end{theorem}
Proof
Let $Z = \funs{X}{Y}$.
Let $T_Z = \metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{Z}$.
$G\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Z$ by Definition 1, Definition 151.
$T_Z$ is a topology on $Z$ by Definition 115, Definition 182, Definition 344, Lemma 76, Lemma 194.
$C$ is closed in $Z$ with respect to $T_Z$ by Theorem 111.
$F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Z$ by Definition 1, Definition 345.
We have $G\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Definition 1, Lemma 147.
Hence $G$ is totally bounded in $Z$ with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ by Definition 1, Definition 151, Definition 344, Lemma 849.
Therefore $G$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$ by Lemma 835.
Hence $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$ by Definition 1, Definition 361, Definition 362, Lemma 146.
LaTeX source
\begin{proof}
Let $Z = \funs{X}{Y}$.
Let $T_Z = \metricTopology{\rho}{Z}$.
$G\subseteq Z$ by \cref{closure,subseteq}.
$T_Z$ is a topology on $Z$
by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology,basis_for_topology,uniform_metric_on_function_space}.
$C$ is closed in $Z$ with respect to $T_Z$ by \cref{continuous_function_space_closed_uniform}.
$F\subseteq Z$ by \cref{subseteq,continuous_function_set}.
We have $G\subseteq C$ by \cref{closure_subseteq_closed,subseteq}.
Hence $G$ is totally bounded in $Z$ with respect to $\rho$
by \cref{closure,subseteq,uniform_metric_on_function_space,compact_metric_subspace_ambient_totally_bounded}.
Therefore $G$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$
by \cref{totally_bounded_function_family_equicontinuous}.
Hence $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$
by \cref{equicontinuous_family,equicontinuous_at_point,subseteq_closure,subseteq}.
\end{proof}
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $d$ is a metric on $Y$.
Assume $d = \squareMetric{n}$ or $d = \euclideanMetric{n}$.
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Let $G = \closure{F}{\funs{X}{Y}}{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{X}{Y}}}$.
Suppose $G$ is compact with respect to $\subspaceTopology{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{X}{Y}}}{G}$.
Then for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $A$ such that $A = \{\apply{f}{x} \mid f\class{latex-symbol-tip latex-symbol-id-in}{\in} F\}$ and $A$ is bounded in $Y$ with respect to $d$.
LaTeX source
\begin{theorem}
\label{ascoli_compact_closure_implies_pointwise_bounded}
Assume $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $d$ is a metric on $Y$.
Assume $d = \squareMetric{n}$ or $d = \euclideanMetric{n}$.
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\subseteq C$.
Let $G = \closure{F}{\funs{X}{Y}}{\metricTopology{\rho}{\funs{X}{Y}}}$.
Suppose $G$ is compact with respect to $\subspaceTopology{\metricTopology{\rho}{\funs{X}{Y}}}{G}$.
Then for all $x\in X$ there exists $A$ such that
$A = \{\apply{f}{x} \mid f\in F\}$ and
$A$ is bounded in $Y$ with respect to $d$.
\end{theorem}
Proof
Let $Z = \funs{X}{Y}$.
Let $T_Z = \metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{Z}$.
$T_Z$ is a topology on $Z$ by Definition 115, Definition 182, Definition 344, Lemma 76, Lemma 194.
$F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Z$ by Definition 1, Definition 345.
$G\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Z$ by Definition 1, Definition 151.
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $Z$ by Definition 344.
We have $G$ is totally bounded in $Z$ with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ by Lemma 82, Lemma 83, Lemma 849.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $A$ such that $A = \{\apply{f}{x} \mid f\class{latex-symbol-tip latex-symbol-id-in}{\in} F\}$ and $A$ is bounded in $Y$ with respect to $d$.
Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $A = \{\apply{f}{x} \mid f\class{latex-symbol-tip latex-symbol-id-in}{\in} F\}$.
We have $A$ is bounded in $Y$ with respect to $d$ by Axiom 2, Definition 1, Lemma 35, Lemma 850, Proposition 3, Proposition 11, Proposition 12.
Follows by definition.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < 1$ by Axiom 41, Axiom 42, Definition 1, Proposition 462.
Take $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ and $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} + \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} = 1$ and $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} < 1$ by Lemma 837.
Take $H$ such that $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} G$ and $H$ is finite and for all $g\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ there exists $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h)) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ by Definition 1, Lemma 146, Lemma 832, Proposition 10.
Let $e = \{(h,\apply{h}{x}) \mid h\class{latex-symbol-tip latex-symbol-id-in}{\in} H\}$.
We have $e$ is a function on $H$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
Let $B = \img{e}{H}$.
$B$ is finite by Lemma 192.
Therefore $B$ is bounded in $Y$ with respect to $d$ by Definition 1, Definition 151, Lemma 82, Lemma 850, Proposition 235, Proposition 346, Proposition 361.
Take $M\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that for all $b_1,b_2\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ we have $d((b_1,b_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ by Definition 187.
Claim: For all $y_1,y_2\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $d((y_1,y_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 + (M + 1)$.
Fix $y_1$.
Fix $y_2$ such that $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Take $f_1\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ such that $y_1 = f_1(x)$ by Definition 1.
Take $f_2\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ such that $y_2 = f_2(x)$ by Definition 1.
We have $f_1\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ and $f_2\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ by Definition 1, Lemma 146.
Take $h_1\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f_1,h_1)) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ by Definition 1.
Take $h_2\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f_2,h_2)) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ by Definition 1.
We have $f_1\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ and $f_2\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ and $h_1\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ and $h_2\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ by Definition 1, Definition 151.
Hence $d((f_1(x),h_1(x))) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ and $d((f_2(x),h_2(x))) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ by Lemma 831.
Therefore $d((y_1,h_1(x))) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ and $d((y_2,h_2(x))) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ by Lemma 82, Lemma 83.
Hence $d((h_2(x),y_2)) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ by Definition 177, Definition 179, Lemma 82, Proposition 361.
Thus $h_1(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $h_2(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Definition 1, Lemma 82, Lemma 83, Proposition 235, Proposition 346, Proposition 349.
Therefore $d((h_1(x),h_2(x))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$.
We have $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $h_1(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $h_2(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 1, Proposition 361.
We have $(y_1,h_1(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $(h_1(x),h_2(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $(h_2(x),y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Proposition 115.
We have $d((y_1,h_1(x)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((h_1(x),h_2(x)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((h_2(x),y_2))\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.
We have $M + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
Therefore $M < M + 1$ by Axiom 16, Axiom 17, Axiom 37, Lemma 82.
Thus $d((h_1(x),h_2(x))) < M + 1$ by Axiom 36, Lemma 81, Lemma 82.
We have $d((y_1,h_1(x))) < 1$ by Axiom 36.
Therefore $d((h_2(x),y_2)) < 1$ by Axiom 36.
Thus $d((y_1,y_2)) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} + (M + 1) + \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ by Lemma 846.
Hence $d((y_1,y_2)) < 1 + (M + 1)$ by Axiom 15, Axiom 16, Lemma 82, Lemma 83.
Therefore $d((y_1,y_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 + (M + 1)$ by Lemma 231.
Therefore $A$ is bounded in $Y$ with respect to $d$ by Axiom 13, Axiom 41, Axiom 42, Definition 1, Definition 187, Definition 345, Lemma 82, Proposition 361.
Follows by definition.
LaTeX source
\begin{byCase}
\caseOf{$F = \emptyset$.}
We have $A$ is bounded in $Y$ with respect to $d$
by \cref{subseteq,emptyset,emptyset_subseteq,subseteq_antisymmetric,subseteq_emptyset_iff,emptyset_is_finite,finite_metric_subset_bounded}.
Follows by definition.
\caseOf{$F\neq\emptyset$.}
$1\in\reals$ and $0 < 1$
by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_zero_lt_one}.
Take $\alpha\in\reals$ such that
$0 < \alpha$ and
$\alpha + \alpha = 1$ and
$\alpha < 1$
by \cref{positive_real_half_decomposition}.
Take $H$ such that
$H\subseteq G$ and
$H$ is finite and
for all $g\in G$ there exists $h\in H$ such that
$\rho((g,h)) < \alpha$
by \cref{subseteq_closure,subseteq,nonempty_inhabited,totally_bounded_subset_finite_internal_net}.
Let $e = \{(h,\apply{h}{x}) \mid h\in H\}$.
We have $e$ is a function on $H$ by \cref{rightunique,relation,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
Let $B = \img{e}{H}$.
$B$ is finite by \cref{finite_image_function}.
Therefore $B$ is bounded in $Y$ with respect to $d$
by \cref{img_iff,subseteq,closure,funs_type_apply,function_apply_intro,real_lt_subst_left,finite_metric_subset_bounded}.
Take $M\in\reals$ such that for all $b_1,b_2\in B$ we have $d((b_1,b_2)) \leq M$
by \cref{metric_bounded}.
Show that for all $y_1,y_2\in A$ we have $d((y_1,y_2)) \leq 1 + (M + 1)$.
\begin{subproof}
Fix $y_1$.
Fix $y_2$ such that $y_1\in A$ and $y_2\in A$.
Take $f_1\in F$ such that $y_1 = f_1(x)$ by \cref{subseteq}.
Take $f_2\in F$ such that $y_2 = f_2(x)$ by \cref{subseteq}.
We have $f_1\in G$ and $f_2\in G$ by \cref{subseteq_closure,subseteq}.
Take $h_1\in H$ such that $\rho((f_1,h_1)) < \alpha$ by \cref{subseteq}.
Take $h_2\in H$ such that $\rho((f_2,h_2)) < \alpha$ by \cref{subseteq}.
We have $f_1\in Z$ and $f_2\in Z$ and $h_1\in Z$ and $h_2\in Z$ by \cref{subseteq,closure}.
Hence $d((f_1(x),h_1(x))) < \alpha$ and $d((f_2(x),h_2(x))) < \alpha$
by \cref{uniform_metric_small_implies_pointwise_small}.
Therefore $d((y_1,h_1(x))) < \alpha$ and $d((y_2,h_2(x))) < \alpha$
by \cref{real_lt_subst_left,real_lt_subst_right}.
Hence $d((h_2(x),y_2)) < \alpha$ by \cref{metric_on,metric_symmetric,real_lt_subst_left,funs_type_apply}.
Thus $h_1(x)\in B$ and $h_2(x)\in B$
by \cref{subseteq,function_apply_iff,img_iff,function_apply_intro,real_lt_subst_left,real_lt_subst_right}.
Therefore $d((h_1(x),h_2(x))) \leq M$.
We have $y_1\in Y$ and $y_2\in Y$ and $h_1(x)\in Y$ and $h_2(x)\in Y$ by \cref{subseteq,funs_type_apply}.
We have $(y_1,h_1(x))\in Y\times Y$ and $(h_1(x),h_2(x))\in Y\times Y$ and
$(h_2(x),y_2)\in Y\times Y$ by \cref{times_tuple_intro}.
We have $d((y_1,h_1(x)))\in\reals$ and $d((h_1(x),h_2(x)))\in\reals$ and
$d((h_2(x),y_2))\in\reals$ by \cref{metric_on,funs_type_apply}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
We have $M + 1\in\reals$ by \cref{real_add_closed}.
Therefore $M < M + 1$ by \cref{real_lt_add,real_add_ident,real_add_comm,real_lt_subst_left}.
Thus $d((h_1(x),h_2(x))) < M + 1$ by \cref{real_leq_split,real_lt_trans,real_lt_subst_left}.
We have $d((y_1,h_1(x))) < 1$ by \cref{real_lt_trans}.
Therefore $d((h_2(x),y_2)) < 1$ by \cref{real_lt_trans}.
Thus $d((y_1,y_2)) < \alpha + (M + 1) + \alpha$ by \cref{metric_three_step_lt_sum}.
Hence $d((y_1,y_2)) < 1 + (M + 1)$
by \cref{real_lt_subst_right,real_add_assoc,real_add_comm,real_lt_subst_left}.
Therefore $d((y_1,y_2)) \leq 1 + (M + 1)$ by \cref{real_lt_imp_leq}.
\end{subproof}
Therefore $A$ is bounded in $Y$ with respect to $d$
by \cref{real_add_closed,real_naturals_subset_reals,real_one_in_naturals,subseteq,continuous_function_set,funs_type_apply,real_lt_subst_left,metric_bounded}.
Follows by definition.
\end{byCase}
LaTeX source
\begin{proof}
Let $Z = \funs{X}{Y}$.
Let $T_Z = \metricTopology{\rho}{Z}$.
$T_Z$ is a topology on $Z$
by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology,basis_for_topology,uniform_metric_on_function_space}.
$F\subseteq Z$ by \cref{subseteq,continuous_function_set}.
$G\subseteq Z$ by \cref{closure,subseteq}.
$\rho$ is a metric on $Z$ by \cref{uniform_metric_on_function_space}.
We have $G$ is totally bounded in $Z$ with respect to $\rho$
by \cref{real_lt_subst_left,real_lt_subst_right,compact_metric_subspace_ambient_totally_bounded}.
Show that for all $x\in X$ there exists $A$ such that
$A = \{\apply{f}{x} \mid f\in F\}$ and
$A$ is bounded in $Y$ with respect to $d$.
\begin{subproof}
Fix $x$ such that $x\in X$.
Let $A = \{\apply{f}{x} \mid f\in F\}$.
\begin{byCase}
\caseOf{$F = \emptyset$.}
We have $A$ is bounded in $Y$ with respect to $d$
by \cref{subseteq,emptyset,emptyset_subseteq,subseteq_antisymmetric,subseteq_emptyset_iff,emptyset_is_finite,finite_metric_subset_bounded}.
Follows by definition.
\caseOf{$F\neq\emptyset$.}
$1\in\reals$ and $0 < 1$
by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_zero_lt_one}.
Take $\alpha\in\reals$ such that
$0 < \alpha$ and
$\alpha + \alpha = 1$ and
$\alpha < 1$
by \cref{positive_real_half_decomposition}.
Take $H$ such that
$H\subseteq G$ and
$H$ is finite and
for all $g\in G$ there exists $h\in H$ such that
$\rho((g,h)) < \alpha$
by \cref{subseteq_closure,subseteq,nonempty_inhabited,totally_bounded_subset_finite_internal_net}.
Let $e = \{(h,\apply{h}{x}) \mid h\in H\}$.
We have $e$ is a function on $H$ by \cref{rightunique,relation,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
Let $B = \img{e}{H}$.
$B$ is finite by \cref{finite_image_function}.
Therefore $B$ is bounded in $Y$ with respect to $d$
by \cref{img_iff,subseteq,closure,funs_type_apply,function_apply_intro,real_lt_subst_left,finite_metric_subset_bounded}.
Take $M\in\reals$ such that for all $b_1,b_2\in B$ we have $d((b_1,b_2)) \leq M$
by \cref{metric_bounded}.
Show that for all $y_1,y_2\in A$ we have $d((y_1,y_2)) \leq 1 + (M + 1)$.
\begin{subproof}
Fix $y_1$.
Fix $y_2$ such that $y_1\in A$ and $y_2\in A$.
Take $f_1\in F$ such that $y_1 = f_1(x)$ by \cref{subseteq}.
Take $f_2\in F$ such that $y_2 = f_2(x)$ by \cref{subseteq}.
We have $f_1\in G$ and $f_2\in G$ by \cref{subseteq_closure,subseteq}.
Take $h_1\in H$ such that $\rho((f_1,h_1)) < \alpha$ by \cref{subseteq}.
Take $h_2\in H$ such that $\rho((f_2,h_2)) < \alpha$ by \cref{subseteq}.
We have $f_1\in Z$ and $f_2\in Z$ and $h_1\in Z$ and $h_2\in Z$ by \cref{subseteq,closure}.
Hence $d((f_1(x),h_1(x))) < \alpha$ and $d((f_2(x),h_2(x))) < \alpha$
by \cref{uniform_metric_small_implies_pointwise_small}.
Therefore $d((y_1,h_1(x))) < \alpha$ and $d((y_2,h_2(x))) < \alpha$
by \cref{real_lt_subst_left,real_lt_subst_right}.
Hence $d((h_2(x),y_2)) < \alpha$ by \cref{metric_on,metric_symmetric,real_lt_subst_left,funs_type_apply}.
Thus $h_1(x)\in B$ and $h_2(x)\in B$
by \cref{subseteq,function_apply_iff,img_iff,function_apply_intro,real_lt_subst_left,real_lt_subst_right}.
Therefore $d((h_1(x),h_2(x))) \leq M$.
We have $y_1\in Y$ and $y_2\in Y$ and $h_1(x)\in Y$ and $h_2(x)\in Y$ by \cref{subseteq,funs_type_apply}.
We have $(y_1,h_1(x))\in Y\times Y$ and $(h_1(x),h_2(x))\in Y\times Y$ and
$(h_2(x),y_2)\in Y\times Y$ by \cref{times_tuple_intro}.
We have $d((y_1,h_1(x)))\in\reals$ and $d((h_1(x),h_2(x)))\in\reals$ and
$d((h_2(x),y_2))\in\reals$ by \cref{metric_on,funs_type_apply}.
$1\in\reals$ by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq}.
We have $M + 1\in\reals$ by \cref{real_add_closed}.
Therefore $M < M + 1$ by \cref{real_lt_add,real_add_ident,real_add_comm,real_lt_subst_left}.
Thus $d((h_1(x),h_2(x))) < M + 1$ by \cref{real_leq_split,real_lt_trans,real_lt_subst_left}.
We have $d((y_1,h_1(x))) < 1$ by \cref{real_lt_trans}.
Therefore $d((h_2(x),y_2)) < 1$ by \cref{real_lt_trans}.
Thus $d((y_1,y_2)) < \alpha + (M + 1) + \alpha$ by \cref{metric_three_step_lt_sum}.
Hence $d((y_1,y_2)) < 1 + (M + 1)$
by \cref{real_lt_subst_right,real_add_assoc,real_add_comm,real_lt_subst_left}.
Therefore $d((y_1,y_2)) \leq 1 + (M + 1)$ by \cref{real_lt_imp_leq}.
\end{subproof}
Therefore $A$ is bounded in $Y$ with respect to $d$
by \cref{real_add_closed,real_naturals_subset_reals,real_one_in_naturals,subseteq,continuous_function_set,funs_type_apply,real_lt_subst_left,metric_bounded}.
Follows by definition.
\end{byCase}
\end{subproof}
\end{proof}
Assume $d$ is a metric on $X$.
Let $T = \metricTopology{d}{X}$.
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Suppose $A$ is totally bounded in $X$ with respect to $d$.
Let $B = \closure{A}{X}{T}$.
Then $B$ is totally bounded in $X$ with respect to $d$.
LaTeX source
\begin{lemma}
\label{closure_totally_bounded}
Assume $d$ is a metric on $X$.
Let $T = \metricTopology{d}{X}$.
Suppose $A\subseteq X$.
Suppose $A$ is totally bounded in $X$ with respect to $d$.
Let $B = \closure{A}{X}{T}$.
Then $B$ is totally bounded in $X$ with respect to $d$.
\end{lemma}
Proof
$T$ is a topology on $X$ by Definition 115, Definition 182, Lemma 76, Lemma 194.
We have $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 1, Definition 151.
Claim: For all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ there exists $H$ such that $H$ is finite and $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and for all $b\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ there exists $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $d((b,h)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
There exists $H$ such that $H$ is finite and $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and for all $b\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ there exists $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $d((b,h)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 2, Definition 1, Lemma 35, Lemma 82, Lemma 83, Lemma 138, Lemma 149, Proposition 11, Proposition 12.
Follows by definition.
Let $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} / (1 + 1)$.
We have $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 275.
Take $H$ such that $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ and $H$ is finite and for all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ there exists $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $d((a,h)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 832, Proposition 10.
Claim: For all $b\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ there exists $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $d((b,h)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Fix $b$ such that $b\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
We have $b\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1, Definition 151.
Hence $\metricBall{d}{X}{b}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ is open in $X$ with respect to $T$ by Definition 1, Definition 103, Definition 115, Definition 180, Definition 181, Definition 182, Lemma 77, Lemma 194, Proposition 155.
Therefore $\metricBall{d}{X}{b}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ intersects $A$ by Definition 176, Definition 179, Definition 180, Lemma 82, Theorem 11.
Take $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X}{b}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\inter A$ by Definition 152, Proposition 10.
We have $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $a\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $d((b,a)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1, Definition 5, Definition 180.
Take $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $d((a,h)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1.
We have $h\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $d((h,a)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1, Definition 177, Definition 179, Lemma 82, Proposition 6, Proposition 115.
Hence $d((b,h)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 836.
Therefore $d((b,h)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 83.
We have $H$ is finite and $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and for all $b\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ there exists $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $d((b,h)) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
Follows by definition.
LaTeX source
\begin{byCase}
\caseOf{$A = \emptyset$.}
There exists $H$ such that
$H$ is finite and
$H\subseteq X$ and
for all $b\in B$ there exists $h\in H$ such that $d((b,h)) < \epsilon$
by \cref{closed_emptyset,real_lt_subst_left,closed_eq_closure,real_lt_subst_right,emptyset_is_finite,emptyset_subseteq,subseteq,emptyset,subseteq_emptyset_iff}.
Follows by definition.
\caseOf{$A\neq\emptyset$.}
Let $\delta = \epsilon / (1 + 1)$.
We have $\delta\in\reals$ and $0 < \delta$ and $\delta + \delta = \epsilon$
by \cref{real_half_of_positive}.
Take $H$ such that
$H\subseteq A$ and
$H$ is finite and
for all $a\in A$ there exists $h\in H$ such that
$d((a,h)) < \delta$
by \cref{nonempty_inhabited,totally_bounded_subset_finite_internal_net}.
Show that for all $b\in B$ there exists $h\in H$ such that
$d((b,h)) < \epsilon$.
\begin{subproof}
Fix $b$ such that $b\in B$.
We have $b\in X$ by \cref{closure,subseteq}.
Hence $\metricBall{d}{X}{b}{\delta}$ is open in $X$ with respect to $T$
by \cref{metric_ball,subseteq,metric_basis,metric_basis_is_basis,basis_elem_open_in_generated,metric_topology,basis_for_topology,powerset_intro,open_in}.
Therefore $\metricBall{d}{X}{b}{\delta}$ intersects $A$
by \cref{metric_zero_characterization,metric_on,real_lt_subst_left,metric_ball,closure_iff_intersects_open}.
Take $a$ such that $a\in\metricBall{d}{X}{b}{\delta}\inter A$
by \cref{intersects,nonempty_inhabited}.
We have $a\in A$ and $a\in X$ and $d((b,a)) < \delta$ by \cref{subseteq,inter,metric_ball}.
Take $h\in H$ such that $d((a,h)) < \delta$ by \cref{subseteq}.
We have $h\in X$ and $d((h,a)) < \delta$
by \cref{subseteq,subseteq_transitive,metric_on,metric_symmetric,real_lt_subst_left,times_tuple_intro}.
Hence $d((b,h)) < \delta + \delta$ by \cref{common_center_small_ball_distance_bound}.
Therefore $d((b,h)) < \epsilon$ by \cref{real_lt_subst_right}.
\end{subproof}
We have $H$ is finite and
$H\subseteq X$ and
for all $b\in B$ there exists $h\in H$ such that
$d((b,h)) < \epsilon$.
Follows by definition.
\end{byCase}
Therefore $B$ is totally bounded in $X$ with respect to $d$ by Lemma 843.
LaTeX source
\begin{proof}
$T$ is a topology on $X$
by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology,basis_for_topology}.
We have $B\subseteq X$ by \cref{closure,subseteq}.
Show that for all $\epsilon\in\reals$ such that $0 < \epsilon$
there exists $H$ such that
$H$ is finite and
$H\subseteq X$ and
for all $b\in B$ there exists $h\in H$ such that
$d((b,h)) < \epsilon$.
\begin{subproof}
Fix $\epsilon$ such that $\epsilon\in\reals$ and $0 < \epsilon$.
\begin{byCase}
\caseOf{$A = \emptyset$.}
There exists $H$ such that
$H$ is finite and
$H\subseteq X$ and
for all $b\in B$ there exists $h\in H$ such that $d((b,h)) < \epsilon$
by \cref{closed_emptyset,real_lt_subst_left,closed_eq_closure,real_lt_subst_right,emptyset_is_finite,emptyset_subseteq,subseteq,emptyset,subseteq_emptyset_iff}.
Follows by definition.
\caseOf{$A\neq\emptyset$.}
Let $\delta = \epsilon / (1 + 1)$.
We have $\delta\in\reals$ and $0 < \delta$ and $\delta + \delta = \epsilon$
by \cref{real_half_of_positive}.
Take $H$ such that
$H\subseteq A$ and
$H$ is finite and
for all $a\in A$ there exists $h\in H$ such that
$d((a,h)) < \delta$
by \cref{nonempty_inhabited,totally_bounded_subset_finite_internal_net}.
Show that for all $b\in B$ there exists $h\in H$ such that
$d((b,h)) < \epsilon$.
\begin{subproof}
Fix $b$ such that $b\in B$.
We have $b\in X$ by \cref{closure,subseteq}.
Hence $\metricBall{d}{X}{b}{\delta}$ is open in $X$ with respect to $T$
by \cref{metric_ball,subseteq,metric_basis,metric_basis_is_basis,basis_elem_open_in_generated,metric_topology,basis_for_topology,powerset_intro,open_in}.
Therefore $\metricBall{d}{X}{b}{\delta}$ intersects $A$
by \cref{metric_zero_characterization,metric_on,real_lt_subst_left,metric_ball,closure_iff_intersects_open}.
Take $a$ such that $a\in\metricBall{d}{X}{b}{\delta}\inter A$
by \cref{intersects,nonempty_inhabited}.
We have $a\in A$ and $a\in X$ and $d((b,a)) < \delta$ by \cref{subseteq,inter,metric_ball}.
Take $h\in H$ such that $d((a,h)) < \delta$ by \cref{subseteq}.
We have $h\in X$ and $d((h,a)) < \delta$
by \cref{subseteq,subseteq_transitive,metric_on,metric_symmetric,real_lt_subst_left,times_tuple_intro}.
Hence $d((b,h)) < \delta + \delta$ by \cref{common_center_small_ball_distance_bound}.
Therefore $d((b,h)) < \epsilon$ by \cref{real_lt_subst_right}.
\end{subproof}
We have $H$ is finite and
$H\subseteq X$ and
for all $b\in B$ there exists $h\in H$ such that
$d((b,h)) < \epsilon$.
Follows by definition.
\end{byCase}
\end{subproof}
Therefore $B$ is totally bounded in $X$ with respect to $d$
by \cref{finite_metric_subset_totally_bounded_from_net}.
\end{proof}
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $d$ is a metric on $Y$.
Assume $d = \squareMetric{n}$ or $d = \euclideanMetric{n}$.
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Suppose $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
Suppose for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $A$ such that $A = \{\apply{f}{x} \mid f\class{latex-symbol-tip latex-symbol-id-in}{\in} F\}$ and $A$ is bounded in $Y$ with respect to $d$.
Let $G = \closure{F}{\funs{X}{Y}}{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{X}{Y}}}$.
Then $G$ is compact with respect to $\subspaceTopology{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{X}{Y}}}{G}$.
LaTeX source
\begin{theorem}
\label{ascoli_equicontinuous_pointwise_bounded_implies_compact_closure}
Assume $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $d$ is a metric on $Y$.
Assume $d = \squareMetric{n}$ or $d = \euclideanMetric{n}$.
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\subseteq C$.
Suppose $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
Suppose for all $x\in X$ there exists $A$ such that
$A = \{\apply{f}{x} \mid f\in F\}$ and
$A$ is bounded in $Y$ with respect to $d$.
Let $G = \closure{F}{\funs{X}{Y}}{\metricTopology{\rho}{\funs{X}{Y}}}$.
Then $G$ is compact with respect to $\subspaceTopology{\metricTopology{\rho}{\funs{X}{Y}}}{G}$.
\end{theorem}
Proof
Let $Z = \funs{X}{Y}$.
Let $T_Z = \metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{Z}$.
Let $e = \restrl{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{G\class{latex-symbol-tip latex-symbol-id-times}{\times} G}$.
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $Z$ by Definition 344.
$T_Z$ is a topology on $Z$ by Definition 115, Definition 182, Definition 344, Lemma 76, Lemma 194.
$F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Z$ by Definition 1, Definition 345.
$G\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Z$ by Definition 1, Definition 151.
$G$ is closed in $Z$ with respect to $T_Z$ by Lemma 144.
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a function and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is right-unique and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a relation and $\dom{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}} = Z\class{latex-symbol-tip latex-symbol-id-times}{\times} Z$ by Definition 179, Proposition 345, Proposition 355, Proposition 356, Proposition 359.
Hence $G\class{latex-symbol-tip latex-symbol-id-times}{\times} G\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}$ by Lemma 83, Proposition 6, Proposition 143, Proposition 144.
$F$ is totally bounded in $Z$ with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ by Lemma 853.
Therefore $G$ is totally bounded in $Z$ with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ by Lemma 854.
$Y$ is complete with respect to $d$ by Definition 343, Lemma 83, Theorem 107, Theorem 108.
Hence $Z$ is complete with respect to $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ by Theorem 110.
Therefore $G$ is complete with respect to $e$ by Lemma 679.
Thus $e$ is a metric on $G$ by Definition 343.
$G\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} G$ by Proposition 2.
Claim: $G$ is totally bounded with respect to $e$.
We have $G$ is totally bounded with respect to $e$ by Axiom 2, Definition 1, Definition 360, Lemma 35, Lemma 82, Lemma 843, Proposition 11, Proposition 12.
We have $G$ is totally bounded with respect to $e$ by Definition 1, Definition 360, Lemma 82, Lemma 832, Lemma 843, Proposition 10, Proposition 115, Proposition 384.
LaTeX source
\begin{byCase}
\caseOf{$G = \emptyset$.}
We have $G$ is totally bounded with respect to $e$
by \cref{finite_metric_subset_totally_bounded_from_net,emptyset_is_finite,emptyset_subseteq,real_lt_subst_left,subseteq,emptyset,subseteq_emptyset_iff,totally_bounded_metric_space}.
\caseOf{$G\neq\emptyset$.}
We have $G$ is totally bounded with respect to $e$
by \cref{nonempty_inhabited,finite_metric_subset_totally_bounded_from_net,totally_bounded_subset_finite_internal_net,subseteq,times_tuple_intro,restrl_of_function_apply,real_lt_subst_left,totally_bounded_metric_space}.
\end{byCase}
Let $T_G = \metricTopology{e}{G}$.
Hence $G$ is compact with respect to $T_G$ by Theorem 120.
Claim: For all $A$ such that $A$ is a covering of $G$ and for all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $U$ is open in $Z$ with respect to $T_Z$ there exists $B$ such that $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ and $B$ is finite and $B$ is a covering of $G$.
Fix $A$ such that $A$ is a covering of $G$ and for all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $U$ is open in $Z$ with respect to $T_Z$.
$T_G$ is a topology on $G$ by Definition 115, Definition 182, Lemma 76, Lemma 194.
Let $h = \{(U,G\inter U) \mid U\class{latex-symbol-tip latex-symbol-id-in}{\in} A\}$.
For all $U,V_1,V_2$ such that $(U,V_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ and $(U,V_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ we have $V_1 = V_2$ by Axiom 6.
We have $h$ is right-unique by Definition 51.
Claim: For all $U$ we have $U\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ iff $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Follows by Axiom 6, Proposition 199, Proposition 200.
Therefore $h$ is a function on $A$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
Let $D = \img{h}{A}$.
We have $D$ is a covering of $G$ by Axiom 4, Definition 1, Definition 245, Proposition 61, Proposition 235, Proposition 349.
Claim: For all $W$ such that $W\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ we have $W$ is open in $G$ with respect to $T_G$.
Fix $W$ such that $W\class{latex-symbol-tip latex-symbol-id-in}{\in} D$.
Take $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $(U,W)\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ by Proposition 235.
We have $W = G\inter U$ by Proposition 346.
Claim: For all $g\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ 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}{G}{g}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} W$.
Fix $g$ such that $g\class{latex-symbol-tip latex-symbol-id-in}{\in} W$.
We have $g\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ by Definition 5.
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{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{Z}{g}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 1, Definition 101, Definition 103, Lemma 195, Proposition 156.
We have $\metricBall{e}{G}{g}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} W$ by Definition 1, Definition 180, Lemma 82, Lemma 83, Proposition 61, Proposition 115, Proposition 384.
Follows by definition.
Therefore $W$ is open in $G$ with respect to $T_G$ by Lemma 195, Proposition 73.
Hence $D$ is an open covering of $G$ with respect to $T_G$ by Definition 246.
Take $B_0$ such that $B_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} D$ and $B_0$ is finite and $B_0$ is a covering of $G$ by Definition 247.
Let $S = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0\class{latex-symbol-tip latex-symbol-id-times}{\times} A \mid \fst{w} = G\inter\snd{w}\}$.
For all $W\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ there exists $U$ such that $W\mathrel{S} U$ by Axiom 10, Axiom 11, Definition 1, Proposition 115, Proposition 235, Proposition 346.
Take $k$ such that $k$ is a function on $B_0$ and for all $W\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ we have $W\mathrel{S}\apply{k}{W}$ by Axiom 54, Definition 1, Definition 12, Proposition 121.
Let $B = \img{k}{B_0}$.
We have $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Definition 1, Proposition 114, Proposition 235, Proposition 346.
$B$ is finite by Lemma 192.
We have $B$ is a covering of $G$ by Axiom 4, Axiom 10, Axiom 11, Definition 1, Definition 5, Definition 245, Proposition 235, Proposition 349.
Follows by definition.
Therefore $G$ is compact with respect to $\subspaceTopology{T_Z}{G}$ by Definition 147, Lemma 356.
LaTeX source
\begin{proof}
Let $Z = \funs{X}{Y}$.
Let $T_Z = \metricTopology{\rho}{Z}$.
Let $e = \restrl{\rho}{G\times G}$.
$\rho$ is a metric on $Z$ by \cref{uniform_metric_on_function_space}.
$T_Z$ is a topology on $Z$
by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology,basis_for_topology,uniform_metric_on_function_space}.
$F\subseteq Z$ by \cref{subseteq,continuous_function_set}.
$G\subseteq Z$ by \cref{closure,subseteq}.
$G$ is closed in $Z$ with respect to $T_Z$ by \cref{closure_closed_in}.
$\rho$ is a function and $\rho$ is right-unique and $\rho$ is a relation and $\dom{\rho} = Z\times Z$
by \cref{metric_on,funs_is_function,function_rightunique,funs_is_relation,funs_elim}.
Hence $G\times G\subseteq\dom{\rho}$
by \cref{times_subseteq_left,times_subseteq_right,subseteq_transitive,real_lt_subst_right}.
$F$ is totally bounded in $Z$ with respect to $\rho$
by \cref{equicontinuous_pointwise_bounded_function_family_totally_bounded_uniform}.
Therefore $G$ is totally bounded in $Z$ with respect to $\rho$
by \cref{closure_totally_bounded}.
$Y$ is complete with respect to $d$
by \cref{euclidean_space_square_metric_complete,euclidean_space_euclidean_metric_complete,complete_metric_space,real_lt_subst_right}.
Hence $Z$ is complete with respect to $\rho$ by \cref{uniform_function_space_complete}.
Therefore $G$ is complete with respect to $e$ by \cref{closed_subset_complete_restricted_metric}.
Thus $e$ is a metric on $G$ by \cref{complete_metric_space}.
$G\subseteq G$ by \cref{subseteq_refl}.
Show that $G$ is totally bounded with respect to $e$.
\begin{subproof}
\begin{byCase}
\caseOf{$G = \emptyset$.}
We have $G$ is totally bounded with respect to $e$
by \cref{finite_metric_subset_totally_bounded_from_net,emptyset_is_finite,emptyset_subseteq,real_lt_subst_left,subseteq,emptyset,subseteq_emptyset_iff,totally_bounded_metric_space}.
\caseOf{$G\neq\emptyset$.}
We have $G$ is totally bounded with respect to $e$
by \cref{nonempty_inhabited,finite_metric_subset_totally_bounded_from_net,totally_bounded_subset_finite_internal_net,subseteq,times_tuple_intro,restrl_of_function_apply,real_lt_subst_left,totally_bounded_metric_space}.
\end{byCase}
\end{subproof}
Let $T_G = \metricTopology{e}{G}$.
Hence $G$ is compact with respect to $T_G$
by \cref{complete_totally_bounded_metric_space_compact}.
Show that for all $A$ such that
$A$ is a covering of $G$ and
for all $U$ such that $U\in A$ we have $U$ is open in $Z$ with respect to $T_Z$
there exists $B$ such that
$B\subseteq A$ and
$B$ is finite and
$B$ is a covering of $G$.
\begin{subproof}
Fix $A$ such that
$A$ is a covering of $G$ and
for all $U$ such that $U\in A$ we have $U$ is open in $Z$ with respect to $T_Z$.
$T_G$ is a topology on $G$
by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology,basis_for_topology}.
Let $h = \{(U,G\inter U) \mid U\in A\}$.
For all $U,V_1,V_2$ such that $(U,V_1)\in h$ and $(U,V_2)\in h$ we have $V_1 = V_2$
by \cref{pair_eq_iff}.
We have $h$ is right-unique by \cref{rightunique}.
Show that for all $U$ we have $U\in\dom{h}$ iff $U\in A$.
\begin{subproof}
Follows by \cref{dom_intro,dom_iff,pair_eq_iff}.
\end{subproof}
Therefore $h$ is a function on $A$ by \cref{rightunique,relation,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
Let $D = \img{h}{A}$.
We have $D$ is a covering of $G$
by \cref{covering,subseteq,unions_iff,inter_intro,img_iff,function_apply_iff}.
Show that for all $W$ such that $W\in D$ we have $W$ is open in $G$ with respect to $T_G$.
\begin{subproof}
Fix $W$ such that $W\in D$.
Take $U\in A$ such that $(U,W)\in h$ by \cref{img_iff}.
We have $W = G\inter U$ by \cref{function_apply_intro}.
Show that for all $g\in W$ there exists $\delta\in\reals$ such that
$0 < \delta$ and
$\metricBall{e}{G}{g}{\delta}\subseteq W$.
\begin{subproof}
Fix $g$ such that $g\in W$.
We have $g\in U$ and $g\in G$ by \cref{inter}.
Take $\delta\in\reals$ such that
$0 < \delta$ and
$\metricBall{\rho}{Z}{g}{\delta}\subseteq U$
by \cref{open_in,topology_on,subseteq,powerset_elim,metric_open_iff}.
We have $\metricBall{e}{G}{g}{\delta}\subseteq W$
by \cref{metric_ball,subseteq,times_tuple_intro,restrl_of_function_apply,real_lt_subst_right,inter_intro,real_lt_subst_left}.
Follows by definition.
\end{subproof}
Therefore $W$ is open in $G$ with respect to $T_G$ by \cref{inter_lower_left,metric_open_iff}.
\end{subproof}
Hence $D$ is an open covering of $G$ with respect to $T_G$ by \cref{open_covering}.
Take $B_0$ such that
$B_0\subseteq D$ and
$B_0$ is finite and
$B_0$ is a covering of $G$
by \cref{compact}.
Let $S = \{w\in B_0\times A \mid \fst{w} = G\inter\snd{w}\}$.
For all $W\in B_0$ there exists $U$ such that $W\mathrel{S} U$
by \cref{subseteq,img_iff,function_apply_intro,times_tuple_intro,fst_eq,snd_eq}.
Take $k$ such that
$k$ is a function on $B_0$ and
for all $W\in B_0$ we have $W\mathrel{S}\apply{k}{W}$
by \cref{subseteq,times_elem_is_tuple,relation,axiom_of_choice}.
Let $B = \img{k}{B_0}$.
We have $B\subseteq A$ by \cref{img_iff,function_apply_intro,subseteq,times_tuple_elim}.
$B$ is finite by \cref{finite_image_function}.
We have $B$ is a covering of $G$
by \cref{covering,subseteq,unions_iff,fst_eq,snd_eq,inter,img_iff,function_apply_iff}.
Follows by definition.
\end{subproof}
Therefore $G$ is compact with respect to $\subspaceTopology{T_Z}{G}$
by \cref{subspace_of,compact_subspace_open_covering}.
\end{proof}
Assume $d$ is a metric on $X$.
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Suppose $A$ is totally bounded in $X$ with respect to $d$.
Then $A$ is bounded in $X$ with respect to $d$.
LaTeX source
\begin{lemma}
\label{totally_bounded_subset_bounded}
Assume $d$ is a metric on $X$.
Suppose $A\subseteq X$.
Suppose $A$ is totally bounded in $X$ with respect to $d$.
Then $A$ is bounded in $X$ with respect to $d$.
\end{lemma}
Proof
Let $M = 0$.
For all $x,z\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ by Axiom 2, Proposition 4, Proposition 12.
Therefore $A$ is bounded in $X$ with respect to $d$ by Axiom 17, Definition 187.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < 1$ by Axiom 41, Axiom 42, Definition 1, Proposition 462.
Take $H$ such that $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ and $H$ is finite and for all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ there exists $h\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $d((a,h)) < 1$ by Lemma 832, Proposition 10.
Take $M\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that for all $h_1,h_2\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ we have $d((h_1,h_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ by Definition 187, Lemma 850, Proposition 6.
Claim: For all $x,z\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 + (M + 1) + 1$.
Fix $x$.
Fix $z$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Take $h_1\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $d((x,h_1)) < 1$ by Definition 1.
Take $h_2\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ such that $d((z,h_2)) < 1$ by Definition 1.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $h_1\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $h_2\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1.
Hence $d((h_1,h_2)) < M + 1$ by Axiom 13, Axiom 16, Axiom 17, Axiom 37, Axiom 41, Axiom 42, Definition 1, Definition 179, Lemma 82, Lemma 266, Proposition 115, Proposition 361.
Therefore $d((h_2,z)) < 1$ by Definition 177, Definition 179, Lemma 82, Proposition 115.
Thus $d((x,z)) < 1 + (M + 1) + 1$ by Axiom 13, Axiom 41, Axiom 42, Definition 1, Lemma 846.
Therefore $d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1 + (M + 1) + 1$ by Lemma 231.
Therefore $A$ is bounded in $X$ with respect to $d$ by Axiom 13, Axiom 41, Axiom 42, Definition 1, Definition 187.
LaTeX source
\begin{byCase}
\caseOf{$A = \emptyset$.}
Let $M = 0$.
For all $x,z\in A$ we have $d((x,z)) \leq M$
by \cref{subseteq_emptyset_iff,elem_subseteq,emptyset}.
Therefore $A$ is bounded in $X$ with respect to $d$ by \cref{real_add_ident,metric_bounded}.
\caseOf{$A\neq\emptyset$.}
$1\in\reals$ and $0 < 1$
by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_zero_lt_one}.
Take $H$ such that
$H\subseteq A$ and
$H$ is finite and
for all $a\in A$ there exists $h\in H$ such that
$d((a,h)) < 1$
by \cref{nonempty_inhabited,totally_bounded_subset_finite_internal_net}.
Take $M\in\reals$ such that for all $h_1,h_2\in H$ we have $d((h_1,h_2)) \leq M$
by \cref{subseteq_transitive,finite_metric_subset_bounded,metric_bounded}.
Show that for all $x,z\in A$ we have $d((x,z)) \leq 1 + (M + 1) + 1$.
\begin{subproof}
Fix $x$.
Fix $z$ such that $x\in A$ and $z\in A$.
Take $h_1\in H$ such that $d((x,h_1)) < 1$ by \cref{subseteq}.
Take $h_2\in H$ such that $d((z,h_2)) < 1$ by \cref{subseteq}.
We have $x\in X$ and $z\in X$ and $h_1\in X$ and $h_2\in X$ by \cref{subseteq}.
Hence $d((h_1,h_2)) < M + 1$
by \cref{metric_on,funs_type_apply,times_tuple_intro,real_add_closed,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_lt_add,real_add_ident,real_add_comm,real_lt_subst_left,real_leq_lt_trans}.
Therefore $d((h_2,z)) < 1$ by \cref{metric_on,metric_symmetric,real_lt_subst_left,times_tuple_intro}.
Thus $d((x,z)) < 1 + (M + 1) + 1$
by \cref{metric_three_step_lt_sum,real_add_closed,real_naturals_subset_reals,real_one_in_naturals,subseteq}.
Therefore $d((x,z)) \leq 1 + (M + 1) + 1$ by \cref{real_lt_imp_leq}.
\end{subproof}
Therefore $A$ is bounded in $X$ with respect to $d$
by \cref{real_add_closed,real_naturals_subset_reals,real_one_in_naturals,subseteq,metric_bounded}.
\end{byCase}
LaTeX source
\begin{proof}
\begin{byCase}
\caseOf{$A = \emptyset$.}
Let $M = 0$.
For all $x,z\in A$ we have $d((x,z)) \leq M$
by \cref{subseteq_emptyset_iff,elem_subseteq,emptyset}.
Therefore $A$ is bounded in $X$ with respect to $d$ by \cref{real_add_ident,metric_bounded}.
\caseOf{$A\neq\emptyset$.}
$1\in\reals$ and $0 < 1$
by \cref{real_naturals_subset_reals,real_one_in_naturals,subseteq,real_zero_lt_one}.
Take $H$ such that
$H\subseteq A$ and
$H$ is finite and
for all $a\in A$ there exists $h\in H$ such that
$d((a,h)) < 1$
by \cref{nonempty_inhabited,totally_bounded_subset_finite_internal_net}.
Take $M\in\reals$ such that for all $h_1,h_2\in H$ we have $d((h_1,h_2)) \leq M$
by \cref{subseteq_transitive,finite_metric_subset_bounded,metric_bounded}.
Show that for all $x,z\in A$ we have $d((x,z)) \leq 1 + (M + 1) + 1$.
\begin{subproof}
Fix $x$.
Fix $z$ such that $x\in A$ and $z\in A$.
Take $h_1\in H$ such that $d((x,h_1)) < 1$ by \cref{subseteq}.
Take $h_2\in H$ such that $d((z,h_2)) < 1$ by \cref{subseteq}.
We have $x\in X$ and $z\in X$ and $h_1\in X$ and $h_2\in X$ by \cref{subseteq}.
Hence $d((h_1,h_2)) < M + 1$
by \cref{metric_on,funs_type_apply,times_tuple_intro,real_add_closed,real_naturals_subset_reals,real_one_in_naturals,subseteq,real_lt_add,real_add_ident,real_add_comm,real_lt_subst_left,real_leq_lt_trans}.
Therefore $d((h_2,z)) < 1$ by \cref{metric_on,metric_symmetric,real_lt_subst_left,times_tuple_intro}.
Thus $d((x,z)) < 1 + (M + 1) + 1$
by \cref{metric_three_step_lt_sum,real_add_closed,real_naturals_subset_reals,real_one_in_naturals,subseteq}.
Therefore $d((x,z)) \leq 1 + (M + 1) + 1$ by \cref{real_lt_imp_leq}.
\end{subproof}
Therefore $A$ is bounded in $X$ with respect to $d$
by \cref{real_add_closed,real_naturals_subset_reals,real_one_in_naturals,subseteq,metric_bounded}.
\end{byCase}
\end{proof}
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $T$ is a topology on $X$.
Assume $d$ is a metric on $Y$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Then $C$ is inhabited.
LaTeX source
\begin{lemma}
\label{continuous_reals_power_function_set_inhabited}
Assume $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $T$ is a topology on $X$.
Assume $d$ is a metric on $Y$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Then $C$ is inhabited.
\end{lemma}
Proof
Let $y_0 = \{(j,0) \mid j\class{latex-symbol-tip latex-symbol-id-in}{\in} J\}$.
We have $y_0\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Axiom 17, Definition 55, Definition 166, Definition 191, Lemma 83, Lemma 309.
Let $f_0 = \{(x,y_0) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\}$.
We have $f_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ by Definition 55, Lemma 309.
Hence $f_0$ is continuous from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$ by Definition 115, Definition 182, Lemma 76, Lemma 163, Lemma 194, Proposition 345, Proposition 346, Proposition 355, Proposition 356.
Hence $C$ is inhabited by Definition 345, Lemma 323, Proposition 10.
LaTeX source
\begin{proof}
Let $y_0 = \{(j,0) \mid j\in J\}$.
We have $y_0\in Y$
by \cref{real_add_ident,constant_map_function,funs,tuple_power,reals_power,real_lt_subst_right}.
Let $f_0 = \{(x,y_0) \mid x\in X\}$.
We have $f_0\in\funs{X}{Y}$ by \cref{constant_map_function,funs}.
Hence $f_0$ is continuous from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$
by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology,basis_for_topology,funs_is_function,function_rightunique,funs_is_relation,function_apply_intro,constant_continuous}.
Hence $C$ is inhabited by \cref{continuous_function_set,inhabited_nonempty,nonempty_inhabited}.
\end{proof}
Assume $d$ is a metric on $Y$.
Assume $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\funs{X}{Y}$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the sup metric on $B$ with respect to $X$ and $Y$ and $d$.
Suppose $f\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Suppose $g\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then $d((f(x),g(x))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$.
LaTeX source
\begin{lemma}
\label{sup_metric_coordinate_leq_general}
Assume $d$ is a metric on $Y$.
Assume $B\subseteq\funs{X}{Y}$.
Assume $\rho$ is the sup metric on $B$ with respect to $X$ and $Y$ and $d$.
Suppose $f\in B$.
Suppose $g\in B$.
Suppose $x\in X$.
Then $d((f(x),g(x))) \leq \rho((f,g))$.
\end{lemma}
Proof
We have $d((f(x),g(x))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ by Definition 1, Definition 66, Definition 71, Definition 179, Definition 347, Definition 348, Proposition 361.
LaTeX source
\begin{proof}
We have $d((f(x),g(x))) \leq \rho((f,g))$
by \cref{sup_metric_on_bounded_function_space,subseteq,function_distance_set,metric_on,funs_type_apply,real_supremum,real_upper_bound}.
\end{proof}
Assume $d$ is a metric on $Y$.
Assume $T$ is a topology on $X$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $\sigma$ is the sup metric on $C$ with respect to $X$ and $Y$ and $d$.
Assume $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Suppose $F$ is bounded in $C$ with respect to $\sigma$.
Then for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $A$ such that $A = \{\apply{f}{x} \mid f\class{latex-symbol-tip latex-symbol-id-in}{\in} F\}$ and $A$ is bounded in $Y$ with respect to $d$.
LaTeX source
\begin{lemma}
\label{bounded_sup_implies_pointwise_bounded}
Assume $d$ is a metric on $Y$.
Assume $T$ is a topology on $X$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $\sigma$ is the sup metric on $C$ with respect to $X$ and $Y$ and $d$.
Assume $F\subseteq C$.
Suppose $F$ is bounded in $C$ with respect to $\sigma$.
Then for all $x\in X$ there exists $A$ such that
$A = \{\apply{f}{x} \mid f\in F\}$ and
$A$ is bounded in $Y$ with respect to $d$.
\end{lemma}
Proof
Take $M\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that for all $f_1,f_2\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $\sigma((f_1,f_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ by Definition 187.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $A$ such that $A = \{\apply{f}{x} \mid f\class{latex-symbol-tip latex-symbol-id-in}{\in} F\}$ and $A$ is bounded in $Y$ with respect to $d$.
Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $A = \{\apply{f}{x} \mid f\class{latex-symbol-tip latex-symbol-id-in}{\in} F\}$.
Claim: For all $y_1,y_2\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $d((y_1,y_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$.
Fix $y_1$.
Fix $y_2$ such that $y_1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $y_2\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Take $f_1\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ such that $y_1 = f_1(x)$ by Definition 1.
Take $f_2\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ such that $y_2 = f_2(x)$ by Definition 1.
Hence $d((y_1,y_2)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} M$ by Definition 1, Definition 179, Definition 187, Definition 345, Lemma 23, Lemma 82, Lemma 83, Lemma 857, Proposition 115, Proposition 361.
Therefore $A$ is bounded in $Y$ with respect to $d$ by Definition 1, Definition 187, Definition 345, Lemma 82, Proposition 361.
Follows by definition.
Follows by definition.
LaTeX source
\begin{proof}
Take $M\in\reals$ such that for all $f_1,f_2\in F$ we have $\sigma((f_1,f_2)) \leq M$
by \cref{metric_bounded}.
Show that for all $x\in X$ there exists $A$ such that
$A = \{\apply{f}{x} \mid f\in F\}$ and
$A$ is bounded in $Y$ with respect to $d$.
\begin{subproof}
Fix $x$ such that $x\in X$.
Let $A = \{\apply{f}{x} \mid f\in F\}$.
Show that for all $y_1,y_2\in A$ we have $d((y_1,y_2)) \leq M$.
\begin{subproof}
Fix $y_1$.
Fix $y_2$ such that $y_1\in A$ and $y_2\in A$.
Take $f_1\in F$ such that $y_1 = f_1(x)$ by \cref{subseteq}.
Take $f_2\in F$ such that $y_2 = f_2(x)$ by \cref{subseteq}.
Hence $d((y_1,y_2)) \leq M$
by \cref{sup_metric_coordinate_leq_general,metric_bounded,subseteq,metric_on,continuous_function_set,funs_type_apply,times_tuple_intro,real_leq_trans,real_lt_subst_left,real_lt_subst_right}.
\end{subproof}
Therefore $A$ is bounded in $Y$ with respect to $d$
by \cref{subseteq,continuous_function_set,funs_type_apply,real_lt_subst_left,metric_bounded}.
Follows by definition.
\end{subproof}
Follows by definition.
\end{proof}
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $d$ is a metric on $Y$.
Assume $d = \squareMetric{n}$ or $d = \euclideanMetric{n}$.
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Suppose $F$ is compact with respect to $\subspaceTopology{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{X}{Y}}}{F}$.
Then $F$ is closed in $\funs{X}{Y}$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{X}{Y}}$.
LaTeX source
\begin{corollary}
\label{ascoli_compact_function_family_closed}
Assume $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $d$ is a metric on $Y$.
Assume $d = \squareMetric{n}$ or $d = \euclideanMetric{n}$.
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\subseteq C$.
Suppose $F$ is compact with respect to $\subspaceTopology{\metricTopology{\rho}{\funs{X}{Y}}}{F}$.
Then $F$ is closed in $\funs{X}{Y}$ with respect to $\metricTopology{\rho}{\funs{X}{Y}}$.
\end{corollary}
Proof
Let $Z = \funs{X}{Y}$.
Let $T_Z = \metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{Z}$.
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $Z$ by Definition 344.
$T_Z$ is a topology on $Z$ by Definition 115, Definition 182, Definition 344, Lemma 76, Lemma 194.
Hence $F$ is closed in $Z$ with respect to $T_Z$ by Definition 1, Definition 345, Lemma 395, Proposition 6, Theorem 60.
LaTeX source
\begin{proof}
Let $Z = \funs{X}{Y}$.
Let $T_Z = \metricTopology{\rho}{Z}$.
$\rho$ is a metric on $Z$ by \cref{uniform_metric_on_function_space}.
$T_Z$ is a topology on $Z$
by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology,basis_for_topology,uniform_metric_on_function_space}.
Hence $F$ is closed in $Z$ with respect to $T_Z$
by \cref{metric_space_hausdorff,compact_subspace_closed,subseteq,continuous_function_set,subseteq_transitive}.
\end{proof}
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $d$ is a metric on $Y$.
Assume $d = \squareMetric{n}$ or $d = \euclideanMetric{n}$.
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $X$ is inhabited.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $\sigma$ is the sup metric on $C$ with respect to $X$ and $Y$ and $d$.
Assume $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Suppose $F$ is compact with respect to $\subspaceTopology{\metricTopology{\sigma}{C}}{F}$.
Then $F$ is bounded in $C$ with respect to $\sigma$.
LaTeX source
\begin{corollary}
\label{ascoli_compact_function_family_bounded_sup}
Assume $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $d$ is a metric on $Y$.
Assume $d = \squareMetric{n}$ or $d = \euclideanMetric{n}$.
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $X$ is inhabited.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $\sigma$ is the sup metric on $C$ with respect to $X$ and $Y$ and $d$.
Assume $F\subseteq C$.
Suppose $F$ is compact with respect to $\subspaceTopology{\metricTopology{\sigma}{C}}{F}$.
Then $F$ is bounded in $C$ with respect to $\sigma$.
\end{corollary}
Proof
We have $F$ is bounded in $C$ with respect to $\sigma$ by Definition 348, Lemma 849, Lemma 855, Lemma 856.
LaTeX source
\begin{proof}
We have $F$ is bounded in $C$ with respect to $\sigma$
by \cref{continuous_reals_power_function_set_inhabited,sup_metric_on_bounded_function_space,compact_metric_subspace_ambient_totally_bounded,totally_bounded_subset_bounded}.
\end{proof}
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $d$ is a metric on $Y$.
Assume $d = \squareMetric{n}$ or $d = \euclideanMetric{n}$.
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Suppose $F$ is compact with respect to $\subspaceTopology{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{X}{Y}}}{F}$.
Then $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
LaTeX source
\begin{corollary}
\label{ascoli_compact_function_family_equicontinuous}
Assume $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $d$ is a metric on $Y$.
Assume $d = \squareMetric{n}$ or $d = \euclideanMetric{n}$.
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $F\subseteq C$.
Suppose $F$ is compact with respect to $\subspaceTopology{\metricTopology{\rho}{\funs{X}{Y}}}{F}$.
Then $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
\end{corollary}
Proof
Let $Z = \funs{X}{Y}$.
Let $T_Z = \metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{Z}$.
Let $G = \closure{F}{Z}{T_Z}$.
$T_Z$ is a topology on $Z$ by Definition 115, Definition 182, Definition 344, Lemma 76, Lemma 194.
We have $G = F$ by Definition 1, Definition 345, Lemma 146, Lemma 147, Proposition 3, Corollary 16.
Therefore $G$ is compact with respect to $\subspaceTopology{T_Z}{G}$ by Lemma 82, Lemma 83.
Hence $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$ by Theorem 121.
LaTeX source
\begin{proof}
Let $Z = \funs{X}{Y}$.
Let $T_Z = \metricTopology{\rho}{Z}$.
Let $G = \closure{F}{Z}{T_Z}$.
$T_Z$ is a topology on $Z$
by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology,basis_for_topology,uniform_metric_on_function_space}.
We have $G = F$
by \cref{ascoli_compact_function_family_closed,closure_subseteq_closed,subseteq,continuous_function_set,subseteq_closure,subseteq_antisymmetric}.
Therefore $G$ is compact with respect to $\subspaceTopology{T_Z}{G}$
by \cref{real_lt_subst_left,real_lt_subst_right}.
Hence $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$
by \cref{ascoli_compact_closure_implies_equicontinuous}.
\end{proof}
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $d$ is a metric on $Y$.
Assume $d = \squareMetric{n}$ or $d = \euclideanMetric{n}$.
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $\sigma$ is the sup metric on $C$ with respect to $X$ and $Y$ and $d$.
Assume $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$.
Suppose $F$ is closed in $\funs{X}{Y}$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{X}{Y}}$.
Suppose $F$ is bounded in $C$ with respect to $\sigma$.
Suppose $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
Then $F$ is compact with respect to $\subspaceTopology{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{X}{Y}}}{F}$.
LaTeX source
\begin{corollary}
\label{ascoli_closed_bounded_equicontinuous_implies_compact}
Assume $n\in\naturalsPlus$.
Let $J = \initialSegment{n}$.
Let $Y = \realsPower{J}$.
Assume $d$ is a metric on $Y$.
Assume $d = \squareMetric{n}$ or $d = \euclideanMetric{n}$.
Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $\sigma$ is the sup metric on $C$ with respect to $X$ and $Y$ and $d$.
Assume $F\subseteq C$.
Suppose $F$ is closed in $\funs{X}{Y}$ with respect to $\metricTopology{\rho}{\funs{X}{Y}}$.
Suppose $F$ is bounded in $C$ with respect to $\sigma$.
Suppose $F$ is equicontinuous from $X$ to $Y$ with respect to $T$ and $d$.
Then $F$ is compact with respect to $\subspaceTopology{\metricTopology{\rho}{\funs{X}{Y}}}{F}$.
\end{corollary}
Proof
Let $Z = \funs{X}{Y}$.
Let $T_Z = \metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{Z}$.
Let $G = \closure{F}{Z}{T_Z}$.
$T_Z$ is a topology on $Z$ by Definition 115, Definition 182, Definition 344, Lemma 76, Lemma 194.
We have for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $A$ such that $A = \{\apply{f}{x} \mid f\class{latex-symbol-tip latex-symbol-id-in}{\in} F\}$ and $A$ is bounded in $Y$ with respect to $d$ by Lemma 858.
Therefore $G$ is compact with respect to $\subspaceTopology{T_Z}{G}$ by Theorem 123.
We have $G = F$ by Definition 1, Definition 345, Lemma 146, Lemma 147, Proposition 3.
Hence $F$ is compact with respect to $\subspaceTopology{T_Z}{F}$ by Lemma 82, Lemma 83.
LaTeX source
\begin{proof}
Let $Z = \funs{X}{Y}$.
Let $T_Z = \metricTopology{\rho}{Z}$.
Let $G = \closure{F}{Z}{T_Z}$.
$T_Z$ is a topology on $Z$
by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology,basis_for_topology,uniform_metric_on_function_space}.
We have for all $x\in X$ there exists $A$ such that
$A = \{\apply{f}{x} \mid f\in F\}$ and
$A$ is bounded in $Y$ with respect to $d$
by \cref{bounded_sup_implies_pointwise_bounded}.
Therefore $G$ is compact with respect to $\subspaceTopology{T_Z}{G}$
by \cref{ascoli_equicontinuous_pointwise_bounded_implies_compact_closure}.
We have $G = F$
by \cref{closure_subseteq_closed,subseteq,continuous_function_set,subseteq_closure,subseteq_antisymmetric}.
Hence $F$ is compact with respect to $\subspaceTopology{T_Z}{F}$
by \cref{real_lt_subst_left,real_lt_subst_right}.
\end{proof}