Topology (Munkres)

§46 Pointwise and Compact Convergence

Definition 363
point_open_set

$A$ is the point-open set at $x$ with value set $V$ from $X$ to $Y$ iff $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ and $A = \{f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y} \mid \apply{f}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in} V\}$.

LaTeX source
\begin{definition}
\label{point_open_set}
    $A$ is the point-open set at $x$ with value set $V$ from $X$ to $Y$ iff
        $x\in X$ and
        $V\subseteq Y$ and
        $A = \{f\in\funs{X}{Y} \mid \apply{f}{x}\in V\}$.
\end{definition}
Definition 364
pointwise_function_space_subbasis

$S$ is the pointwise subbasis on functions from $X$ to $Y$ with respect to $T$ iff $T$ is a topology on $Y$ and $S = \{A\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\funs{X}{Y}} \mid \text{there exist $x,V$ such that $x\in X$ and $V\in T$ and $A$ is the point-open set at $x$ with value set $V$ from $X$ to $Y$}\}$.

LaTeX source
\begin{definition}
\label{pointwise_function_space_subbasis}
    $S$ is the pointwise subbasis on functions from $X$ to $Y$ with respect to $T$ iff
        $T$ is a topology on $Y$ and
        $S = \{A\in\pow{\funs{X}{Y}} \mid \text{there exist $x,V$ such that
            $x\in X$ and
            $V\in T$ and
            $A$ is the point-open set at $x$ with value set $V$ from $X$ to $Y$}\}$.
\end{definition}
Definition 365
pointwise_convergence_topology

$T_0$ is the topology of pointwise convergence on functions from $X$ to $Y$ with respect to $T$ iff $T$ is a topology on $Y$ and $T_0$ is a topology on $\funs{X}{Y}$ and there exists $S$ such that $S$ is the pointwise subbasis on functions from $X$ to $Y$ with respect to $T$ and $T_0 = \subbasisTopology{S}{\funs{X}{Y}}$.

LaTeX source
\begin{definition}
\label{pointwise_convergence_topology}
    $T_0$ is the topology of pointwise convergence on functions from $X$ to $Y$ with respect to $T$ iff
        $T$ is a topology on $Y$ and
        $T_0$ is a topology on $\funs{X}{Y}$ and
        there exists $S$ such that
            $S$ is the pointwise subbasis on functions from $X$ to $Y$ with respect to $T$ and
            $T_0 = \subbasisTopology{S}{\funs{X}{Y}}$.
\end{definition}
Lemma 859
pointwise_subbasis_contains_point_open_set

Assume $T$ is a topology on $Y$.
Assume $S$ is the pointwise subbasis on functions from $X$ to $Y$ with respect to $T$.
Assume $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Assume $V\class{latex-symbol-tip latex-symbol-id-in}{\in} T$.
Let $A = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y} \mid \apply{g}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in} V\}$.
Then $A\class{latex-symbol-tip latex-symbol-id-in}{\in} S$.

LaTeX source
\begin{lemma}
\label{pointwise_subbasis_contains_point_open_set}
    Assume $T$ is a topology on $Y$.
    Assume $S$ is the pointwise subbasis on functions from $X$ to $Y$ with respect to $T$.
    Assume $x\in X$.
    Assume $V\in T$.
    Let $A = \{g\in\funs{X}{Y} \mid \apply{g}{x}\in V\}$.
    Then $A\in S$.
\end{lemma}
Proof

We have $A\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Axiom 12, Definition 1, Definition 101, Definition 363, Definition 364.

LaTeX source
\begin{proof}
    We have $A\in S$
        by \cref{topology_on,subseteq,pow_iff,point_open_set,pointwise_function_space_subbasis}.
\end{proof}
Definition 366
function_sequence_coordinate_sequence

$t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$ iff $s$ is a sequence in $\funs{X}{Y}$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $t$ is a sequence in $Y$ and for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $t(n) = \apply{\apply{s}{n}}{x}$.

LaTeX source
\begin{definition}
\label{function_sequence_coordinate_sequence}
    $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$ iff
        $s$ is a sequence in $\funs{X}{Y}$ and
        $x\in X$ and
        $t$ is a sequence in $Y$ and
        for all $n\in\naturalsPlus$ we have $t(n) = \apply{\apply{s}{n}}{x}$.
\end{definition}
Lemma 860
coordinate_sequence_exists

Assume $s$ is a sequence in $\funs{X}{Y}$.
Assume $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then there exists $t$ such that $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$.

LaTeX source
\begin{lemma}
\label{coordinate_sequence_exists}
    Assume $s$ is a sequence in $\funs{X}{Y}$.
    Assume $x\in X$.
    Then there exists $t$ such that $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$.
\end{lemma}
Proof

Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus\class{latex-symbol-tip latex-symbol-id-times}{\times} Y \mid \snd{w} = \apply{\apply{s}{\fst{w}}}{x}\}$.
$R\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Definition 1.
We have $R$ is a relation by Definition 1, Definition 12, Proposition 121.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ by Definition 158, Proposition 361.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $\apply{\apply{s}{n}}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Proposition 361.

Claim: For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ there exists $y$ such that $(n,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} R$.

Fix $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $y = \apply{\apply{s}{n}}{x}$.
We have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 1.
$(n,y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Proposition 115.
Therefore $(n,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Axiom 10, Axiom 11, Definition 1.

Take $t$ such that $t$ is a function on $\naturalsPlus$ and for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $n\mathrel{R} t(n)$ by Axiom 54.
Therefore $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$ by Axiom 10, Axiom 11, Axiom 54, Definition 1, Definition 158, Definition 366, Proposition 114, Proposition 348, Proposition 358.

LaTeX source
\begin{proof}
    Let $R = \{w\in\naturalsPlus\times Y \mid \snd{w} = \apply{\apply{s}{\fst{w}}}{x}\}$.
    $R\subseteq\naturalsPlus\times Y$ by \cref{subseteq}.
    We have $R$ is a relation by \cref{relation,subseteq,times_elem_is_tuple}.
    For all $n\in\naturalsPlus$ we have $s(n)\in\funs{X}{Y}$ by \cref{sequence_in,funs_type_apply}.
    For all $n\in\naturalsPlus$ we have $\apply{\apply{s}{n}}{x}\in Y$ by \cref{funs_type_apply}.
    Show that for all $n\in\naturalsPlus$ there exists $y$ such that $(n,y)\in R$.
    \begin{subproof}
        Fix $n\in\naturalsPlus$.
        Let $y = \apply{\apply{s}{n}}{x}$.
        We have $y\in Y$ by \cref{subseteq}.
        $(n,y)\in\naturalsPlus\times Y$ by \cref{times_tuple_intro}.
        Therefore $(n,y)\in R$ by \cref{fst_eq,snd_eq,subseteq}.
    \end{subproof}
    Take $t$ such that $t$ is a function on $\naturalsPlus$ and
        for all $n\in\naturalsPlus$ we have $n\mathrel{R} t(n)$
        by \cref{axiom_of_choice}.
    Therefore $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$
        by \cref{axiom_of_choice,funs_intro,sequence_in,function_apply_elim,subseteq,times_tuple_elim,fst_eq,snd_eq,function_sequence_coordinate_sequence}.
\end{proof}
Lemma 861
coordinate_sequence_is_projection_composition

Let $X_0 = \{(x,Y) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\}$.
Assume $s$ is a sequence in $\funs{X}{Y}$.
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Suppose $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$.
Then $t = \piIndex{X_0}{x}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s$.

LaTeX source
\begin{lemma}
\label{coordinate_sequence_is_projection_composition}
    Let $X_0 = \{(x,Y) \mid x\in X\}$.
    Assume $s$ is a sequence in $\funs{X}{Y}$.
    Suppose $x\in X$.
    Suppose $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$.
    Then $t = \piIndex{X_0}{x}\circ s$.
\end{lemma}
Proof

For all $x_1,y_1,y_2$ such that $(x_1,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $(x_1,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ we have $y_1 = y_2$.
We have $X_0$ is a function on $X$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
$\dom{X_0} = X$ by Definition 55.
Hence $X_0(x) = Y$ by Proposition 346.
$\funs{X}{Y}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\productFamily{X_0}$ by Axiom 4, Definition 1, Definition 12, Definition 167, Proposition 209, Proposition 346, Proposition 356, Proposition 358, Proposition 359, Proposition 361.
We have $s$ is a sequence in $\productFamily{X_0}$ by Definition 158, Proposition 360.
Hence $\piIndex{X_0}{x}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\naturalsPlus}{Y}$ by Definition 1, Definition 158, Lemma 191, Proposition 346, Proposition 359, Proposition 382.
Therefore $t = \piIndex{X_0}{x}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s$ by Definition 1, Definition 55, Definition 158, Definition 170, Definition 366, Lemma 191, Lemma 438, Proposition 257, Proposition 346, Proposition 348, Proposition 356, Proposition 361.

LaTeX source
\begin{proof}
    For all $x_1,y_1,y_2$ such that $(x_1,y_1)\in X_0$ and $(x_1,y_2)\in X_0$ we have $y_1 = y_2$.
    We have $X_0$ is a function on $X$
        by \cref{rightunique,relation,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
    $\dom{X_0} = X$ by \cref{funs}.
    Hence $X_0(x) = Y$ by \cref{function_apply_intro}.
    $\funs{X}{Y}\subseteq\productFamily{X_0}$
        by \cref{subseteq,funs_is_function,funs_elim,funs_type_apply,relation,ran_intro,unions_iff,funs_intro,function_apply_intro,indexed_product}.
    We have $s$ is a sequence in $\productFamily{X_0}$ by \cref{sequence_in,funs_weaken_codom}.
    Hence $\piIndex{X_0}{x}\circ s\in\funs{\naturalsPlus}{Y}$
        by \cref{projection_map_indexed_function,funs_elim,funs_circ,sequence_in,subseteq,function_apply_intro}.
    Therefore $t = \piIndex{X_0}{x}\circ s$
        by \cref{functions_eq_iff,function_sequence_coordinate_sequence,sequence_in,funs_type_apply,projection_map_indexed,function_apply_elim,circ_iff,function_apply_intro,projection_map_indexed_function,funs_is_function,subseteq,funs}.
\end{proof}
Theorem 124
pointwise_convergence_iff_coordinatewise

Assume $T$ is a topology on $Y$.
Assume $T_0$ is the topology of pointwise convergence on functions from $X$ to $Y$ with respect to $T$.
Assume $s$ is a sequence in $\funs{X}{Y}$.
Assume $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$.
Then $s$ converges to $f$ in $\funs{X}{Y}$ with respect to $T_0$ iff for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $t$ such that $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$ and $t$ converges to $\apply{f}{x}$ in $Y$ with respect to $T$.

LaTeX source
\begin{theorem}
\label{pointwise_convergence_iff_coordinatewise}
    Assume $T$ is a topology on $Y$.
    Assume $T_0$ is the topology of pointwise convergence on functions from $X$ to $Y$ with respect to $T$.
    Assume $s$ is a sequence in $\funs{X}{Y}$.
    Assume $f\in\funs{X}{Y}$.
    Then $s$ converges to $f$ in $\funs{X}{Y}$ with respect to $T_0$ iff
        for all $x\in X$ there exists $t$ such that
            $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$ and
            $t$ converges to $\apply{f}{x}$ in $Y$ with respect to $T$.
\end{theorem}
Proof

Let $X_0 = \{(x,Y) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\}$.
Let $T_1 = \{(x,T) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\}$.
For all $x,y_1,y_2$ such that $(x,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ and $(x,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} X_0$ we have $y_1 = y_2$.
Hence $X_0$ is a function on $X$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
Therefore $\dom{X_0} = X$ by Definition 55.
For all $x,U_1,U_2$ such that $(x,U_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ and $(x,U_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ we have $U_1 = U_2$.
We have $T_1$ is a function on $X$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
Hence $\dom{T_1} = X$ by Definition 55.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $X_0(x) = Y$ and $T_1(x) = T$ by Proposition 346.

Claim: $\productFamily{X_0}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\funs{X}{Y}$.
Claim: $\funs{X}{Y}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\productFamily{X_0}$.

Hence $\productFamily{X_0} = \funs{X}{Y}$ by Definition 1, Proposition 3.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X_0}$ we have $T_1(x)$ is a topology on $X_0(x)$ by Axiom 6, Proposition 346.
Let $T_2 = \productTopologyIndexed{T_1}{X_0}$.
Take $S$ such that $S$ is the pointwise subbasis on functions from $X$ to $Y$ with respect to $T$ and $T_0 = \subbasisTopology{S}{\funs{X}{Y}}$ by Definition 365.

Claim: For all $A$ if $A\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ then $A\class{latex-symbol-tip latex-symbol-id-in}{\in}\productSubbasis{T_1}{X_0}$.

Fix $A$.
Assume $A\class{latex-symbol-tip latex-symbol-id-in}{\in} S$.
Take $x,V$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $V\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ and $A$ is the point-open set at $x$ with value set $V$ from $X$ to $Y$ by Definition 364.
We have $A = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y} \mid \apply{g}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in} V\}$ by Definition 363.

Claim: $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \preimg{\piIndex{X_0}{x}}{V}$.
Claim: $\preimg{\piIndex{X_0}{x}}{V}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$.

Therefore $A = \preimg{\piIndex{X_0}{x}}{V}$ by Definition 1, Proposition 3.
We have $A\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\productFamily{X_0}}$ by Axiom 12, Lemma 191, Proposition 6, Proposition 249, Proposition 359.
Hence $A\class{latex-symbol-tip latex-symbol-id-in}{\in}\productSubbasisAt{T_1}{X_0}{x}$ by Definition 171, Proposition 346.
Therefore $A\class{latex-symbol-tip latex-symbol-id-in}{\in}\productSubbasis{T_1}{X_0}$ by Definition 172.

We have $S\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\productSubbasis{T_1}{X_0}$ by Definition 1.

Claim: For all $A$ if $A\class{latex-symbol-tip latex-symbol-id-in}{\in}\productSubbasis{T_1}{X_0}$ then $A\class{latex-symbol-tip latex-symbol-id-in}{\in} S$.

Fix $A$.
Assume $A\class{latex-symbol-tip latex-symbol-id-in}{\in}\productSubbasis{T_1}{X_0}$.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X_0}$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in}\productSubbasisAt{T_1}{X_0}{x}$ by Definition 172.
Take $V\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1(x)$ such that $A = \preimg{\piIndex{X_0}{x}}{V}$ by Definition 171.
Let $B = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y} \mid \apply{g}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in} V\}$.

Claim: $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B$.
Claim: $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$.

Hence $A\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Axiom 6, Definition 1, Lemma 859, Proposition 3, Proposition 346.

We have $\productSubbasis{T_1}{X_0}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} S$ by Definition 1.
Therefore $S = \productSubbasis{T_1}{X_0}$ by Definition 1, Proposition 3.
Hence $T_2 = \subbasisTopology{S}{\productFamily{X_0}}$ by Definition 173.
Thus $T_2 = T_0$ by Definition 126.

Claim: If $s$ converges to $f$ in $\funs{X}{Y}$ with respect to $T_0$ then for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $t$ such that $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$ and $t$ converges to $\apply{f}{x}$ in $Y$ with respect to $T$.

Assume $s$ converges to $f$ in $\funs{X}{Y}$ with respect to $T_0$.
Hence $s$ converges to $f$ in $\productFamily{X_0}$ with respect to $T_2$ by Definition 159.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X_0}$ we have $\piIndex{X_0}{x}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s$ converges to $\apply{f}{x}$ in $\apply{X_0}{x}$ with respect to $\apply{T_1}{x}$ by Definition 1, Lemma 666.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $t$ such that $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$ and $t$ converges to $\apply{f}{x}$ in $Y$ with respect to $T$ by Definition 1, Lemma 860, Lemma 861, Proposition 346.

Claim: If for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $t$ such that $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$ and $t$ converges to $\apply{f}{x}$ in $Y$ with respect to $T$ then $s$ converges to $f$ in $\funs{X}{Y}$ with respect to $T_0$.

Assume for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $t$ such that $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$ and $t$ converges to $\apply{f}{x}$ in $Y$ with respect to $T$.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{X_0}$ we have $\piIndex{X_0}{x}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} s$ converges to $\apply{f}{x}$ in $\apply{X_0}{x}$ with respect to $\apply{T_1}{x}$ by Definition 159, Lemma 860, Lemma 861, Proposition 346.
Hence $s$ converges to $f$ in $\productFamily{X_0}$ with respect to $T_2$ by Definition 1, Lemma 666.
Therefore $s$ converges to $f$ in $\funs{X}{Y}$ with respect to $T_0$ by Definition 159.

Therefore $s$ converges to $f$ in $\funs{X}{Y}$ with respect to $T_0$ iff for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $t$ such that $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$ and $t$ converges to $\apply{f}{x}$ in $Y$ with respect to $T$.

LaTeX source
\begin{proof}
    Let $X_0 = \{(x,Y) \mid x\in X\}$.
    Let $T_1 = \{(x,T) \mid x\in X\}$.
    For all $x,y_1,y_2$ such that $(x,y_1)\in X_0$ and $(x,y_2)\in X_0$ we have $y_1 = y_2$.
    Hence $X_0$ is a function on $X$
        by \cref{rightunique,relation,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
    Therefore $\dom{X_0} = X$ by \cref{funs}.
    For all $x,U_1,U_2$ such that $(x,U_1)\in T_1$ and $(x,U_2)\in T_1$ we have $U_1 = U_2$.
    We have $T_1$ is a function on $X$
        by \cref{rightunique,relation,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
    Hence $\dom{T_1} = X$ by \cref{funs}.
    For all $x\in X$ we have $X_0(x) = Y$ and $T_1(x) = T$ by \cref{function_apply_intro}.
    Show that $\productFamily{X_0}\subseteq\funs{X}{Y}$.
    \begin{subproof}
        Follows by \cref{subseteq,indexed_product,funs_is_function,funs_elim,function_apply_intro,funs_intro}.
    \end{subproof}
    Show that $\funs{X}{Y}\subseteq\productFamily{X_0}$.
    \begin{subproof}
        Follows by \cref{subseteq,funs_is_function,funs_elim,funs_type_apply,relation,ran_intro,unions_iff,funs_intro,function_apply_intro,indexed_product}.
    \end{subproof}
    Hence $\productFamily{X_0} = \funs{X}{Y}$ by \cref{subseteq,subseteq_antisymmetric}.
    For all $x\in\dom{X_0}$ we have $T_1(x)$ is a topology on $X_0(x)$
        by \cref{function_apply_intro,pair_eq_iff}.
    Let $T_2 = \productTopologyIndexed{T_1}{X_0}$.
    Take $S$ such that
        $S$ is the pointwise subbasis on functions from $X$ to $Y$ with respect to $T$ and
        $T_0 = \subbasisTopology{S}{\funs{X}{Y}}$ by \cref{pointwise_convergence_topology}.
    Show that for all $A$ if $A\in S$ then $A\in\productSubbasis{T_1}{X_0}$.
    \begin{subproof}
        Fix $A$.
        Assume $A\in S$.
        Take $x,V$ such that
            $x\in X$ and
            $V\in T$ and
            $A$ is the point-open set at $x$ with value set $V$ from $X$ to $Y$
            by \cref{pointwise_function_space_subbasis}.
        We have $A = \{g\in\funs{X}{Y} \mid \apply{g}{x}\in V\}$ by \cref{point_open_set}.
        Show that $A\subseteq \preimg{\piIndex{X_0}{x}}{V}$.
        \begin{subproof}
            Follows by \cref{subseteq,inters_iff_forall,projection_map_indexed,function_apply_elim,preimg_iff}.
        \end{subproof}
        Show that $\preimg{\piIndex{X_0}{x}}{V}\subseteq A$.
        \begin{subproof}
            Follows by \cref{subseteq,preimg_iff,projection_map_indexed,pair_eq_iff,inters_iff_forall}.
        \end{subproof}
        Therefore $A = \preimg{\piIndex{X_0}{x}}{V}$ by \cref{subseteq,subseteq_antisymmetric}.
        We have $A\in\pow{\productFamily{X_0}}$
            by \cref{projection_map_indexed_function,funs_elim,preimg_subseteq_dom,subseteq_transitive,pow_iff}.
        Hence $A\in\productSubbasisAt{T_1}{X_0}{x}$ by \cref{product_subbasis_indexed,function_apply_intro}.
        Therefore $A\in\productSubbasis{T_1}{X_0}$ by \cref{product_subbasis_union_indexed}.
    \end{subproof}
    We have $S\subseteq\productSubbasis{T_1}{X_0}$ by \cref{subseteq}.
    Show that for all $A$ if $A\in\productSubbasis{T_1}{X_0}$ then $A\in S$.
    \begin{subproof}
        Fix $A$.
        Assume $A\in\productSubbasis{T_1}{X_0}$.
        Take $x\in\dom{X_0}$ such that $A\in\productSubbasisAt{T_1}{X_0}{x}$ by \cref{product_subbasis_union_indexed}.
        Take $V\in T_1(x)$ such that $A = \preimg{\piIndex{X_0}{x}}{V}$ by \cref{product_subbasis_indexed}.
        Let $B = \{g\in\funs{X}{Y} \mid \apply{g}{x}\in V\}$.
        Show that $A\subseteq B$.
        \begin{subproof}
            Follows by \cref{subseteq,pair_eq_iff,preimg_iff,projection_map_indexed,inters_iff_forall}.
        \end{subproof}
        Show that $B\subseteq A$.
        \begin{subproof}
            Follows by \cref{subseteq,inters_iff_forall,projection_map_indexed,function_apply_elim,preimg_iff,pair_eq_iff}.
        \end{subproof}
        Hence $A\in S$ by \cref{subseteq,subseteq_antisymmetric,pointwise_subbasis_contains_point_open_set,function_apply_intro,pair_eq_iff}.
    \end{subproof}
    We have $\productSubbasis{T_1}{X_0}\subseteq S$ by \cref{subseteq}.
    Therefore $S = \productSubbasis{T_1}{X_0}$ by \cref{subseteq,subseteq_antisymmetric}.
    Hence $T_2 = \subbasisTopology{S}{\productFamily{X_0}}$ by \cref{product_topology_indexed}.
    Thus $T_2 = T_0$ by \cref{topology_generated_by_subbasis}.
    Show that if $s$ converges to $f$ in $\funs{X}{Y}$ with respect to $T_0$ then
        for all $x\in X$ there exists $t$ such that
            $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$ and
            $t$ converges to $\apply{f}{x}$ in $Y$ with respect to $T$.
    \begin{subproof}
        Assume $s$ converges to $f$ in $\funs{X}{Y}$ with respect to $T_0$.
        Hence $s$ converges to $f$ in $\productFamily{X_0}$ with respect to $T_2$ by \cref{converges_to}.
        For all $x\in\dom{X_0}$ we have
            $\piIndex{X_0}{x}\circ s$ converges to $\apply{f}{x}$ in $\apply{X_0}{x}$ with respect to $\apply{T_1}{x}$
            by \cref{product_sequence_converges_iff_coordinatewise,subseteq}.
        For all $x\in X$ there exists $t$ such that
            $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$ and
            $t$ converges to $\apply{f}{x}$ in $Y$ with respect to $T$
            by \cref{coordinate_sequence_exists,coordinate_sequence_is_projection_composition,subseteq,function_apply_intro}.
    \end{subproof}
    Show that if for all $x\in X$ there exists $t$ such that
        $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$ and
        $t$ converges to $\apply{f}{x}$ in $Y$ with respect to $T$
    then $s$ converges to $f$ in $\funs{X}{Y}$ with respect to $T_0$.
    \begin{subproof}
        Assume for all $x\in X$ there exists $t$ such that
            $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$ and
            $t$ converges to $\apply{f}{x}$ in $Y$ with respect to $T$.
        For all $x\in\dom{X_0}$ we have
            $\piIndex{X_0}{x}\circ s$ converges to $\apply{f}{x}$ in $\apply{X_0}{x}$ with respect to $\apply{T_1}{x}$
            by \cref{coordinate_sequence_exists,coordinate_sequence_is_projection_composition,converges_to,function_apply_intro}.
        Hence $s$ converges to $f$ in $\productFamily{X_0}$ with respect to $T_2$
            by \cref{product_sequence_converges_iff_coordinatewise,subseteq}.
        Therefore $s$ converges to $f$ in $\funs{X}{Y}$ with respect to $T_0$ by \cref{converges_to}.
    \end{subproof}
    Therefore $s$ converges to $f$ in $\funs{X}{Y}$ with respect to $T_0$ iff
        for all $x\in X$ there exists $t$ such that
            $t$ is the coordinate sequence of $s$ at $x$ from $X$ to $Y$ and
            $t$ converges to $\apply{f}{x}$ in $Y$ with respect to $T$.
\end{proof}
Definition 367
compact_convergence_ball

$A$ is the compact-convergence ball about $f$ over $C$ with radius $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ 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-in}{\in}\funs{X}{Y}$ and $C$ is a compact subspace of $X$ with respect to $T$ and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ and there exists $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $C$ to $Y$ with respect to $d$ and $A = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y} \mid \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{f}{C},\restrl{g}{C})) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\}$.

LaTeX source
\begin{definition}
\label{compact_convergence_ball}
    $A$ is the compact-convergence ball about $f$ over $C$ with radius $\epsilon$
        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\in\funs{X}{Y}$ and
        $C$ is a compact subspace of $X$ with respect to $T$ and
        $\epsilon\in\reals$ and
        $0 < \epsilon$ and
        there exists $\rho$ such that
            $\rho$ is the uniform metric on functions from $C$ to $Y$ with respect to $d$ and
            $A = \{g\in\funs{X}{Y} \mid \rho((\restrl{f}{C},\restrl{g}{C})) < \epsilon\}$.
\end{definition}
Definition 368
compact_convergence_function_space_basis

$B$ is the compact-convergence basis on functions 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 $B = \{A\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\funs{X}{Y}} \mid \text{there exist $f, C, \epsilon$ such that $A$ is the compact-convergence ball about $f$ over $C$ with radius $\epsilon$ from $X$ to $Y$ with respect to $T$ and $d$}\}$.

LaTeX source
\begin{definition}
\label{compact_convergence_function_space_basis}
    $B$ is the compact-convergence basis on functions 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
        $B = \{A\in\pow{\funs{X}{Y}} \mid \text{there exist $f, C, \epsilon$ such that
            $A$ is the compact-convergence ball about $f$ over $C$ with radius $\epsilon$
                from $X$ to $Y$ with respect to $T$ and $d$}\}$.
\end{definition}
Definition 369
compact_convergence_topology

$T_0$ is the topology of compact convergence on functions 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 $T_0$ is a topology on $\funs{X}{Y}$ and there exists $B$ such that $B$ is the compact-convergence basis on functions from $X$ to $Y$ with respect to $T$ and $d$ and $T_0 = \basisTopology{B}{\funs{X}{Y}}$.

LaTeX source
\begin{definition}
\label{compact_convergence_topology}
    $T_0$ is the topology of compact convergence on functions 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
        $T_0$ is a topology on $\funs{X}{Y}$ and
        there exists $B$ such that
            $B$ is the compact-convergence basis on functions from $X$ to $Y$ with respect to $T$ and $d$ and
            $T_0 = \basisTopology{B}{\funs{X}{Y}}$.
\end{definition}
Definition 370
restriction_sequence_on_subset

$t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$ iff $s$ is a sequence in $\funs{X}{Y}$ and $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ and $t$ is a sequence in $\funs{C}{Y}$ and for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $t(n) = \restrl{s(n)}{C}$.

LaTeX source
\begin{definition}
\label{restriction_sequence_on_subset}
    $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$ iff
        $s$ is a sequence in $\funs{X}{Y}$ and
        $C\subseteq X$ and
        $t$ is a sequence in $\funs{C}{Y}$ and
        for all $n\in\naturalsPlus$ we have $t(n) = \restrl{s(n)}{C}$.
\end{definition}
Lemma 862
restrl_typed_function

Assume $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$.
Assume $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Then $\restrl{f}{C}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C}{Y}$.

LaTeX source
\begin{lemma}
\label{restrl_typed_function}
    Assume $f\in\funs{X}{Y}$.
    Assume $C\subseteq X$.
    Then $\restrl{f}{C}\in\funs{C}{Y}$.
\end{lemma}
Proof

We have $f$ is a function and $\dom{f} = X$ by Proposition 359.
Hence $\restrl{f}{C}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C}{Y}$ by Definition 1, Proposition 3, Proposition 264, Proposition 265, Proposition 269, Proposition 358, Proposition 359, Proposition 383, Proposition 384.

LaTeX source
\begin{proof}
    We have $f$ is a function and $\dom{f} = X$ by \cref{funs_elim}.
    Hence $\restrl{f}{C}\in\funs{C}{Y}$
        by \cref{restrl_of_function_is_function,subseteq,elem_dom_and_restr_implies_elem_of_restr,restrl_dom,subseteq_antisymmetric,elem_dom_of_restrl_implies_elem_dom_and_restr,funs_elim,restrl_of_function_apply,funs_intro}.
\end{proof}
Lemma 863
restriction_sequence_exists

Assume $s$ is a sequence in $\funs{X}{Y}$.
Assume $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Then there exists $t$ such that $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$.

LaTeX source
\begin{lemma}
\label{restriction_sequence_exists}
    Assume $s$ is a sequence in $\funs{X}{Y}$.
    Assume $C\subseteq X$.
    Then there exists $t$ such that $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$.
\end{lemma}
Proof

Let $t = \{(n,\restrl{s(n)}{C}) \mid n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus\}$.
We have $t$ is a relation by Definition 12.
For all $n,u,v$ such that $(n,u)\class{latex-symbol-tip latex-symbol-id-in}{\in} t$ and $(n,v)\class{latex-symbol-tip latex-symbol-id-in}{\in} t$ we have $u = v$ by Axiom 6.
Therefore $t$ is a function by Definition 51.
Therefore $\dom{t} = \naturalsPlus$ by Axiom 6, Definition 1, Definition 12, Proposition 3, Proposition 199, Proposition 200.
For all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{t}$ we have $t(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C}{Y}$ by Axiom 6, Definition 158, Lemma 862, Proposition 348, Proposition 361.
Hence $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$ by Axiom 6, Definition 158, Definition 370, Proposition 348, Proposition 358.

LaTeX source
\begin{proof}
    Let $t = \{(n,\restrl{s(n)}{C}) \mid n\in\naturalsPlus\}$.
    We have $t$ is a relation by \cref{relation}.
    For all $n,u,v$ such that $(n,u)\in t$ and $(n,v)\in t$ we have $u = v$ by \cref{pair_eq_iff}.
    Therefore $t$ is a function by \cref{rightunique}.
    Therefore $\dom{t} = \naturalsPlus$
        by \cref{dom_iff,pair_eq_iff,relation,dom_intro,subseteq,subseteq_antisymmetric}.
    For all $n$ such that $n\in\dom{t}$ we have $t(n)\in\funs{C}{Y}$
        by \cref{function_apply_elim,pair_eq_iff,sequence_in,funs_type_apply,restrl_typed_function}.
    Hence $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$
        by \cref{funs_intro,sequence_in,function_apply_elim,pair_eq_iff,restriction_sequence_on_subset}.
\end{proof}
Lemma 864
compact_convergence_ball_refinement

Assume $A$ is the compact-convergence ball about $f$ over $C$ with radius $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ from $X$ to $Y$ with respect to $T$ and $d$.
Assume $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Then there exist $D,\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ such that $\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 $D$ is the compact-convergence ball about $h$ over $C$ with radius $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ from $X$ to $Y$ with respect to $T$ and $d$ and $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$.

LaTeX source
\begin{lemma}
\label{compact_convergence_ball_refinement}
    Assume $A$ is the compact-convergence ball about $f$ over $C$ with radius $\epsilon$
        from $X$ to $Y$ with respect to $T$ and $d$.
    Assume $h\in A$.
    Then there exist $D,\delta$ such that
        $\delta\in\reals$ and
        $0 < \delta$ and
        $D$ is the compact-convergence ball about $h$ over $C$ with radius $\delta$
            from $X$ to $Y$ with respect to $T$ and $d$ and
        $D\subseteq A$.
\end{lemma}
Proof

Let $F = \funs{X}{Y}$.
Take $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $C$ to $Y$ with respect to $d$ and $A = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{f}{C},\restrl{g}{C})) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\}$ by Definition 367.
Let $F_C = \funs{C}{Y}$.
$f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Definition 367.
$C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 263, Definition 367.
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $F_C$ by Definition 344.
Let $U = \metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F_C}{\restrl{f}{C}}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
$U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} F_C$ by Definition 1, Definition 180.
$\restrl{f}{C}\class{latex-symbol-tip latex-symbol-id-in}{\in} F_C$ by Lemma 862.
$\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F_C}$ is a topology on $F_C$ by Definition 115, Definition 182, Lemma 76, Lemma 194.
We have $U\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBasis{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F_C}$ by Definition 181, Definition 367, Proposition 155.
Therefore $U$ is open in $F_C$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F_C}$ by Definition 103, Definition 182, Lemma 77, Lemma 194.
We have $\restrl{h}{C}\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 180, Definition 263, Definition 367, Lemma 862, Proposition 30.
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}}{F_C}{\restrl{h}{C}}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Lemma 195.
Let $D = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{h}{C},\restrl{g}{C})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\}$.
We have $D$ is the compact-convergence ball about $h$ over $C$ with radius $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ from $X$ to $Y$ with respect to $T$ and $d$ by Definition 367.
Therefore $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Definition 1, Definition 180, Lemma 862, Proposition 30.
Follows by definition.

LaTeX source
\begin{proof}
    Let $F = \funs{X}{Y}$.
    Take $\rho$ such that
        $\rho$ is the uniform metric on functions from $C$ to $Y$ with respect to $d$ and
        $A = \{g\in F \mid \rho((\restrl{f}{C},\restrl{g}{C})) < \epsilon\}$
        by \cref{compact_convergence_ball}.
    Let $F_C = \funs{C}{Y}$.
    $f\in F$ by \cref{compact_convergence_ball}.
    $C\subseteq X$ by \cref{compact_convergence_ball,compact_subspace}.
    $\rho$ is a metric on $F_C$ by \cref{uniform_metric_on_function_space}.
    Let $U = \metricBall{\rho}{F_C}{\restrl{f}{C}}{\epsilon}$.
    $U\subseteq F_C$ by \cref{metric_ball,subseteq}.
    $\restrl{f}{C}\in F_C$ by \cref{restrl_typed_function}.
    $\metricTopology{\rho}{F_C}$ is a topology on $F_C$
        by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology,basis_for_topology}.
    We have $U\in\metricBasis{\rho}{F_C}$ by \cref{compact_convergence_ball,metric_basis,powerset_intro}.
    Therefore $U$ is open in $F_C$ with respect to $\metricTopology{\rho}{F_C}$
        by \cref{metric_basis_is_basis,basis_elem_open_in_generated,metric_topology,open_in}.
    We have $\restrl{h}{C}\in U$
        by \cref{inters_iff_forall,compact_convergence_ball,compact_subspace,restrl_typed_function,metric_ball}.
    Take $\delta\in\reals$ such that $0 < \delta$ and
        $\metricBall{\rho}{F_C}{\restrl{h}{C}}{\delta} \subseteq U$
        by \cref{metric_open_iff}.
    Let $D = \{g\in F \mid \rho((\restrl{h}{C},\restrl{g}{C})) < \delta\}$.
    We have $D$ is the compact-convergence ball about $h$ over $C$ with radius $\delta$
        from $X$ to $Y$ with respect to $T$ and $d$ by \cref{compact_convergence_ball}.
    Therefore $D\subseteq A$ by \cref{inters_iff_forall,restrl_typed_function,metric_ball,subseteq}.
    Follows by definition.
\end{proof}
Lemma 865
compact_convergence_ball_center

Assume $A$ is the compact-convergence ball about $f$ over $C$ with radius $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ from $X$ to $Y$ with respect to $T$ and $d$.
Then $f\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.

LaTeX source
\begin{lemma}
\label{compact_convergence_ball_center}
    Assume $A$ is the compact-convergence ball about $f$ over $C$ with radius $\epsilon$
        from $X$ to $Y$ with respect to $T$ and $d$.
    Then $f\in A$.
\end{lemma}
Proof

Let $F = \funs{X}{Y}$.
Let $F_C = \funs{C}{Y}$.
Take $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $C$ to $Y$ with respect to $d$ and $A = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{f}{C},\restrl{g}{C})) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\}$ by Definition 367.
We have $\restrl{f}{C}\class{latex-symbol-tip latex-symbol-id-in}{\in} F_C$ by Definition 263, Definition 367, Lemma 862.
Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{f}{C},\restrl{f}{C})) = 0$ by Definition 176, Definition 179, Definition 344, Proposition 115.
Thus $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{f}{C},\restrl{f}{C})) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 367, Lemma 82.
Therefore $f\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 367, Proposition 30.

LaTeX source
\begin{proof}
    Let $F = \funs{X}{Y}$.
    Let $F_C = \funs{C}{Y}$.
    Take $\rho$ such that
        $\rho$ is the uniform metric on functions from $C$ to $Y$ with respect to $d$ and
        $A = \{g\in F \mid \rho((\restrl{f}{C},\restrl{g}{C})) < \epsilon\}$
        by \cref{compact_convergence_ball}.
    We have $\restrl{f}{C}\in F_C$ by \cref{compact_convergence_ball,compact_subspace,restrl_typed_function}.
    Therefore $\rho((\restrl{f}{C},\restrl{f}{C})) = 0$
        by \cref{uniform_metric_on_function_space,metric_on,metric_zero_characterization,times_tuple_intro}.
    Thus $\rho((\restrl{f}{C},\restrl{f}{C})) < \epsilon$
        by \cref{compact_convergence_ball,real_lt_subst_left}.
    Therefore $f\in A$ by \cref{compact_convergence_ball,inters_iff_forall}.
\end{proof}
Lemma 866
compact_convergence_ball_open

Assume $A$ is the compact-convergence ball about $f$ over $C$ with radius $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ from $X$ to $Y$ with respect to $T$ and $d$.
Assume $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
Then $A$ is open in $\funs{X}{Y}$ with respect to $T_0$.

LaTeX source
\begin{lemma}
\label{compact_convergence_ball_open}
    Assume $A$ is the compact-convergence ball about $f$ over $C$ with radius $\epsilon$
        from $X$ to $Y$ with respect to $T$ and $d$.
    Assume $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
    Then $A$ is open in $\funs{X}{Y}$ with respect to $T_0$.
\end{lemma}
Proof

Let $F = \funs{X}{Y}$.
Take $B$ such that $B$ is the compact-convergence basis on functions from $X$ to $Y$ with respect to $T$ and $d$ and $T_0 = \basisTopology{B}{F}$ by Definition 369.
For all $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ there exists $D\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $h\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ and $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Definition 1, Definition 367, Definition 368, Lemma 864, Lemma 865, Proposition 155.
Therefore $A$ is open in $F$ with respect to $T_0$ by Definition 1, Definition 103, Definition 114, Definition 115, Definition 367, Definition 369, Lemma 76, Proposition 155.

LaTeX source
\begin{proof}
    Let $F = \funs{X}{Y}$.
    Take $B$ such that
        $B$ is the compact-convergence basis on functions from $X$ to $Y$ with respect to $T$ and $d$ and
        $T_0 = \basisTopology{B}{F}$ by \cref{compact_convergence_topology}.
    For all $h\in A$ there exists $D\in B$ such that $h\in D$ and $D\subseteq A$
        by \cref{compact_convergence_ball_refinement,compact_convergence_ball,subseteq,compact_convergence_function_space_basis,powerset_intro,compact_convergence_ball_center}.
    Therefore $A$ is open in $F$ with respect to $T_0$
        by \cref{compact_convergence_ball,subseteq,powerset_intro,topology_generated_by_basis,compact_convergence_topology,basis_topology_is_topology,basis_for_topology,open_in}.
\end{proof}
Lemma 867
positive_real_has_smaller_positive_below_one

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}$ such that $\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} < 1$ and $\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_has_smaller_positive_below_one}
    Suppose $\epsilon\in\reals$.
    Suppose $0 < \epsilon$.
    Then there exists $\delta$ such that
        $\delta\in\reals$ and
        $0 < \delta$ and
        $\delta < 1$ and
        $\delta < \epsilon$.
\end{lemma}
Proof
Case. $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} < 1$.

Let $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} / (1 + 1)$.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 41, Axiom 42, Definition 1, Lemma 275, Proposition 462.
Hence $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 17, Axiom 37, Lemma 82, Lemma 83.
Therefore $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < 1$ by Axiom 36, Axiom 41, Axiom 42, Definition 1.
Follows by definition.

Case. it is wrong that $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} < 1$.

Let $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = 1 / (1 + 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 $\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} = 1$ by Lemma 275.
Therefore $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < 1$ by Axiom 17, Axiom 37, Lemma 82, Lemma 83.
$1 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ or $1 = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 34.
Hence $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 36, Lemma 83.
Follows by definition.

LaTeX source
\begin{byCase}
    \caseOf{$\epsilon < 1$.}
        Let $\delta = \epsilon / (1 + 1)$.
        $\delta\in\reals$ and $0 < \delta$ and $\delta + \delta = \epsilon$
            by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_zero_lt_one,real_half_of_positive}.
        Hence $\delta < \epsilon$ by \cref{real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right}.
        Therefore $\delta < 1$ by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_lt_trans}.
        Follows by definition.
    \caseOf{it is wrong that $\epsilon < 1$.}
        Let $\delta = 1 / (1 + 1)$.
        $1\in\reals$ and $0 < 1$ by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_zero_lt_one}.
        Hence $\delta\in\reals$ and $0 < \delta$ and $\delta + \delta = 1$ by \cref{real_half_of_positive}.
        Therefore $\delta < 1$ by \cref{real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right}.
        $1 < \epsilon$ or $1 = \epsilon$ by \cref{real_lt_trichotomy}.
        Hence $\delta < \epsilon$ by \cref{real_lt_trans,real_lt_subst_right}.
        Follows by definition.
    
\end{byCase}
LaTeX source
\begin{proof}
    \begin{byCase}
    \caseOf{$\epsilon < 1$.}
        Let $\delta = \epsilon / (1 + 1)$.
        $\delta\in\reals$ and $0 < \delta$ and $\delta + \delta = \epsilon$
            by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_zero_lt_one,real_half_of_positive}.
        Hence $\delta < \epsilon$ by \cref{real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right}.
        Therefore $\delta < 1$ by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_lt_trans}.
        Follows by definition.
    \caseOf{it is wrong that $\epsilon < 1$.}
        Let $\delta = 1 / (1 + 1)$.
        $1\in\reals$ and $0 < 1$ by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_zero_lt_one}.
        Hence $\delta\in\reals$ and $0 < \delta$ and $\delta + \delta = 1$ by \cref{real_half_of_positive}.
        Therefore $\delta < 1$ by \cref{real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right}.
        $1 < \epsilon$ or $1 = \epsilon$ by \cref{real_lt_trichotomy}.
        Hence $\delta < \epsilon$ by \cref{real_lt_trans,real_lt_subst_right}.
        Follows by definition.
    \end{byCase}
\end{proof}
Lemma 868
equal_set_supremum_has_witness

Assume $A = B$.
Assume $r$ is a supremum of $A$.
Then there exists $C$ such that $C = B$ and $r$ is a supremum of $C$.

LaTeX source
\begin{lemma}
\label{equal_set_supremum_has_witness}
    Assume $A = B$.
    Assume $r$ is a supremum of $A$.
    Then there exists $C$ such that
        $C = B$ and
        $r$ is a supremum of $C$.
\end{lemma}
Proof

There exists $C$ such that $C = B$ and $r$ is a supremum of $C$ by Axiom 6.

LaTeX source
\begin{proof}
    There exists $C$ such that $C = B$ and $r$ is a supremum of $C$ by \cref{pair_eq_iff}.
\end{proof}
Lemma 869
uniform_metric_on_function_space_exists_inhabited

Assume $X$ is inhabited.
Assume $d$ is a metric on $Y$.
Then there exists $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.

LaTeX source
\begin{lemma}
\label{uniform_metric_on_function_space_exists_inhabited}
    Assume $X$ is inhabited.
    Assume $d$ is a metric on $Y$.
    Then there exists $\rho$ such that
        $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
\end{lemma}
Proof

Let $F = \funs{X}{Y}$.
Let $e = \boundedMetric{d}$.
$e$ is a metric on $Y$ by Theorem 21.
Take $x_0$ such that $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in}(F\class{latex-symbol-tip latex-symbol-id-times}{\times} F)\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals \mid \text{there exists $A$ such that $A$ is the distance set of $\fst{\fst{w}}$ and $\snd{\fst{w}}$ on $X$ with respect to $e$ and $\snd{w}$ is a supremum of $A$}\}$.
$R$ is a relation by Definition 1, Definition 12, Proposition 121.

Claim: For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} F\class{latex-symbol-tip latex-symbol-id-times}{\times} F$ there exists $r$ such that $p\mathrel{R} r$.

Fix $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} F\class{latex-symbol-tip latex-symbol-id-times}{\times} F$.
Take $f, g$ such that $p = (f,g)$ and $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Definition 7.
Let $A = \{\apply{e}{(f(x),g(x))} \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\}$.
$A$ is the distance set of $f$ and $g$ on $X$ with respect to $e$ by Definition 347.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Axiom 6, Definition 1, Definition 179, Definition 347, Proposition 115, Proposition 361.
We have $A\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Definition 347, Lemma 323, Proposition 10, Proposition 115, Proposition 361.
For all $r$ if $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ then $r \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ by Axiom 6, Definition 179, Definition 347, Lemma 201, Proposition 115, Proposition 361.
We have $1$ is an upper bound of $A$ by Axiom 41, Axiom 42, Definition 1, Definition 66.
Hence $A$ is bounded above by Definition 67.
Take $r$ such that $r$ is a supremum of $A$ by Axiom 40.
$r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 66, Definition 71.
There exists $s$ such that $p\mathrel{R} s$ by Axiom 10, Axiom 11, Definition 12, Proposition 115.

Take $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a function on $F\class{latex-symbol-tip latex-symbol-id-times}{\times} F$ and for all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} F\class{latex-symbol-tip latex-symbol-id-times}{\times} F$ we have $p\mathrel{R}\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p)$ by Axiom 54.
For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} F\class{latex-symbol-tip latex-symbol-id-times}{\times} F$ we have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 54, Definition 1, Definition 12, Proposition 114.
We have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a function to $\reals$ by Axiom 54.
$\dom{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}} = F\class{latex-symbol-tip latex-symbol-id-times}{\times} F$ by Axiom 54.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{F\class{latex-symbol-tip latex-symbol-id-times}{\times} F}{\reals}$ by Proposition 358.
For all $f,g$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} 0$ by Axiom 10, Axiom 11, Axiom 17, Axiom 54, Definition 12, Definition 66, Definition 71, Definition 175, Definition 179, Definition 347, Lemma 23, Proposition 115, Proposition 361.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is nonnegative on $F$ by Definition 175.

Claim: For all $f,g$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) = 0$ iff $f = g$.

Fix $f$.
Fix $g$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $g\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}$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ by Definition 1.
$f$ is a function and $\dom{f} = X$ and $g$ is a function and $\dom{g} = X$ by Proposition 356, Proposition 359.

Claim: If $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) = 0$ then $f = g$.

Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) = 0$.
Let $p = (f,g)$.
We have $(p,\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p))\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Axiom 54, Definition 12, Proposition 115.
Take $A$ such that $A$ is the distance set of $\fst{p}$ and $\snd{p}$ on $X$ with respect to $e$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p)$ is a supremum of $A$ by Axiom 10, Axiom 11, Definition 12.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $f(x) = g(x)$ by Axiom 10, Axiom 11, Axiom 17, Definition 66, Definition 71, Definition 175, Definition 176, Definition 179, Definition 347, Lemma 25, Proposition 115, Proposition 361.
Therefore $f = g$ by Axiom 6, Lemma 438.

Claim: If $f = g$ then $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) = 0$.

Assume $f = g$.
Let $p = (f,g)$.
We have $(p,\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p))\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Axiom 54, Definition 12, Proposition 115.
Take $A$ such that $A$ is the distance set of $\fst{p}$ and $\snd{p}$ on $X$ with respect to $e$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p)$ is a supremum of $A$ by Axiom 10, Axiom 11, Definition 12.
We have $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Axiom 6, Axiom 10, Axiom 11, Definition 1, Definition 179, Definition 347, Proposition 115, Proposition 361.
For all $r$ if $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ then $r = 0$ by Axiom 6, Axiom 10, Axiom 11, Definition 1, Definition 176, Definition 179, Definition 347, Proposition 115, Proposition 361.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17.
We have $0$ is an upper bound of $A$ by Definition 1, Definition 66.
We have $e((f(x_0),g(x_0))) = 0$ by Axiom 6, Definition 1, Definition 176, Definition 179, Proposition 115, Proposition 361.
Therefore $0\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 6, Axiom 10, Axiom 11, Definition 1, Definition 347.
We have $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p)$ by Definition 66, Definition 71, Definition 204.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 0$ by Definition 66, Definition 71.
We have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 66, Definition 71.
Thus $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p) = 0$ by Axiom 17, Lemma 25.

Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is zero-characterized on $F$ by Definition 176.

Claim: For all $f,g$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) = \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,f))$.

Fix $f$.
Fix $g$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $g\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}$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ by Definition 1.
Let $p = (f,g)$.
Let $q = (g,f)$.
We have $(p,\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p))\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ and $(q,\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(q))\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Axiom 54, Definition 12, Proposition 115.
Take $A$ such that $A$ is the distance set of $\fst{p}$ and $\snd{p}$ on $X$ with respect to $e$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p)$ is a supremum of $A$ by Axiom 10, Axiom 11, Definition 12.
Take $C$ such that $C$ is the distance set of $\fst{q}$ and $\snd{q}$ on $X$ with respect to $e$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(q)$ is a supremum of $C$ by Axiom 10, Axiom 11, Definition 12.
$\fst{p} = f$ and $\snd{p} = g$ and $\fst{q} = g$ and $\snd{q} = f$ by Axiom 10, Axiom 11.

Claim: For all $r$ if $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ then $r\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.

We have $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Definition 1.

Claim: For all $r$ if $r\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ then $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.

Fix $r$.
Assume $r\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $e((g(x),f(x))) = r$ by Definition 347.
We have $g(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $f(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Proposition 361.
Hence $(g(x),f(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $(f(x),g(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Proposition 115.
Therefore $e((f(x),g(x))) = r$ by Axiom 6, Axiom 17, Definition 177, Definition 179, Lemma 82, Lemma 83.
Hence $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 347.

Thus $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Definition 1.
Therefore $A = C$ by Proposition 3.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) = \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,f))$ by Proposition 467.

Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is symmetric on $F$ by Definition 177.

Claim: For all $f,g,h$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,h))$.

Fix $f$.
Fix $g$.
Fix $h$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
Let $p = (f,h)$.
Let $q = (f,g)$.
Let $s = (g,h)$.
We have $(p,\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p))\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ and $(q,\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(q))\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ and $(s,\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(s))\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Axiom 54, Definition 12, Proposition 115.
Take $A$ such that $A$ is the distance set of $\fst{p}$ and $\snd{p}$ on $X$ with respect to $e$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p)$ is a supremum of $A$ by Axiom 10, Axiom 11, Definition 12.
Take $C$ such that $C$ is the distance set of $\fst{q}$ and $\snd{q}$ on $X$ with respect to $e$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(q)$ is a supremum of $C$ by Axiom 10, Axiom 11, Definition 12.
Take $D$ such that $D$ is the distance set of $\fst{s}$ and $\snd{s}$ on $X$ with respect to $e$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(s)$ is a supremum of $D$ by Axiom 10, Axiom 11, Definition 12.
Hence $\fst{p} = f$ and $\snd{p} = h$ and $\fst{q} = f$ and $\snd{q} = g$ and $\fst{s} = g$ and $\snd{s} = h$ by Axiom 10, Axiom 11.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Axiom 6, Definition 1, Definition 179, Definition 347, Proposition 115, Proposition 361.
$(f,g)\class{latex-symbol-tip latex-symbol-id-in}{\in} F\class{latex-symbol-tip latex-symbol-id-times}{\times} F$ and $(g,h)\class{latex-symbol-tip latex-symbol-id-in}{\in} F\class{latex-symbol-tip latex-symbol-id-times}{\times} F$ by Proposition 115.
We have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Proposition 361.

Claim: For all $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $r \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))$.

Fix $r$ such that $r\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $r = \apply{e}{(f(x),h(x))}$ by Definition 347.
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$ and $h(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Proposition 361.
Hence $(f(x),g(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $(g(x),h(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $(f(x),h(x))\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 $\apply{e}{(f(x),g(x))}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\apply{e}{(g(x),h(x))}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\apply{e}{(f(x),h(x))}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
Therefore $\apply{e}{(f(x),h(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \apply{e}{(f(x),g(x))} + \apply{e}{(g(x),h(x))}$ by Definition 178, Definition 179.
We have $\apply{e}{(f(x),g(x))}\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ and $\apply{e}{(g(x),h(x))}\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Definition 347.
We have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ is an upper bound of $C$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))$ is an upper bound of $D$ by Definition 71.
Therefore $\apply{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 $\apply{e}{(g(x),h(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))$ by Definition 66.
Hence $\apply{e}{(f(x),g(x))} + \apply{e}{(g(x),h(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \apply{e}{(g(x),h(x))}$ by Lemma 24.
We have $\apply{e}{(g(x),h(x))} + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ by Lemma 24.
Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \apply{e}{(g(x),h(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))$ by Axiom 16.
We have $\apply{e}{(f(x),g(x))} + \apply{e}{(g(x),h(x))}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \apply{e}{(g(x),h(x))}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13.
Hence $\apply{e}{(f(x),g(x))} + \apply{e}{(g(x),h(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))$ by Lemma 23.
Hence $\apply{e}{(f(x),h(x))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))$ by Lemma 23.
Thus $r \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))$ by Axiom 6.

We have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))$ is an upper bound of $A$ by Axiom 13, Definition 66.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,h)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h))$ by Definition 71.
Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g)) + \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((g,h)) \class{latex-symbol-tip latex-symbol-id-geq}{\geq} \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,h))$.

Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ satisfies the triangle inequality on $F$ by Definition 178.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $F$ by Definition 179.

Claim: For all $f,g\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ there exists $A$ such that $A = \{r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} 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 $A$.

Fix $f$.
Fix $g$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
Let $p = (f,g)$.
We have $(p,\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p))\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Axiom 54, Definition 12, Proposition 115.
Take $D$ such that $D$ is the distance set of $\fst{p}$ and $\snd{p}$ on $X$ with respect to $e$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}(p)$ is a supremum of $D$ by Axiom 10, Axiom 11, Definition 12.
$\fst{p} = f$ and $\snd{p} = g$ by Axiom 10, Axiom 11.
Let $B = \{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}}))))\}$.

Claim: For all $r$ if $r\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ then $r\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.

Fix $r$.
Assume $r\class{latex-symbol-tip latex-symbol-id-in}{\in} D$.
Take $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $r = \apply{e}{(f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))}$ by Definition 347.
We have $f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Proposition 361.
Hence $(f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Proposition 115.
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.

Case. $d((f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))) < 1$.

We have $\apply{e}{(f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))} = d((f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})))$ by Lemma 204.
Hence $r = d((f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})))$ by Lemma 83.
Therefore $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$.
We have $d((f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
Hence $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Lemma 83.
Therefore $r\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Definition 1.

Case. it is wrong that $d((f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))) < 1$.

We have $\apply{e}{(f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))} = 1$ by Lemma 203.
Hence $r = 1$ by Lemma 83.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
We have $d((f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
Thus $1 = d((f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})))$ or $1 < d((f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})))$ by Axiom 34.
Therefore $1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})))$ by Axiom 6, Lemma 231.
We have $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}}))$.
Hence $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Lemma 83.
Therefore $r\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Definition 1.

LaTeX source
\begin{byCase}
                \caseOf{$d((f(\alpha),g(\alpha))) < 1$.}
                    We have $\apply{e}{(f(\alpha),g(\alpha))} = d((f(\alpha),g(\alpha)))$
                        by \cref{bounded_metric_apply_below_one}.
                    Hence $r = d((f(\alpha),g(\alpha)))$ by \cref{real_lt_subst_right}.
                    Therefore $r = d((\apply{f}{\alpha},\apply{g}{\alpha})) \land d((\apply{f}{\alpha},\apply{g}{\alpha})) < 1$.
                    We have $d((f(\alpha),g(\alpha)))\in\reals$ by \cref{metric_on,funs_type_apply}.
                    Hence $r\in\reals$ by \cref{real_lt_subst_right}.
                    Therefore $r\in B$ by \cref{subseteq}.
                \caseOf{it is wrong that $d((f(\alpha),g(\alpha))) < 1$.}
                    We have $\apply{e}{(f(\alpha),g(\alpha))} = 1$
                        by \cref{bounded_metric_apply_geq_one}.
                    Hence $r = 1$ by \cref{real_lt_subst_right}.
                    $1\in\reals$ by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq}.
                    We have $d((f(\alpha),g(\alpha)))\in\reals$ by \cref{metric_on,funs_type_apply}.
                    Thus $1 = d((f(\alpha),g(\alpha)))$ or $1 < d((f(\alpha),g(\alpha)))$ by \cref{real_lt_trichotomy}.
                    Therefore $1 \leq d((f(\alpha),g(\alpha)))$ by \cref{pair_eq_iff,real_lt_imp_leq}.
                    We have $r = 1 \land 1 \leq d((\apply{f}{\alpha},\apply{g}{\alpha}))$.
                    Hence $r\in\reals$ by \cref{real_lt_subst_right}.
                    Therefore $r\in B$ by \cref{subseteq}.
                
\end{byCase}

We have $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B$ by Definition 1.

Claim: For all $r$ if $r\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ then $r\class{latex-symbol-tip latex-symbol-id-in}{\in} D$.

Fix $r$.
Assume $r\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Take $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that $(r = d((\apply{f}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}},\apply{g}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}})) \class{latex-symbol-tip latex-symbol-id-land}{\land} d((\apply{f}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}},\apply{g}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}})) < 1) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (r = 1 \class{latex-symbol-tip latex-symbol-id-land}{\land} 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((\apply{f}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}},\apply{g}{\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}})))$ by Definition 1.
We have $f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Proposition 361.
Hence $(f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Proposition 115.
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.

Case. $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$.

We have $\apply{e}{(f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))} = d((f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})))$ by Lemma 204.
Hence $r = \apply{e}{(f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))}$ by Lemma 82.
Thus $r\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Definition 347.

Case. $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}}))$.

$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
We have $d((f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha})))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
Hence it is wrong that $d((f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))) < 1$ by Axiom 36, Axiom 39.
Therefore $\apply{e}{(f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))} = 1$ by Lemma 203.
Hence $r = \apply{e}{(f(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}),g(\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}))}$ by Axiom 6.
Thus $r\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Definition 347.

LaTeX source
\begin{byCase}
                \caseOf{$r = d((\apply{f}{\alpha},\apply{g}{\alpha})) \land d((\apply{f}{\alpha},\apply{g}{\alpha})) < 1$.}
                    We have $\apply{e}{(f(\alpha),g(\alpha))} = d((f(\alpha),g(\alpha)))$ by \cref{bounded_metric_apply_below_one}.
                    Hence $r = \apply{e}{(f(\alpha),g(\alpha))}$ by \cref{real_lt_subst_left}.
                    Thus $r\in D$ by \cref{function_distance_set}.
                \caseOf{$r = 1 \land 1 \leq d((\apply{f}{\alpha},\apply{g}{\alpha}))$.}
                    $1\in\reals$ by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq}.
                    We have $d((f(\alpha),g(\alpha)))\in\reals$ by \cref{metric_on,funs_type_apply}.
                    Hence it is wrong that $d((f(\alpha),g(\alpha))) < 1$ by \cref{real_lt_trans,real_lt_irreflexive}.
                    Therefore $\apply{e}{(f(\alpha),g(\alpha))} = 1$ by \cref{bounded_metric_apply_geq_one}.
                    Hence $r = \apply{e}{(f(\alpha),g(\alpha))}$ by \cref{pair_eq_iff}.
                    Thus $r\in D$ by \cref{function_distance_set}.
                
\end{byCase}

We have $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} D$ by Definition 1.
Hence $D = B$ by Proposition 3.
We have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((f,g))$ is a supremum of $B$ by Proposition 437.
Thus there exists $A$ such that $A = \{r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in} 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 $A$ by Axiom 6.
Follows by definition.

Therefore there exists $\tau$ such that $\tau$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$ by Axiom 6, Definition 344.

LaTeX source
\begin{proof}
    Let $F = \funs{X}{Y}$.
    Let $e = \boundedMetric{d}$.
    $e$ is a metric on $Y$ by \cref{bounded_metric_is_metric}.
    Take $x_0$ such that $x_0\in X$.
    Let $R = \{w\in(F\times F)\times\reals \mid
        \text{there exists $A$ such that
            $A$ is the distance set of $\fst{\fst{w}}$ and $\snd{\fst{w}}$ on $X$ with respect to $e$ and
            $\snd{w}$ is a supremum of $A$}\}$.
    $R$ is a relation by \cref{relation,subseteq,times_elem_is_tuple}.
    Show that for all $p\in F\times F$ there exists $r$ such that $p\mathrel{R} r$.
    \begin{subproof}
        Fix $p$ such that $p\in F\times F$.
        Take $f, g$ such that $p = (f,g)$ and $f\in F$ and $g\in F$ by \cref{times}.
        Let $A = \{\apply{e}{(f(x),g(x))} \mid x\in X\}$.
        $A$ is the distance set of $f$ and $g$ on $X$ with respect to $e$ by \cref{function_distance_set}.
        $A\subseteq\reals$
            by \cref{function_distance_set,metric_on,funs_type_apply,times_tuple_intro,pair_eq_iff,subseteq}.
        We have $A\neq\emptyset$
            by \cref{funs_type_apply,times_tuple_intro,function_distance_set,inhabited_nonempty,nonempty_inhabited}.
        For all $r$ if $r\in A$ then $r \leq 1$
            by \cref{function_distance_set,bounded_metric_leq_one,pair_eq_iff,metric_on,funs_type_apply,times_tuple_intro}.
        We have $1$ is an upper bound of $A$ by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_upper_bound}.
        Hence $A$ is bounded above by \cref{real_bounded_above}.
        Take $r$ such that $r$ is a supremum of $A$ by \cref{real_completeness_axiom}.
        $r\in\reals$ by \cref{real_supremum,real_upper_bound}.
        There exists $s$ such that $p\mathrel{R} s$
            by \cref{times_tuple_intro,fst_eq,snd_eq,relation}.
    \end{subproof}
    Take $\rho$ such that
        $\rho$ is a function on $F\times F$ and
        for all $p\in F\times F$ we have $p\mathrel{R}\rho(p)$ by \cref{axiom_of_choice}.
    For all $p\in F\times F$ we have $\rho(p)\in\reals$
        by \cref{axiom_of_choice,relation,subseteq,times_tuple_elim}.
    We have $\rho$ is a function to $\reals$ by \cref{axiom_of_choice}.
    $\dom{\rho} = F\times F$ by \cref{axiom_of_choice}.
    Hence $\rho\in\funs{F\times F}{\reals}$ by \cref{funs_intro}.
    For all $f,g$ such that $f\in F$ and $g\in F$ we have $\rho((f,g)) \geq 0$
        by \cref{times_tuple_intro,axiom_of_choice,relation,fst_eq,snd_eq,funs_type_apply,function_distance_set,metric_on,real_supremum,real_upper_bound,metric_nonnegative,real_add_ident,real_leq_trans}.
    Hence $\rho$ is nonnegative on $F$ by \cref{metric_nonnegative}.
    Show that for all $f,g$ such that $f\in F$ and $g\in F$ we have $\rho((f,g)) = 0$ iff $f = g$.
    \begin{subproof}
        Fix $f$.
        Fix $g$ such that $f\in F$ and $g\in F$.
        We have $f\in\funs{X}{Y}$ and $g\in\funs{X}{Y}$ by \cref{subseteq}.
        $f$ is a function and $\dom{f} = X$ and $g$ is a function and $\dom{g} = X$
            by \cref{funs_is_function,funs_elim}.
        Show that if $\rho((f,g)) = 0$ then $f = g$.
        \begin{subproof}
            Assume $\rho((f,g)) = 0$.
            Let $p = (f,g)$.
            We have $(p,\rho(p))\in R$ by \cref{times_tuple_intro,axiom_of_choice,relation}.
            Take $A$ such that
                $A$ is the distance set of $\fst{p}$ and $\snd{p}$ on $X$ with respect to $e$ and
                $\rho(p)$ is a supremum of $A$ by \cref{fst_eq,snd_eq,relation}.
            For all $x\in X$ we have $f(x) = g(x)$
                by \cref{fst_eq,snd_eq,function_distance_set,real_supremum,real_upper_bound,funs_type_apply,times_tuple_intro,metric_on,metric_nonnegative,real_add_ident,real_leq_antisym,metric_zero_characterization}.
            Therefore $f = g$ by \cref{pair_eq_iff,functions_eq_iff}.
        \end{subproof}
        Show that if $f = g$ then $\rho((f,g)) = 0$.
        \begin{subproof}
            Assume $f = g$.
            Let $p = (f,g)$.
            We have $(p,\rho(p))\in R$ by \cref{times_tuple_intro,axiom_of_choice,relation}.
            Take $A$ such that
                $A$ is the distance set of $\fst{p}$ and $\snd{p}$ on $X$ with respect to $e$ and
                $\rho(p)$ is a supremum of $A$ by \cref{fst_eq,snd_eq,relation}.
            We have $A\subseteq\reals$
                by \cref{fst_eq,snd_eq,function_distance_set,metric_on,funs_type_apply,times_tuple_intro,pair_eq_iff,subseteq}.
            For all $r$ if $r\in A$ then $r = 0$
                by \cref{fst_eq,snd_eq,function_distance_set,metric_on,metric_zero_characterization,funs_type_apply,times_tuple_intro,pair_eq_iff,subseteq}.
            $0\in\reals$ by \cref{real_add_ident}.
            We have $0$ is an upper bound of $A$ by \cref{real_upper_bound,subseteq}.
            We have $e((f(x_0),g(x_0))) = 0$
                by \cref{metric_on,metric_zero_characterization,funs_type_apply,times_tuple_intro,pair_eq_iff,subseteq}.
            Therefore $0\in A$ by \cref{fst_eq,snd_eq,function_distance_set,pair_eq_iff,subseteq}.
            We have $0 \leq \rho(p)$ by \cref{real_supremum_pred,real_supremum,real_upper_bound}.
            Hence $\rho(p) \leq 0$ by \cref{real_supremum,real_upper_bound}.
            We have $\rho(p)\in\reals$ by \cref{real_supremum,real_upper_bound}.
            Thus $\rho(p) = 0$ by \cref{real_leq_antisym,real_add_ident}.
        \end{subproof}
    \end{subproof}
    Therefore $\rho$ is zero-characterized on $F$ by \cref{metric_zero_characterization}.
    Show that for all $f,g$ such that $f\in F$ and $g\in F$ we have $\rho((f,g)) = \rho((g,f))$.
    \begin{subproof}
        Fix $f$.
        Fix $g$ such that $f\in F$ and $g\in F$.
        We have $f\in\funs{X}{Y}$ and $g\in\funs{X}{Y}$ by \cref{subseteq}.
        Let $p = (f,g)$.
        Let $q = (g,f)$.
        We have $(p,\rho(p))\in R$ and $(q,\rho(q))\in R$ by \cref{times_tuple_intro,axiom_of_choice,relation}.
        Take $A$ such that
            $A$ is the distance set of $\fst{p}$ and $\snd{p}$ on $X$ with respect to $e$ and
            $\rho(p)$ is a supremum of $A$ by \cref{fst_eq,snd_eq,relation}.
        Take $C$ such that
            $C$ is the distance set of $\fst{q}$ and $\snd{q}$ on $X$ with respect to $e$ and
            $\rho(q)$ is a supremum of $C$ by \cref{fst_eq,snd_eq,relation}.
        $\fst{p} = f$ and $\snd{p} = g$ and $\fst{q} = g$ and $\snd{q} = f$ by \cref{fst_eq,snd_eq}.
        Show that for all $r$ if $r\in A$ then $r\in C$.
        \begin{subproof}
            Follows by \cref{function_distance_set,metric_on,metric_symmetric,times_tuple_intro,funs_type_apply,pair_eq_iff}.
        \end{subproof}
        We have $A\subseteq C$ by \cref{subseteq}.
        Show that for all $r$ if $r\in C$ then $r\in A$.
        \begin{subproof}
            Fix $r$.
            Assume $r\in C$.
            Take $x\in X$ such that $e((g(x),f(x))) = r$ by \cref{function_distance_set}.
            We have $g(x)\in Y$ and $f(x)\in Y$ by \cref{funs_type_apply}.
            Hence $(g(x),f(x))\in Y\times Y$ and $(f(x),g(x))\in Y\times Y$ by \cref{times_tuple_intro}.
            Therefore $e((f(x),g(x))) = r$ by \cref{metric_on,metric_symmetric,pair_eq_iff,real_add_ident,real_lt_subst_left,real_lt_subst_right}.
            Hence $r\in A$ by \cref{function_distance_set}.
        \end{subproof}
        Thus $C\subseteq A$ by \cref{subseteq}.
        Therefore $A = C$ by \cref{subseteq_antisymmetric}.
        Hence $\rho((f,g)) = \rho((g,f))$ by \cref{real_supremum_unique}.
    \end{subproof}
    Therefore $\rho$ is symmetric on $F$ by \cref{metric_symmetric}.
    Show that for all $f,g,h$ such that $f\in F$ and $g\in F$ and $h\in F$ we have
        $\rho((f,g)) + \rho((g,h)) \geq \rho((f,h))$.
    \begin{subproof}
        Fix $f$.
        Fix $g$.
        Fix $h$ such that $f\in F$ and $g\in F$ and $h\in F$.
        Let $p = (f,h)$.
        Let $q = (f,g)$.
        Let $s = (g,h)$.
        We have $(p,\rho(p))\in R$ and $(q,\rho(q))\in R$ and $(s,\rho(s))\in R$
            by \cref{times_tuple_intro,axiom_of_choice,relation}.
        Take $A$ such that
            $A$ is the distance set of $\fst{p}$ and $\snd{p}$ on $X$ with respect to $e$ and
            $\rho(p)$ is a supremum of $A$ by \cref{fst_eq,snd_eq,relation}.
        Take $C$ such that
            $C$ is the distance set of $\fst{q}$ and $\snd{q}$ on $X$ with respect to $e$ and
            $\rho(q)$ is a supremum of $C$ by \cref{fst_eq,snd_eq,relation}.
        Take $D$ such that
            $D$ is the distance set of $\fst{s}$ and $\snd{s}$ on $X$ with respect to $e$ and
            $\rho(s)$ is a supremum of $D$ by \cref{fst_eq,snd_eq,relation}.
        Hence $\fst{p} = f$ and $\snd{p} = h$ and $\fst{q} = f$ and $\snd{q} = g$ and $\fst{s} = g$ and $\snd{s} = h$
            by \cref{fst_eq,snd_eq}.
        $A\subseteq\reals$
            by \cref{function_distance_set,metric_on,funs_type_apply,times_tuple_intro,pair_eq_iff,subseteq}.
        $(f,g)\in F\times F$ and $(g,h)\in F\times F$ by \cref{times_tuple_intro}.
        We have $\rho((f,g))\in\reals$ and $\rho((g,h))\in\reals$ by \cref{funs_type_apply}.
        Show that for all $r\in A$ we have $r \leq \rho((f,g)) + \rho((g,h))$.
        \begin{subproof}
            Fix $r$ such that $r\in A$.
            Take $x\in X$ such that $r = \apply{e}{(f(x),h(x))}$ by \cref{function_distance_set}.
            We have $f(x)\in Y$ and $g(x)\in Y$ and $h(x)\in Y$ by \cref{funs_type_apply}.
            Hence $(f(x),g(x))\in Y\times Y$ and $(g(x),h(x))\in Y\times Y$ and $(f(x),h(x))\in Y\times Y$
                by \cref{times_tuple_intro}.
            We have $\apply{e}{(f(x),g(x))}\in\reals$ and $\apply{e}{(g(x),h(x))}\in\reals$ and $\apply{e}{(f(x),h(x))}\in\reals$
                by \cref{metric_on,funs_type_apply}.
            Therefore $\apply{e}{(f(x),h(x))} \leq \apply{e}{(f(x),g(x))} + \apply{e}{(g(x),h(x))}$
                by \cref{metric_on,metric_triangle_inequality}.
        We have $\apply{e}{(f(x),g(x))}\in C$ and $\apply{e}{(g(x),h(x))}\in D$ by \cref{function_distance_set}.
            We have $\rho((f,g))$ is an upper bound of $C$ and $\rho((g,h))$ is an upper bound of $D$ by \cref{real_supremum}.
            Therefore $\apply{e}{(f(x),g(x))} \leq \rho((f,g))$ and $\apply{e}{(g(x),h(x))} \leq \rho((g,h))$
                by \cref{real_upper_bound}.
            Hence $\apply{e}{(f(x),g(x))} + \apply{e}{(g(x),h(x))} \leq \rho((f,g)) + \apply{e}{(g(x),h(x))}$
                by \cref{real_leq_add}.
            We have $\apply{e}{(g(x),h(x))} + \rho((f,g)) \leq \rho((g,h)) + \rho((f,g))$ by \cref{real_leq_add}.
            Therefore $\rho((f,g)) + \apply{e}{(g(x),h(x))} \leq \rho((f,g)) + \rho((g,h))$ by \cref{real_add_comm}.
            We have $\apply{e}{(f(x),g(x))} + \apply{e}{(g(x),h(x))}\in\reals$ and
                $\rho((f,g)) + \apply{e}{(g(x),h(x))}\in\reals$ and
                $\rho((f,g)) + \rho((g,h))\in\reals$ by \cref{real_add_closed}.
            Hence $\apply{e}{(f(x),g(x))} + \apply{e}{(g(x),h(x))} \leq \rho((f,g)) + \rho((g,h))$ by \cref{real_leq_trans}.
            Hence $\apply{e}{(f(x),h(x))} \leq \rho((f,g)) + \rho((g,h))$ by \cref{real_leq_trans}.
            Thus $r \leq \rho((f,g)) + \rho((g,h))$ by \cref{pair_eq_iff}.
        \end{subproof}
        We have $\rho((f,g)) + \rho((g,h))$ is an upper bound of $A$ by \cref{real_upper_bound,real_add_closed}.
        Hence $\rho((f,h)) \leq \rho((f,g)) + \rho((g,h))$ by \cref{real_supremum}.
        Therefore $\rho((f,g)) + \rho((g,h)) \geq \rho((f,h))$.
    \end{subproof}
    Therefore $\rho$ satisfies the triangle inequality on $F$ by \cref{metric_triangle_inequality}.
    Hence $\rho$ is a metric on $F$ by \cref{metric_on}.
    Show that for all $f,g\in F$ there exists $A$ such that
        $A = \{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 $A$.
    \begin{subproof}
        Fix $f$.
        Fix $g$ such that $f\in F$ and $g\in F$.
        Let $p = (f,g)$.
        We have $(p,\rho(p))\in R$ by \cref{times_tuple_intro,axiom_of_choice,relation}.
        Take $D$ such that
            $D$ is the distance set of $\fst{p}$ and $\snd{p}$ on $X$ with respect to $e$ and
            $\rho(p)$ is a supremum of $D$ by \cref{fst_eq,snd_eq,relation}.
        $\fst{p} = f$ and $\snd{p} = g$ by \cref{fst_eq,snd_eq}.
        Let $B = \{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}))))\}$.
        Show that for all $r$ if $r\in D$ then $r\in B$.
        \begin{subproof}
                Fix $r$.
                Assume $r\in D$.
                Take $\alpha\in X$ such that $r = \apply{e}{(f(\alpha),g(\alpha))}$ by \cref{function_distance_set}.
                We have $f(\alpha)\in Y$ and $g(\alpha)\in Y$ by \cref{funs_type_apply}.
                Hence $(f(\alpha),g(\alpha))\in Y\times Y$ by \cref{times_tuple_intro}.
                We have $e\in\funs{Y\times Y}{\reals}$ by \cref{metric_on}.
                \begin{byCase}
                \caseOf{$d((f(\alpha),g(\alpha))) < 1$.}
                    We have $\apply{e}{(f(\alpha),g(\alpha))} = d((f(\alpha),g(\alpha)))$
                        by \cref{bounded_metric_apply_below_one}.
                    Hence $r = d((f(\alpha),g(\alpha)))$ by \cref{real_lt_subst_right}.
                    Therefore $r = d((\apply{f}{\alpha},\apply{g}{\alpha})) \land d((\apply{f}{\alpha},\apply{g}{\alpha})) < 1$.
                    We have $d((f(\alpha),g(\alpha)))\in\reals$ by \cref{metric_on,funs_type_apply}.
                    Hence $r\in\reals$ by \cref{real_lt_subst_right}.
                    Therefore $r\in B$ by \cref{subseteq}.
                \caseOf{it is wrong that $d((f(\alpha),g(\alpha))) < 1$.}
                    We have $\apply{e}{(f(\alpha),g(\alpha))} = 1$
                        by \cref{bounded_metric_apply_geq_one}.
                    Hence $r = 1$ by \cref{real_lt_subst_right}.
                    $1\in\reals$ by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq}.
                    We have $d((f(\alpha),g(\alpha)))\in\reals$ by \cref{metric_on,funs_type_apply}.
                    Thus $1 = d((f(\alpha),g(\alpha)))$ or $1 < d((f(\alpha),g(\alpha)))$ by \cref{real_lt_trichotomy}.
                    Therefore $1 \leq d((f(\alpha),g(\alpha)))$ by \cref{pair_eq_iff,real_lt_imp_leq}.
                    We have $r = 1 \land 1 \leq d((\apply{f}{\alpha},\apply{g}{\alpha}))$.
                    Hence $r\in\reals$ by \cref{real_lt_subst_right}.
                    Therefore $r\in B$ by \cref{subseteq}.
                \end{byCase}
        \end{subproof}
        We have $D\subseteq B$ by \cref{subseteq}.
        Show that for all $r$ if $r\in B$ then $r\in D$.
        \begin{subproof}
                Fix $r$.
                Assume $r\in B$.
                Take $\alpha\in X$ such that
                    $(r = d((\apply{f}{\alpha},\apply{g}{\alpha})) \land d((\apply{f}{\alpha},\apply{g}{\alpha})) < 1) \lor
                    (r = 1 \land 1 \leq d((\apply{f}{\alpha},\apply{g}{\alpha})))$ by \cref{subseteq}.
                We have $f(\alpha)\in Y$ and $g(\alpha)\in Y$ by \cref{funs_type_apply}.
                Hence $(f(\alpha),g(\alpha))\in Y\times Y$ by \cref{times_tuple_intro}.
                We have $e\in\funs{Y\times Y}{\reals}$ by \cref{metric_on}.
                \begin{byCase}
                \caseOf{$r = d((\apply{f}{\alpha},\apply{g}{\alpha})) \land d((\apply{f}{\alpha},\apply{g}{\alpha})) < 1$.}
                    We have $\apply{e}{(f(\alpha),g(\alpha))} = d((f(\alpha),g(\alpha)))$ by \cref{bounded_metric_apply_below_one}.
                    Hence $r = \apply{e}{(f(\alpha),g(\alpha))}$ by \cref{real_lt_subst_left}.
                    Thus $r\in D$ by \cref{function_distance_set}.
                \caseOf{$r = 1 \land 1 \leq d((\apply{f}{\alpha},\apply{g}{\alpha}))$.}
                    $1\in\reals$ by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq}.
                    We have $d((f(\alpha),g(\alpha)))\in\reals$ by \cref{metric_on,funs_type_apply}.
                    Hence it is wrong that $d((f(\alpha),g(\alpha))) < 1$ by \cref{real_lt_trans,real_lt_irreflexive}.
                    Therefore $\apply{e}{(f(\alpha),g(\alpha))} = 1$ by \cref{bounded_metric_apply_geq_one}.
                    Hence $r = \apply{e}{(f(\alpha),g(\alpha))}$ by \cref{pair_eq_iff}.
                    Thus $r\in D$ by \cref{function_distance_set}.
                \end{byCase}
        \end{subproof}
        We have $B\subseteq D$ by \cref{subseteq}.
        Hence $D = B$ by \cref{subseteq_antisymmetric}.
        We have $\rho((f,g))$ is a supremum of $B$ by \cref{real_add_eq_subst}.
        Thus there exists $A$ such that
            $A = \{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 $A$ by \cref{pair_eq_iff}.
        Follows by definition.
    \end{subproof}
    Therefore there exists $\tau$ such that $\tau$ is the uniform metric on functions from $X$ to $Y$
        with respect to $d$ by \cref{pair_eq_iff,uniform_metric_on_function_space}.
\end{proof}
Theorem 125
compact_convergence_iff_uniform_on_compact_subspaces

Assume $T$ is a topology on $X$.
Assume $d$ is a metric on $Y$.
Assume $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
Assume $s$ is a sequence in $\funs{X}{Y}$.
Assume $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$.
Then $s$ converges to $f$ in $\funs{X}{Y}$ with respect to $T_0$ iff for all $C$ if $C$ is a compact subspace of $X$ with respect to $T$ then there exists $t$ such that $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$ and $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$.

LaTeX source
\begin{theorem}
\label{compact_convergence_iff_uniform_on_compact_subspaces}
    Assume $T$ is a topology on $X$.
    Assume $d$ is a metric on $Y$.
    Assume $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
    Assume $s$ is a sequence in $\funs{X}{Y}$.
    Assume $f\in\funs{X}{Y}$.
    Then $s$ converges to $f$ in $\funs{X}{Y}$ with respect to $T_0$ iff
        for all $C$ if
            $C$ is a compact subspace of $X$ with respect to $T$
        then there exists $t$ such that
            $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$ and
            $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$.
\end{theorem}
Proof

Let $F = \funs{X}{Y}$.

Claim: If $s$ converges to $f$ in $F$ with respect to $T_0$ then for all $C$ if $C$ is a compact subspace of $X$ with respect to $T$ then there exists $t$ such that $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$ and $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$.

Assume $s$ converges to $f$ in $F$ with respect to $T_0$.

Claim: For all $C$ if $C$ is a compact subspace of $X$ with respect to $T$ then there exists $t$ such that $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$ and $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$.

Fix $C$ such that $C$ is a compact subspace of $X$ with respect to $T$.
We have $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 263.
Take $t$ such that $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$ by Lemma 863.

Claim: $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$.
Case. $C = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
Claim: For all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ if $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ then there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $d((\apply{\apply{t}{n}}{x}, \apply{\restrl{f}{C}}{x})) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.

Trivial.

Hence $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$ by Definition 216, Definition 370, Lemma 862.

Case. $C \class{latex-symbol-tip latex-symbol-id-neq}{\neq} \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.

Take $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $C$ to $Y$ with respect to $d$ by Lemma 869, Proposition 10.
We have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $\funs{C}{Y}$ by Definition 344.

Claim: For all $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ if $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ then there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $d((\apply{\apply{t}{n}}{x}, \apply{\restrl{f}{C}}{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}$.
Take $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ such that $\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} < 1$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 867.
Let $A = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{f}{C},\restrl{g}{C})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\}$.
We have $A$ is the compact-convergence ball about $f$ over $C$ with radius $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ from $X$ to $Y$ with respect to $T$ and $d$ by Definition 367.
Hence $A$ is a neighborhood of $f$ in $F$ with respect to $T_0$ by Definition 153, Lemma 865, Lemma 866.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 159.

Claim: For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $d((\apply{\apply{t}{n}}{x}, \apply{\restrl{f}{C}}{x})) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.

Fix $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
We have $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{f}{C},\restrl{\apply{s}{n}}{C})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 1.
We have $t(n) = \restrl{s(n)}{C}$ by Definition 370.
We have $\restrl{s(n)}{C}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C}{Y}$ by Definition 158, Lemma 862, Proposition 361.
Hence $\restrl{f}{C}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C}{Y}$ by Definition 1, Definition 263, Lemma 862.
We have $t(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C}{Y}$ by Lemma 83.
Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{\apply{s}{n}}{C},\restrl{f}{C})) = \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{f}{C},\restrl{\apply{s}{n}}{C}))$ by Definition 177, Definition 179, Definition 344, Proposition 115.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((t(n),\restrl{f}{C})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 82, Lemma 83.
Therefore for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $d((\apply{\apply{t}{n}}{x}, \apply{\restrl{f}{C}}{x})) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 36, Definition 179, Lemma 831, Proposition 115, Proposition 361.
Follows by definition.

Follows by definition.

Therefore $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$ by Definition 216, Definition 370, Lemma 862.

LaTeX source
\begin{byCase}
                \caseOf{$C = \emptyset$.}
                    Show that for all $\epsilon$ if $\epsilon\in\reals$ and $0 < \epsilon$ then
                        there exists $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then
                            for all $x\in C$ we have $d((\apply{\apply{t}{n}}{x}, \apply{\restrl{f}{C}}{x})) < \epsilon$.
                    \begin{subproof}
                        Trivial.
                    \end{subproof}
                    Hence $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$
                        by \cref{uniform_converges_to,restriction_sequence_on_subset,restrl_typed_function}.
                \caseOf{$C \neq \emptyset$.}
                    Take $\rho$ such that
                        $\rho$ is the uniform metric on functions from $C$ to $Y$ with respect to $d$
                        by \cref{nonempty_inhabited,uniform_metric_on_function_space_exists_inhabited}.
                    We have $\rho$ is a metric on $\funs{C}{Y}$ by \cref{uniform_metric_on_function_space}.
                    Show that for all $\epsilon$ if $\epsilon\in\reals$ and $0 < \epsilon$ then
                        there exists $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then
                            for all $x\in C$ we have $d((\apply{\apply{t}{n}}{x}, \apply{\restrl{f}{C}}{x})) < \epsilon$.
                    \begin{subproof}
                        Fix $\epsilon$ such that $\epsilon\in\reals$ and $0 < \epsilon$.
                        Take $\delta$ such that
                            $\delta\in\reals$ and
                            $0 < \delta$ and
                            $\delta < 1$ and
                            $\delta < \epsilon$ by \cref{positive_real_has_smaller_positive_below_one}.
                        Let $A = \{g\in F \mid \rho((\restrl{f}{C},\restrl{g}{C})) < \delta\}$.
                        We have $A$ is the compact-convergence ball about $f$ over $C$ with radius $\delta$
                            from $X$ to $Y$ with respect to $T$ and $d$ by \cref{compact_convergence_ball}.
                        Hence $A$ is a neighborhood of $f$ in $F$ with respect to $T_0$
                            by \cref{compact_convergence_ball_open,compact_convergence_ball_center,neighborhood}.
                        Take $N\in\naturalsPlus$ such that for all $n$ such that $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in A$
                            by \cref{converges_to}.
                        Show that for all $n\in\naturalsPlus$ if $N\leq n$ then
                            for all $x\in C$ we have $d((\apply{\apply{t}{n}}{x}, \apply{\restrl{f}{C}}{x})) < \epsilon$.
                        \begin{subproof}
                            Fix $n\in\naturalsPlus$.
                            Assume $N\leq n$.
                            We have $s(n)\in A$.
                            Hence $\rho((\restrl{f}{C},\restrl{\apply{s}{n}}{C})) < \delta$ by \cref{subseteq}.
                            We have $t(n) = \restrl{s(n)}{C}$ by \cref{restriction_sequence_on_subset}.
                            We have $\restrl{s(n)}{C}\in\funs{C}{Y}$
                                by \cref{sequence_in,funs_type_apply,restrl_typed_function}.
                            Hence $\restrl{f}{C}\in\funs{C}{Y}$ by \cref{restrl_typed_function,compact_subspace,subseteq}.
                            We have $t(n)\in\funs{C}{Y}$ by \cref{real_lt_subst_right}.
                            Therefore $\rho((\restrl{\apply{s}{n}}{C},\restrl{f}{C})) = \rho((\restrl{f}{C},\restrl{\apply{s}{n}}{C}))$
                                by \cref{uniform_metric_on_function_space,metric_on,metric_symmetric,times_tuple_intro}.
                            Hence $\rho((t(n),\restrl{f}{C})) < \delta$ by \cref{real_lt_subst_right,real_lt_subst_left}.
                            Therefore for all $x\in C$ we have $d((\apply{\apply{t}{n}}{x}, \apply{\restrl{f}{C}}{x})) < \epsilon$
                                by \cref{uniform_metric_small_implies_pointwise_small,times_tuple_intro,funs_type_apply,metric_on,real_lt_trans}.
                            Follows by definition.
                        \end{subproof}
                        Follows by definition.
                    \end{subproof}
                    Therefore $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$
                        by \cref{uniform_converges_to,restriction_sequence_on_subset,restrl_typed_function}.
                
\end{byCase}

Follows by definition.

Follows by definition.

Claim: If for all $C$ if $C$ is a compact subspace of $X$ with respect to $T$ then there exists $t$ such that $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$ and $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$ then $s$ converges to $f$ in $F$ with respect to $T_0$.

Assume for all $C$ if $C$ is a compact subspace of $X$ with respect to $T$ then there exists $t$ such that $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$ and $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$.

Claim: For all $U$ such that $U$ is a neighborhood of $f$ in $F$ with respect to $T_0$ there exists $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.

Fix $U$ such that $U$ is a neighborhood of $f$ in $F$ with respect to $T_0$.
We have $U$ is open in $F$ with respect to $T_0$ and $f\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 153.
Take $B$ such that $B$ is the compact-convergence basis on functions from $X$ to $Y$ with respect to $T$ and $d$ and $T_0 = \basisTopology{B}{F}$ by Definition 369.
Take $A\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 103, Definition 114, Definition 115.
Take $h, C, \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $A$ is the compact-convergence ball about $h$ over $C$ with radius $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ from $X$ to $Y$ with respect to $T$ and $d$ by Definition 368.
Take $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}, D$ such that $\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 $D$ is the compact-convergence ball about $f$ over $C$ with radius $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ from $X$ to $Y$ with respect to $T$ and $d$ and $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Lemma 864.
We have $C$ is a compact subspace of $X$ with respect to $T$ by Definition 367.
Take $t$ such that $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$ and $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$ by Definition 1.
Take $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $C$ to $Y$ with respect to $d$ and $D = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{f}{C},\restrl{g}{C})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\}$ by Definition 367.
We have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $\funs{C}{Y}$ by Definition 344.
Take $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ such that $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ and $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} < 1$ and $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 867.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $d((\apply{\apply{t}{n}}{x}, \apply{\restrl{f}{C}}{x})) < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Definition 216.

Claim: For all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.

Fix $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
We have $t(n)\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C}{Y}$ by Definition 158, Definition 370, Proposition 361.
$\restrl{f}{C}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C}{Y}$ by Definition 1, Definition 263, Lemma 862.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $d((\apply{\apply{t}{n}}{x}, \apply{\restrl{f}{C}}{x})) < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Definition 216.
Hence for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $\apply{\boundedMetric{d}}{(\apply{\apply{t}{n}}{x}, \apply{\restrl{f}{C}}{x})} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Axiom 36, Axiom 41, Axiom 42, Definition 1, Definition 179, Lemma 82, Lemma 204, Lemma 231, Proposition 115, Proposition 361.
We have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((t(n),\restrl{f}{C})) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Lemma 677.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{f}{C},t(n))) = \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((t(n),\restrl{f}{C}))$ by Definition 177, Definition 179, Definition 344, Proposition 115.
We have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{f}{C},t(n)))\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}((\restrl{f}{C},t(n))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 36, Lemma 81, Lemma 82.
We have $t(n) = \restrl{s(n)}{C}$ by Definition 370.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{f}{C},\restrl{s(n)}{C})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 83.
Therefore $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Definition 1, Definition 158, Proposition 361.
Hence $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 1, Proposition 6.

Follows by definition.

Thus $s$ converges to $f$ in $F$ with respect to $T_0$ by Definition 159.

Therefore $s$ converges to $f$ in $F$ with respect to $T_0$ iff for all $C$ if $C$ is a compact subspace of $X$ with respect to $T$ then there exists $t$ such that $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$ and $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$.

LaTeX source
\begin{proof}
    Let $F = \funs{X}{Y}$.
    Show that if $s$ converges to $f$ in $F$ with respect to $T_0$ then
        for all $C$ if
            $C$ is a compact subspace of $X$ with respect to $T$
        then there exists $t$ such that
            $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$ and
            $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$.
    \begin{subproof}
        Assume $s$ converges to $f$ in $F$ with respect to $T_0$.
        Show that for all $C$ if
            $C$ is a compact subspace of $X$ with respect to $T$
        then there exists $t$ such that
            $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$ and
            $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$.
        \begin{subproof}
            Fix $C$ such that $C$ is a compact subspace of $X$ with respect to $T$.
            We have $C\subseteq X$ by \cref{compact_subspace}.
            Take $t$ such that $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$
                by \cref{restriction_sequence_exists}.
            Show that $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$.
            \begin{subproof}
                \begin{byCase}
                \caseOf{$C = \emptyset$.}
                    Show that for all $\epsilon$ if $\epsilon\in\reals$ and $0 < \epsilon$ then
                        there exists $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then
                            for all $x\in C$ we have $d((\apply{\apply{t}{n}}{x}, \apply{\restrl{f}{C}}{x})) < \epsilon$.
                    \begin{subproof}
                        Trivial.
                    \end{subproof}
                    Hence $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$
                        by \cref{uniform_converges_to,restriction_sequence_on_subset,restrl_typed_function}.
                \caseOf{$C \neq \emptyset$.}
                    Take $\rho$ such that
                        $\rho$ is the uniform metric on functions from $C$ to $Y$ with respect to $d$
                        by \cref{nonempty_inhabited,uniform_metric_on_function_space_exists_inhabited}.
                    We have $\rho$ is a metric on $\funs{C}{Y}$ by \cref{uniform_metric_on_function_space}.
                    Show that for all $\epsilon$ if $\epsilon\in\reals$ and $0 < \epsilon$ then
                        there exists $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then
                            for all $x\in C$ we have $d((\apply{\apply{t}{n}}{x}, \apply{\restrl{f}{C}}{x})) < \epsilon$.
                    \begin{subproof}
                        Fix $\epsilon$ such that $\epsilon\in\reals$ and $0 < \epsilon$.
                        Take $\delta$ such that
                            $\delta\in\reals$ and
                            $0 < \delta$ and
                            $\delta < 1$ and
                            $\delta < \epsilon$ by \cref{positive_real_has_smaller_positive_below_one}.
                        Let $A = \{g\in F \mid \rho((\restrl{f}{C},\restrl{g}{C})) < \delta\}$.
                        We have $A$ is the compact-convergence ball about $f$ over $C$ with radius $\delta$
                            from $X$ to $Y$ with respect to $T$ and $d$ by \cref{compact_convergence_ball}.
                        Hence $A$ is a neighborhood of $f$ in $F$ with respect to $T_0$
                            by \cref{compact_convergence_ball_open,compact_convergence_ball_center,neighborhood}.
                        Take $N\in\naturalsPlus$ such that for all $n$ such that $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in A$
                            by \cref{converges_to}.
                        Show that for all $n\in\naturalsPlus$ if $N\leq n$ then
                            for all $x\in C$ we have $d((\apply{\apply{t}{n}}{x}, \apply{\restrl{f}{C}}{x})) < \epsilon$.
                        \begin{subproof}
                            Fix $n\in\naturalsPlus$.
                            Assume $N\leq n$.
                            We have $s(n)\in A$.
                            Hence $\rho((\restrl{f}{C},\restrl{\apply{s}{n}}{C})) < \delta$ by \cref{subseteq}.
                            We have $t(n) = \restrl{s(n)}{C}$ by \cref{restriction_sequence_on_subset}.
                            We have $\restrl{s(n)}{C}\in\funs{C}{Y}$
                                by \cref{sequence_in,funs_type_apply,restrl_typed_function}.
                            Hence $\restrl{f}{C}\in\funs{C}{Y}$ by \cref{restrl_typed_function,compact_subspace,subseteq}.
                            We have $t(n)\in\funs{C}{Y}$ by \cref{real_lt_subst_right}.
                            Therefore $\rho((\restrl{\apply{s}{n}}{C},\restrl{f}{C})) = \rho((\restrl{f}{C},\restrl{\apply{s}{n}}{C}))$
                                by \cref{uniform_metric_on_function_space,metric_on,metric_symmetric,times_tuple_intro}.
                            Hence $\rho((t(n),\restrl{f}{C})) < \delta$ by \cref{real_lt_subst_right,real_lt_subst_left}.
                            Therefore for all $x\in C$ we have $d((\apply{\apply{t}{n}}{x}, \apply{\restrl{f}{C}}{x})) < \epsilon$
                                by \cref{uniform_metric_small_implies_pointwise_small,times_tuple_intro,funs_type_apply,metric_on,real_lt_trans}.
                            Follows by definition.
                        \end{subproof}
                        Follows by definition.
                    \end{subproof}
                    Therefore $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$
                        by \cref{uniform_converges_to,restriction_sequence_on_subset,restrl_typed_function}.
                \end{byCase}
            \end{subproof}
            Follows by definition.
        \end{subproof}
        Follows by definition.
    \end{subproof}
    Show that if
        for all $C$ if
            $C$ is a compact subspace of $X$ with respect to $T$
        then there exists $t$ such that
            $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$ and
            $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$
    then $s$ converges to $f$ in $F$ with respect to $T_0$.
    \begin{subproof}
        Assume for all $C$ if
            $C$ is a compact subspace of $X$ with respect to $T$
        then there exists $t$ such that
            $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$ and
            $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$.
        Show that for all $U$ such that $U$ is a neighborhood of $f$ in $F$ with respect to $T_0$
            there exists $N\in\naturalsPlus$ such that for all $n$ such that $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in U$.
        \begin{subproof}
            Fix $U$ such that $U$ is a neighborhood of $f$ in $F$ with respect to $T_0$.
            We have $U$ is open in $F$ with respect to $T_0$ and $f\in U$ by \cref{neighborhood}.
            Take $B$ such that
                $B$ is the compact-convergence basis on functions from $X$ to $Y$ with respect to $T$ and $d$ and
                $T_0 = \basisTopology{B}{F}$ by \cref{compact_convergence_topology}.
            Take $A\in B$ such that $f\in A$ and $A\subseteq U$
                by \cref{basis_for_topology,open_in,topology_generated_by_basis}.
            Take $h, C, \epsilon$ such that
                $A$ is the compact-convergence ball about $h$ over $C$ with radius $\epsilon$
                    from $X$ to $Y$ with respect to $T$ and $d$ by \cref{compact_convergence_function_space_basis}.
            Take $\delta, D$ such that
                $\delta\in\reals$ and
                $0 < \delta$ and
                $D$ is the compact-convergence ball about $f$ over $C$ with radius $\delta$
                    from $X$ to $Y$ with respect to $T$ and $d$ and
                $D\subseteq A$ by \cref{compact_convergence_ball_refinement}.
            We have $C$ is a compact subspace of $X$ with respect to $T$ by \cref{compact_convergence_ball}.
            Take $t$ such that
                $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$ and
                $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$ by \cref{subseteq}.
            Take $\rho$ such that
                $\rho$ is the uniform metric on functions from $C$ to $Y$ with respect to $d$ and
                $D = \{g\in F \mid \rho((\restrl{f}{C},\restrl{g}{C})) < \delta\}$ by \cref{compact_convergence_ball}.
            We have $\rho$ is a metric on $\funs{C}{Y}$ by \cref{uniform_metric_on_function_space}.
            Take $\eta$ such that
                $\eta\in\reals$ and
                $0 < \eta$ and
                $\eta < 1$ and
                $\eta < \delta$ by \cref{positive_real_has_smaller_positive_below_one}.
            Take $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then
                for all $x\in C$ we have $d((\apply{\apply{t}{n}}{x}, \apply{\restrl{f}{C}}{x})) < \eta$
                by \cref{uniform_converges_to}.
            Show that for all $n$ such that $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in U$.
            \begin{subproof}
                Fix $n$ such that $n\in\naturalsPlus$.
                Assume $N\leq n$.
                We have $t(n)\in\funs{C}{Y}$ by \cref{restriction_sequence_on_subset,sequence_in,funs_type_apply}.
                $\restrl{f}{C}\in\funs{C}{Y}$ by \cref{restrl_typed_function,compact_subspace,subseteq}.
                For all $x\in C$ we have $d((\apply{\apply{t}{n}}{x}, \apply{\restrl{f}{C}}{x})) < \eta$
                    by \cref{uniform_converges_to}.
                Hence for all $x\in C$ we have $\apply{\boundedMetric{d}}{(\apply{\apply{t}{n}}{x}, \apply{\restrl{f}{C}}{x})} \leq \eta$
                    by \cref{times_tuple_intro,funs_type_apply,metric_on,real_one_in_naturals,real_naturals_subset_reals,subseteq,real_lt_trans,bounded_metric_apply_below_one,real_lt_subst_left,real_lt_imp_leq}.
                We have $\rho((t(n),\restrl{f}{C})) \leq \eta$ by \cref{uniform_metric_leq_from_coordinate_bounds}.
                Hence $\rho((\restrl{f}{C},t(n))) = \rho((t(n),\restrl{f}{C}))$
                    by \cref{uniform_metric_on_function_space,metric_on,metric_symmetric,times_tuple_intro}.
                We have $\rho((\restrl{f}{C},t(n)))\in\reals$
                    by \cref{metric_on,funs_type_apply,times_tuple_intro}.
                Therefore $\rho((\restrl{f}{C},t(n))) < \delta$
                    by \cref{real_leq_split,real_lt_trans,real_lt_subst_left}.
                We have $t(n) = \restrl{s(n)}{C}$ by \cref{restriction_sequence_on_subset}.
                Hence $\rho((\restrl{f}{C},\restrl{s(n)}{C})) < \delta$ by \cref{real_lt_subst_right}.
                Therefore $s(n)\in D$ by \cref{sequence_in,funs_type_apply,subseteq}.
                Hence $s(n)\in U$ by \cref{subseteq,subseteq_transitive}.
            \end{subproof}
            Follows by definition.
        \end{subproof}
        Thus $s$ converges to $f$ in $F$ with respect to $T_0$ by \cref{converges_to}.
    \end{subproof}
    Therefore $s$ converges to $f$ in $F$ with respect to $T_0$ iff
        for all $C$ if
            $C$ is a compact subspace of $X$ with respect to $T$
        then there exists $t$ such that
            $t$ is the restriction sequence of $s$ to $C$ from $X$ to $Y$ and
            $t$ converges uniformly to $\restrl{f}{C}$ from $C$ to $Y$ with respect to $d$.
\end{proof}
Definition 371
compactly_generated_space

$X$ is compactly generated with respect to $T$ iff $T$ is a topology on $X$ and for all $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ if for all $C$ if $C$ is a compact subspace of $X$ with respect to $T$ then $A\inter C$ is open in $C$ with respect to $\subspaceTopology{T}{C}$ then $A$ is open in $X$ with respect to $T$.

LaTeX source
\begin{definition}
\label{compactly_generated_space}
    $X$ is compactly generated with respect to $T$ iff
        $T$ is a topology on $X$ and
        for all $A\subseteq X$ if
            for all $C$ if
                $C$ is a compact subspace of $X$ with respect to $T$
            then $A\inter C$ is open in $C$ with respect to $\subspaceTopology{T}{C}$
        then $A$ is open in $X$ with respect to $T$.
\end{definition}
Lemma 870
open_from_local_neighborhoods

Assume $T$ is a topology on $X$.
Suppose $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Suppose for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ there exists $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$.
Then $A$ is open in $X$ with respect to $T$.

LaTeX source
\begin{lemma}
\label{open_from_local_neighborhoods}
    Assume $T$ is a topology on $X$.
    Suppose $A\subseteq X$.
    Suppose for all $x\in A$ there exists $U$ such that
        $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and
        $U\subseteq A$.
    Then $A$ is open in $X$ with respect to $T$.
\end{lemma}
Proof

Let $E = \{U\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{X} \mid \text{$U$ is open in $X$ with respect to $T$ and $U\subseteq A$}\}$.
We have for all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{E}$ by Axiom 4, Axiom 12, Definition 1, Definition 101, Definition 103, Definition 153, Proposition 155.
$\unions{E}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Axiom 4, Definition 1.
Therefore $A = \unions{E}$ by Axiom 4, Definition 1, Proposition 3.
Hence $A$ is open in $X$ with respect to $T$ by Axiom 4, Definition 1, Definition 101, Definition 103, Proposition 3.

LaTeX source
\begin{proof}
    Let $E = \{U\in\pow{X} \mid \text{$U$ is open in $X$ with respect to $T$ and $U\subseteq A$}\}$.
    We have for all $x$ such that $x\in A$ we have $x\in\unions{E}$
        by \cref{neighborhood,open_in,topology_on,subseteq,pow_iff,powerset_intro,unions_iff}.
    $\unions{E}\subseteq A$ by \cref{unions_iff,subseteq}.
    Therefore $A = \unions{E}$ by \cref{subseteq,unions_iff,subseteq_antisymmetric}.
    Hence $A$ is open in $X$ with respect to $T$
        by \cref{subseteq,unions_iff,subseteq_antisymmetric,open_in,topology_on}.
\end{proof}
Lemma 871
locally_compact_implies_compactly_generated

Assume $T$ is a topology on $X$.
Suppose $X$ is locally compact with respect to $T$.
Then $X$ is compactly generated with respect to $T$.

LaTeX source
\begin{lemma}
\label{locally_compact_implies_compactly_generated}
    Assume $T$ is a topology on $X$.
    Suppose $X$ is locally compact with respect to $T$.
    Then $X$ is compactly generated with respect to $T$.
\end{lemma}
Proof
Claim: For all $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ if for all $C$ if $C$ is a compact subspace of $X$ with respect to $T$ then $A\inter C$ is open in $C$ with respect to $\subspaceTopology{T}{C}$ then $A$ is open in $X$ with respect to $T$.

Fix $A$ such that $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Assume for all $C$ if $C$ is a compact subspace of $X$ with respect to $T$ then $A\inter C$ is open in $C$ with respect to $\subspaceTopology{T}{C}$.

Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ there exists $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$.

Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Hence $X$ is locally compact at $x$ with respect to $T$ by Definition 1, Definition 265.
Take $C$ such that $C$ is a compact subspace of $X$ with respect to $T$ and there exists $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Definition 264.
Take $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Definition 264.
We have $A\inter C$ is open in $C$ with respect to $\subspaceTopology{T}{C}$ by assumption.
Take $V\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ such that $A\inter C = C\inter V$ by Definition 103, Definition 146.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A\inter C$ by Definition 1, Definition 153, Proposition 61.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Definition 5.
We have $U\inter V$ is open in $X$ with respect to $T$ by Definition 101, Definition 103, Definition 103, Definition 153.
Thus $U\inter V$ is a neighborhood of $x$ in $X$ with respect to $T$ by Definition 153, Proposition 61.

Claim: $U\inter V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$.

Follows by definition.

Hence $A$ is open in $X$ with respect to $T$ by Lemma 870.

Therefore $X$ is compactly generated with respect to $T$ by Definition 371.

LaTeX source
\begin{proof}
    Show that for all $A\subseteq X$ if
        for all $C$ if
            $C$ is a compact subspace of $X$ with respect to $T$
        then $A\inter C$ is open in $C$ with respect to $\subspaceTopology{T}{C}$
    then $A$ is open in $X$ with respect to $T$.
    \begin{subproof}
        Fix $A$ such that $A\subseteq X$.
        Assume for all $C$ if
            $C$ is a compact subspace of $X$ with respect to $T$
        then $A\inter C$ is open in $C$ with respect to $\subspaceTopology{T}{C}$.
        Show that for all $x\in A$ there exists $U$ such that
            $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and
            $U\subseteq A$.
        \begin{subproof}
                Fix $x$ such that $x\in A$.
                Hence $X$ is locally compact at $x$ with respect to $T$ by \cref{subseteq,locally_compact}.
                Take $C$ such that
                    $C$ is a compact subspace of $X$ with respect to $T$ and
                    there exists $U$ such that
                        $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                        $U\subseteq C$ by \cref{locally_compact_at_point}.
                Take $U$ such that
                    $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                    $U\subseteq C$ by \cref{locally_compact_at_point}.
                We have $A\inter C$ is open in $C$ with respect to $\subspaceTopology{T}{C}$ by assumption.
                Take $V\in T$ such that $A\inter C = C\inter V$ by \cref{open_in,subspace_topology}.
                We have $x\in A\inter C$ by \cref{neighborhood,subseteq,inter_intro}.
                Hence $x\in V$ by \cref{inter}.
                We have $U\inter V$ is open in $X$ with respect to $T$
                    by \cref{neighborhood,open_in,topology_on,open_in}.
                Thus $U\inter V$ is a neighborhood of $x$ in $X$ with respect to $T$ by \cref{inter_intro,neighborhood}.
                Show that $U\inter V\subseteq A$.
                \begin{subproof}
                    Follows by \cref{inter,subseteq,inter_intro}.
                \end{subproof}
                Follows by definition.
        \end{subproof}
        Hence $A$ is open in $X$ with respect to $T$ by \cref{open_from_local_neighborhoods}.
    \end{subproof}
    Therefore $X$ is compactly generated with respect to $T$ by \cref{compactly_generated_space}.
\end{proof}
Lemma 872
convergent_sequence_adjoin_limit_compact

Assume $T$ is a topology on $X$.
Assume $s$ is a sequence in $X$.
Assume $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Suppose $s$ converges to $x$ in $X$ with respect to $T$.
Let $C = \{x\}\union\img{s}{\naturalsPlus}$.
Then $C$ is a compact subspace of $X$ with respect to $T$.

LaTeX source
\begin{lemma}
\label{convergent_sequence_adjoin_limit_compact}
    Assume $T$ is a topology on $X$.
    Assume $s$ is a sequence in $X$.
    Assume $x\in X$.
    Suppose $s$ converges to $x$ in $X$ with respect to $T$.
    Let $C = \{x\}\union\img{s}{\naturalsPlus}$.
    Then $C$ is a compact subspace of $X$ with respect to $T$.
\end{lemma}
Proof

We have $\img{s}{\naturalsPlus}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 158, Proposition 6, Proposition 237, Proposition 363.
We have $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Proposition 25, Proposition 44.
Hence $C$ is a subspace of $X$ with respect to $T$ by Definition 147.

Claim: For all $A$ such that $A$ is a covering of $C$ and for all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $U$ is open in $X$ with respect to $T$ 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 $C$.

Fix $A$ such that $A$ is a covering of $C$ and for all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $U$ is open in $X$ with respect to $T$.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A}$ by Definition 1, Definition 245, Proposition 20, Proposition 38.
Take $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Axiom 4.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 153, Definition 159.
Let $I = \initialSegment{N}$.
We have $I$ is finite by Lemma 208.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} I\class{latex-symbol-tip latex-symbol-id-times}{\times} A \mid \apply{s}{\fst{w}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\snd{w}\}$.
We have $R$ is a relation by Definition 1, Definition 12, Proposition 121.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ we have $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Definition 1, Definition 55, Definition 84, Definition 158, Proposition 39, Proposition 61, Proposition 356, Proposition 364.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ there exists $V$ such that $n\mathrel{R} V$ by Axiom 4, Axiom 10, Axiom 11, Definition 1, Definition 12, Definition 245, Proposition 115.
Take $g$ such that $g$ is a function on $I$ and for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ we have $n\mathrel{R}\apply{g}{n}$ by Axiom 54.
Let $D = \img{g}{I}$.
Let $E = \{U,U\}$.
Let $B = D\union E$.
$D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Axiom 10, Axiom 11, Axiom 54, Definition 1, Definition 7, Definition 12, Lemma 82, Proposition 235, Proposition 349.
We have $D$ is finite by Lemma 192.
Hence $E$ is finite by Lemma 40.
Therefore $B$ is finite by Lemma 45.
$E\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Definition 1, Proposition 19.
We have $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Proposition 44.

Claim: 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}\unions{B}$.

Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.
We have $y = x$ or $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{s}{\naturalsPlus}$ by Axiom 5, Proposition 22.

Case. $y = x$.

Therefore $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Lemma 82.
Hence $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{B}$ by Axiom 4, Proposition 16, Proposition 39.

Case. $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{s}{\naturalsPlus}$.

Take $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $(n,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} s$ by Proposition 235.
We have $s(n) = y$ by Definition 158, Proposition 349, Proposition 356.
$n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Definition 1.
Hence $n < N$ or $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ by Axiom 34, Lemma 231.

Case. $n < N$.

We have $n \class{latex-symbol-tip latex-symbol-id-leq}{\leq} N$ by Lemma 231.
Hence $n\class{latex-symbol-tip latex-symbol-id-in}{\in} I$ by Definition 84.
Therefore $n\mathrel{R}\apply{g}{n}$ by Axiom 54.
We have $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} g(n)$ by Axiom 10, Axiom 11, Definition 12.
We have $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ by Axiom 54.
Hence $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}\inter I$ by Proposition 61.
Therefore $g(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Proposition 364.
Hence $g(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Proposition 38.
Thus $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{B}$ by Axiom 4, Lemma 83.

Case. $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.

Therefore $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 159.
Hence $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{B}$ by Axiom 4, Lemma 83, Proposition 16, Proposition 39.

LaTeX source
\begin{byCase}
                \caseOf{$n < N$.}
                    We have $n \leq N$ by \cref{real_lt_imp_leq}.
                    Hence $n\in I$ by \cref{initial_segment_naturalsplus}.
                    Therefore $n\mathrel{R}\apply{g}{n}$ by \cref{axiom_of_choice}.
                    We have $s(n)\in g(n)$ by \cref{relation,fst_eq,snd_eq}.
                    We have $n\in\dom{g}$ by \cref{axiom_of_choice}.
                    Hence $n\in\dom{g}\inter I$ by \cref{inter_intro}.
                    Therefore $g(n)\in D$ by \cref{img_of_function_intro}.
                    Hence $g(n)\in B$ by \cref{union_intro_left}.
                    Thus $y\in\unions{B}$ by \cref{real_lt_subst_right,unions_iff}.
                \caseOf{$N \leq n$.}
                    Therefore $s(n)\in U$ by \cref{converges_to}.
                    Hence $y\in\unions{B}$ by \cref{real_lt_subst_right,union_intro_right,upair_intro_left,unions_iff}.
                
\end{byCase}
LaTeX source
\begin{byCase}
            \caseOf{$y = x$.}
                Therefore $y\in U$ by \cref{real_lt_subst_left}.
                Hence $y\in\unions{B}$ by \cref{union_intro_right,upair_intro_left,unions_iff}.
            \caseOf{$y\in\img{s}{\naturalsPlus}$.}
                Take $n\in\naturalsPlus$ such that $(n,y)\in s$ by \cref{img_iff}.
                We have $s(n) = y$ by \cref{sequence_in,funs_is_function,function_apply_iff}.
                $n\in\reals$ and $N\in\reals$ by \cref{real_naturals_subset_reals,subseteq}.
                Hence $n < N$ or $N \leq n$ by \cref{real_lt_trichotomy,real_lt_imp_leq}.
                \begin{byCase}
                \caseOf{$n < N$.}
                    We have $n \leq N$ by \cref{real_lt_imp_leq}.
                    Hence $n\in I$ by \cref{initial_segment_naturalsplus}.
                    Therefore $n\mathrel{R}\apply{g}{n}$ by \cref{axiom_of_choice}.
                    We have $s(n)\in g(n)$ by \cref{relation,fst_eq,snd_eq}.
                    We have $n\in\dom{g}$ by \cref{axiom_of_choice}.
                    Hence $n\in\dom{g}\inter I$ by \cref{inter_intro}.
                    Therefore $g(n)\in D$ by \cref{img_of_function_intro}.
                    Hence $g(n)\in B$ by \cref{union_intro_left}.
                    Thus $y\in\unions{B}$ by \cref{real_lt_subst_right,unions_iff}.
                \caseOf{$N \leq n$.}
                    Therefore $s(n)\in U$ by \cref{converges_to}.
                    Hence $y\in\unions{B}$ by \cref{real_lt_subst_right,union_intro_right,upair_intro_left,unions_iff}.
                \end{byCase}
            
\end{byCase}

Hence $B$ is a covering of $C$ by Definition 1, Definition 245.
Follows by definition.

Therefore $C$ is compact with respect to $\subspaceTopology{T}{C}$ by Lemma 355.
Hence $C$ is a compact subspace of $X$ with respect to $T$ by Definition 263.

LaTeX source
\begin{proof}
    We have $\img{s}{\naturalsPlus}\subseteq X$ by \cref{sequence_in,funs_ran,img_subseteq_ran,subseteq_transitive}.
    We have $C\subseteq X$ by \cref{singleton_subset_intro,union_subsets_is_subset}.
    Hence $C$ is a subspace of $X$ with respect to $T$ by \cref{subspace_of}.
    Show that for all $A$ such that
        $A$ is a covering of $C$ and
        for all $U$ such that $U\in A$ we have $U$ is open in $X$ with respect to $T$
    there exists $B$ such that
        $B\subseteq A$ and
        $B$ is finite and
        $B$ is a covering of $C$.
    \begin{subproof}
        Fix $A$ such that
            $A$ is a covering of $C$ and
            for all $U$ such that $U\in A$ we have $U$ is open in $X$ with respect to $T$.
        We have $x\in\unions{A}$ by \cref{singleton_intro,union_intro_left,covering,subseteq}.
        Take $U\in A$ such that $x\in U$ by \cref{unions_iff}.
        Take $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in U$
            by \cref{neighborhood,converges_to}.
        Let $I = \initialSegment{N}$.
        We have $I$ is finite by \cref{initial_segment_finite}.
        Let $R = \{w\in I\times A \mid \apply{s}{\fst{w}}\in\snd{w}\}$.
        We have $R$ is a relation by \cref{relation,subseteq,times_elem_is_tuple}.
        For all $n\in I$ we have $s(n)\in C$
            by \cref{initial_segment_naturalsplus,sequence_in,funs_is_function,funs,subseteq,inter_intro,img_of_function_intro,union_intro_right}.
        For all $n\in I$ there exists $V$ such that $n\mathrel{R} V$
            by \cref{covering,subseteq,unions_iff,times_tuple_intro,fst_eq,snd_eq,relation}.
        Take $g$ such that $g$ is a function on $I$ and for all $n\in I$ we have $n\mathrel{R}\apply{g}{n}$ by \cref{axiom_of_choice}.
        Let $D = \img{g}{I}$.
        Let $E = \{U,U\}$.
        Let $B = D\union E$.
        $D\subseteq A$
            by \cref{img_iff,axiom_of_choice,function_apply_iff,relation,subseteq,fst_eq,snd_eq,times,real_lt_subst_left}.
        We have $D$ is finite by \cref{finite_image_function}.
        Hence $E$ is finite by \cref{pair_is_finite}.
        Therefore $B$ is finite by \cref{union_of_finite_is_finite}.
        $E\subseteq A$ by \cref{upair_iff,subseteq}.
        We have $B\subseteq A$ by \cref{union_subsets_is_subset}.
        Show that for all $y$ such that $y\in C$ we have $y\in\unions{B}$.
        \begin{subproof}
            Fix $y$ such that $y\in C$.
            We have $y = x$ or $y\in\img{s}{\naturalsPlus}$ by \cref{union_iff,singleton_iff}.
            \begin{byCase}
            \caseOf{$y = x$.}
                Therefore $y\in U$ by \cref{real_lt_subst_left}.
                Hence $y\in\unions{B}$ by \cref{union_intro_right,upair_intro_left,unions_iff}.
            \caseOf{$y\in\img{s}{\naturalsPlus}$.}
                Take $n\in\naturalsPlus$ such that $(n,y)\in s$ by \cref{img_iff}.
                We have $s(n) = y$ by \cref{sequence_in,funs_is_function,function_apply_iff}.
                $n\in\reals$ and $N\in\reals$ by \cref{real_naturals_subset_reals,subseteq}.
                Hence $n < N$ or $N \leq n$ by \cref{real_lt_trichotomy,real_lt_imp_leq}.
                \begin{byCase}
                \caseOf{$n < N$.}
                    We have $n \leq N$ by \cref{real_lt_imp_leq}.
                    Hence $n\in I$ by \cref{initial_segment_naturalsplus}.
                    Therefore $n\mathrel{R}\apply{g}{n}$ by \cref{axiom_of_choice}.
                    We have $s(n)\in g(n)$ by \cref{relation,fst_eq,snd_eq}.
                    We have $n\in\dom{g}$ by \cref{axiom_of_choice}.
                    Hence $n\in\dom{g}\inter I$ by \cref{inter_intro}.
                    Therefore $g(n)\in D$ by \cref{img_of_function_intro}.
                    Hence $g(n)\in B$ by \cref{union_intro_left}.
                    Thus $y\in\unions{B}$ by \cref{real_lt_subst_right,unions_iff}.
                \caseOf{$N \leq n$.}
                    Therefore $s(n)\in U$ by \cref{converges_to}.
                    Hence $y\in\unions{B}$ by \cref{real_lt_subst_right,union_intro_right,upair_intro_left,unions_iff}.
                \end{byCase}
            \end{byCase}
        \end{subproof}
        Hence $B$ is a covering of $C$ by \cref{subseteq,covering}.
        Follows by definition.
    \end{subproof}
    Therefore $C$ is compact with respect to $\subspaceTopology{T}{C}$ by \cref{compact_subspace_open_covering_backward}.
    Hence $C$ is a compact subspace of $X$ with respect to $T$ by \cref{compact_subspace}.
\end{proof}
Lemma 873
first_countable_implies_compactly_generated

Assume $T$ is a topology on $X$.
Suppose $X$ satisfies the first countability axiom with respect to $T$.
Then $X$ is compactly generated with respect to $T$.

LaTeX source
\begin{lemma}
\label{first_countable_implies_compactly_generated}
    Assume $T$ is a topology on $X$.
    Suppose $X$ satisfies the first countability axiom with respect to $T$.
    Then $X$ is compactly generated with respect to $T$.
\end{lemma}
Proof
Claim: For all $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ if for all $C$ if $C$ is a compact subspace of $X$ with respect to $T$ then $A\inter C$ is open in $C$ with respect to $\subspaceTopology{T}{C}$ then $A$ is open in $X$ with respect to $T$.

Fix $A$ such that $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Assume for all $C$ if $C$ is a compact subspace of $X$ with respect to $T$ then $A\inter C$ is open in $C$ with respect to $\subspaceTopology{T}{C}$.

Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ there exists $U$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$.

Fix $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1.
Suppose not.
Hence for all $U$ if $U$ is a neighborhood of $x$ in $X$ with respect to $T$ then it is wrong that $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$.
We have $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Proposition 97.

Claim: For all $U$ such that $U$ is open in $X$ with respect to $T$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ we have $U$ intersects $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$.

Fix $U$ such that $U$ is open in $X$ with respect to $T$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Hence it is wrong that $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Definition 153.
Suppose not.

Claim: For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.

Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Suppose not.
Hence $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ by Axiom 12, Definition 1, Definition 1, Definition 101, Definition 103, Proposition 85.
Therefore $y\class{latex-symbol-tip latex-symbol-id-in}{\in} U\inter (X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A)$ by Proposition 61.
Contradiction.

Hence $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Definition 1.
Contradiction.
Therefore $U$ intersects $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$.

Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A}{X}{T}$ by Theorem 11.
Take $s$ such that $s$ is a sequence in $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ and $s$ converges to $x$ in $X$ with respect to $T$ by Lemma 427.
Let $C = \{x\}\union\img{s}{\naturalsPlus}$.
Hence $C$ is a compact subspace of $X$ with respect to $T$ by Definition 158, Lemma 872, Proposition 97, Proposition 360.
Therefore $A\inter C$ is open in $C$ with respect to $\subspaceTopology{T}{C}$ by assumption.
Take $V\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ such that $A\inter C = C\inter V$ by Definition 103, Definition 146.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A\inter C$ by Proposition 20, Proposition 38, Proposition 61.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ if $N\class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Definition 5, Definition 103, Definition 153, Definition 159.
We have $N \class{latex-symbol-tip latex-symbol-id-leq}{\leq} N$.
Therefore $s(N)\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Definition 1.
We have $s(N)\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ by Definition 158, Proposition 361.
$s$ is a function and $\dom{s} = \naturalsPlus$ by Definition 55, Definition 158, Proposition 356.
Thus $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{s}\inter\naturalsPlus$ by Proposition 61.
Hence $s(N)\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{s}{\naturalsPlus}$ by Proposition 364.
Therefore $s(N)\class{latex-symbol-tip latex-symbol-id-in}{\in} C\inter V$ by Proposition 39, Proposition 61.
Hence $s(N)\class{latex-symbol-tip latex-symbol-id-in}{\in} A\inter C$ by Definition 5.
Thus $s(N)\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 5.
Contradiction.

Hence $A$ is open in $X$ with respect to $T$ by Lemma 870.

Therefore $X$ is compactly generated with respect to $T$ by Definition 371.

LaTeX source
\begin{proof}
    Show that for all $A\subseteq X$ if
        for all $C$ if
            $C$ is a compact subspace of $X$ with respect to $T$
        then $A\inter C$ is open in $C$ with respect to $\subspaceTopology{T}{C}$
    then $A$ is open in $X$ with respect to $T$.
    \begin{subproof}
        Fix $A$ such that $A\subseteq X$.
        Assume for all $C$ if
            $C$ is a compact subspace of $X$ with respect to $T$
        then $A\inter C$ is open in $C$ with respect to $\subspaceTopology{T}{C}$.
        Show that for all $x\in A$ there exists $U$ such that
            $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and
            $U\subseteq A$.
        \begin{subproof}
            Fix $x\in A$.
            Hence $x\in X$ by \cref{subseteq}.
            Suppose not.
            Hence for all $U$ if
                $U$ is a neighborhood of $x$ in $X$ with respect to $T$
            then it is wrong that $U\subseteq A$.
            We have $X\setminus A\subseteq X$ by \cref{setminus_subseteq}.
            Show that for all $U$ such that
                $U$ is open in $X$ with respect to $T$ and
                $x\in U$
            we have $U$ intersects $X\setminus A$.
            \begin{subproof}
                Fix $U$ such that
                    $U$ is open in $X$ with respect to $T$ and
                    $x\in U$.
                Hence it is wrong that $U\subseteq A$ by \cref{neighborhood}.
                Suppose not.
                Show that for all $y$ such that $y\in U$ we have $y\in A$.
                \begin{subproof}
                    Fix $y$ such that $y\in U$.
                    Suppose not.
                    Hence $y\in X\setminus A$ by \cref{open_in,topology_on,subseteq,pow_iff,subseteq,setminus_intro}.
                    Therefore $y\in U\inter (X\setminus A)$ by \cref{inter_intro}.
                    Contradiction.
                \end{subproof}
                Hence $U\subseteq A$ by \cref{subseteq}.
                Contradiction.
                Therefore $U$ intersects $X\setminus A$.
            \end{subproof}
            Therefore $x\in\closure{X\setminus A}{X}{T}$ by \cref{closure_iff_intersects_open}.
            Take $s$ such that
                $s$ is a sequence in $X\setminus A$ and
                $s$ converges to $x$ in $X$ with respect to $T$
                by \cref{closure_implies_sequence_first_countable}.
            Let $C = \{x\}\union\img{s}{\naturalsPlus}$.
            Hence $C$ is a compact subspace of $X$ with respect to $T$
                by \cref{sequence_in,funs_weaken_codom,setminus_subseteq,convergent_sequence_adjoin_limit_compact}.
            Therefore $A\inter C$ is open in $C$ with respect to $\subspaceTopology{T}{C}$ by assumption.
            Take $V\in T$ such that $A\inter C = C\inter V$ by \cref{open_in,subspace_topology}.
            We have $x\in A\inter C$ by \cref{singleton_intro,union_intro_left,inter_intro}.
            Take $N\in\naturalsPlus$ such that for all $n\in\naturalsPlus$ if $N\leq n$ then $s(n)\in V$
                by \cref{inter,open_in,neighborhood,converges_to}.
            We have $N \leq N$.
            Therefore $s(N)\in V$ by \cref{subseteq}.
            We have $s(N)\in X\setminus A$ by \cref{sequence_in,funs_type_apply}.
            $s$ is a function and $\dom{s} = \naturalsPlus$ by \cref{sequence_in,funs_is_function,funs}.
            Thus $N\in\dom{s}\inter\naturalsPlus$ by \cref{inter_intro}.
            Hence $s(N)\in\img{s}{\naturalsPlus}$ by \cref{img_of_function_intro}.
            Therefore $s(N)\in C\inter V$ by \cref{union_intro_right,inter_intro}.
            Hence $s(N)\in A\inter C$ by \cref{inter}.
            Thus $s(N)\in A$ by \cref{inter}.
            Contradiction.
        \end{subproof}
        Hence $A$ is open in $X$ with respect to $T$ by \cref{open_from_local_neighborhoods}.
    \end{subproof}
    Therefore $X$ is compactly generated with respect to $T$ by \cref{compactly_generated_space}.
\end{proof}
Lemma 874
compactly_generated_continuity_from_compact_subspaces

Assume $X$ is compactly generated with respect to $T$.
Assume $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$.
Suppose for all $C$ if $C$ is a compact subspace of $X$ with respect to $T$ then $\restrl{f}{C}$ is continuous from $C$ to $Y$ with respect to $\subspaceTopology{T}{C}$ and $U$.
Then $f$ is continuous from $X$ to $Y$ with respect to $T$ and $U$.

LaTeX source
\begin{lemma}
\label{compactly_generated_continuity_from_compact_subspaces}
    Assume $X$ is compactly generated with respect to $T$.
    Assume $f\in\funs{X}{Y}$.
    Suppose for all $C$ if
        $C$ is a compact subspace of $X$ with respect to $T$
    then $\restrl{f}{C}$ is continuous from $C$ to $Y$ with respect to $\subspaceTopology{T}{C}$ and $U$.
    Then $f$ is continuous from $X$ to $Y$ with respect to $T$ and $U$.
\end{lemma}
Proof

We have $T$ is a topology on $X$ by Definition 371.
Let $T_E = \subspaceTopology{T}{\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}}$.
Hence $T_E$ is a topology on $\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Lemma 131, Proposition 11.
Therefore $\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ is a compact subspace of $X$ with respect to $T$ by Definition 263, Lemma 411, Proposition 11.
Thus $\restrl{f}{\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}}$ is continuous from $\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ to $Y$ with respect to $T_E$ and $U$ by assumption.
Therefore $U$ is a topology on $Y$ by Definition 160.

Claim: For all $V$ such that $V$ is open in $Y$ with respect to $U$ we have $\preimg{f}{V}$ is open in $X$ with respect to $T$.

Fix $V$ such that $V$ is open in $Y$ with respect to $U$.
Let $A = \preimg{f}{V}$.

Claim: For all $C$ if $C$ is a compact subspace of $X$ with respect to $T$ then $A\inter C$ is open in $C$ with respect to $\subspaceTopology{T}{C}$.

Fix $C$ such that $C$ is a compact subspace of $X$ with respect to $T$.
Let $g = \restrl{f}{C}$.
Hence $g$ is continuous from $C$ to $Y$ with respect to $\subspaceTopology{T}{C}$ and $U$ by assumption.
Therefore $\preimg{g}{V}$ is open in $C$ with respect to $\subspaceTopology{T}{C}$ by Definition 160.
Thus $\preimg{g}{V} = A\inter C$ by Definition 1, Definition 5, Proposition 3, Proposition 61, Proposition 246, Proposition 262.
Hence $A\inter C$ is open in $C$ with respect to $\subspaceTopology{T}{C}$ by Axiom 6.

Therefore $\preimg{f}{V}$ is open in $X$ with respect to $T$ by Axiom 6, Definition 1, Definition 55, Definition 371, Proposition 249.

Hence $f$ is continuous from $X$ to $Y$ with respect to $T$ and $U$ by Definition 55, Definition 160.

LaTeX source
\begin{proof}
    We have $T$ is a topology on $X$ by \cref{compactly_generated_space}.
    Let $T_E = \subspaceTopology{T}{\emptyset}$.
    Hence $T_E$ is a topology on $\emptyset$ by \cref{emptyset_subseteq,subspace_topology_is_topology}.
    Therefore $\emptyset$ is a compact subspace of $X$ with respect to $T$
        by \cref{emptyset_subseteq,emptyset_compact,compact_subspace}.
    Thus $\restrl{f}{\emptyset}$ is continuous from $\emptyset$ to $Y$ with respect to $T_E$ and $U$ by assumption.
    Therefore $U$ is a topology on $Y$ by \cref{continuous}.
    Show that for all $V$ such that $V$ is open in $Y$ with respect to $U$ we have
        $\preimg{f}{V}$ is open in $X$ with respect to $T$.
    \begin{subproof}
        Fix $V$ such that $V$ is open in $Y$ with respect to $U$.
        Let $A = \preimg{f}{V}$.
        Show that for all $C$ if
            $C$ is a compact subspace of $X$ with respect to $T$
        then $A\inter C$ is open in $C$ with respect to $\subspaceTopology{T}{C}$.
        \begin{subproof}
            Fix $C$ such that $C$ is a compact subspace of $X$ with respect to $T$.
            Let $g = \restrl{f}{C}$.
            Hence $g$ is continuous from $C$ to $Y$ with respect to $\subspaceTopology{T}{C}$ and $U$ by assumption.
            Therefore $\preimg{g}{V}$ is open in $C$ with respect to $\subspaceTopology{T}{C}$ by \cref{continuous}.
            Thus $\preimg{g}{V} = A\inter C$
                by \cref{preimg_iff,restrl_iff,inter,inter_intro,subseteq,subseteq_antisymmetric}.
            Hence $A\inter C$ is open in $C$ with respect to $\subspaceTopology{T}{C}$ by \cref{pair_eq_iff}.
        \end{subproof}
        Therefore $\preimg{f}{V}$ is open in $X$ with respect to $T$
            by \cref{preimg_subseteq_dom,funs,subseteq,compactly_generated_space,pair_eq_iff}.
    \end{subproof}
    Hence $f$ is continuous from $X$ to $Y$ with respect to $T$ and $U$ by \cref{funs,continuous}.
\end{proof}
Theorem 126
continuous_function_space_closed_compact_convergence

Assume $X$ is compactly generated with respect to $T$.
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}$.
Assume $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
Then $C$ is closed in $\funs{X}{Y}$ with respect to $T_0$.

LaTeX source
\begin{theorem}
\label{continuous_function_space_closed_compact_convergence}
    Assume $X$ is compactly generated with respect to $T$.
    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}$.
    Assume $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
    Then $C$ is closed in $\funs{X}{Y}$ with respect to $T_0$.
\end{theorem}
Proof

Let $F = \funs{X}{Y}$.
Let $U = \metricTopology{d}{Y}$.
We have $T$ is a topology on $X$ by Definition 371.
Therefore $T_0$ is a topology on $F$ by Definition 369.
$U$ is a topology on $Y$ by Definition 115, Definition 182, Lemma 76, Lemma 194.
$C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} F$ by Definition 1, Definition 345.

Claim: For all $h$ if $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{C}{F}{T_0}$ then $h\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.

Fix $h$ such that $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{C}{F}{T_0}$.
Hence $h\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Definition 1, Definition 151.

Claim: For all $K$ if $K$ is a compact subspace of $X$ with respect to $T$ then $\restrl{h}{K}$ is continuous from $K$ to $Y$ with respect to $\subspaceTopology{T}{K}$ and $U$.

Fix $K$ such that $K$ is a compact subspace of $X$ with respect to $T$.
Let $T_K = \subspaceTopology{T}{K}$.
Hence $K\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 263.
Therefore $T_K$ is a topology on $K$ by Lemma 131.
Let $g = \restrl{h}{K}$.
Hence $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{K}{Y}$ by Lemma 862.

Case. $K = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
Claim: For all $V$ such that $V$ is open in $Y$ with respect to $U$ we have $\preimg{g}{V}$ is open in $K$ with respect to $T_K$.

Therefore $g$ is continuous from $K$ to $Y$ with respect to $T_K$ and $U$ by Definition 55, Definition 160.

Case. $K \class{latex-symbol-tip latex-symbol-id-neq}{\neq} \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.

Take $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $K$ to $Y$ with respect to $d$ by Lemma 869, Proposition 10.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $\funs{K}{Y}$ by Definition 344.
Let $D = \{u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{K}{Y} \mid \text{$u$ is continuous from $K$ to $Y$ with respect to $T_K$ and $U$}\}$.
Therefore $D$ is closed in $\funs{K}{Y}$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{K}{Y}}$ by Definition 345, Theorem 111.

Claim: For all $W$ such that $W$ is open in $\funs{K}{Y}$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{K}{Y}}$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ we have $W$ intersects $D$.

Fix $W$ such that $W$ is open in $\funs{K}{Y}$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{K}{Y}}$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} W$.
Hence $W\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\funs{K}{Y}$ by Axiom 12, Definition 1, Definition 101, Definition 103.
Take $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ and $\metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{K}{Y}}{g}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}} \class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} W$ by Lemma 195.
Let $A = \{u\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{h}{K},\restrl{u}{K})) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\}$.
Hence $A$ is the compact-convergence ball about $h$ over $K$ with radius $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ from $X$ to $Y$ with respect to $T$ and $d$ by Definition 367.
Therefore $A$ intersects $C$ by Lemma 865, Lemma 866, Theorem 11.
Take $u$ such that $u\class{latex-symbol-tip latex-symbol-id-in}{\in} A\inter C$ by Definition 152, Proposition 10.
Hence $\restrl{u}{K}\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Definition 5, Definition 147, Definition 263, Definition 345, Lemma 166, Lemma 862.
We have $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{h}{K},\restrl{u}{K})) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 1, Definition 5.
Hence $\restrl{u}{K}\class{latex-symbol-tip latex-symbol-id-in}{\in} W\inter D$ by Definition 1, Definition 180, Proposition 61.
Therefore $W$ intersects $D$ by Axiom 2, Definition 152.

$\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{K}{Y}}$ is a topology on $\funs{K}{Y}$ by Definition 115, Definition 182, Lemma 76, Lemma 194.
Therefore $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{D}{\funs{K}{Y}}{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{K}{Y}}}$ by Definition 1, Definition 345, Theorem 11.
Thus $D = \closure{D}{\funs{K}{Y}}{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{K}{Y}}}$ by Definition 1, Definition 345, Lemma 149.
We have $g\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Definition 1.
Therefore $g$ is continuous from $K$ to $Y$ with respect to $T_K$ and $U$ by Definition 345.

LaTeX source
\begin{byCase}
            \caseOf{$K = \emptyset$.}
                Show that for all $V$ such that $V$ is open in $Y$ with respect to $U$ we have
                    $\preimg{g}{V}$ is open in $K$ with respect to $T_K$.
                \begin{subproof}
                    Follows by \cref{preimg_subseteq_dom,funs,subseteq,pair_eq_iff,emptyset_subseteq,subseteq_antisymmetric,topology_on,open_in}.
                \end{subproof}
                Therefore $g$ is continuous from $K$ to $Y$ with respect to $T_K$ and $U$ by \cref{funs,continuous}.
            \caseOf{$K \neq \emptyset$.}
                Take $\rho$ such that
                    $\rho$ is the uniform metric on functions from $K$ to $Y$ with respect to $d$
                    by \cref{nonempty_inhabited,uniform_metric_on_function_space_exists_inhabited}.
                Hence $\rho$ is a metric on $\funs{K}{Y}$ by \cref{uniform_metric_on_function_space}.
                Let $D = \{u\in\funs{K}{Y} \mid \text{$u$ is continuous from $K$ to $Y$ with respect to $T_K$ and $U$}\}$.
                Therefore $D$ is closed in $\funs{K}{Y}$ with respect to $\metricTopology{\rho}{\funs{K}{Y}}$
                    by \cref{continuous_function_set,continuous_function_space_closed_uniform}.
                Show that for all $W$ such that
                    $W$ is open in $\funs{K}{Y}$ with respect to $\metricTopology{\rho}{\funs{K}{Y}}$ and
                    $g\in W$
                we have $W$ intersects $D$.
                \begin{subproof}
                    Fix $W$ such that
                        $W$ is open in $\funs{K}{Y}$ with respect to $\metricTopology{\rho}{\funs{K}{Y}}$ and
                        $g\in W$.
                    Hence $W\subseteq\funs{K}{Y}$ by \cref{open_in,topology_on,subseteq,pow_iff}.
                    Take $\epsilon\in\reals$ such that
                        $0 < \epsilon$ and
                        $\metricBall{\rho}{\funs{K}{Y}}{g}{\epsilon} \subseteq W$
                        by \cref{metric_open_iff}.
                    Let $A = \{u\in F \mid \rho((\restrl{h}{K},\restrl{u}{K})) < \epsilon\}$.
                    Hence $A$ is the compact-convergence ball about $h$ over $K$ with radius $\epsilon$
                        from $X$ to $Y$ with respect to $T$ and $d$ by \cref{compact_convergence_ball}.
                    Therefore $A$ intersects $C$
                        by \cref{compact_convergence_ball_open,compact_convergence_ball_center,closure_iff_intersects_open}.
                    Take $u$ such that $u\in A\inter C$ by \cref{intersects,nonempty_inhabited}.
                    Hence $\restrl{u}{K}\in D$
                        by \cref{inter,continuous_function_set,compact_subspace,subspace_of,continuous_restrict_domain,restrl_typed_function}.
                    We have $\rho((\restrl{h}{K},\restrl{u}{K})) < \epsilon$ by \cref{inter,subseteq}.
                    Hence $\restrl{u}{K}\in W\inter D$ by \cref{inter_intro,metric_ball,subseteq}.
                    Therefore $W$ intersects $D$ by \cref{intersects,emptyset}.
                \end{subproof}
                $\metricTopology{\rho}{\funs{K}{Y}}$ is a topology on $\funs{K}{Y}$
                    by \cref{metric_basis_is_basis,basis_topology_is_topology,metric_topology,basis_for_topology}.
                Therefore $g\in\closure{D}{\funs{K}{Y}}{\metricTopology{\rho}{\funs{K}{Y}}}$ by
                    \cref{continuous_function_set,subseteq,closure_iff_intersects_open}.
                Thus $D = \closure{D}{\funs{K}{Y}}{\metricTopology{\rho}{\funs{K}{Y}}}$
                    by \cref{continuous_function_set,subseteq,closed_eq_closure}.
                We have $g\in D$ by \cref{subseteq}.
                Therefore $g$ is continuous from $K$ to $Y$ with respect to $T_K$ and $U$
                    by \cref{continuous_function_set}.
            
\end{byCase}

Hence $h$ is continuous from $X$ to $Y$ with respect to $T$ and $U$ by Lemma 874.
Therefore $h\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Definition 345.

Hence $\closure{C}{F}{T_0}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Definition 1.
Therefore $C$ is closed in $F$ with respect to $T_0$ by Definition 1, Lemma 144, Lemma 146, Proposition 3.

LaTeX source
\begin{proof}
    Let $F = \funs{X}{Y}$.
    Let $U = \metricTopology{d}{Y}$.
    We have $T$ is a topology on $X$ by \cref{compactly_generated_space}.
    Therefore $T_0$ is a topology on $F$ by \cref{compact_convergence_topology}.
    $U$ is a topology on $Y$ by \cref{metric_basis_is_basis,basis_topology_is_topology,metric_topology,basis_for_topology}.
    $C\subseteq F$ by \cref{continuous_function_set,subseteq}.
    Show that for all $h$ if $h\in\closure{C}{F}{T_0}$ then $h\in C$.
    \begin{subproof}
        Fix $h$ such that $h\in\closure{C}{F}{T_0}$.
        Hence $h\in F$ by \cref{closure,subseteq}.
        Show that for all $K$ if
            $K$ is a compact subspace of $X$ with respect to $T$
        then $\restrl{h}{K}$ is continuous from $K$ to $Y$ with respect to $\subspaceTopology{T}{K}$ and $U$.
        \begin{subproof}
            Fix $K$ such that $K$ is a compact subspace of $X$ with respect to $T$.
            Let $T_K = \subspaceTopology{T}{K}$.
            Hence $K\subseteq X$ by \cref{compact_subspace}.
            Therefore $T_K$ is a topology on $K$ by \cref{subspace_topology_is_topology}.
            Let $g = \restrl{h}{K}$.
            Hence $g\in\funs{K}{Y}$ by \cref{restrl_typed_function}.
            \begin{byCase}
            \caseOf{$K = \emptyset$.}
                Show that for all $V$ such that $V$ is open in $Y$ with respect to $U$ we have
                    $\preimg{g}{V}$ is open in $K$ with respect to $T_K$.
                \begin{subproof}
                    Follows by \cref{preimg_subseteq_dom,funs,subseteq,pair_eq_iff,emptyset_subseteq,subseteq_antisymmetric,topology_on,open_in}.
                \end{subproof}
                Therefore $g$ is continuous from $K$ to $Y$ with respect to $T_K$ and $U$ by \cref{funs,continuous}.
            \caseOf{$K \neq \emptyset$.}
                Take $\rho$ such that
                    $\rho$ is the uniform metric on functions from $K$ to $Y$ with respect to $d$
                    by \cref{nonempty_inhabited,uniform_metric_on_function_space_exists_inhabited}.
                Hence $\rho$ is a metric on $\funs{K}{Y}$ by \cref{uniform_metric_on_function_space}.
                Let $D = \{u\in\funs{K}{Y} \mid \text{$u$ is continuous from $K$ to $Y$ with respect to $T_K$ and $U$}\}$.
                Therefore $D$ is closed in $\funs{K}{Y}$ with respect to $\metricTopology{\rho}{\funs{K}{Y}}$
                    by \cref{continuous_function_set,continuous_function_space_closed_uniform}.
                Show that for all $W$ such that
                    $W$ is open in $\funs{K}{Y}$ with respect to $\metricTopology{\rho}{\funs{K}{Y}}$ and
                    $g\in W$
                we have $W$ intersects $D$.
                \begin{subproof}
                    Fix $W$ such that
                        $W$ is open in $\funs{K}{Y}$ with respect to $\metricTopology{\rho}{\funs{K}{Y}}$ and
                        $g\in W$.
                    Hence $W\subseteq\funs{K}{Y}$ by \cref{open_in,topology_on,subseteq,pow_iff}.
                    Take $\epsilon\in\reals$ such that
                        $0 < \epsilon$ and
                        $\metricBall{\rho}{\funs{K}{Y}}{g}{\epsilon} \subseteq W$
                        by \cref{metric_open_iff}.
                    Let $A = \{u\in F \mid \rho((\restrl{h}{K},\restrl{u}{K})) < \epsilon\}$.
                    Hence $A$ is the compact-convergence ball about $h$ over $K$ with radius $\epsilon$
                        from $X$ to $Y$ with respect to $T$ and $d$ by \cref{compact_convergence_ball}.
                    Therefore $A$ intersects $C$
                        by \cref{compact_convergence_ball_open,compact_convergence_ball_center,closure_iff_intersects_open}.
                    Take $u$ such that $u\in A\inter C$ by \cref{intersects,nonempty_inhabited}.
                    Hence $\restrl{u}{K}\in D$
                        by \cref{inter,continuous_function_set,compact_subspace,subspace_of,continuous_restrict_domain,restrl_typed_function}.
                    We have $\rho((\restrl{h}{K},\restrl{u}{K})) < \epsilon$ by \cref{inter,subseteq}.
                    Hence $\restrl{u}{K}\in W\inter D$ by \cref{inter_intro,metric_ball,subseteq}.
                    Therefore $W$ intersects $D$ by \cref{intersects,emptyset}.
                \end{subproof}
                $\metricTopology{\rho}{\funs{K}{Y}}$ is a topology on $\funs{K}{Y}$
                    by \cref{metric_basis_is_basis,basis_topology_is_topology,metric_topology,basis_for_topology}.
                Therefore $g\in\closure{D}{\funs{K}{Y}}{\metricTopology{\rho}{\funs{K}{Y}}}$ by
                    \cref{continuous_function_set,subseteq,closure_iff_intersects_open}.
                Thus $D = \closure{D}{\funs{K}{Y}}{\metricTopology{\rho}{\funs{K}{Y}}}$
                    by \cref{continuous_function_set,subseteq,closed_eq_closure}.
                We have $g\in D$ by \cref{subseteq}.
                Therefore $g$ is continuous from $K$ to $Y$ with respect to $T_K$ and $U$
                    by \cref{continuous_function_set}.
            \end{byCase}
        \end{subproof}
        Hence $h$ is continuous from $X$ to $Y$ with respect to $T$ and $U$
            by \cref{compactly_generated_continuity_from_compact_subspaces}.
        Therefore $h\in C$ by \cref{continuous_function_set}.
    \end{subproof}
    Hence $\closure{C}{F}{T_0}\subseteq C$ by \cref{subseteq}.
    Therefore $C$ is closed in $F$ with respect to $T_0$ by
        \cref{subseteq,subseteq_closure,subseteq_antisymmetric,closure_closed_in}.
\end{proof}
Corollary 20
compact_convergence_limit_continuous

Assume $X$ is compactly generated with respect to $T$.
Assume $d$ is a metric on $Y$.
Assume $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
Assume $s$ is a sequence in $\funs{X}{Y}$.
Assume $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$.
Suppose for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $s(n)$ is continuous from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Suppose $s$ converges to $f$ in $\funs{X}{Y}$ with respect to $T_0$.
Then $f$ is continuous from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.

LaTeX source
\begin{corollary}
\label{compact_convergence_limit_continuous}
    Assume $X$ is compactly generated with respect to $T$.
    Assume $d$ is a metric on $Y$.
    Assume $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
    Assume $s$ is a sequence in $\funs{X}{Y}$.
    Assume $f\in\funs{X}{Y}$.
    Suppose for all $n\in\naturalsPlus$ we have
        $s(n)$ is continuous from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
    Suppose $s$ converges to $f$ in $\funs{X}{Y}$ with respect to $T_0$.
    Then $f$ is continuous from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
\end{corollary}
Proof

Let $F = \funs{X}{Y}$.
Let $C = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \text{$g$ is continuous from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$}\}$.
Hence $C$ is closed in $F$ with respect to $T_0$ by Definition 345, Theorem 126.
Therefore $T_0$ is a topology on $F$ by Definition 369.
We have $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} F$ by Definition 1, Definition 345.
$s$ is a function and $\dom{s} = \naturalsPlus$ by Definition 55, Definition 158, Proposition 356.

Claim: For all $n$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{s}$ we have $s(n)\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.

Hence $s$ is a sequence in $C$ by Definition 158, Proposition 345, Proposition 358.
Therefore $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\closure{C}{F}{T_0}$ by Lemma 272.
Hence $f$ is continuous from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$ by Definition 1, Definition 345, Lemma 149.

LaTeX source
\begin{proof}
    Let $F = \funs{X}{Y}$.
    Let $C = \{g\in F \mid \text{$g$ is continuous from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$}\}$.
    Hence $C$ is closed in $F$ with respect to $T_0$
        by \cref{continuous_function_set,continuous_function_space_closed_compact_convergence}.
    Therefore $T_0$ is a topology on $F$ by \cref{compact_convergence_topology}.
    We have $C\subseteq F$ by \cref{continuous_function_set,subseteq}.
    $s$ is a function and $\dom{s} = \naturalsPlus$ by \cref{sequence_in,funs_is_function,funs}.
    Show that for all $n$ such that $n\in\dom{s}$ we have $s(n)\in C$.
    \begin{subproof}
        Follows by \cref{sequence_in,funs,subseteq,continuous_function_set,funs_type_apply}.
    \end{subproof}
    Hence $s$ is a sequence in $C$ by \cref{function_rightunique,funs_intro,sequence_in}.
    Therefore $f\in\closure{C}{F}{T_0}$ by \cref{sequence_implies_closure}.
    Hence $f$ is continuous from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$
        by \cref{closed_eq_closure,subseteq,continuous_function_set}.
\end{proof}
Theorem 127
uniform_topology_finer_than_compact_convergence

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 $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
Then $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{X}{Y}}$ is finer than $T_0$ on $\funs{X}{Y}$.

LaTeX source
\begin{theorem}
\label{uniform_topology_finer_than_compact_convergence}
    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 $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
    Then $\metricTopology{\rho}{\funs{X}{Y}}$ is finer than $T_0$ on $\funs{X}{Y}$.
\end{theorem}
Proof

Let $F = \funs{X}{Y}$.
Take $B$ such that $B$ is the compact-convergence basis on functions from $X$ to $Y$ with respect to $T$ and $d$ and $T_0 = \basisTopology{B}{F}$ by Definition 369.

Claim: For all $h,A$ such that $h\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $A\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ there exists $M\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBasis{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ such that $h\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ and $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$.

Fix $h$.
Fix $A$ such that $h\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $A\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Take $f, C, \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $A$ is the compact-convergence ball about $f$ over $C$ with radius $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ from $X$ to $Y$ with respect to $T$ and $d$ by Definition 368.
Take $D,\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ such that $\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 $D$ is the compact-convergence ball about $h$ over $C$ with radius $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ from $X$ to $Y$ with respect to $T$ and $d$ and $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Lemma 864.
Take $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ such that $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ and $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} < 1$ and $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 867.
Let $M = \metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}{h}{\class{latex-symbol-tip latex-symbol-id-eta}{\eta}}$.
Take $\sigma$ such that $\sigma$ is the uniform metric on functions from $C$ to $Y$ with respect to $d$ and $D = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \sigma((\restrl{h}{C},\restrl{g}{C})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\}$ by Definition 367.

Claim: For all $g$ if $g\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ then $g\class{latex-symbol-tip latex-symbol-id-in}{\in} D$.

Fix $g$ such that $g\class{latex-symbol-tip latex-symbol-id-in}{\in} M$.
Hence $g\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((h,g)) < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Definition 180.
Therefore $\restrl{h}{C}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C}{Y}$ and $\restrl{g}{C}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C}{Y}$ by Definition 1, Definition 263, Definition 367, Lemma 862.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $\apply{\boundedMetric{d}}{(\apply{\restrl{h}{C}}{x}, \apply{\restrl{g}{C}}{x})} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Axiom 6, Axiom 36, Axiom 41, Axiom 42, Definition 1, Definition 179, Definition 263, Definition 367, Lemma 82, Lemma 204, Lemma 231, Lemma 831, Proposition 115, Proposition 355, Proposition 356, Proposition 359, Proposition 361, Proposition 384.
Hence $\sigma((\restrl{h}{C},\restrl{g}{C})) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Lemma 677.
We have $\sigma((\restrl{h}{C},\restrl{g}{C}))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Definition 344, Proposition 115, Proposition 361.
$\sigma((\restrl{h}{C},\restrl{g}{C})) < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ or $\sigma((\restrl{h}{C},\restrl{g}{C})) = \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Lemma 81.
Hence $\sigma((\restrl{h}{C},\restrl{g}{C})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 36, Lemma 82.
Therefore $g\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Definition 1.

Hence $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} D$ by Definition 1.
Therefore $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Proposition 6.
Thus $M\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBasis{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ by Definition 1, Definition 180, Definition 181, Proposition 155.
Therefore $h\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ by Definition 176, Definition 179, Definition 180, Definition 344, Lemma 82, Proposition 115.
Follows by definition.

Claim: For all $U$ if $U$ is open in $F$ with respect to $T_0$ then $U$ is open in $F$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$.

Fix $U$ such that $U$ is open in $F$ with respect to $T_0$.
We have $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} F$ by Axiom 12, Definition 1, Definition 103, Definition 114.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $F$ by Definition 344.
Therefore $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ is a topology on $F$ by Definition 115, Definition 182, Lemma 76, Lemma 194.

Claim: For all $h\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ there exists $M$ such that $M$ is a neighborhood of $h$ in $F$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ and $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.

Fix $h\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Hence $h\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Definition 1.
Take $A\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 103, Definition 114.
Take $M\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBasis{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ such that $h\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ and $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by assumption.
Therefore $M$ is a neighborhood of $h$ in $F$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ and $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 103, Definition 153, Definition 182, Lemma 77, Lemma 194, Proposition 6.
Follows by definition.

Therefore $U$ is open in $F$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ by Lemma 870.

We have $T_0$ is a topology on $F$ by Definition 369.
Therefore $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ is a topology on $F$ by Definition 115, Definition 182, Definition 344, Lemma 76, Lemma 194.
$T_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ by Definition 1, Definition 103.
Hence $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ is finer than $T_0$ on $F$ by Definition 108.

LaTeX source
\begin{proof}
    Let $F = \funs{X}{Y}$.
    Take $B$ such that
        $B$ is the compact-convergence basis on functions from $X$ to $Y$ with respect to $T$ and $d$ and
        $T_0 = \basisTopology{B}{F}$ by \cref{compact_convergence_topology}.
    Show that for all $h,A$ such that $h\in F$ and $A\in B$ and $h\in A$
        there exists $M\in\metricBasis{\rho}{F}$ such that $h\in M$ and $M\subseteq A$.
    \begin{subproof}
        Fix $h$.
        Fix $A$ such that $h\in F$ and $A\in B$ and $h\in A$.
        Take $f, C, \epsilon$ such that
            $A$ is the compact-convergence ball about $f$ over $C$ with radius $\epsilon$
                from $X$ to $Y$ with respect to $T$ and $d$
                by \cref{compact_convergence_function_space_basis}.
        Take $D,\delta$ such that
            $\delta\in\reals$ and
            $0 < \delta$ and
            $D$ is the compact-convergence ball about $h$ over $C$ with radius $\delta$
                from $X$ to $Y$ with respect to $T$ and $d$ and
            $D\subseteq A$ by \cref{compact_convergence_ball_refinement}.
        Take $\eta$ such that
            $\eta\in\reals$ and
            $0 < \eta$ and
            $\eta < 1$ and
            $\eta < \delta$ by \cref{positive_real_has_smaller_positive_below_one}.
        Let $M = \metricBall{\rho}{F}{h}{\eta}$.
        Take $\sigma$ such that
            $\sigma$ is the uniform metric on functions from $C$ to $Y$ with respect to $d$ and
            $D = \{g\in F \mid \sigma((\restrl{h}{C},\restrl{g}{C})) < \delta\}$ by \cref{compact_convergence_ball}.
        Show that for all $g$ if $g\in M$ then $g\in D$.
        \begin{subproof}
            Fix $g$ such that $g\in M$.
            Hence $g\in F$ and $\rho((h,g)) < \eta$ by \cref{metric_ball}.
            Therefore $\restrl{h}{C}\in\funs{C}{Y}$ and $\restrl{g}{C}\in\funs{C}{Y}$
                by \cref{compact_convergence_ball,compact_subspace,subseteq,restrl_typed_function}.
            For all $x\in C$ we have $\apply{\boundedMetric{d}}{(\apply{\restrl{h}{C}}{x}, \apply{\restrl{g}{C}}{x})} \leq \eta$ by \cref{compact_convergence_ball,compact_subspace,subseteq,uniform_metric_small_implies_pointwise_small,times_tuple_intro,funs_type_apply,metric_on,real_one_in_naturals,real_naturals_subset_reals,real_lt_trans,bounded_metric_apply_below_one,real_lt_subst_left,real_lt_imp_leq,restrl_of_function_apply,funs_is_function,funs_is_relation,funs_elim,pair_eq_iff}.
            Hence $\sigma((\restrl{h}{C},\restrl{g}{C})) \leq \eta$ by \cref{uniform_metric_leq_from_coordinate_bounds}.
            We have $\sigma((\restrl{h}{C},\restrl{g}{C}))\in\reals$
                by \cref{uniform_metric_on_function_space,metric_on,funs_type_apply,times_tuple_intro}.
            $\sigma((\restrl{h}{C},\restrl{g}{C})) < \eta$ or $\sigma((\restrl{h}{C},\restrl{g}{C})) = \eta$
                by \cref{real_leq_split}.
            Hence $\sigma((\restrl{h}{C},\restrl{g}{C})) < \delta$ by \cref{real_lt_trans,real_lt_subst_left}.
            Therefore $g\in D$ by \cref{subseteq}.
        \end{subproof}
        Hence $M\subseteq D$ by \cref{subseteq}.
        Therefore $M\subseteq A$ by \cref{subseteq_transitive}.
        Thus $M\in\metricBasis{\rho}{F}$ by \cref{metric_ball,subseteq,metric_basis,powerset_intro}.
        Therefore $h\in M$ by \cref{metric_ball,metric_on,uniform_metric_on_function_space,metric_zero_characterization,times_tuple_intro,real_lt_subst_left}.
        Follows by definition.
    \end{subproof}
    Show that for all $U$ if $U$ is open in $F$ with respect to $T_0$ then
        $U$ is open in $F$ with respect to $\metricTopology{\rho}{F}$.
    \begin{subproof}
        Fix $U$ such that $U$ is open in $F$ with respect to $T_0$.
        We have $U\subseteq F$ by \cref{open_in,topology_generated_by_basis,pow_iff,subseteq}.
        Hence $\rho$ is a metric on $F$ by \cref{uniform_metric_on_function_space}.
        Therefore $\metricTopology{\rho}{F}$ is a topology on $F$
            by \cref{metric_basis_is_basis,basis_topology_is_topology,metric_topology,basis_for_topology}.
        Show that for all $h\in U$ there exists $M$ such that
            $M$ is a neighborhood of $h$ in $F$ with respect to $\metricTopology{\rho}{F}$ and
            $M\subseteq U$.
        \begin{subproof}
            Fix $h\in U$.
            Hence $h\in F$ by \cref{subseteq}.
            Take $A\in B$ such that $h\in A$ and $A\subseteq U$
                by \cref{open_in,topology_generated_by_basis}.
            Take $M\in\metricBasis{\rho}{F}$ such that $h\in M$ and $M\subseteq A$ by assumption.
            Therefore $M$ is a neighborhood of $h$ in $F$ with respect to $\metricTopology{\rho}{F}$ and $M\subseteq U$
                by \cref{metric_basis_is_basis,basis_elem_open_in_generated,metric_topology,open_in,neighborhood,subseteq_transitive}.
            Follows by definition.
        \end{subproof}
        Therefore $U$ is open in $F$ with respect to $\metricTopology{\rho}{F}$ by \cref{open_from_local_neighborhoods}.
    \end{subproof}
    We have $T_0$ is a topology on $F$ by \cref{compact_convergence_topology}.
    Therefore $\metricTopology{\rho}{F}$ is a topology on $F$
        by \cref{uniform_metric_on_function_space,metric_basis_is_basis,basis_topology_is_topology,metric_topology,basis_for_topology}.
    $T_0\subseteq\metricTopology{\rho}{F}$ by \cref{open_in,subseteq}.
    Hence $\metricTopology{\rho}{F}$ is finer than $T_0$ on $F$ by \cref{finer_topology}.
\end{proof}
Lemma 875
singleton_compact_subspace

Assume $T$ is a topology on $X$.
Assume $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then $\{x\}$ is a compact subspace of $X$ with respect to $T$.

LaTeX source
\begin{lemma}
\label{singleton_compact_subspace}
    Assume $T$ is a topology on $X$.
    Assume $x\in X$.
    Then $\{x\}$ is a compact subspace of $X$ with respect to $T$.
\end{lemma}
Proof

We have $\{x\}$ is a subspace of $X$ with respect to $T$ by Definition 147, Proposition 25.

Claim: For all $A$ such that $A$ is a covering of $\{x\}$ and for all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $U$ is open in $X$ with respect to $T$ 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 a covering of $\{x\}$ and for all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $U$ is open in $X$ with respect to $T$.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{A}$ by Definition 1, Definition 245, Proposition 20.
Take $U\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Axiom 4.
Let $B = \{U\}$.
We have $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Proposition 25.
Therefore $B$ is finite by Lemma 40, Lemma 44, Proposition 16, Proposition 25.
Hence $B$ is a covering of $\{x\}$ by Axiom 4, Definition 245, Proposition 20, Proposition 25.

Hence $\{x\}$ is compact with respect to $\subspaceTopology{T}{\{x\}}$ by Lemma 355.
Therefore $\{x\}$ is a compact subspace of $X$ with respect to $T$ by Definition 263, Proposition 25.

LaTeX source
\begin{proof}
    We have $\{x\}$ is a subspace of $X$ with respect to $T$ by \cref{singleton_subset_intro,subspace_of}.
    Show that for all $A$ such that
        $A$ is a covering of $\{x\}$ and
        for all $U$ such that $U\in A$ we have $U$ is open in $X$ with respect to $T$
    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 a covering of $\{x\}$ and
            for all $U$ such that $U\in A$ we have $U$ is open in $X$ with respect to $T$.
        Hence $x\in\unions{A}$ by \cref{singleton_intro,covering,subseteq}.
        Take $U\in A$ such that $x\in U$ by \cref{unions_iff}.
        Let $B = \{U\}$.
        We have $B\subseteq A$ by \cref{singleton_subset_intro}.
        Therefore $B$ is finite by \cref{upair_intro_left,singleton_subset_intro,pair_is_finite,subseteq_finite_is_finite}.
        Hence $B$ is a covering of $\{x\}$ by \cref{singleton_intro,unions_iff,singleton_subset_intro,covering}.
    \end{subproof}
    Hence $\{x\}$ is compact with respect to $\subspaceTopology{T}{\{x\}}$
        by \cref{compact_subspace_open_covering_backward}.
    Therefore $\{x\}$ is a compact subspace of $X$ with respect to $T$ by \cref{compact_subspace,singleton_subset_intro}.
\end{proof}
Lemma 876
restrl_self_typed_function

Assume $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$.
Then $\restrl{f}{X} = f$.

LaTeX source
\begin{lemma}
\label{restrl_self_typed_function}
    Assume $f\in\funs{X}{Y}$.
    Then $\restrl{f}{X} = f$.
\end{lemma}
Proof

$\restrl{f}{X}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} f$ by Proposition 263.

Claim: For all $w$ if $w\class{latex-symbol-tip latex-symbol-id-in}{\in} f$ then $w\class{latex-symbol-tip latex-symbol-id-in}{\in}\restrl{f}{X}$.

Therefore $\restrl{f}{X} = f$ by Definition 1, Proposition 3.

LaTeX source
\begin{proof}
    $\restrl{f}{X}\subseteq f$ by \cref{restrl_subseteq}.
    Show that for all $w$ if $w\in f$ then $w\in\restrl{f}{X}$.
    \begin{subproof}
        Follows by \cref{funs_elim,relation,dom_intro,pair_eq_iff,restrl}.
    \end{subproof}
    Therefore $\restrl{f}{X} = f$ by \cref{subseteq,subseteq_antisymmetric}.
\end{proof}
Theorem 128
compact_convergence_finer_than_pointwise

Assume $T$ is a topology on $X$.
Assume $d$ is a metric on $Y$.
Let $U = \metricTopology{d}{Y}$.
Assume $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
Assume $T_1$ is the topology of pointwise convergence on functions from $X$ to $Y$ with respect to $U$.
Then $T_0$ is finer than $T_1$ on $\funs{X}{Y}$.

LaTeX source
\begin{theorem}
\label{compact_convergence_finer_than_pointwise}
    Assume $T$ is a topology on $X$.
    Assume $d$ is a metric on $Y$.
    Let $U = \metricTopology{d}{Y}$.
    Assume $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
    Assume $T_1$ is the topology of pointwise convergence on functions from $X$ to $Y$ with respect to $U$.
    Then $T_0$ is finer than $T_1$ on $\funs{X}{Y}$.
\end{theorem}
Proof

Let $F = \funs{X}{Y}$.
Take $B$ such that $B$ is the compact-convergence basis on functions from $X$ to $Y$ with respect to $T$ and $d$ and $T_0 = \basisTopology{B}{F}$ by Definition 369.
Take $S$ such that $S$ is the pointwise subbasis on functions from $X$ to $Y$ with respect to $U$ and $T_1 = \subbasisTopology{S}{F}$ by Definition 365.
We have $T_0$ is a topology on $F$ by Definition 369.
$T_1$ is a topology on $F$ by Definition 365.
We have $U$ is a topology on $Y$ by Definition 182, Lemma 76, Lemma 194.

Claim: For all $A$ if $A\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ then $A\class{latex-symbol-tip latex-symbol-id-in}{\in} T_0$.

Fix $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} S$.
Take $x,V$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $V\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $A$ is the point-open set at $x$ with value set $V$ from $X$ to $Y$ by Definition 364.
Hence $A = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \apply{g}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in} V\}$ by Definition 363.
Therefore $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} F$ by Definition 1, Definition 363.

Claim: For all $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ there exists $M$ such that $M$ is a neighborhood of $h$ in $F$ with respect to $T_0$ and $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$.

Fix $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Hence $h(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Proposition 30.
Take $\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}$ and $\metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ by Axiom 12, Definition 1, Definition 101, Definition 103, Lemma 195.
Take $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ such that $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ and $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} < 1$ and $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 867.
Hence $\{x\}$ is a compact subspace of $X$ with respect to $T$ by Lemma 875.
Take $\sigma$ such that $\sigma$ is the uniform metric on functions from $\{x\}$ to $Y$ with respect to $d$ by Axiom 2, Lemma 869, Proposition 10, Proposition 20.
Let $M = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \sigma((\restrl{h}{\{x\}},\restrl{g}{\{x\}})) < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}\}$.
Hence $M$ is the compact-convergence ball about $h$ over $\{x\}$ with radius $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ from $X$ to $Y$ with respect to $T$ and $d$ by Definition 367.
Therefore $M$ is a neighborhood of $h$ in $F$ with respect to $T_0$ by Definition 153, Lemma 865, Lemma 866.

Claim: For all $g$ if $g\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ then $g\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.

Fix $g$ such that $g\class{latex-symbol-tip latex-symbol-id-in}{\in} M$.
Hence $g\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $\sigma((\restrl{h}{\{x\}},\restrl{g}{\{x\}})) < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Definition 1.
Therefore $d((h(x),g(x))) < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Axiom 6, Definition 1, Lemma 831, Lemma 862, Proposition 20, Proposition 25, Proposition 355, Proposition 356, Proposition 359, Proposition 384.
Thus $d((h(x),g(x))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 36, Definition 179, Proposition 115, Proposition 361.
Therefore $g\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 1, Definition 180, Proposition 30, Proposition 115, Proposition 361.

Hence $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Definition 1.
Follows by definition.

Therefore $A\class{latex-symbol-tip latex-symbol-id-in}{\in} T_0$ by Definition 103, Lemma 870.

Hence $S\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_0$ by Definition 1.

Claim: For all $W$ if $W\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ then $W\class{latex-symbol-tip latex-symbol-id-in}{\in} T_0$.

Fix $W$ such that $W\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$.
Hence $W\class{latex-symbol-tip latex-symbol-id-in}{\in}\basisTopology{\finiteIntersections{S}}{F}$ by Definition 126.
Therefore $W\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} F$ by Axiom 12, Definition 1, Definition 101.

Claim: For all $h\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ there exists $M$ such that $M$ is a neighborhood of $h$ in $F$ with respect to $T_0$ and $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} W$.

Fix $h\class{latex-symbol-tip latex-symbol-id-in}{\in} W$.
Take $C\class{latex-symbol-tip latex-symbol-id-in}{\in}\finiteIntersections{S}$ such that $h\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ and $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} W$ by Definition 114.
Take $G$ such that $G\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} S$ and $G$ is finite and $G$ is inhabited and $C = \inters{G}$ by Definition 125.

Claim: $C$ is a neighborhood of $h$ in $F$ with respect to $T_0$.

Follows by definition.

Therefore $W\class{latex-symbol-tip latex-symbol-id-in}{\in} T_0$ by Definition 103, Lemma 870.

Hence $T_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_0$ by Definition 1.
Therefore $T_0$ is finer than $T_1$ on $F$ by Definition 108.

LaTeX source
\begin{proof}
    Let $F = \funs{X}{Y}$.
    Take $B$ such that
        $B$ is the compact-convergence basis on functions from $X$ to $Y$ with respect to $T$ and $d$ and
        $T_0 = \basisTopology{B}{F}$ by \cref{compact_convergence_topology}.
    Take $S$ such that
        $S$ is the pointwise subbasis on functions from $X$ to $Y$ with respect to $U$ and
        $T_1 = \subbasisTopology{S}{F}$ by \cref{pointwise_convergence_topology}.
    We have $T_0$ is a topology on $F$ by \cref{compact_convergence_topology}.
    $T_1$ is a topology on $F$ by \cref{pointwise_convergence_topology}.
    We have $U$ is a topology on $Y$ by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology}.
    Show that for all $A$ if $A\in S$ then $A\in T_0$.
    \begin{subproof}
        Fix $A$ such that $A\in S$.
        Take $x,V$ such that
            $x\in X$ and
            $V\in U$ and
            $A$ is the point-open set at $x$ with value set $V$ from $X$ to $Y$
            by \cref{pointwise_function_space_subbasis}.
        Hence $A = \{g\in F \mid \apply{g}{x}\in V\}$ by \cref{point_open_set}.
        Therefore $A\subseteq F$ by \cref{point_open_set,subseteq}.
        Show that for all $h\in A$ there exists $M$ such that
            $M$ is a neighborhood of $h$ in $F$ with respect to $T_0$ and
            $M\subseteq A$.
        \begin{subproof}
            Fix $h\in A$.
            Hence $h(x)\in V$ by \cref{inters_iff_forall}.
            Take $\epsilon$ such that
                $\epsilon\in\reals$ and
                $0 < \epsilon$ and
                $\metricBall{d}{Y}{h(x)}{\epsilon}\subseteq V$ by \cref{open_in,topology_on,subseteq,pow_iff,metric_open_iff}.
            Take $\eta$ such that
                $\eta\in\reals$ and
                $0 < \eta$ and
                $\eta < 1$ and
                $\eta < \epsilon$ by \cref{positive_real_has_smaller_positive_below_one}.
            Hence $\{x\}$ is a compact subspace of $X$ with respect to $T$ by \cref{singleton_compact_subspace}.
            Take $\sigma$ such that
                $\sigma$ is the uniform metric on functions from $\{x\}$ to $Y$ with respect to $d$
                by \cref{singleton_intro,emptyset,nonempty_inhabited,uniform_metric_on_function_space_exists_inhabited}.
            Let $M = \{g\in F \mid \sigma((\restrl{h}{\{x\}},\restrl{g}{\{x\}})) < \eta\}$.
            Hence $M$ is the compact-convergence ball about $h$ over $\{x\}$ with radius $\eta$
                from $X$ to $Y$ with respect to $T$ and $d$ by \cref{compact_convergence_ball}.
            Therefore $M$ is a neighborhood of $h$ in $F$ with respect to $T_0$
                by \cref{compact_convergence_ball_open,compact_convergence_ball_center,neighborhood}.
            Show that for all $g$ if $g\in M$ then $g\in A$.
            \begin{subproof}
                Fix $g$ such that $g\in M$.
                Hence $g\in F$ and $\sigma((\restrl{h}{\{x\}},\restrl{g}{\{x\}})) < \eta$ by \cref{subseteq}.
                Therefore $d((h(x),g(x))) < \eta$
                    by \cref{subseteq,restrl_typed_function,singleton_intro,uniform_metric_small_implies_pointwise_small,restrl_of_function_apply,funs_is_function,funs_is_relation,funs_elim,singleton_subset_intro,pair_eq_iff}.
                Thus $d((h(x),g(x))) < \epsilon$ by \cref{metric_on,funs_type_apply,times_tuple_intro,real_lt_trans}.
                Therefore $g\in A$ by \cref{metric_ball,times_tuple_intro,funs_type_apply,subseteq,inters_iff_forall}.
            \end{subproof}
            Hence $M\subseteq A$ by \cref{subseteq}.
            Follows by definition.
        \end{subproof}
        Therefore $A\in T_0$ by \cref{open_from_local_neighborhoods,open_in}.
    \end{subproof}
    Hence $S\subseteq T_0$ by \cref{subseteq}.
    Show that for all $W$ if $W\in T_1$ then $W\in T_0$.
    \begin{subproof}
        Fix $W$ such that $W\in T_1$.
        Hence $W\in\basisTopology{\finiteIntersections{S}}{F}$ by \cref{topology_generated_by_subbasis}.
        Therefore $W\subseteq F$ by \cref{topology_on,subseteq,pow_iff}.
        Show that for all $h\in W$ there exists $M$ such that
            $M$ is a neighborhood of $h$ in $F$ with respect to $T_0$ and
            $M\subseteq W$.
        \begin{subproof}
            Fix $h\in W$.
            Take $C\in\finiteIntersections{S}$ such that $h\in C$ and $C\subseteq W$
                by \cref{topology_generated_by_basis}.
            Take $G$ such that
                $G\subseteq S$ and
                $G$ is finite and
                $G$ is inhabited and
                $C = \inters{G}$ by \cref{finite_intersections}.
            Show that $C$ is a neighborhood of $h$ in $F$ with respect to $T_0$.
            \begin{subproof}
                Follows by \cref{subseteq_transitive,inters_iff_forall,pair_eq_iff,finite_neighborhood_intersection}.
            \end{subproof}
            Follows by definition.
        \end{subproof}
        Therefore $W\in T_0$ by \cref{open_from_local_neighborhoods,open_in}.
    \end{subproof}
    Hence $T_1\subseteq T_0$ by \cref{subseteq}.
    Therefore $T_0$ is finer than $T_1$ on $F$ by \cref{finer_topology}.
\end{proof}
Theorem 129
compact_space_uniform_equals_compact_convergence

Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
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 $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
Then $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{X}{Y}} = T_0$.

LaTeX source
\begin{theorem}
\label{compact_space_uniform_equals_compact_convergence}
    Assume $T$ is a topology on $X$.
    Assume $X$ is compact with respect to $T$.
    Assume $d$ is a metric on $Y$.
    Assume $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
    Assume $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
    Then $\metricTopology{\rho}{\funs{X}{Y}} = T_0$.
\end{theorem}
Proof

Let $F = \funs{X}{Y}$.
Let $T_1 = \metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$.
We have $T_1$ is finer than $T_0$ on $F$ by Theorem 127.
Hence $T_0$ is a topology on $F$ by Definition 369.
Therefore $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is a metric on $F$ by Definition 344.
Hence $T_1$ is a topology on $F$ by Definition 182, Lemma 76, Lemma 194.
Let $T_X = \subspaceTopology{T}{X}$.
Hence $T_X = T$ by Definition 1, Definition 101, Definition 146, Proposition 3, Proposition 70, Proposition 156.
Therefore $X$ is a compact subspace of $X$ with respect to $T$ by Definition 263, Proposition 2.

Claim: For all $U$ if $U$ is open in $F$ with respect to $T_1$ then $U$ is open in $F$ with respect to $T_0$.

Fix $U$ such that $U$ is open in $F$ with respect to $T_1$.
Hence $U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} F$ by Axiom 12, Definition 1, Definition 101, Definition 103.

Claim: For all $h\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ there exists $A$ such that $A$ is a neighborhood of $h$ in $F$ with respect to $T_0$ and $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.

Fix $h\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Hence $h\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Definition 1.
Take $\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}$ and $\metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}{h}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Lemma 195.
Let $A = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{h}{X},\restrl{g}{X})) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\}$.
Hence $A$ is the compact-convergence ball about $h$ over $X$ with radius $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ from $X$ to $Y$ with respect to $T$ and $d$ by Definition 367.
Therefore $A$ is a neighborhood of $h$ in $F$ with respect to $T_0$ by Definition 153, Lemma 865, Lemma 866.

Claim: $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.

Follows by definition.

Therefore $U$ is open in $F$ with respect to $T_0$ by Lemma 870.

Hence $T_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_0$ by Definition 1, Definition 103.
Thus $T_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_1$ by Definition 108.
Therefore $T_1 = T_0$ by Proposition 3.

LaTeX source
\begin{proof}
    Let $F = \funs{X}{Y}$.
    Let $T_1 = \metricTopology{\rho}{F}$.
    We have $T_1$ is finer than $T_0$ on $F$ by \cref{uniform_topology_finer_than_compact_convergence}.
    Hence $T_0$ is a topology on $F$ by \cref{compact_convergence_topology}.
    Therefore $\rho$ is a metric on $F$ by \cref{uniform_metric_on_function_space}.
    Hence $T_1$ is a topology on $F$ by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology}.
    Let $T_X = \subspaceTopology{T}{X}$.
    Hence $T_X = T$ by \cref{topology_on,powerset_elim,subseteq,inter_absorb_supseteq_left,subspace_topology,subseteq_antisymmetric}.
    Therefore $X$ is a compact subspace of $X$ with respect to $T$ by \cref{subseteq_refl,compact_subspace}.
    Show that for all $U$ if $U$ is open in $F$ with respect to $T_1$ then
        $U$ is open in $F$ with respect to $T_0$.
    \begin{subproof}
        Fix $U$ such that $U$ is open in $F$ with respect to $T_1$.
        Hence $U\subseteq F$ by \cref{open_in,topology_on,subseteq,pow_iff}.
        Show that for all $h\in U$ there exists $A$ such that
            $A$ is a neighborhood of $h$ in $F$ with respect to $T_0$ and
            $A\subseteq U$.
        \begin{subproof}
            Fix $h\in U$.
            Hence $h\in F$ by \cref{subseteq}.
            Take $\epsilon$ such that
                $\epsilon\in\reals$ and
                $0 < \epsilon$ and
                $\metricBall{\rho}{F}{h}{\epsilon}\subseteq U$ by \cref{metric_open_iff}.
            Let $A = \{g\in F \mid \rho((\restrl{h}{X},\restrl{g}{X})) < \epsilon\}$.
            Hence $A$ is the compact-convergence ball about $h$ over $X$ with radius $\epsilon$
                from $X$ to $Y$ with respect to $T$ and $d$ by \cref{compact_convergence_ball}.
            Therefore $A$ is a neighborhood of $h$ in $F$ with respect to $T_0$
                by \cref{compact_convergence_ball_open,compact_convergence_ball_center,neighborhood}.
            Show that $A\subseteq U$.
            \begin{subproof}
                Follows by \cref{subseteq,restrl_self_typed_function,real_lt_subst_left,real_lt_subst_right,metric_ball}.
            \end{subproof}
            Follows by definition.
        \end{subproof}
        Therefore $U$ is open in $F$ with respect to $T_0$ by \cref{open_from_local_neighborhoods}.
    \end{subproof}
    Hence $T_1\subseteq T_0$ by \cref{open_in,subseteq}.
    Thus $T_0\subseteq T_1$ by \cref{finer_topology}.
    Therefore $T_1 = T_0$ by \cref{subseteq_antisymmetric}.
\end{proof}
Lemma 877
compact_subspace_of_discrete_is_finite

Assume $T = \discrete{X}$.
Assume $C$ is a compact subspace of $X$ with respect to $T$.
Then $C$ is finite.

LaTeX source
\begin{lemma}
\label{compact_subspace_of_discrete_is_finite}
    Assume $T = \discrete{X}$.
    Assume $C$ is a compact subspace of $X$ with respect to $T$.
    Then $C$ is finite.
\end{lemma}
Proof

Let $d = \discreteMetric{X}$.
We have $d$ is a metric on $X$ by Lemma 196.
Therefore $T = \metricTopology{d}{X}$ by Axiom 6, Lemma 197.
Hence $T$ is a topology on $X$ by Axiom 6, Definition 182, Lemma 76, Lemma 194.
We have $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 263.
Let $S = \{\{x\} \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} C\}$.
Hence $S$ is a covering of $C$ by Axiom 4, Definition 1, Definition 12, Definition 245, Proposition 20.
For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ we have $U$ is open in $X$ with respect to $T$ by Axiom 6, Definition 1, Definition 12, Definition 103, Definition 104, Proposition 25, Proposition 155.
Let $T_C = \subspaceTopology{T}{C}$.
Hence $C$ is a subspace of $X$ with respect to $T$ by Definition 147, Definition 263.
Therefore $C$ is compact with respect to $T_C$ by Definition 263.
Take $B$ such that $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} S$ and $B$ is finite and $B$ is a covering of $C$ by Lemma 356.

Claim: For all $U$ such that $U\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ we have $U$ is finite.

Hence $\unions{B}$ is finite by Lemma 360.
We have $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\unions{B}$ by Definition 245.
Therefore $C$ is finite by Lemma 44.

LaTeX source
\begin{proof}
    Let $d = \discreteMetric{X}$.
    We have $d$ is a metric on $X$ by \cref{discrete_metric_is_metric}.
    Therefore $T = \metricTopology{d}{X}$ by \cref{discrete_metric_topology,pair_eq_iff}.
    Hence $T$ is a topology on $X$ by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology,pair_eq_iff}.
    We have $C\subseteq X$ by \cref{compact_subspace}.
    Let $S = \{\{x\} \mid x\in C\}$.
    Hence $S$ is a covering of $C$ by \cref{relation,singleton_intro,unions_iff,subseteq,covering}.
    For all $U$ such that $U\in S$ we have $U$ is open in $X$ with respect to $T$
        by \cref{relation,singleton_subset_intro,subseteq,powerset_intro,discrete_topology,pair_eq_iff,open_in}.
    Let $T_C = \subspaceTopology{T}{C}$.
    Hence $C$ is a subspace of $X$ with respect to $T$ by \cref{subspace_of,compact_subspace}.
    Therefore $C$ is compact with respect to $T_C$ by \cref{compact_subspace}.
    Take $B$ such that $B\subseteq S$ and $B$ is finite and $B$ is a covering of $C$
        by \cref{compact_subspace_open_covering}.
    Show that for all $U$ such that $U\in B$ we have $U$ is finite.
    \begin{subproof}
        Follows by \cref{subseteq,relation,upair_intro_left,singleton_subset_intro,pair_eq_iff,pair_is_finite,subseteq_finite_is_finite}.
    \end{subproof}
    Hence $\unions{B}$ is finite by \cref{finite_union_of_finite_family}.
    We have $C\subseteq\unions{B}$ by \cref{covering}.
    Therefore $C$ is finite by \cref{subseteq_finite_is_finite}.
\end{proof}
Definition 372
point_open_metric_neighborhood_set

$E$ is the point-open metric neighborhood set at $x$ around $h$ with radius $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ from $X$ to $Y$ with respect to $d$ iff $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $d$ is a metric on $Y$ and $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ and $E$ is the point-open set at $x$ with value set $\metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-eta}{\eta}}$ from $X$ to $Y$.

LaTeX source
\begin{definition}
\label{point_open_metric_neighborhood_set}
    $E$ is the point-open metric neighborhood set at $x$ around $h$ with radius $\eta$ from $X$ to $Y$ with respect to $d$ iff
        $h\in\funs{X}{Y}$ and
        $x\in X$ and
        $d$ is a metric on $Y$ and
        $\eta\in\reals$ and
        $0 < \eta$ and
        $E$ is the point-open set at $x$ with value set $\metricBall{d}{Y}{h(x)}{\eta}$ from $X$ to $Y$.
\end{definition}
Lemma 878
pointwise_subbasis_is_subbasis_inhabited_domain

Assume $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Assume $d$ is a metric on $Y$.
Let $U = \metricTopology{d}{Y}$.
Assume $S$ is the pointwise subbasis on functions from $X$ to $Y$ with respect to $U$.
Then $S$ is a subbasis on $\funs{X}{Y}$.

LaTeX source
\begin{lemma}
\label{pointwise_subbasis_is_subbasis_inhabited_domain}
    Assume $x_0\in X$.
    Assume $d$ is a metric on $Y$.
    Let $U = \metricTopology{d}{Y}$.
    Assume $S$ is the pointwise subbasis on functions from $X$ to $Y$ with respect to $U$.
    Then $S$ is a subbasis on $\funs{X}{Y}$.
\end{lemma}
Proof

Let $F = \funs{X}{Y}$.
$S\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\pow{F}$ by Definition 1, Definition 364.
Let $E = \{u\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \apply{u}{x_0}\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\}$.
Hence $E\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Definition 101, Definition 103, Definition 182, Lemma 76, Lemma 194, Lemma 859.
$F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\unions{S}$ by Axiom 4, Definition 1, Proposition 361.
Therefore $\unions{S} = F$ by Axiom 12, Definition 1, Proposition 3, Proposition 159.
Therefore $S$ is a subbasis on $F$ by Definition 124.

LaTeX source
\begin{proof}
    Let $F = \funs{X}{Y}$.
    $S\subseteq\pow{F}$ by \cref{pointwise_function_space_subbasis,subseteq}.
    Let $E = \{u\in F \mid \apply{u}{x_0}\in Y\}$.
    Hence $E\in S$ by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology,open_in,topology_on,pointwise_subbasis_contains_point_open_set}.
    $F\subseteq\unions{S}$ by \cref{funs_type_apply,subseteq,unions_iff}.
    Therefore $\unions{S} = F$ by \cref{subseteq,pow_iff,unions_subseteq_of_powerset_is_subseteq,subseteq_antisymmetric}.
    Therefore $S$ is a subbasis on $F$ by \cref{subbasis_on}.
\end{proof}
Lemma 879
finite_point_open_metric_neighborhoods_open

Assume $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.
Assume $C$ is finite.
Assume $C$ is inhabited.
Assume $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$.
Assume $d$ is a metric on $Y$.
Let $U = \metricTopology{d}{Y}$.
Assume $S$ is the pointwise subbasis on functions from $X$ to $Y$ with respect to $U$.
Assume $S$ is a subbasis on $\funs{X}{Y}$.
Assume $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Assume $0 < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$.
Then there exists $M$ such that $M$ is open in $\funs{X}{Y}$ with respect to $\subbasisTopology{S}{\funs{X}{Y}}$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ and for all $g$ if $g\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ then $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $g(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-eta}{\eta}}$.

LaTeX source
\begin{lemma}
\label{finite_point_open_metric_neighborhoods_open}
    Assume $C\subseteq X$.
    Assume $C$ is finite.
    Assume $C$ is inhabited.
    Assume $h\in\funs{X}{Y}$.
    Assume $d$ is a metric on $Y$.
    Let $U = \metricTopology{d}{Y}$.
    Assume $S$ is the pointwise subbasis on functions from $X$ to $Y$ with respect to $U$.
    Assume $S$ is a subbasis on $\funs{X}{Y}$.
    Assume $\eta\in\reals$.
    Assume $0 < \eta$.
    Then there exists $M$ such that
        $M$ is open in $\funs{X}{Y}$ with respect to $\subbasisTopology{S}{\funs{X}{Y}}$ and
        $h\in M$ and
        for all $g$ if $g\in M$ then
            $g\in\funs{X}{Y}$ and
            for all $x\in C$ we have $g(x)\in\metricBall{d}{Y}{h(x)}{\eta}$.
\end{lemma}
Proof

Let $F = \funs{X}{Y}$.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} C\class{latex-symbol-tip latex-symbol-id-times}{\times}\pow{F} \mid \text{$\snd{w}$ is the point-open metric neighborhood set at $\fst{w}$ around $h$ with radius $\eta$ from $X$ to $Y$ with respect to $d$}\}$.
Hence $R$ is a relation by Definition 12, Proposition 121.

Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ there exists $A$ such that $x\mathrel{R} A$.

Fix $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1.
Let $A = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \apply{g}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-eta}{\eta}}\}$.
Hence $A$ is the point-open set at $x$ with value set $\metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-eta}{\eta}}$ from $X$ to $Y$ by Definition 1, Definition 180, Definition 363.
Therefore $A$ is the point-open metric neighborhood set at $x$ around $h$ with radius $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ from $X$ to $Y$ with respect to $d$ by Definition 372.
Thus $(x,A)\class{latex-symbol-tip latex-symbol-id-in}{\in} C\class{latex-symbol-tip latex-symbol-id-times}{\times}\pow{F}$ by Axiom 12, Definition 1, Definition 363, Definition 372, Proposition 115.
Therefore $(x,A)\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Axiom 10, Axiom 11.

Take $e$ such that $e$ is a function on $C$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $x\mathrel{R}\apply{e}{x}$ by Axiom 54.
Let $G = \img{e}{C}$.
Hence $G$ is finite by Lemma 192.
Take $x_0$ such that $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by assumption.
Therefore $G$ is inhabited by Axiom 2, Proposition 10, Proposition 235, Proposition 348.
We have $U$ is a topology on $Y$ by Definition 182, Lemma 76, Lemma 194.

Claim: For all $A$ if $A\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ then $A\class{latex-symbol-tip latex-symbol-id-in}{\in} S$.

Fix $A$.
Assume $A\class{latex-symbol-tip latex-symbol-id-in}{\in} G$.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ such that $e(x) = A$ by Proposition 235, Proposition 346.
Hence $x\mathrel{R} A$ by Axiom 6, Axiom 54.
Therefore $A$ is the point-open metric neighborhood set at $x$ around $h$ with radius $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ from $X$ to $Y$ with respect to $d$ by Axiom 10, Axiom 11.
Thus $\metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-eta}{\eta}}\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 1, Definition 1, Definition 180, Definition 181, Definition 182, Lemma 77, Lemma 194, Proposition 155, Proposition 361.
Therefore $A\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Definition 363, Definition 372, Lemma 859.

Hence $G\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} S$ by Definition 1.
Let $M = \inters{G}$.

Claim: For all $g$ if $g\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ then $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{S}$.

Therefore $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\unions{S}$ by Definition 1.

Claim: $M$ is open in $F$ with respect to $\subbasisTopology{S}{F}$.
Claim: For all $A\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ we have $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.

Fix $A\class{latex-symbol-tip latex-symbol-id-in}{\in} G$.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ such that $e(x) = A$ by Proposition 235, Proposition 346.
Hence $x\mathrel{R} A$ by Axiom 6, Axiom 54.
Therefore $A$ is the point-open metric neighborhood set at $x$ around $h$ with radius $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ from $X$ to $Y$ with respect to $d$ by Axiom 10, Axiom 11.
We have $h(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 1, Proposition 361.
Therefore $d((h(x),h(x))) = 0$ by Definition 176, Definition 179, Proposition 115, Proposition 361.
Hence $d((h(x),h(x))) < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Axiom 17, Lemma 82.
Therefore $h(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-eta}{\eta}}$ by Definition 180.
Therefore $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 363, Definition 372.

Hence $h\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ by Proposition 30.

Claim: For all $g$ if $g\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ then $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $g(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-eta}{\eta}}$.

Follows by definition.

LaTeX source
\begin{proof}
    Let $F = \funs{X}{Y}$.
    Let $R = \{w\in C\times\pow{F} \mid \text{$\snd{w}$ is the point-open metric neighborhood set
        at $\fst{w}$ around $h$ with radius $\eta$ from $X$ to $Y$ with respect to $d$}\}$.
    Hence $R$ is a relation by \cref{times_elem_is_tuple,relation}.
    Show that for all $x\in C$ there exists $A$ such that $x\mathrel{R} A$.
    \begin{subproof}
        Fix $x\in C$.
        We have $x\in X$ by \cref{subseteq}.
        Let $A = \{g\in F \mid \apply{g}{x}\in\metricBall{d}{Y}{h(x)}{\eta}\}$.
        Hence $A$ is the point-open set at $x$ with value set $\metricBall{d}{Y}{h(x)}{\eta}$ from $X$ to $Y$
            by \cref{metric_ball,subseteq,point_open_set}.
        Therefore $A$ is the point-open metric neighborhood set at $x$ around $h$ with radius $\eta$
            from $X$ to $Y$ with respect to $d$ by \cref{point_open_metric_neighborhood_set}.
        Thus $(x,A)\in C\times\pow{F}$
            by \cref{subseteq,point_open_set,point_open_metric_neighborhood_set,pow_iff,times_tuple_intro}.
        Therefore $(x,A)\in R$ by \cref{fst_eq,snd_eq}.
    \end{subproof}
    Take $e$ such that $e$ is a function on $C$ and for all $x\in C$ we have $x\mathrel{R}\apply{e}{x}$
        by \cref{axiom_of_choice}.
    Let $G = \img{e}{C}$.
    Hence $G$ is finite by \cref{finite_image_function}.
    Take $x_0$ such that $x_0\in C$ by assumption.
    Therefore $G$ is inhabited by \cref{function_apply_elim,img_iff,emptyset,nonempty_inhabited}.
    We have $U$ is a topology on $Y$ by \cref{metric_topology,metric_basis_is_basis,basis_topology_is_topology}.
    Show that for all $A$ if $A\in G$ then $A\in S$.
    \begin{subproof}
        Fix $A$.
        Assume $A\in G$.
        Take $x\in C$ such that $e(x) = A$ by \cref{img_iff,function_apply_intro}.
        Hence $x\mathrel{R} A$ by \cref{axiom_of_choice,pair_eq_iff}.
        Therefore $A$ is the point-open metric neighborhood set at $x$ around $h$ with radius $\eta$
            from $X$ to $Y$ with respect to $d$ by \cref{fst_eq,snd_eq}.
        Thus $\metricBall{d}{Y}{h(x)}{\eta}\in U$ by
            \cref{subseteq,funs_type_apply,metric_ball,subseteq,powerset_intro,metric_basis,metric_basis_is_basis,basis_elem_open_in_generated,metric_topology}.
        Therefore $A\in S$ by \cref{point_open_metric_neighborhood_set,pointwise_subbasis_contains_point_open_set,point_open_set}.
    \end{subproof}
    Hence $G\subseteq S$ by \cref{subseteq}.
    Let $M = \inters{G}$.
    Show that for all $g$ if $g\in M$ then $g\in\unions{S}$.
    \begin{subproof}
        Follows by \cref{inters_iff_forall,subseteq,function_apply_elim,img_iff,unions_iff}.
    \end{subproof}
    Therefore $M\subseteq\unions{S}$ by \cref{subseteq}.
    Show that $M$ is open in $F$ with respect to $\subbasisTopology{S}{F}$.
    \begin{subproof}
        Follows by
            \cref{powerset_intro,finite_intersections,subbasis_finite_intersections_basis,basis_elem_open_in_generated,topology_generated_by_subbasis,basis_for_topology,basis_topology_is_topology,open_in}.
    \end{subproof}
    Show that for all $A\in G$ we have $h\in A$.
    \begin{subproof}
        Fix $A\in G$.
        Take $x\in C$ such that $e(x) = A$ by \cref{img_iff,function_apply_intro}.
        Hence $x\mathrel{R} A$ by \cref{axiom_of_choice,pair_eq_iff}.
        Therefore $A$ is the point-open metric neighborhood set at $x$ around $h$ with radius $\eta$
            from $X$ to $Y$ with respect to $d$ by \cref{fst_eq,snd_eq}.
        We have $h(x)\in Y$ by \cref{subseteq,funs_type_apply}.
        Therefore $d((h(x),h(x))) = 0$ by \cref{metric_on,metric_zero_characterization,times_tuple_intro,funs_type_apply}.
        Hence $d((h(x),h(x))) < \eta$ by \cref{real_add_ident,real_lt_subst_left}.
        Therefore $h(x)\in\metricBall{d}{Y}{h(x)}{\eta}$ by \cref{metric_ball}.
        Therefore $h\in A$ by \cref{point_open_metric_neighborhood_set,point_open_set}.
    \end{subproof}
    Hence $h\in M$ by \cref{inters_iff_forall}.
    Show that for all $g$ if $g\in M$ then
        $g\in\funs{X}{Y}$ and
        for all $x\in C$ we have $g(x)\in\metricBall{d}{Y}{h(x)}{\eta}$.
    \begin{subproof}
        Follows by \cref{function_apply_elim,img_iff,inters_iff_forall,axiom_of_choice,fst_eq,snd_eq,point_open_metric_neighborhood_set,point_open_set}.
    \end{subproof}
    Follows by definition.
\end{proof}
Lemma 880
compact_convergence_ball_over_empty_is_whole_space

Assume $A$ is the compact-convergence ball about $f$ over $\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ with radius $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ from $X$ to $Y$ with respect to $T$ and $d$.
Then $A = \funs{X}{Y}$.

LaTeX source
\begin{lemma}
\label{compact_convergence_ball_over_empty_is_whole_space}
    Assume $A$ is the compact-convergence ball about $f$ over $\emptyset$ with radius $\epsilon$
        from $X$ to $Y$ with respect to $T$ and $d$.
    Then $A = \funs{X}{Y}$.
\end{lemma}
Proof

Let $F = \funs{X}{Y}$.
Take $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ to $Y$ with respect to $d$ and $A = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{f}{\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}},\restrl{g}{\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}})) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\}$ by Definition 367.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} F$ by Definition 1.

Claim: For all $g$ if $g\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ then $g\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.

Hence $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Definition 1.
Therefore $A = F$ by Proposition 3.

LaTeX source
\begin{proof}
    Let $F = \funs{X}{Y}$.
    Take $\rho$ such that
        $\rho$ is the uniform metric on functions from $\emptyset$ to $Y$ with respect to $d$ and
        $A = \{g\in F \mid \rho((\restrl{f}{\emptyset},\restrl{g}{\emptyset})) < \epsilon\}$ by \cref{compact_convergence_ball}.
    $A\subseteq F$ by \cref{subseteq}.
    Show that for all $g$ if $g\in F$ then $g\in A$.
    \begin{subproof}
        Follows by \cref{compact_convergence_ball,restrl_typed_function,emptyset_subseteq,functions_eq_iff,emptyset,uniform_metric_on_function_space,metric_on,metric_zero_characterization,times_tuple_intro,real_add_ident,real_lt_subst_left,subseteq}.
    \end{subproof}
    Hence $F\subseteq A$ by \cref{subseteq}.
    Therefore $A = F$ by \cref{subseteq_antisymmetric}.
\end{proof}
Theorem 130
discrete_space_compact_convergence_equals_pointwise

Assume $T = \discrete{X}$.
Assume $d$ is a metric on $Y$.
Let $U = \metricTopology{d}{Y}$.
Assume $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
Assume $T_1$ is the topology of pointwise convergence on functions from $X$ to $Y$ with respect to $U$.
Then $T_0 = T_1$.

LaTeX source
\begin{theorem}
\label{discrete_space_compact_convergence_equals_pointwise}
    Assume $T = \discrete{X}$.
    Assume $d$ is a metric on $Y$.
    Let $U = \metricTopology{d}{Y}$.
    Assume $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
    Assume $T_1$ is the topology of pointwise convergence on functions from $X$ to $Y$ with respect to $U$.
    Then $T_0 = T_1$.
\end{theorem}
Proof

Let $F = \funs{X}{Y}$.
Take $B$ such that $B$ is the compact-convergence basis on functions from $X$ to $Y$ with respect to $T$ and $d$ and $T_0 = \basisTopology{B}{F}$ by Definition 369.
Take $S$ such that $S$ is the pointwise subbasis on functions from $X$ to $Y$ with respect to $U$ and $T_1 = \subbasisTopology{S}{F}$ by Definition 365.
We have $T = \pow{X}$ by Definition 104.
Therefore $T\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\pow{X}$ by Proposition 2.
$\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ and $X\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 104, Proposition 157, Proposition 158.
Hence $T$ is closed under arbitrary unions by Definition 104, Proposition 6, Corollary 2.
Therefore $T$ is closed under binary intersections by Definition 1, Definition 104, Proposition 160.
Hence $T$ is a topology on $X$ by Definition 101.
Therefore $T_0$ is finer than $T_1$ on $F$ by Theorem 128.
We have $T_0$ is a topology on $F$ by Definition 369.
$T_1$ is a topology on $F$ by Definition 365.

Claim: For all $A\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ we have $A$ is open in $F$ with respect to $T_0$.
Claim: For all $W,h$ such that $W\class{latex-symbol-tip latex-symbol-id-in}{\in} T_0$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ there exists $A\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} W$.

Follows by Definition 114.

Hence $B$ is a basis for $T_0$ on $F$ by Lemma 79.

Claim: For all $A$ if $A\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ then $A\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$.

Fix $A$.
Assume $A\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Take $f, C, \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $A$ is the compact-convergence ball about $f$ over $C$ with radius $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ from $X$ to $Y$ with respect to $T$ and $d$ by Definition 368.
Hence $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} F$ by Definition 1, Definition 367.

Case. $C = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.

Hence $A = F$ by Lemma 880.
Therefore $A\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ by Axiom 6, Definition 101, Definition 103.

Case. $C\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.

We have $C$ is a compact subspace of $X$ with respect to $T$ by Definition 367.
Therefore $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 1, Definition 263.
Hence $C$ is finite by Lemma 877.
Hence $C$ is inhabited by Proposition 10.
Take $x_0$ such that $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by assumption.
Thus $S$ is a subbasis on $F$ by Definition 1, Lemma 878.

Claim: For all $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ there exists $M$ such that $M$ is a neighborhood of $h$ in $F$ with respect to $T_1$ and $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$.

Fix $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Hence $h\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Definition 1.
Take $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}, D$ such that $\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 $D$ is the compact-convergence ball about $h$ over $C$ with radius $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ from $X$ to $Y$ with respect to $T$ and $d$ and $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Lemma 864.
Take $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ such that $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ and $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} < 1$ and $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 867.
Take $M$ such that $M$ is open in $F$ with respect to $\subbasisTopology{S}{F}$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ and for all $g$ if $g\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ then $g\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $g(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-eta}{\eta}}$ by Lemma 879.
Hence $M$ is open in $F$ with respect to $T_1$ by Axiom 6.
Take $\sigma$ such that $\sigma$ is the uniform metric on functions from $C$ to $Y$ with respect to $d$ and $D = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \sigma((\restrl{h}{C},\restrl{g}{C})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\}$ by Definition 367.

Claim: For all $g$ if $g\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ then $g\class{latex-symbol-tip latex-symbol-id-in}{\in} D$.

Fix $g$.
Assume $g\class{latex-symbol-tip latex-symbol-id-in}{\in} M$.
Hence $g\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $g(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-eta}{\eta}}$ by Definition 1.
Therefore $\restrl{h}{C}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C}{Y}$ and $\restrl{g}{C}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C}{Y}$ by Definition 1, Definition 263, Lemma 862.

Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $\apply{\boundedMetric{d}}{(\apply{\restrl{h}{C}}{x}, \apply{\restrl{g}{C}}{x})} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$.

Hence $\sigma((\restrl{h}{C},\restrl{g}{C})) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Lemma 677.
Therefore $\sigma((\restrl{h}{C},\restrl{g}{C})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 36, Definition 179, Definition 344, Lemma 81, Lemma 82, Proposition 115, Proposition 361.
Hence $g\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Definition 1.

Hence $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} D$ by Definition 1.
Therefore $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Proposition 6.
Hence $M$ is a neighborhood of $h$ in $F$ with respect to $T_1$ by Definition 153.
Follows by definition.

Therefore $A\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ by Definition 103, Lemma 870.

LaTeX source
\begin{byCase}
        \caseOf{$C = \emptyset$.}
            Hence $A = F$ by \cref{compact_convergence_ball_over_empty_is_whole_space}.
            Therefore $A\in T_1$ by \cref{open_in,topology_on,pair_eq_iff}.
        \caseOf{$C\neq\emptyset$.}
                We have $C$ is a compact subspace of $X$ with respect to $T$ by \cref{compact_convergence_ball}.
                Therefore $C\subseteq X$ by \cref{compact_subspace,subseteq}.
                Hence $C$ is finite by \cref{compact_subspace_of_discrete_is_finite}.
                Hence $C$ is inhabited by \cref{nonempty_inhabited}.
                Take $x_0$ such that $x_0\in C$ by assumption.
                Thus $S$ is a subbasis on $F$ by \cref{subseteq,pointwise_subbasis_is_subbasis_inhabited_domain}.
                Show that for all $h\in A$ there exists $M$ such that
                    $M$ is a neighborhood of $h$ in $F$ with respect to $T_1$ and
                    $M\subseteq A$.
                \begin{subproof}
                    Fix $h\in A$.
                    Hence $h\in F$ by \cref{subseteq}.
                    Take $\delta, D$ such that
                        $\delta\in\reals$ and
                        $0 < \delta$ and
                        $D$ is the compact-convergence ball about $h$ over $C$ with radius $\delta$
                            from $X$ to $Y$ with respect to $T$ and $d$ and
                        $D\subseteq A$ by \cref{compact_convergence_ball_refinement}.
                    Take $\eta$ such that
                        $\eta\in\reals$ and
                        $0 < \eta$ and
                        $\eta < 1$ and
                        $\eta < \delta$ by \cref{positive_real_has_smaller_positive_below_one}.
                    Take $M$ such that
                        $M$ is open in $F$ with respect to $\subbasisTopology{S}{F}$ and
                        $h\in M$ and
                        for all $g$ if $g\in M$ then
                            $g\in F$ and
                            for all $x\in C$ we have $g(x)\in\metricBall{d}{Y}{h(x)}{\eta}$
                        by \cref{finite_point_open_metric_neighborhoods_open}.
                    Hence $M$ is open in $F$ with respect to $T_1$ by \cref{pair_eq_iff}.
                    Take $\sigma$ such that
                        $\sigma$ is the uniform metric on functions from $C$ to $Y$ with respect to $d$ and
                        $D = \{g\in F \mid \sigma((\restrl{h}{C},\restrl{g}{C})) < \delta\}$ by \cref{compact_convergence_ball}.
                    Show that for all $g$ if $g\in M$ then $g\in D$.
                    \begin{subproof}
                        Fix $g$.
                        Assume $g\in M$.
                        Hence $g\in F$ and for all $x\in C$ we have $g(x)\in\metricBall{d}{Y}{h(x)}{\eta}$ by \cref{subseteq}.
                        Therefore $\restrl{h}{C}\in\funs{C}{Y}$ and $\restrl{g}{C}\in\funs{C}{Y}$
                            by \cref{restrl_typed_function,compact_subspace,subseteq}.
                        Show that for all $x\in C$ we have $\apply{\boundedMetric{d}}{(\apply{\restrl{h}{C}}{x}, \apply{\restrl{g}{C}}{x})} \leq \eta$.
                        \begin{subproof}
                            Follows by \cref{subseteq,metric_ball,funs_type_apply,times_tuple_intro,metric_on,real_one_in_naturals,real_naturals_subset_reals,real_lt_trans,bounded_metric_apply_below_one,real_lt_subst_left,real_lt_imp_leq,restrl_of_function_apply,compact_subspace,funs_is_function,funs_is_relation,funs_elim,pair_eq_iff}.
                        \end{subproof}
                        Hence $\sigma((\restrl{h}{C},\restrl{g}{C})) \leq \eta$ by \cref{uniform_metric_leq_from_coordinate_bounds}.
                        Therefore $\sigma((\restrl{h}{C},\restrl{g}{C})) < \delta$
                            by \cref{uniform_metric_on_function_space,metric_on,funs_type_apply,times_tuple_intro,real_leq_split,real_lt_trans,real_lt_subst_left}.
                        Hence $g\in D$ by \cref{subseteq}.
                    \end{subproof}
                    Hence $M\subseteq D$ by \cref{subseteq}.
                    Therefore $M\subseteq A$ by \cref{subseteq_transitive}.
                    Hence $M$ is a neighborhood of $h$ in $F$ with respect to $T_1$ by \cref{neighborhood}.
                    Follows by definition.
                \end{subproof}
            Therefore $A\in T_1$ by \cref{open_from_local_neighborhoods,open_in}.
        
\end{byCase}

Hence $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_1$ by Definition 1.

Claim: For all $W$ if $W\class{latex-symbol-tip latex-symbol-id-in}{\in} T_0$ then $W\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$.

Therefore $T_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_1$ by Definition 1.
Thus $T_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_0$ by Definition 108.
Therefore $T_0 = T_1$ by Proposition 3.

LaTeX source
\begin{proof}
    Let $F = \funs{X}{Y}$.
    Take $B$ such that
        $B$ is the compact-convergence basis on functions from $X$ to $Y$ with respect to $T$ and $d$ and
        $T_0 = \basisTopology{B}{F}$ by \cref{compact_convergence_topology}.
    Take $S$ such that
        $S$ is the pointwise subbasis on functions from $X$ to $Y$ with respect to $U$ and
        $T_1 = \subbasisTopology{S}{F}$ by \cref{pointwise_convergence_topology}.
    We have $T = \pow{X}$ by \cref{discrete_topology}.
    Therefore $T\subseteq\pow{X}$ by \cref{subseteq_refl}.
    $\emptyset\in T$ and $X\in T$ by \cref{discrete_topology,powerset_bottom,powerset_top}.
    Hence $T$ is closed under arbitrary unions by \cref{subseteq_transitive,powerset_closed_unions,discrete_topology}.
    Therefore $T$ is closed under binary intersections by \cref{discrete_topology,subseteq,inter_powerset}.
    Hence $T$ is a topology on $X$ by \cref{topology_on}.
    Therefore $T_0$ is finer than $T_1$ on $F$ by \cref{compact_convergence_finer_than_pointwise}.
    We have $T_0$ is a topology on $F$ by \cref{compact_convergence_topology}.
    $T_1$ is a topology on $F$ by \cref{pointwise_convergence_topology}.
    Show that for all $A\in B$ we have $A$ is open in $F$ with respect to $T_0$.
    \begin{subproof}
        Follows by \cref{compact_convergence_function_space_basis,compact_convergence_ball_open}.
    \end{subproof}
    Show that for all $W,h$ such that $W\in T_0$ and $h\in W$ there exists $A\in B$ such that $h\in A$ and $A\subseteq W$.
    \begin{subproof}
        Follows by \cref{topology_generated_by_basis}.
    \end{subproof}
    Hence $B$ is a basis for $T_0$ on $F$ by \cref{open_collection_basis}.
    Show that for all $A$ if $A\in B$ then $A\in T_1$.
    \begin{subproof}
        Fix $A$.
        Assume $A\in B$.
        Take $f, C, \epsilon$ such that
            $A$ is the compact-convergence ball about $f$ over $C$ with radius $\epsilon$
                from $X$ to $Y$ with respect to $T$ and $d$ by \cref{compact_convergence_function_space_basis}.
        Hence $A\subseteq F$ by \cref{compact_convergence_ball,subseteq}.
        \begin{byCase}
        \caseOf{$C = \emptyset$.}
            Hence $A = F$ by \cref{compact_convergence_ball_over_empty_is_whole_space}.
            Therefore $A\in T_1$ by \cref{open_in,topology_on,pair_eq_iff}.
        \caseOf{$C\neq\emptyset$.}
                We have $C$ is a compact subspace of $X$ with respect to $T$ by \cref{compact_convergence_ball}.
                Therefore $C\subseteq X$ by \cref{compact_subspace,subseteq}.
                Hence $C$ is finite by \cref{compact_subspace_of_discrete_is_finite}.
                Hence $C$ is inhabited by \cref{nonempty_inhabited}.
                Take $x_0$ such that $x_0\in C$ by assumption.
                Thus $S$ is a subbasis on $F$ by \cref{subseteq,pointwise_subbasis_is_subbasis_inhabited_domain}.
                Show that for all $h\in A$ there exists $M$ such that
                    $M$ is a neighborhood of $h$ in $F$ with respect to $T_1$ and
                    $M\subseteq A$.
                \begin{subproof}
                    Fix $h\in A$.
                    Hence $h\in F$ by \cref{subseteq}.
                    Take $\delta, D$ such that
                        $\delta\in\reals$ and
                        $0 < \delta$ and
                        $D$ is the compact-convergence ball about $h$ over $C$ with radius $\delta$
                            from $X$ to $Y$ with respect to $T$ and $d$ and
                        $D\subseteq A$ by \cref{compact_convergence_ball_refinement}.
                    Take $\eta$ such that
                        $\eta\in\reals$ and
                        $0 < \eta$ and
                        $\eta < 1$ and
                        $\eta < \delta$ by \cref{positive_real_has_smaller_positive_below_one}.
                    Take $M$ such that
                        $M$ is open in $F$ with respect to $\subbasisTopology{S}{F}$ and
                        $h\in M$ and
                        for all $g$ if $g\in M$ then
                            $g\in F$ and
                            for all $x\in C$ we have $g(x)\in\metricBall{d}{Y}{h(x)}{\eta}$
                        by \cref{finite_point_open_metric_neighborhoods_open}.
                    Hence $M$ is open in $F$ with respect to $T_1$ by \cref{pair_eq_iff}.
                    Take $\sigma$ such that
                        $\sigma$ is the uniform metric on functions from $C$ to $Y$ with respect to $d$ and
                        $D = \{g\in F \mid \sigma((\restrl{h}{C},\restrl{g}{C})) < \delta\}$ by \cref{compact_convergence_ball}.
                    Show that for all $g$ if $g\in M$ then $g\in D$.
                    \begin{subproof}
                        Fix $g$.
                        Assume $g\in M$.
                        Hence $g\in F$ and for all $x\in C$ we have $g(x)\in\metricBall{d}{Y}{h(x)}{\eta}$ by \cref{subseteq}.
                        Therefore $\restrl{h}{C}\in\funs{C}{Y}$ and $\restrl{g}{C}\in\funs{C}{Y}$
                            by \cref{restrl_typed_function,compact_subspace,subseteq}.
                        Show that for all $x\in C$ we have $\apply{\boundedMetric{d}}{(\apply{\restrl{h}{C}}{x}, \apply{\restrl{g}{C}}{x})} \leq \eta$.
                        \begin{subproof}
                            Follows by \cref{subseteq,metric_ball,funs_type_apply,times_tuple_intro,metric_on,real_one_in_naturals,real_naturals_subset_reals,real_lt_trans,bounded_metric_apply_below_one,real_lt_subst_left,real_lt_imp_leq,restrl_of_function_apply,compact_subspace,funs_is_function,funs_is_relation,funs_elim,pair_eq_iff}.
                        \end{subproof}
                        Hence $\sigma((\restrl{h}{C},\restrl{g}{C})) \leq \eta$ by \cref{uniform_metric_leq_from_coordinate_bounds}.
                        Therefore $\sigma((\restrl{h}{C},\restrl{g}{C})) < \delta$
                            by \cref{uniform_metric_on_function_space,metric_on,funs_type_apply,times_tuple_intro,real_leq_split,real_lt_trans,real_lt_subst_left}.
                        Hence $g\in D$ by \cref{subseteq}.
                    \end{subproof}
                    Hence $M\subseteq D$ by \cref{subseteq}.
                    Therefore $M\subseteq A$ by \cref{subseteq_transitive}.
                    Hence $M$ is a neighborhood of $h$ in $F$ with respect to $T_1$ by \cref{neighborhood}.
                    Follows by definition.
                \end{subproof}
            Therefore $A\in T_1$ by \cref{open_from_local_neighborhoods,open_in}.
        \end{byCase}
    \end{subproof}
    Hence $B\subseteq T_1$ by \cref{subseteq}.
    Show that for all $W$ if $W\in T_0$ then $W\in T_1$.
    \begin{subproof}
        Follows by \cref{basis_topology_unions,basis_for_topology,subseteq_transitive,topology_on,subseteq}.
    \end{subproof}
    Therefore $T_0\subseteq T_1$ by \cref{subseteq}.
    Thus $T_1\subseteq T_0$ by \cref{finer_topology}.
    Therefore $T_0 = T_1$ by \cref{subseteq_antisymmetric}.
\end{proof}
Definition 373
compact_open_set

$A$ is the set of continuous functions from $X$ to $Y$ that carry $C$ into $V$ with respect to $T$ and $U$ iff $C$ is a compact subspace of $X$ with respect to $T$ and $V$ is open in $Y$ with respect to $U$ and there exists $F$ such that $F$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $A = \{f\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \img{f}{C}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V\}$.

LaTeX source
\begin{definition}
\label{compact_open_set}
    $A$ is the set of continuous functions from $X$ to $Y$ that carry $C$ into $V$ with respect to $T$ and $U$ iff
        $C$ is a compact subspace of $X$ with respect to $T$ and
        $V$ is open in $Y$ with respect to $U$ and
        there exists $F$ such that
            $F$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
            $A = \{f\in F \mid \img{f}{C}\subseteq V\}$.
\end{definition}
Definition 374
compact_open_function_space_subbasis

$S$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ iff $T$ is a topology on $X$ and $U$ is a topology on $Y$ and $S = \{A\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\funs{X}{Y}} \mid \text{there exist $C_0, V$ such that $A$ is the set of continuous functions from $X$ to $Y$ that carry $C_0$ into $V$ with respect to $T$ and $U$}\}$.

LaTeX source
\begin{definition}
\label{compact_open_function_space_subbasis}
    $S$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ iff
        $T$ is a topology on $X$ and
        $U$ is a topology on $Y$ and
        $S = \{A\in\pow{\funs{X}{Y}} \mid \text{there exist $C_0, V$ such that
            $A$ is the set of continuous functions from $X$ to $Y$ that carry $C_0$ into $V$
                with respect to $T$ and $U$}\}$.
\end{definition}
Definition 375
compact_open_topology

$K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ iff $T$ is a topology on $X$ and $U$ is a topology on $Y$ and there exists $F, S$ such that $F$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $S$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $K = \subbasisTopology{S}{F}$.

LaTeX source
\begin{definition}
\label{compact_open_topology}
    $K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ iff
        $T$ is a topology on $X$ and
        $U$ is a topology on $Y$ and
        there exists $F, S$ such that
            $F$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
            $S$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
            $K = \subbasisTopology{S}{F}$.
\end{definition}
Definition 376
closed_metric_ball

$A$ is the closed metric ball in $X$ about $x$ with radius $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ with respect to $d$ iff $d$ is a metric on $X$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ and $A = \{y\class{latex-symbol-tip latex-symbol-id-in}{\in} X \mid d((x,y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\}$.

LaTeX source
\begin{definition}
\label{closed_metric_ball}
    $A$ is the closed metric ball in $X$ about $x$ with radius $\epsilon$ with respect to $d$ iff
        $d$ is a metric on $X$ and
        $x\in X$ and
        $\epsilon\in\reals$ and
        $0 \leq \epsilon$ and
        $A = \{y\in X \mid d((x,y)) \leq \epsilon\}$.
\end{definition}
Lemma 881
closed_metric_ball_subseteq

Assume $A$ is the closed metric ball in $X$ about $x$ with radius $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ with respect to $d$.
Then $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$.

LaTeX source
\begin{lemma}
\label{closed_metric_ball_subseteq}
    Assume $A$ is the closed metric ball in $X$ about $x$ with radius $\epsilon$ with respect to $d$.
    Then $A\subseteq X$.
\end{lemma}
Proof

Follows by Definition 1, Definition 376.

LaTeX source
\begin{proof}
    Follows by \cref{closed_metric_ball,subseteq}.
\end{proof}
Lemma 882
metric_ball_subset_closed_metric_ball

Assume $A$ is the closed metric ball in $X$ about $x$ with radius $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ with respect to $d$.
Assume $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{X}{x}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.
Then $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.

LaTeX source
\begin{lemma}
\label{metric_ball_subset_closed_metric_ball}
    Assume $A$ is the closed metric ball in $X$ about $x$ with radius $\epsilon$ with respect to $d$.
    Assume $y\in\metricBall{d}{X}{x}{\epsilon}$.
    Then $y\in A$.
\end{lemma}
Proof

Follows by Definition 180, Definition 376, Lemma 231.

LaTeX source
\begin{proof}
    Follows by \cref{metric_ball,real_lt_imp_leq,closed_metric_ball}.
\end{proof}
Lemma 883
closed_metric_ball_closed

Assume $A$ is the closed metric ball in $X$ about $x$ with radius $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ with respect to $d$.
Let $U = \metricTopology{d}{X}$.
Then $A$ is closed in $X$ with respect to $U$.

LaTeX source
\begin{lemma}
\label{closed_metric_ball_closed}
    Assume $A$ is the closed metric ball in $X$ about $x$ with radius $\epsilon$ with respect to $d$.
    Let $U = \metricTopology{d}{X}$.
    Then $A$ is closed in $X$ with respect to $U$.
\end{lemma}
Proof

We have $d$ is a metric on $X$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 376.
Therefore $U$ is a topology on $X$ by Definition 115, Definition 182, Lemma 76, Lemma 194.
Let $B = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$.
Hence $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Proposition 97.

Claim: For all $z$ if $z\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ then there exists $V$ such that $V$ is a neighborhood of $z$ in $X$ with respect to $U$ and $V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B$.

Fix $z$.
Assume $z\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Hence $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $z\class{latex-symbol-tip latex-symbol-id-notin}{\notin} A$ by Proposition 86, Proposition 87.
Therefore $d((x,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
Hence $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} < d((x,z))$ by Axiom 34, Definition 376.
Let $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = d((x,z)) - \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$.
We have $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 18, Definition 64, Definition 179, Proposition 115, Proposition 361.
Therefore $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 26.
Let $V = \metricBall{d}{X}{z}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$.
Hence $V$ is open in $X$ with respect to $U$ by Definition 1, Definition 103, Definition 180, Definition 181, Definition 182, Lemma 77, Lemma 194, Proposition 155.
Therefore $z\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Definition 176, Definition 179, Definition 180, Lemma 82.

Claim: For all $y$ if $y\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ then $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.

Fix $y$.
Assume $y\class{latex-symbol-tip latex-symbol-id-in}{\in} V$.
Hence $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $d((z,y)) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 180.
Therefore $d((x,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((z,y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 115, Proposition 361.
Suppose not.
Hence $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 6.
Therefore $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} + d((z,y)) < d((x,z))$ by Axiom 13, Axiom 15, Axiom 16, Axiom 17, Axiom 18, Axiom 37, Definition 64, Definition 179, Lemma 82, Lemma 83, Proposition 115, Proposition 361.
Hence $d((x,y)) + d((z,y)) < d((x,z))$ by Axiom 13, Axiom 36, Axiom 37, Definition 376, Lemma 81, Lemma 82, Proposition 437.
Hence $d((y,z)) = d((z,y))$ by Definition 177, Definition 179.
Therefore $d((x,y)) + d((y,z)) < d((x,z))$ by Proposition 437.
We have $d((x,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((x,y)) + d((y,z))$ by Definition 178, Definition 179.
Hence $d((x,z)) < d((x,z))$ by Axiom 13, Axiom 36, Lemma 81, Lemma 82.
Contradiction by Axiom 39.
Thus $y\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.

Hence $V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} B$ by Definition 1.
Therefore $V$ is a neighborhood of $z$ in $X$ with respect to $U$ by Definition 153.

Hence $B$ is open in $X$ with respect to $U$ by Lemma 870.
Therefore $A$ is closed in $X$ with respect to $U$ by Definition 149, Lemma 881.

LaTeX source
\begin{proof}
    We have $d$ is a metric on $X$ and $x\in X$ and $\epsilon\in\reals$ and $0 \leq \epsilon$ by \cref{closed_metric_ball}.
    Therefore $U$ is a topology on $X$ by \cref{metric_basis_is_basis,basis_topology_is_topology,metric_topology,basis_for_topology}.
    Let $B = X\setminus A$.
    Hence $B\subseteq X$ by \cref{setminus_subseteq}.
    Show that for all $z$ if $z\in B$ then there exists $V$ such that
        $V$ is a neighborhood of $z$ in $X$ with respect to $U$ and
        $V\subseteq B$.
    \begin{subproof}
        Fix $z$.
        Assume $z\in B$.
        Hence $z\in X$ and $z\notin A$ by \cref{setminus_elim_left,setminus_elim_right}.
        Therefore $d((x,z))\in\reals$ by \cref{metric_on,times_tuple_intro,funs_type_apply}.
        Hence $\epsilon < d((x,z))$ by \cref{closed_metric_ball,real_lt_trichotomy}.
        Let $\delta = d((x,z)) - \epsilon$.
        We have $\delta\in\reals$ by \cref{metric_on,times_tuple_intro,funs_type_apply,real_sub,real_add_inverse,real_add_closed}.
        Therefore $0 < \delta$ by \cref{real_lt_imp_pos_diff}.
        Let $V = \metricBall{d}{X}{z}{\delta}$.
        Hence $V$ is open in $X$ with respect to $U$ by
            \cref{metric_ball,subseteq,powerset_intro,metric_basis,metric_basis_is_basis,basis_elem_open_in_generated,metric_topology,open_in}.
        Therefore $z\in V$ by \cref{metric_zero_characterization,metric_on,real_lt_subst_left,metric_ball}.
        Show that for all $y$ if $y\in V$ then $y\in B$.
        \begin{subproof}
            Fix $y$.
            Assume $y\in V$.
            Hence $y\in X$ and $d((z,y)) < \delta$ by \cref{metric_ball}.
            Therefore $d((x,y))\in\reals$ and $d((z,y))\in\reals$ by \cref{metric_on,times_tuple_intro,funs_type_apply}.
            Suppose not.
            Hence $y\in A$ by \cref{setminus}.
            Therefore $\epsilon + d((z,y)) < d((x,z))$ by
                \cref{metric_on,times_tuple_intro,funs_type_apply,real_sub,real_add_inverse,real_add_closed,real_lt_subst_right,real_lt_add,real_add_assoc,real_add_comm,real_add_ident,real_lt_subst_left}.
            Hence $d((x,y)) + d((z,y)) < d((x,z))$ by
                \cref{closed_metric_ball,real_add_closed,real_leq_split,real_lt_add,real_add_eq_subst,real_lt_trans,real_lt_subst_left}.
            Hence $d((y,z)) = d((z,y))$ by \cref{metric_on,metric_symmetric}.
            Therefore $d((x,y)) + d((y,z)) < d((x,z))$ by \cref{real_add_eq_subst}.
            We have $d((x,z)) \leq d((x,y)) + d((y,z))$ by \cref{metric_on,metric_triangle_inequality}.
            Hence $d((x,z)) < d((x,z))$ by
                \cref{real_add_closed,real_leq_split,real_lt_trans,real_lt_subst_left}.
            Contradiction by \cref{real_lt_irreflexive}.
            Thus $y\in B$.
        \end{subproof}
        Hence $V\subseteq B$ by \cref{subseteq}.
        Therefore $V$ is a neighborhood of $z$ in $X$ with respect to $U$ by \cref{neighborhood}.
    \end{subproof}
    Hence $B$ is open in $X$ with respect to $U$ by \cref{open_from_local_neighborhoods}.
    Therefore $A$ is closed in $X$ with respect to $U$ by \cref{closed_metric_ball_subseteq,closed_in}.
\end{proof}
Lemma 884
compact_open_subbasis_is_subbasis

Assume $T$ is a topology on $X$.
Assume $U$ is a topology on $Y$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Assume $S$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Then $S$ is a subbasis on $C$.

LaTeX source
\begin{lemma}
\label{compact_open_subbasis_is_subbasis}
    Assume $T$ is a topology on $X$.
    Assume $U$ is a topology on $Y$.
    Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Assume $S$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Then $S$ is a subbasis on $C$.
\end{lemma}
Proof

We have $S\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\pow{C}$ by Definition 1, Definition 345, Definition 373, Definition 374, Proposition 3, Proposition 155.
Let $E = \{f\class{latex-symbol-tip latex-symbol-id-in}{\in} C \mid \img{f}{\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y\}$.
Hence $\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ is a compact subspace of $X$ with respect to $T$ by Definition 263, Lemma 131, Lemma 411, Proposition 11.
Therefore $E$ is the set of continuous functions from $X$ to $Y$ that carry $\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ into $Y$ with respect to $T$ and $U$ by Definition 101, Definition 103, Definition 373.
Hence $E\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Definition 1, Definition 345, Definition 374, Proposition 155.

Claim: For all $f$ if $f\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ then $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{S}$.

Trivial.

Hence $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\unions{S}$ by Definition 1.
Therefore $\unions{S} = C$ by Axiom 12, Definition 1, Proposition 3, Proposition 159.
Hence $S$ is a subbasis on $C$ by Definition 124.

LaTeX source
\begin{proof}
    We have $S\subseteq\pow{C}$ by
        \cref{compact_open_function_space_subbasis,compact_open_set,continuous_function_set,subseteq,subseteq_antisymmetric,powerset_intro}.
    Let $E = \{f\in C \mid \img{f}{\emptyset}\subseteq Y\}$.
    Hence $\emptyset$ is a compact subspace of $X$ with respect to $T$
        by \cref{emptyset_subseteq,subspace_topology_is_topology,emptyset_compact,compact_subspace}.
    Therefore $E$ is the set of continuous functions from $X$ to $Y$ that carry $\emptyset$ into $Y$ with respect to $T$ and $U$
        by \cref{open_in,topology_on,compact_open_set}.
    Hence $E\in S$ by \cref{subseteq,continuous_function_set,powerset_intro,compact_open_function_space_subbasis}.
    Show that for all $f$ if $f\in C$ then $f\in\unions{S}$.
    \begin{subproof}
        Trivial.
    \end{subproof}
    Hence $C\subseteq\unions{S}$ by \cref{subseteq}.
    Therefore $\unions{S} = C$ by \cref{subseteq,pow_iff,unions_subseteq_of_powerset_is_subseteq,subseteq_antisymmetric}.
    Hence $S$ is a subbasis on $C$ by \cref{subbasis_on}.
\end{proof}
Lemma 885
half_radius_closed_ball_subset_open_ball

Assume $A$ is the closed metric ball in $Y$ about $y$ with radius $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ with respect to $d$.
Assume $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Assume $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$.
Assume $\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}$.
Assume $z\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Then $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{Y}{y}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$.

LaTeX source
\begin{lemma}
\label{half_radius_closed_ball_subset_open_ball}
    Assume $A$ is the closed metric ball in $Y$ about $y$ with radius $\delta$ with respect to $d$.
    Assume $\epsilon\in\reals$.
    Assume $0 < \delta$.
    Assume $\delta + \delta = \epsilon$.
    Assume $z\in A$.
    Then $z\in\metricBall{d}{Y}{y}{\epsilon}$.
\end{lemma}
Proof

We have $d$ is a metric on $Y$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $d((y,z)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 376.
Therefore $d((y,z))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-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}$ by Axiom 13, Axiom 17, Axiom 37, Definition 179, Lemma 82, Proposition 115, Proposition 361.
Hence $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{Y}{y}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Axiom 36, Definition 180, Lemma 81, Lemma 82, Lemma 83.

LaTeX source
\begin{proof}
    We have $d$ is a metric on $Y$ and $y\in Y$ and $\delta\in\reals$ and $z\in Y$ and $d((y,z)) \leq \delta$
        by \cref{closed_metric_ball}.
    Therefore $d((y,z))\in\reals$ and $\delta + \delta\in\reals$ and $\delta < \delta + \delta$ by
        \cref{times_tuple_intro,metric_on,funs_type_apply,real_add_closed,real_add_ident,real_lt_add,real_lt_subst_left}.
    Hence $z\in\metricBall{d}{Y}{y}{\epsilon}$
        by \cref{real_leq_split,real_lt_trans,real_lt_subst_left,real_lt_subst_right,metric_ball}.
\end{proof}
Lemma 886
compact_open_subbasis_element_open

Assume $T$ is a topology on $X$.
Assume $U$ is a topology on $Y$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Assume $S$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Assume $K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Assume $A\class{latex-symbol-tip latex-symbol-id-in}{\in} S$.
Then $A$ is open in $C$ with respect to $K$.

LaTeX source
\begin{lemma}
\label{compact_open_subbasis_element_open}
    Assume $T$ is a topology on $X$.
    Assume $U$ is a topology on $Y$.
    Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Assume $S$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Assume $K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Assume $A\in S$.
    Then $A$ is open in $C$ with respect to $K$.
\end{lemma}
Proof

Take $F, S_0$ such that $F$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $S_0$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $K = \subbasisTopology{S_0}{F}$ by Definition 375.
Hence $K = \subbasisTopology{S}{C}$ by Axiom 1 [Set extensionality], Axiom 1 [Set extensionality], Axiom 6, Definition 345, Definition 374.
Therefore $S$ is a subbasis on $C$ by Lemma 884.
Hence $A\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ by Axiom 12, Definition 1, Definition 115, Definition 124, Definition 125, Definition 126, Lemma 40, Lemma 44, Lemma 77, Lemma 99, Proposition 19, Proposition 20, Proposition 25, Proposition 36.
Therefore $A$ is open in $C$ with respect to $K$ by Definition 103, Definition 115, Definition 126, Lemma 76, Lemma 99.

LaTeX source
\begin{proof}
    Take $F, S_0$ such that
        $F$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
        $S_0$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
        $K = \subbasisTopology{S_0}{F}$ by \cref{compact_open_topology}.
    Hence $K = \subbasisTopology{S}{C}$
        by \cref{continuous_function_set,setext,compact_open_function_space_subbasis,setext,pair_eq_iff}.
    Therefore $S$ is a subbasis on $C$ by \cref{compact_open_subbasis_is_subbasis}.
    Hence $A\in K$ by \cref{subbasis_on,subseteq,pow_iff,singleton_subset_intro,upair_iff,pair_is_finite,subseteq_finite_is_finite,singleton_intro,inters_singleton,finite_intersections,subbasis_finite_intersections_basis,basis_elem_open_in_generated,basis_for_topology,topology_generated_by_subbasis}.
    Therefore $A$ is open in $C$ with respect to $K$ by
        \cref{subbasis_finite_intersections_basis,basis_for_topology,basis_topology_is_topology,topology_generated_by_subbasis,open_in}.
\end{proof}
Lemma 887
compact_open_local_compact_convergence

Assume $T$ is a topology on $X$.
Assume $d$ is a metric on $Y$.
Let $U = \metricTopology{d}{Y}$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Assume $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
Assume $A$ is the set of continuous functions from $X$ to $Y$ that carry $C_0$ into $V$ with respect to $T$ and $U$.
Assume $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Then there exists $M$ such that $M$ is open in $\funs{X}{Y}$ with respect to $T_0$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ and for all $g$ if $g\class{latex-symbol-tip latex-symbol-id-in}{\in} M\inter C$ then $g\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.

LaTeX source
\begin{lemma}
\label{compact_open_local_compact_convergence}
    Assume $T$ is a topology on $X$.
    Assume $d$ is a metric on $Y$.
    Let $U = \metricTopology{d}{Y}$.
    Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Assume $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
    Assume $A$ is the set of continuous functions from $X$ to $Y$ that carry $C_0$ into $V$ with respect to $T$ and $U$.
    Assume $h\in A$.
    Then there exists $M$ such that
        $M$ is open in $\funs{X}{Y}$ with respect to $T_0$ and
        $h\in M$ and
        for all $g$ if $g\in M\inter C$ then $g\in A$.
\end{lemma}
Proof

Take $F$ such that $F$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $A = \{f\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \img{f}{C_0}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V\}$ by Definition 373.
We have $F = C$ by Axiom 1 [Set extensionality], Definition 345.
$h\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $\img{h}{C_0}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ by Proposition 30.
$h\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ and $h$ is continuous from $X$ to $Y$ with respect to $T$ and $U$ by Axiom 6, Definition 345.

Case. $C_0 = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.

Let $M = \funs{X}{Y}$.
$M$ is open in $\funs{X}{Y}$ with respect to $T_0$ by Axiom 6, Definition 101, Definition 103, Definition 369.
$h\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ by Definition 1.

Claim: For all $g$ if $g\class{latex-symbol-tip latex-symbol-id-in}{\in} M\inter C$ then $g\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.

Trivial.

Follows by definition.

Case. $C_0 \class{latex-symbol-tip latex-symbol-id-neq}{\neq} \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.

$C_0$ is a compact subspace of $X$ with respect to $T$ and $V$ is open in $Y$ with respect to $U$ by Definition 373.
$V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Y$ by Definition 1, Definition 101, Definition 103, Proposition 156.
$C_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 263.
$C_0$ is a subspace of $X$ with respect to $T$ by Definition 147.
Let $T_C = \subspaceTopology{T}{C_0}$.
$T_C$ is a topology on $C_0$ by Lemma 131.
$C_0$ is compact with respect to $T_C$ by Definition 263.
$\restrl{h}{C_0}$ is continuous from $C_0$ to $Y$ with respect to $T_C$ and $U$ by Lemma 166.
Let $D = \{N\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{C_0} \mid \text{there exist $x, \epsilon, \delta$ such that $x\in C_0$ and $\epsilon\in\reals$ and $\delta\in\reals$ and $0 < \epsilon$ and $0 < \delta$ and $\delta < 1$ and $\delta + \delta = \epsilon$ and $\metricBall{d}{Y}{h(x)}{\epsilon}\subseteq V$ and $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\delta}}$}\}$.

Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C_0$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{D}$.

Fix $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C_0$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ by Definition 1, Definition 160, Proposition 359.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}\inter C_0$ by Proposition 61.
$h(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{h}{C_0}$ by Definition 160, Proposition 356, Proposition 364.
Thus $h(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Definition 1.
Take $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_0$ and $\metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_0}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ by Lemma 195.
Take $\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}$ and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} < 1$ and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_0$ by Lemma 867.
Let $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon} / (1 + 1)$.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ and $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta} = \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 41, Axiom 42, Definition 1, Lemma 275, Proposition 462.
We have $\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 17, Axiom 37, Lemma 82, Lemma 83.
$\class{latex-symbol-tip latex-symbol-id-delta}{\delta} < 1$ by Axiom 36, Axiom 41, Axiom 42, Definition 1.
$h(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Proposition 361.
$\metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}_0}$ by Lemma 268, Proposition 361.
Therefore $\metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ by Proposition 6.
Let $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}}$.
We have $N\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Definition 1, Proposition 155, Proposition 249, Proposition 269.
$d((h(x),h(x))) = 0$ by Definition 176, Definition 179, Proposition 115, Proposition 361.
$d((h(x),h(x))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 82.
Thus $h(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ by Definition 180.
$(x,h(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ by Proposition 348, Proposition 356.
$(x,h(x))\class{latex-symbol-tip latex-symbol-id-in}{\in}\restrl{h}{C_0}$ by Proposition 262.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} N$ by Proposition 246.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{D}$ by Axiom 4.

$C_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\unions{D}$ by Definition 1.
Therefore $D$ is a covering of $C_0$ by Definition 245.

Claim: For all $N$ if $N\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ then $N$ is open in $C_0$ with respect to $T_C$.

Hence $D$ is an open covering of $C_0$ with respect to $T_C$ by Definition 246.
Take $G$ such that $G\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} D$ and $G$ is finite and $G$ is a covering of $C_0$ by Definition 247.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} G\class{latex-symbol-tip latex-symbol-id-times}{\times}\pow{\funs{X}{Y}} \mid \text{there exist $N, M, x, \epsilon, \delta, B_0$ such that $N\in G$ and $M\in\pow{\funs{X}{Y}}$ and $x\in C_0$ and $\epsilon\in\reals$ and $\delta\in\reals$ and $w = (N,M)$ and $0 < \epsilon$ and $0 < \delta$ and $\delta < 1$ and $\delta + \delta = \epsilon$ and $B_0$ is the closed metric ball in $Y$ about $h(x)$ with radius $\delta$ with respect to $d$ and $\metricBall{d}{Y}{h(x)}{\epsilon}\subseteq V$ and $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\delta}}$ and $M$ is the compact-convergence ball about $h$ over $\preimg{\restrl{h}{C_0}}{B_0}$ with radius $\delta$ from $X$ to $Y$ with respect to $T$ and $d$}\}$.
We have $R$ is a relation by Definition 1, Definition 12, Proposition 121.

Claim: For all $N\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ there exists $M$ such that $N\mathrel{R} M$.

Fix $N\class{latex-symbol-tip latex-symbol-id-in}{\in} G$.
Take $x, \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}, \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C_0$ and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\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-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ and $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-epsilon}{\epsilon}$ and $\metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ and $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}}$ by Definition 1.
$h(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 1, Proposition 361.
Let $B_0 = \{y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y \mid d((h(x),y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\}$.
$B_0$ is the closed metric ball in $Y$ about $h(x)$ with radius $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ with respect to $d$ by Definition 1, Definition 376, Proposition 361.
Let $K = \preimg{\restrl{h}{C_0}}{B_0}$.
$B_0$ is closed in $Y$ with respect to $U$ by Lemma 883.
$\preimg{\restrl{h}{C_0}}{Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} B_0}$ is open in $C_0$ with respect to $T_C$ by Definition 149, Definition 160.
We have $\preimg{\restrl{h}{C_0}}{Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} B_0} = C_0\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} K$ by Axiom 6, Definition 149, Definition 160, Lemma 157, Proposition 97.
Therefore $C_0\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} K$ is open in $C_0$ with respect to $T_C$ by Axiom 6.
We have $K\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C_0$ by Definition 1, Proposition 249, Proposition 269.
$K$ is compact with respect to $\subspaceTopology{T}{K}$ by Definition 1, Definition 149, Lemma 307, Theorem 59.
$K\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Proposition 6.
Therefore $K$ is a compact subspace of $X$ with respect to $T$ by Definition 263.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ by Definition 1, Definition 160, Proposition 359.
$d((h(x),h(x))) = 0$ by Definition 176, Definition 179, Proposition 115, Proposition 361.
$h(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ by Definition 376, Lemma 82.
$(x,h(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ by Proposition 348, Proposition 356.
$(x,h(x))\class{latex-symbol-tip latex-symbol-id-in}{\in}\restrl{h}{C_0}$ by Proposition 262.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ by Proposition 246.
Take $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $K$ to $Y$ with respect to $d$ by Definition 1, Lemma 869, Lemma 882, Proposition 10.
Let $M = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y} \mid \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{h}{K},\restrl{g}{K})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\}$.
$M$ is the compact-convergence ball about $h$ over $K$ with radius $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ from $X$ to $Y$ with respect to $T$ and $d$ by Definition 367.
$M$ is the compact-convergence ball about $h$ over $\preimg{\restrl{h}{C_0}}{B_0}$ with radius $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ from $X$ to $Y$ with respect to $T$ and $d$ by Axiom 6.
Let $w = (N,M)$.
$w\class{latex-symbol-tip latex-symbol-id-in}{\in} G\class{latex-symbol-tip latex-symbol-id-times}{\times}\pow{\funs{X}{Y}}$ by Definition 1, Proposition 115, Proposition 155.
We have $N\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ and $M\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\funs{X}{Y}}$ by Axiom 10, Axiom 11, Proposition 114.
$w\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Definition 1.
Therefore $N\mathrel{R} M$ by Definition 12.

Take $m$ such that $m$ is a function on $G$ and for all $N\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ we have $N\mathrel{R}\apply{m}{N}$ by Axiom 54.
Let $H = \img{m}{G}$.
Let $W = \inters{H}$.
We have $H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_0$ by Axiom 6, Definition 1, Definition 12, Definition 101, Definition 103, Definition 369, Lemma 866, Proposition 235, Proposition 349.
$H$ is finite by Axiom 6, Lemma 192.
$G$ is inhabited by Axiom 4, Definition 1, Definition 245, Proposition 10.
$H$ is inhabited by Axiom 6, Proposition 10, Proposition 235, Proposition 348.
Hence $W$ is open in $\funs{X}{Y}$ with respect to $T_0$ by Definition 103, Definition 369, Lemma 124.

Claim: For all $P$ if $P\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ then $h\class{latex-symbol-tip latex-symbol-id-in}{\in} P$.

$h\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ by Proposition 30.

Claim: For all $g$ if $g\class{latex-symbol-tip latex-symbol-id-in}{\in} W\inter C$ then $g\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.

Fix $g$.
Assume $g\class{latex-symbol-tip latex-symbol-id-in}{\in} W\inter C$.
We have $g\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Proposition 62, Proposition 63.
$g\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Axiom 6.

Claim: For all $z$ if $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{g}{C_0}$ then $z\class{latex-symbol-tip latex-symbol-id-in}{\in} V$.

Fix $z$.
Assume $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{g}{C_0}$.
$g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ by Definition 345.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}\inter C_0$ such that $z = g(x)$ by Proposition 356, Proposition 365.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} C_0$ by Proposition 63.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} N$ by Axiom 4, Definition 1, Definition 245.
$N\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{m}$ by Definition 1.
$N\mathrel{R}\apply{m}{N}$ by Definition 1.
Take $x_0, \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}, \class{latex-symbol-tip latex-symbol-id-delta}{\delta}, B_0$ such that $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} C_0$ and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\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-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ and $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-epsilon}{\epsilon}$ and $B_0$ is the closed metric ball in $Y$ about $h(x_0)$ with radius $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ with respect to $d$ and $\metricBall{d}{Y}{h(x_0)}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ and $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x_0)}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}}$ and $\apply{m}{N}$ is the compact-convergence ball about $h$ over $\preimg{\restrl{h}{C_0}}{B_0}$ with radius $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ from $X$ to $Y$ with respect to $T$ and $d$ by Axiom 6, Definition 12.
Take $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{Y}{h(x_0)}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ such that $(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\restrl{h}{C_0}$ by Proposition 246.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ by Definition 1.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ by Definition 1, Definition 160, Proposition 359.
$(x,h(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ by Proposition 348, Proposition 356.
$(x,h(x))\class{latex-symbol-tip latex-symbol-id-in}{\in}\restrl{h}{C_0}$ by Proposition 262.
$\restrl{h}{C_0}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C_0}{Y}$ by Definition 55, Definition 160.
Therefore $y = h(x)$ by Proposition 345, Proposition 356.
$h(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{Y}{h(x_0)}{\class{latex-symbol-tip latex-symbol-id-delta}{\delta}}$ by Axiom 6.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\preimg{\restrl{h}{C_0}}{B_0}$ by Lemma 882, Proposition 246.
Let $K = \preimg{\restrl{h}{C_0}}{B_0}$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ by Axiom 6.
$\apply{m}{N}\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ by Axiom 6, Proposition 235, Proposition 348.
$g\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{m}{N}$ by Proposition 30.
Take $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $K$ to $Y$ with respect to $d$ and $\apply{m}{N} = \{u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y} \mid \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{h}{K},\restrl{u}{K})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\}$ by Definition 367.
We have $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{h}{K},\restrl{g}{K})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Proposition 30.
$K\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 1, Proposition 249, Proposition 269.
$\restrl{h}{K}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{K}{Y}$ and $\restrl{g}{K}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{K}{Y}$ by Lemma 862.
$d((\apply{\restrl{h}{K}}{x}, \apply{\restrl{g}{K}}{x})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 831.
$\apply{\restrl{h}{K}}{x} = h(x)$ and $\apply{\restrl{g}{K}}{x} = g(x)$ by Definition 1, Proposition 355, Proposition 356, Proposition 359, Proposition 384.
Hence $d((h(x),g(x))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 6.
$h(x_0)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 1, Proposition 361.
$h(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 1, Definition 180.
$g(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Proposition 361.
$d((h(x_0),h(x))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Definition 180.
$(h(x_0),h(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $(h(x),g(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $(h(x_0),g(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Proposition 115.
$d((h(x_0),g(x))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((h(x_0),h(x))) + d((h(x),g(x)))$ by Definition 178, Definition 179.
$d((h(x_0),h(x)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((h(x),g(x)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((h(x_0),g(x)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
$d((h(x_0),h(x))) + d((h(x),g(x))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Proposition 450.
$d((h(x_0),g(x))) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta} + \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 13, Axiom 36, Lemma 81, Lemma 82.
Hence $d((h(x_0),g(x))) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 83.
$g(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{Y}{h(x_0)}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 180.
Thus $g(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Definition 1.
Therefore $z\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Axiom 6.

$\img{g}{C_0}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ by Definition 1.
Therefore $g\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 30.

Follows by definition.

LaTeX source
\begin{byCase}
    \caseOf{$C_0 = \emptyset$.}
        Let $M = \funs{X}{Y}$.
        $M$ is open in $\funs{X}{Y}$ with respect to $T_0$
            by \cref{compact_convergence_topology,open_in,topology_on,pair_eq_iff}.
        $h\in M$ by \cref{subseteq}.
        Show that for all $g$ if $g\in M\inter C$ then $g\in A$.
        \begin{subproof}
            Trivial.
        \end{subproof}
        Follows by definition.
    \caseOf{$C_0 \neq \emptyset$.}
        $C_0$ is a compact subspace of $X$ with respect to $T$ and
            $V$ is open in $Y$ with respect to $U$ by \cref{compact_open_set}.
        $V\subseteq Y$ by \cref{open_in,topology_on,subseteq,powerset_elim}.
        $C_0\subseteq X$ by \cref{compact_subspace}.
        $C_0$ is a subspace of $X$ with respect to $T$ by \cref{subspace_of}.
        Let $T_C = \subspaceTopology{T}{C_0}$.
        $T_C$ is a topology on $C_0$ by \cref{subspace_topology_is_topology}.
        $C_0$ is compact with respect to $T_C$ by \cref{compact_subspace}.
        $\restrl{h}{C_0}$ is continuous from $C_0$ to $Y$ with respect to $T_C$ and $U$
            by \cref{continuous_restrict_domain}.
        Let $D = \{N\in\pow{C_0} \mid \text{there exist $x, \epsilon, \delta$ such that
            $x\in C_0$ and
            $\epsilon\in\reals$ and
            $\delta\in\reals$ and
            $0 < \epsilon$ and
            $0 < \delta$ and
            $\delta < 1$ and
            $\delta + \delta = \epsilon$ and
            $\metricBall{d}{Y}{h(x)}{\epsilon}\subseteq V$ and
            $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\delta}}$}\}$.
        Show that for all $x\in C_0$ we have $x\in\unions{D}$.
        \begin{subproof}
            Fix $x\in C_0$.
            $x\in X$ by \cref{subseteq}.
            $x\in\dom{h}$ by \cref{continuous,funs_elim,subseteq}.
            We have $x\in\dom{h}\inter C_0$ by \cref{inter_intro}.
            $h(x)\in\img{h}{C_0}$ by \cref{continuous,funs_is_function,img_of_function_intro}.
            Thus $h(x)\in V$ by \cref{subseteq}.
            Take $\epsilon_0\in\reals$ such that $0 < \epsilon_0$ and
                $\metricBall{d}{Y}{h(x)}{\epsilon_0}\subseteq V$ by \cref{metric_open_iff}.
            Take $\epsilon$ such that
                $\epsilon\in\reals$ and
                $0 < \epsilon$ and
                $\epsilon < 1$ and
                $\epsilon < \epsilon_0$ by \cref{positive_real_has_smaller_positive_below_one}.
            Let $\delta = \epsilon / (1 + 1)$.
            $\delta\in\reals$ and $0 < \delta$ and $\delta + \delta = \epsilon$
                by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_zero_lt_one,real_half_of_positive}.
            We have $\delta < \epsilon$ by \cref{real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right}.
            $\delta < 1$ by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_lt_trans}.
            $h(x)\in Y$ by \cref{funs_type_apply}.
            $\metricBall{d}{Y}{h(x)}{\epsilon}\subseteq\metricBall{d}{Y}{h(x)}{\epsilon_0}$ by \cref{funs_type_apply,metric_ball_mono}.
            Therefore $\metricBall{d}{Y}{h(x)}{\epsilon}\subseteq V$ by \cref{subseteq_transitive}.
            Let $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\delta}}$.
            We have $N\in D$ by \cref{preimg_subseteq_dom,restrl_dom,subseteq,powerset_intro}.
            $d((h(x),h(x))) = 0$ by \cref{metric_on,metric_zero_characterization,times_tuple_intro,funs_type_apply}.
            $d((h(x),h(x))) < \delta$ by \cref{real_lt_subst_left}.
            Thus $h(x)\in\metricBall{d}{Y}{h(x)}{\delta}$ by \cref{metric_ball}.
            $(x,h(x))\in h$ by \cref{function_apply_elim,funs_is_function}.
            $(x,h(x))\in\restrl{h}{C_0}$ by \cref{restrl_iff}.
            $x\in N$ by \cref{preimg_iff}.
            Therefore $x\in\unions{D}$ by \cref{unions_iff}.
        \end{subproof}
        $C_0\subseteq\unions{D}$ by \cref{subseteq}.
        Therefore $D$ is a covering of $C_0$ by \cref{covering}.
        Show that for all $N$ if $N\in D$ then $N$ is open in $C_0$ with respect to $T_C$.
        \begin{subproof}
            Follows by \cref{subseteq,funs_type_apply,metric_ball,powerset_intro,metric_basis,metric_basis_is_basis,basis_elem_open_in_generated,metric_topology,open_in,basis_topology_is_topology,basis_for_topology,continuous}.
        \end{subproof}
        Hence $D$ is an open covering of $C_0$ with respect to $T_C$ by \cref{open_covering}.
        Take $G$ such that $G\subseteq D$ and $G$ is finite and $G$ is a covering of $C_0$
            by \cref{compact}.
        Let $R = \{w\in G\times\pow{\funs{X}{Y}} \mid \text{there exist $N, M, x, \epsilon, \delta, B_0$ such that
            $N\in G$ and
            $M\in\pow{\funs{X}{Y}}$ and
            $x\in C_0$ and
            $\epsilon\in\reals$ and
            $\delta\in\reals$ and
            $w = (N,M)$ and
            $0 < \epsilon$ and
            $0 < \delta$ and
            $\delta < 1$ and
            $\delta + \delta = \epsilon$ and
            $B_0$ is the closed metric ball in $Y$ about $h(x)$ with radius $\delta$ with respect to $d$ and
            $\metricBall{d}{Y}{h(x)}{\epsilon}\subseteq V$ and
            $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\delta}}$ and
            $M$ is the compact-convergence ball about $h$ over $\preimg{\restrl{h}{C_0}}{B_0}$ with radius $\delta$
                from $X$ to $Y$ with respect to $T$ and $d$}\}$.
        We have $R$ is a relation by \cref{relation,subseteq,times_elem_is_tuple}.
        Show that for all $N\in G$ there exists $M$ such that $N\mathrel{R} M$.
        \begin{subproof}
            Fix $N\in G$.
            Take $x, \epsilon, \delta$ such that
                $x\in C_0$ and
                $\epsilon\in\reals$ and
                $\delta\in\reals$ and
                $0 < \epsilon$ and
                $0 < \delta$ and
                $\delta < 1$ and
                $\delta + \delta = \epsilon$ and
                $\metricBall{d}{Y}{h(x)}{\epsilon}\subseteq V$ and
                $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\delta}}$ by \cref{subseteq}.
            $h(x)\in Y$ by \cref{subseteq,funs_type_apply}.
            Let $B_0 = \{y\in Y \mid d((h(x),y)) \leq \delta\}$.
            $B_0$ is the closed metric ball in $Y$ about $h(x)$ with radius $\delta$ with respect to $d$
                by \cref{subseteq,funs_type_apply,closed_metric_ball}.
            Let $K = \preimg{\restrl{h}{C_0}}{B_0}$.
            $B_0$ is closed in $Y$ with respect to $U$ by \cref{closed_metric_ball_closed}.
            $\preimg{\restrl{h}{C_0}}{Y\setminus B_0}$ is open in $C_0$ with respect to $T_C$ by \cref{continuous,closed_in}.
            We have $\preimg{\restrl{h}{C_0}}{Y\setminus B_0} = C_0\setminus K$ by
                \cref{continuous,closed_in,setminus_subseteq,preimg_setminus_function,pair_eq_iff}.
            Therefore $C_0\setminus K$ is open in $C_0$ with respect to $T_C$ by \cref{pair_eq_iff}.
            We have $K\subseteq C_0$ by \cref{preimg_subseteq_dom,restrl_dom,subseteq}.
            $K$ is compact with respect to $\subspaceTopology{T}{K}$
                by \cref{closed_in,closed_subspace_compact,subspace_subspace_topology,subseteq}.
            $K\subseteq X$ by \cref{subseteq_transitive}.
            Therefore $K$ is a compact subspace of $X$ with respect to $T$ by \cref{compact_subspace}.
            $x\in\dom{h}$ by \cref{continuous,funs_elim,subseteq}.
            $d((h(x),h(x))) = 0$ by \cref{metric_on,metric_zero_characterization,times_tuple_intro,funs_type_apply}.
            $h(x)\in B_0$ by \cref{closed_metric_ball,real_lt_subst_left}.
            $(x,h(x))\in h$ by \cref{function_apply_elim,funs_is_function}.
            $(x,h(x))\in\restrl{h}{C_0}$ by \cref{restrl_iff}.
            Hence $x\in K$ by \cref{preimg_iff}.
            Take $\rho$ such that $\rho$ is the uniform metric on functions from $K$ to $Y$ with respect to $d$
                by \cref{uniform_metric_on_function_space_exists_inhabited,nonempty_inhabited,metric_ball_subset_closed_metric_ball,subseteq}.
            Let $M = \{g\in\funs{X}{Y} \mid \rho((\restrl{h}{K},\restrl{g}{K})) < \delta\}$.
            $M$ is the compact-convergence ball about $h$ over $K$ with radius $\delta$
                from $X$ to $Y$ with respect to $T$ and $d$ by \cref{compact_convergence_ball}.
            $M$ is the compact-convergence ball about $h$ over $\preimg{\restrl{h}{C_0}}{B_0}$ with radius $\delta$
                from $X$ to $Y$ with respect to $T$ and $d$ by \cref{pair_eq_iff}.
            Let $w = (N,M)$.
            $w\in G\times\pow{\funs{X}{Y}}$ by \cref{times_tuple_intro,subseteq,powerset_intro}.
            We have $N\in G$ and $M\in\pow{\funs{X}{Y}}$ by \cref{fst_eq,snd_eq,times_tuple_elim}.
            $w\in R$ by \cref{subseteq}.
            Therefore $N\mathrel{R} M$ by \cref{relation}.
        \end{subproof}
        Take $m$ such that $m$ is a function on $G$ and for all $N\in G$ we have $N\mathrel{R}\apply{m}{N}$ by \cref{axiom_of_choice}.
        Let $H = \img{m}{G}$.
        Let $W = \inters{H}$.
        We have $H\subseteq T_0$ by \cref{img_iff,subseteq,function_apply_iff,relation,pair_eq_iff,compact_convergence_ball_open,compact_convergence_topology,open_in,topology_on}.
        $H$ is finite by \cref{pair_eq_iff,finite_image_function}.
        $G$ is inhabited by \cref{covering,subseteq,unions_iff,nonempty_inhabited}.
        $H$ is inhabited by \cref{pair_eq_iff,function_apply_elim,img_iff,nonempty_inhabited}.
        Hence $W$ is open in $\funs{X}{Y}$ with respect to $T_0$
            by \cref{compact_convergence_topology,finite_intersections_open_in_topology,open_in}.
        Show that for all $P$ if $P\in H$ then $h\in P$.
        \begin{subproof}
            Follows by \cref{img_iff,subseteq,function_apply_iff,relation,pair_eq_iff,compact_convergence_ball_center}.
        \end{subproof}
        $h\in W$ by \cref{inters_iff_forall}.
        Show that for all $g$ if $g\in W\inter C$ then $g\in A$.
        \begin{subproof}
            Fix $g$.
            Assume $g\in W\inter C$.
            We have $g\in W$ and $g\in C$ by \cref{inter_elim_left,inter_elim_right}.
            $g\in F$ by \cref{pair_eq_iff}.
            Show that for all $z$ if $z\in\img{g}{C_0}$ then $z\in V$.
            \begin{subproof}
                    Fix $z$.
                    Assume $z\in\img{g}{C_0}$.
                    $g\in\funs{X}{Y}$ by \cref{continuous_function_set}.
                    Take $x\in\dom{g}\inter C_0$ such that $z = g(x)$ by \cref{funs_is_function,img_of_function_elim}.
                    $x\in C_0$ by \cref{inter_elim_right}.
                    Take $N\in G$ such that $x\in N$ by \cref{covering,subseteq,unions_iff}.
                    $N\in\dom{m}$ by \cref{subseteq}.
                    $N\mathrel{R}\apply{m}{N}$ by \cref{subseteq}.
                    Take $x_0, \epsilon, \delta, B_0$ such that
                        $x_0\in C_0$ and
                        $\epsilon\in\reals$ and
                        $\delta\in\reals$ and
                        $0 < \epsilon$ and
                        $0 < \delta$ and
                        $\delta < 1$ and
                        $\delta + \delta = \epsilon$ and
                        $B_0$ is the closed metric ball in $Y$ about $h(x_0)$ with radius $\delta$ with respect to $d$ and
                        $\metricBall{d}{Y}{h(x_0)}{\epsilon}\subseteq V$ and
                        $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x_0)}{\delta}}$ and
                        $\apply{m}{N}$ is the compact-convergence ball about $h$ over $\preimg{\restrl{h}{C_0}}{B_0}$ with radius $\delta$
                            from $X$ to $Y$ with respect to $T$ and $d$
                        by \cref{relation,pair_eq_iff}.
                    Take $y\in\metricBall{d}{Y}{h(x_0)}{\delta}$ such that $(x,y)\in\restrl{h}{C_0}$ by \cref{preimg_iff}.
                    $x\in X$ by \cref{subseteq}.
                    $x\in\dom{h}$ by \cref{continuous,funs_elim,subseteq}.
                    $(x,h(x))\in h$ by \cref{function_apply_elim,funs_is_function}.
                    $(x,h(x))\in\restrl{h}{C_0}$ by \cref{restrl_iff}.
                    $\restrl{h}{C_0}\in\funs{C_0}{Y}$ by \cref{continuous,funs}.
                    Therefore $y = h(x)$ by \cref{function_rightunique,funs_is_function}.
                    $h(x)\in\metricBall{d}{Y}{h(x_0)}{\delta}$ by \cref{pair_eq_iff}.
                    $x\in\preimg{\restrl{h}{C_0}}{B_0}$ by \cref{metric_ball_subset_closed_metric_ball,preimg_iff}.
                    Let $K = \preimg{\restrl{h}{C_0}}{B_0}$.
                    $x\in K$ by \cref{pair_eq_iff}.
                    $\apply{m}{N}\in H$ by \cref{pair_eq_iff,function_apply_elim,img_iff}.
                    $g\in\apply{m}{N}$ by \cref{inters_iff_forall}.
                    Take $\rho$ such that
                        $\rho$ is the uniform metric on functions from $K$ to $Y$ with respect to $d$ and
                        $\apply{m}{N} = \{u\in\funs{X}{Y} \mid \rho((\restrl{h}{K},\restrl{u}{K})) < \delta\}$
                        by \cref{compact_convergence_ball}.
                    We have $g\in\funs{X}{Y}$ and $\rho((\restrl{h}{K},\restrl{g}{K})) < \delta$ by \cref{inters_iff_forall}.
                    $K\subseteq X$ by \cref{preimg_subseteq_dom,restrl_dom,subseteq}.
                    $\restrl{h}{K}\in\funs{K}{Y}$ and $\restrl{g}{K}\in\funs{K}{Y}$ by \cref{restrl_typed_function}.
                    $d((\apply{\restrl{h}{K}}{x}, \apply{\restrl{g}{K}}{x})) < \delta$
                        by \cref{uniform_metric_small_implies_pointwise_small}.
                    $\apply{\restrl{h}{K}}{x} = h(x)$ and $\apply{\restrl{g}{K}}{x} = g(x)$
                        by \cref{restrl_of_function_apply,subseteq,funs_is_function,funs_is_relation,funs_elim}.
                    Hence $d((h(x),g(x))) < \delta$ by \cref{pair_eq_iff}.
                    $h(x_0)\in Y$ by \cref{funs_type_apply,subseteq}.
                    $h(x)\in Y$ by \cref{metric_ball,subseteq}.
                    $g(x)\in Y$ by \cref{funs_type_apply}.
                    $d((h(x_0),h(x))) < \delta$ by \cref{metric_ball}.
                    $(h(x_0),h(x))\in Y\times Y$ and $(h(x),g(x))\in Y\times Y$ and $(h(x_0),g(x))\in Y\times Y$
                        by \cref{times_tuple_intro}.
                    $d((h(x_0),g(x))) \leq d((h(x_0),h(x))) + d((h(x),g(x)))$
                        by \cref{metric_on,metric_triangle_inequality}.
                    $d((h(x_0),h(x)))\in\reals$ and $d((h(x),g(x)))\in\reals$ and $d((h(x_0),g(x)))\in\reals$
                        by \cref{metric_on,funs_type_apply}.
                    $d((h(x_0),h(x))) + d((h(x),g(x))) < \delta + \delta$ by \cref{real_lt_add_two}.
                    $d((h(x_0),g(x))) < \delta + \delta$
                        by \cref{real_leq_split,real_lt_trans,real_lt_subst_left,real_add_closed}.
                    Hence $d((h(x_0),g(x))) < \epsilon$ by \cref{real_lt_subst_right}.
                    $g(x)\in\metricBall{d}{Y}{h(x_0)}{\epsilon}$ by \cref{metric_ball}.
                    Thus $g(x)\in V$ by \cref{subseteq}.
                    Therefore $z\in V$ by \cref{pair_eq_iff}.
            \end{subproof}
            $\img{g}{C_0}\subseteq V$ by \cref{subseteq}.
            Therefore $g\in A$ by \cref{inters_iff_forall}.
        \end{subproof}
        Follows by definition.
    
\end{byCase}
LaTeX source
\begin{proof}
    Take $F$ such that
        $F$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
        $A = \{f\in F \mid \img{f}{C_0}\subseteq V\}$ by \cref{compact_open_set}.
    We have $F = C$ by \cref{continuous_function_set,setext}.
    $h\in F$ and $\img{h}{C_0}\subseteq V$ by \cref{inters_iff_forall}.
    $h\in\funs{X}{Y}$ and $h$ is continuous from $X$ to $Y$ with respect to $T$ and $U$
        by \cref{pair_eq_iff,continuous_function_set}.
    \begin{byCase}
    \caseOf{$C_0 = \emptyset$.}
        Let $M = \funs{X}{Y}$.
        $M$ is open in $\funs{X}{Y}$ with respect to $T_0$
            by \cref{compact_convergence_topology,open_in,topology_on,pair_eq_iff}.
        $h\in M$ by \cref{subseteq}.
        Show that for all $g$ if $g\in M\inter C$ then $g\in A$.
        \begin{subproof}
            Trivial.
        \end{subproof}
        Follows by definition.
    \caseOf{$C_0 \neq \emptyset$.}
        $C_0$ is a compact subspace of $X$ with respect to $T$ and
            $V$ is open in $Y$ with respect to $U$ by \cref{compact_open_set}.
        $V\subseteq Y$ by \cref{open_in,topology_on,subseteq,powerset_elim}.
        $C_0\subseteq X$ by \cref{compact_subspace}.
        $C_0$ is a subspace of $X$ with respect to $T$ by \cref{subspace_of}.
        Let $T_C = \subspaceTopology{T}{C_0}$.
        $T_C$ is a topology on $C_0$ by \cref{subspace_topology_is_topology}.
        $C_0$ is compact with respect to $T_C$ by \cref{compact_subspace}.
        $\restrl{h}{C_0}$ is continuous from $C_0$ to $Y$ with respect to $T_C$ and $U$
            by \cref{continuous_restrict_domain}.
        Let $D = \{N\in\pow{C_0} \mid \text{there exist $x, \epsilon, \delta$ such that
            $x\in C_0$ and
            $\epsilon\in\reals$ and
            $\delta\in\reals$ and
            $0 < \epsilon$ and
            $0 < \delta$ and
            $\delta < 1$ and
            $\delta + \delta = \epsilon$ and
            $\metricBall{d}{Y}{h(x)}{\epsilon}\subseteq V$ and
            $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\delta}}$}\}$.
        Show that for all $x\in C_0$ we have $x\in\unions{D}$.
        \begin{subproof}
            Fix $x\in C_0$.
            $x\in X$ by \cref{subseteq}.
            $x\in\dom{h}$ by \cref{continuous,funs_elim,subseteq}.
            We have $x\in\dom{h}\inter C_0$ by \cref{inter_intro}.
            $h(x)\in\img{h}{C_0}$ by \cref{continuous,funs_is_function,img_of_function_intro}.
            Thus $h(x)\in V$ by \cref{subseteq}.
            Take $\epsilon_0\in\reals$ such that $0 < \epsilon_0$ and
                $\metricBall{d}{Y}{h(x)}{\epsilon_0}\subseteq V$ by \cref{metric_open_iff}.
            Take $\epsilon$ such that
                $\epsilon\in\reals$ and
                $0 < \epsilon$ and
                $\epsilon < 1$ and
                $\epsilon < \epsilon_0$ by \cref{positive_real_has_smaller_positive_below_one}.
            Let $\delta = \epsilon / (1 + 1)$.
            $\delta\in\reals$ and $0 < \delta$ and $\delta + \delta = \epsilon$
                by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_zero_lt_one,real_half_of_positive}.
            We have $\delta < \epsilon$ by \cref{real_add_ident,real_lt_add,real_lt_subst_left,real_lt_subst_right}.
            $\delta < 1$ by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_lt_trans}.
            $h(x)\in Y$ by \cref{funs_type_apply}.
            $\metricBall{d}{Y}{h(x)}{\epsilon}\subseteq\metricBall{d}{Y}{h(x)}{\epsilon_0}$ by \cref{funs_type_apply,metric_ball_mono}.
            Therefore $\metricBall{d}{Y}{h(x)}{\epsilon}\subseteq V$ by \cref{subseteq_transitive}.
            Let $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\delta}}$.
            We have $N\in D$ by \cref{preimg_subseteq_dom,restrl_dom,subseteq,powerset_intro}.
            $d((h(x),h(x))) = 0$ by \cref{metric_on,metric_zero_characterization,times_tuple_intro,funs_type_apply}.
            $d((h(x),h(x))) < \delta$ by \cref{real_lt_subst_left}.
            Thus $h(x)\in\metricBall{d}{Y}{h(x)}{\delta}$ by \cref{metric_ball}.
            $(x,h(x))\in h$ by \cref{function_apply_elim,funs_is_function}.
            $(x,h(x))\in\restrl{h}{C_0}$ by \cref{restrl_iff}.
            $x\in N$ by \cref{preimg_iff}.
            Therefore $x\in\unions{D}$ by \cref{unions_iff}.
        \end{subproof}
        $C_0\subseteq\unions{D}$ by \cref{subseteq}.
        Therefore $D$ is a covering of $C_0$ by \cref{covering}.
        Show that for all $N$ if $N\in D$ then $N$ is open in $C_0$ with respect to $T_C$.
        \begin{subproof}
            Follows by \cref{subseteq,funs_type_apply,metric_ball,powerset_intro,metric_basis,metric_basis_is_basis,basis_elem_open_in_generated,metric_topology,open_in,basis_topology_is_topology,basis_for_topology,continuous}.
        \end{subproof}
        Hence $D$ is an open covering of $C_0$ with respect to $T_C$ by \cref{open_covering}.
        Take $G$ such that $G\subseteq D$ and $G$ is finite and $G$ is a covering of $C_0$
            by \cref{compact}.
        Let $R = \{w\in G\times\pow{\funs{X}{Y}} \mid \text{there exist $N, M, x, \epsilon, \delta, B_0$ such that
            $N\in G$ and
            $M\in\pow{\funs{X}{Y}}$ and
            $x\in C_0$ and
            $\epsilon\in\reals$ and
            $\delta\in\reals$ and
            $w = (N,M)$ and
            $0 < \epsilon$ and
            $0 < \delta$ and
            $\delta < 1$ and
            $\delta + \delta = \epsilon$ and
            $B_0$ is the closed metric ball in $Y$ about $h(x)$ with radius $\delta$ with respect to $d$ and
            $\metricBall{d}{Y}{h(x)}{\epsilon}\subseteq V$ and
            $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\delta}}$ and
            $M$ is the compact-convergence ball about $h$ over $\preimg{\restrl{h}{C_0}}{B_0}$ with radius $\delta$
                from $X$ to $Y$ with respect to $T$ and $d$}\}$.
        We have $R$ is a relation by \cref{relation,subseteq,times_elem_is_tuple}.
        Show that for all $N\in G$ there exists $M$ such that $N\mathrel{R} M$.
        \begin{subproof}
            Fix $N\in G$.
            Take $x, \epsilon, \delta$ such that
                $x\in C_0$ and
                $\epsilon\in\reals$ and
                $\delta\in\reals$ and
                $0 < \epsilon$ and
                $0 < \delta$ and
                $\delta < 1$ and
                $\delta + \delta = \epsilon$ and
                $\metricBall{d}{Y}{h(x)}{\epsilon}\subseteq V$ and
                $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\delta}}$ by \cref{subseteq}.
            $h(x)\in Y$ by \cref{subseteq,funs_type_apply}.
            Let $B_0 = \{y\in Y \mid d((h(x),y)) \leq \delta\}$.
            $B_0$ is the closed metric ball in $Y$ about $h(x)$ with radius $\delta$ with respect to $d$
                by \cref{subseteq,funs_type_apply,closed_metric_ball}.
            Let $K = \preimg{\restrl{h}{C_0}}{B_0}$.
            $B_0$ is closed in $Y$ with respect to $U$ by \cref{closed_metric_ball_closed}.
            $\preimg{\restrl{h}{C_0}}{Y\setminus B_0}$ is open in $C_0$ with respect to $T_C$ by \cref{continuous,closed_in}.
            We have $\preimg{\restrl{h}{C_0}}{Y\setminus B_0} = C_0\setminus K$ by
                \cref{continuous,closed_in,setminus_subseteq,preimg_setminus_function,pair_eq_iff}.
            Therefore $C_0\setminus K$ is open in $C_0$ with respect to $T_C$ by \cref{pair_eq_iff}.
            We have $K\subseteq C_0$ by \cref{preimg_subseteq_dom,restrl_dom,subseteq}.
            $K$ is compact with respect to $\subspaceTopology{T}{K}$
                by \cref{closed_in,closed_subspace_compact,subspace_subspace_topology,subseteq}.
            $K\subseteq X$ by \cref{subseteq_transitive}.
            Therefore $K$ is a compact subspace of $X$ with respect to $T$ by \cref{compact_subspace}.
            $x\in\dom{h}$ by \cref{continuous,funs_elim,subseteq}.
            $d((h(x),h(x))) = 0$ by \cref{metric_on,metric_zero_characterization,times_tuple_intro,funs_type_apply}.
            $h(x)\in B_0$ by \cref{closed_metric_ball,real_lt_subst_left}.
            $(x,h(x))\in h$ by \cref{function_apply_elim,funs_is_function}.
            $(x,h(x))\in\restrl{h}{C_0}$ by \cref{restrl_iff}.
            Hence $x\in K$ by \cref{preimg_iff}.
            Take $\rho$ such that $\rho$ is the uniform metric on functions from $K$ to $Y$ with respect to $d$
                by \cref{uniform_metric_on_function_space_exists_inhabited,nonempty_inhabited,metric_ball_subset_closed_metric_ball,subseteq}.
            Let $M = \{g\in\funs{X}{Y} \mid \rho((\restrl{h}{K},\restrl{g}{K})) < \delta\}$.
            $M$ is the compact-convergence ball about $h$ over $K$ with radius $\delta$
                from $X$ to $Y$ with respect to $T$ and $d$ by \cref{compact_convergence_ball}.
            $M$ is the compact-convergence ball about $h$ over $\preimg{\restrl{h}{C_0}}{B_0}$ with radius $\delta$
                from $X$ to $Y$ with respect to $T$ and $d$ by \cref{pair_eq_iff}.
            Let $w = (N,M)$.
            $w\in G\times\pow{\funs{X}{Y}}$ by \cref{times_tuple_intro,subseteq,powerset_intro}.
            We have $N\in G$ and $M\in\pow{\funs{X}{Y}}$ by \cref{fst_eq,snd_eq,times_tuple_elim}.
            $w\in R$ by \cref{subseteq}.
            Therefore $N\mathrel{R} M$ by \cref{relation}.
        \end{subproof}
        Take $m$ such that $m$ is a function on $G$ and for all $N\in G$ we have $N\mathrel{R}\apply{m}{N}$ by \cref{axiom_of_choice}.
        Let $H = \img{m}{G}$.
        Let $W = \inters{H}$.
        We have $H\subseteq T_0$ by \cref{img_iff,subseteq,function_apply_iff,relation,pair_eq_iff,compact_convergence_ball_open,compact_convergence_topology,open_in,topology_on}.
        $H$ is finite by \cref{pair_eq_iff,finite_image_function}.
        $G$ is inhabited by \cref{covering,subseteq,unions_iff,nonempty_inhabited}.
        $H$ is inhabited by \cref{pair_eq_iff,function_apply_elim,img_iff,nonempty_inhabited}.
        Hence $W$ is open in $\funs{X}{Y}$ with respect to $T_0$
            by \cref{compact_convergence_topology,finite_intersections_open_in_topology,open_in}.
        Show that for all $P$ if $P\in H$ then $h\in P$.
        \begin{subproof}
            Follows by \cref{img_iff,subseteq,function_apply_iff,relation,pair_eq_iff,compact_convergence_ball_center}.
        \end{subproof}
        $h\in W$ by \cref{inters_iff_forall}.
        Show that for all $g$ if $g\in W\inter C$ then $g\in A$.
        \begin{subproof}
            Fix $g$.
            Assume $g\in W\inter C$.
            We have $g\in W$ and $g\in C$ by \cref{inter_elim_left,inter_elim_right}.
            $g\in F$ by \cref{pair_eq_iff}.
            Show that for all $z$ if $z\in\img{g}{C_0}$ then $z\in V$.
            \begin{subproof}
                    Fix $z$.
                    Assume $z\in\img{g}{C_0}$.
                    $g\in\funs{X}{Y}$ by \cref{continuous_function_set}.
                    Take $x\in\dom{g}\inter C_0$ such that $z = g(x)$ by \cref{funs_is_function,img_of_function_elim}.
                    $x\in C_0$ by \cref{inter_elim_right}.
                    Take $N\in G$ such that $x\in N$ by \cref{covering,subseteq,unions_iff}.
                    $N\in\dom{m}$ by \cref{subseteq}.
                    $N\mathrel{R}\apply{m}{N}$ by \cref{subseteq}.
                    Take $x_0, \epsilon, \delta, B_0$ such that
                        $x_0\in C_0$ and
                        $\epsilon\in\reals$ and
                        $\delta\in\reals$ and
                        $0 < \epsilon$ and
                        $0 < \delta$ and
                        $\delta < 1$ and
                        $\delta + \delta = \epsilon$ and
                        $B_0$ is the closed metric ball in $Y$ about $h(x_0)$ with radius $\delta$ with respect to $d$ and
                        $\metricBall{d}{Y}{h(x_0)}{\epsilon}\subseteq V$ and
                        $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x_0)}{\delta}}$ and
                        $\apply{m}{N}$ is the compact-convergence ball about $h$ over $\preimg{\restrl{h}{C_0}}{B_0}$ with radius $\delta$
                            from $X$ to $Y$ with respect to $T$ and $d$
                        by \cref{relation,pair_eq_iff}.
                    Take $y\in\metricBall{d}{Y}{h(x_0)}{\delta}$ such that $(x,y)\in\restrl{h}{C_0}$ by \cref{preimg_iff}.
                    $x\in X$ by \cref{subseteq}.
                    $x\in\dom{h}$ by \cref{continuous,funs_elim,subseteq}.
                    $(x,h(x))\in h$ by \cref{function_apply_elim,funs_is_function}.
                    $(x,h(x))\in\restrl{h}{C_0}$ by \cref{restrl_iff}.
                    $\restrl{h}{C_0}\in\funs{C_0}{Y}$ by \cref{continuous,funs}.
                    Therefore $y = h(x)$ by \cref{function_rightunique,funs_is_function}.
                    $h(x)\in\metricBall{d}{Y}{h(x_0)}{\delta}$ by \cref{pair_eq_iff}.
                    $x\in\preimg{\restrl{h}{C_0}}{B_0}$ by \cref{metric_ball_subset_closed_metric_ball,preimg_iff}.
                    Let $K = \preimg{\restrl{h}{C_0}}{B_0}$.
                    $x\in K$ by \cref{pair_eq_iff}.
                    $\apply{m}{N}\in H$ by \cref{pair_eq_iff,function_apply_elim,img_iff}.
                    $g\in\apply{m}{N}$ by \cref{inters_iff_forall}.
                    Take $\rho$ such that
                        $\rho$ is the uniform metric on functions from $K$ to $Y$ with respect to $d$ and
                        $\apply{m}{N} = \{u\in\funs{X}{Y} \mid \rho((\restrl{h}{K},\restrl{u}{K})) < \delta\}$
                        by \cref{compact_convergence_ball}.
                    We have $g\in\funs{X}{Y}$ and $\rho((\restrl{h}{K},\restrl{g}{K})) < \delta$ by \cref{inters_iff_forall}.
                    $K\subseteq X$ by \cref{preimg_subseteq_dom,restrl_dom,subseteq}.
                    $\restrl{h}{K}\in\funs{K}{Y}$ and $\restrl{g}{K}\in\funs{K}{Y}$ by \cref{restrl_typed_function}.
                    $d((\apply{\restrl{h}{K}}{x}, \apply{\restrl{g}{K}}{x})) < \delta$
                        by \cref{uniform_metric_small_implies_pointwise_small}.
                    $\apply{\restrl{h}{K}}{x} = h(x)$ and $\apply{\restrl{g}{K}}{x} = g(x)$
                        by \cref{restrl_of_function_apply,subseteq,funs_is_function,funs_is_relation,funs_elim}.
                    Hence $d((h(x),g(x))) < \delta$ by \cref{pair_eq_iff}.
                    $h(x_0)\in Y$ by \cref{funs_type_apply,subseteq}.
                    $h(x)\in Y$ by \cref{metric_ball,subseteq}.
                    $g(x)\in Y$ by \cref{funs_type_apply}.
                    $d((h(x_0),h(x))) < \delta$ by \cref{metric_ball}.
                    $(h(x_0),h(x))\in Y\times Y$ and $(h(x),g(x))\in Y\times Y$ and $(h(x_0),g(x))\in Y\times Y$
                        by \cref{times_tuple_intro}.
                    $d((h(x_0),g(x))) \leq d((h(x_0),h(x))) + d((h(x),g(x)))$
                        by \cref{metric_on,metric_triangle_inequality}.
                    $d((h(x_0),h(x)))\in\reals$ and $d((h(x),g(x)))\in\reals$ and $d((h(x_0),g(x)))\in\reals$
                        by \cref{metric_on,funs_type_apply}.
                    $d((h(x_0),h(x))) + d((h(x),g(x))) < \delta + \delta$ by \cref{real_lt_add_two}.
                    $d((h(x_0),g(x))) < \delta + \delta$
                        by \cref{real_leq_split,real_lt_trans,real_lt_subst_left,real_add_closed}.
                    Hence $d((h(x_0),g(x))) < \epsilon$ by \cref{real_lt_subst_right}.
                    $g(x)\in\metricBall{d}{Y}{h(x_0)}{\epsilon}$ by \cref{metric_ball}.
                    Thus $g(x)\in V$ by \cref{subseteq}.
                    Therefore $z\in V$ by \cref{pair_eq_iff}.
            \end{subproof}
            $\img{g}{C_0}\subseteq V$ by \cref{subseteq}.
            Therefore $g\in A$ by \cref{inters_iff_forall}.
        \end{subproof}
        Follows by definition.
    \end{byCase}
\end{proof}
Lemma 888
closed_ball_preimage_compact_subspace

Assume $T$ is a topology on $X$.
Assume $d$ is a metric on $Y$.
Let $U = \metricTopology{d}{Y}$.
Assume $h$ is continuous from $X$ to $Y$ with respect to $T$ and $U$.
Assume $C_0$ is a compact subspace of $X$ with respect to $T$.
Assume $B_0$ is the closed metric ball in $Y$ about $y$ with radius $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ with respect to $d$.
Let $Q = \preimg{\restrl{h}{C_0}}{B_0}$.
Then $Q$ is a compact subspace of $X$ with respect to $T$.

LaTeX source
\begin{lemma}
\label{closed_ball_preimage_compact_subspace}
    Assume $T$ is a topology on $X$.
    Assume $d$ is a metric on $Y$.
    Let $U = \metricTopology{d}{Y}$.
    Assume $h$ is continuous from $X$ to $Y$ with respect to $T$ and $U$.
    Assume $C_0$ is a compact subspace of $X$ with respect to $T$.
    Assume $B_0$ is the closed metric ball in $Y$ about $y$ with radius $\delta$ with respect to $d$.
    Let $Q = \preimg{\restrl{h}{C_0}}{B_0}$.
    Then $Q$ is a compact subspace of $X$ with respect to $T$.
\end{lemma}
Proof

$C_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 263.
Let $T_C = \subspaceTopology{T}{C_0}$.
$T_C$ is a topology on $C_0$ by Definition 1, Definition 263, Lemma 131.
$C_0$ is compact with respect to $T_C$ by Definition 263.
$\restrl{h}{C_0}$ is continuous from $C_0$ to $Y$ with respect to $T_C$ and $U$ by Definition 147, Definition 263, Lemma 166.
$B_0$ is closed in $Y$ with respect to $U$ by Lemma 883.
$\preimg{\restrl{h}{C_0}}{Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} B_0}$ is open in $C_0$ with respect to $T_C$ by Definition 149, Definition 160.
We have $\preimg{\restrl{h}{C_0}}{Y\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} B_0} = C_0\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} Q$ by Axiom 6, Definition 55, Definition 149, Definition 160, Lemma 157, Proposition 97.
Therefore $C_0\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} Q$ is open in $C_0$ with respect to $T_C$ by Axiom 6.
$Q\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C_0$ by Definition 1, Proposition 249, Proposition 269.
$Q$ is compact with respect to $\subspaceTopology{T}{Q}$ by Definition 1, Definition 149, Lemma 307, Theorem 59.
Hence $Q$ is a compact subspace of $X$ with respect to $T$ by Definition 263, Proposition 6.

LaTeX source
\begin{proof}
    $C_0\subseteq X$ by \cref{compact_subspace}.
    Let $T_C = \subspaceTopology{T}{C_0}$.
    $T_C$ is a topology on $C_0$ by \cref{compact_subspace,subseteq,subspace_topology_is_topology}.
    $C_0$ is compact with respect to $T_C$ by \cref{compact_subspace}.
    $\restrl{h}{C_0}$ is continuous from $C_0$ to $Y$ with respect to $T_C$ and $U$
        by \cref{subspace_of,compact_subspace,continuous_restrict_domain}.
    $B_0$ is closed in $Y$ with respect to $U$ by \cref{closed_metric_ball_closed}.
    $\preimg{\restrl{h}{C_0}}{Y\setminus B_0}$ is open in $C_0$ with respect to $T_C$ by \cref{continuous,closed_in}.
    We have $\preimg{\restrl{h}{C_0}}{Y\setminus B_0} = C_0\setminus Q$ by
        \cref{continuous,funs,closed_in,setminus_subseteq,preimg_setminus_function,pair_eq_iff}.
    Therefore $C_0\setminus Q$ is open in $C_0$ with respect to $T_C$ by \cref{pair_eq_iff}.
    $Q\subseteq C_0$ by \cref{preimg_subseteq_dom,restrl_dom,subseteq}.
    $Q$ is compact with respect to $\subspaceTopology{T}{Q}$
        by \cref{closed_in,closed_subspace_compact,subspace_subspace_topology,subseteq}.
    Hence $Q$ is a compact subspace of $X$ with respect to $T$ by \cref{compact_subspace,subseteq_transitive}.
\end{proof}
Lemma 889
compact_convergence_local_compact_open

Assume $T$ is a topology on $X$.
Assume $d$ is a metric on $Y$.
Let $U = \metricTopology{d}{Y}$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Assume $K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Assume $A$ is the compact-convergence ball about $h$ over $C_0$ with radius $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ from $X$ to $Y$ with respect to $T$ and $d$.
Assume $h\class{latex-symbol-tip latex-symbol-id-in}{\in} C$.
Then there exists $M$ such that $M$ is open in $C$ with respect to $K$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ and for all $g$ if $g\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ then $g\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.

LaTeX source
\begin{lemma}
\label{compact_convergence_local_compact_open}
    Assume $T$ is a topology on $X$.
    Assume $d$ is a metric on $Y$.
    Let $U = \metricTopology{d}{Y}$.
    Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Assume $K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Assume $A$ is the compact-convergence ball about $h$ over $C_0$ with radius $\epsilon$
        from $X$ to $Y$ with respect to $T$ and $d$.
    Assume $h\in C$.
    Then there exists $M$ such that
        $M$ is open in $C$ with respect to $K$ and
        $h\in M$ and
        for all $g$ if $g\in M$ then $g\in A$.
\end{lemma}
Proof

Let $F = \funs{X}{Y}$.
Take $F_0, S$ such that $F_0$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $S$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $K = \subbasisTopology{S}{F_0}$ by Definition 375.
We have $K = \subbasisTopology{S}{C}$ by Axiom 1 [Set extensionality], Axiom 6, Definition 345.
$K$ is a topology on $C$ by Definition 115, Definition 126, Definition 375, Lemma 76, Lemma 99, Lemma 884.
Take $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ such that $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}$ is the uniform metric on functions from $C_0$ to $Y$ with respect to $d$ and $A = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{h}{C_0},\restrl{g}{C_0})) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\}$ by Definition 367.
$C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} F$ by Definition 1, Definition 345.
$h\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $h$ is continuous from $X$ to $Y$ with respect to $T$ and $U$ by Definition 345.
$U$ is a topology on $Y$ by Definition 115, Definition 182, Lemma 76, Lemma 194.
$C_0$ is a compact subspace of $X$ with respect to $T$ and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Definition 367.
$C_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 263.
$C_0$ is a subspace of $X$ with respect to $T$ by Definition 147.
Let $T_C = \subspaceTopology{T}{C_0}$.
$T_C$ is a topology on $C_0$ by Lemma 131.
$C_0$ is compact with respect to $T_C$ by Definition 263.
$\restrl{h}{C_0}$ is continuous from $C_0$ to $Y$ with respect to $T_C$ and $U$ by Lemma 166.
Take $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ such that $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ and $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} < 1$ and $\class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Lemma 867.
Let $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} = \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha} / (1 + 1)$.
$\class{latex-symbol-tip latex-symbol-id-eta}{\eta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ and $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} + \class{latex-symbol-tip latex-symbol-id-eta}{\eta} = \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ by Axiom 41, Axiom 42, Definition 1, Lemma 275, Proposition 462.
Let $\lambda = \class{latex-symbol-tip latex-symbol-id-eta}{\eta} / (1 + 1)$.
$\lambda\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \lambda$ and $\lambda + \lambda = \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Axiom 41, Axiom 42, Definition 1, Lemma 275, Proposition 462.
Let $D = \{N\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{C_0} \mid \text{there exists $x$ such that $x\in C_0$ and $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\lambda}}$}\}$.

Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C_0$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{D}$.

Fix $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C_0$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ by Definition 1, Definition 160, Definition 263, Proposition 359.
$h(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 1, Definition 263, Proposition 361.
$d((h(x),h(x))) = 0$ by Definition 176, Definition 179, Proposition 115, Proposition 361.
$h(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{Y}{h(x)}{\lambda}$ by Definition 180, Lemma 82.
Let $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\lambda}}$.
We have $N\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Definition 1, Proposition 155, Proposition 249, Proposition 269.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} N$ by Proposition 246, Proposition 262, Proposition 348, Proposition 356.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{D}$ by Axiom 4.

$D$ is a covering of $C_0$ by Definition 1, Definition 245.

Claim: For all $N$ if $N\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ then $N$ is open in $C_0$ with respect to $T_C$.

Hence $D$ is an open covering of $C_0$ with respect to $T_C$ by Definition 246.
Take $G$ such that $G\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} D$ and $G$ is finite and $G$ is a covering of $C_0$ by Definition 247.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} G\class{latex-symbol-tip latex-symbol-id-times}{\times}\pow{F} \mid \text{there exist $N, P, x, B_0, L, V$ such that $N\in G$ and $P\in\pow{F}$ and $x\in C_0$ and $w = (N,P)$ and $B_0$ is the closed metric ball in $Y$ about $h(x)$ with radius $\lambda$ with respect to $d$ and $L = \preimg{\restrl{h}{C_0}}{B_0}$ and $V = \metricBall{d}{Y}{h(x)}{\eta}$ and $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\lambda}}$ and $L$ is a compact subspace of $X$ with respect to $T$ and $P$ is the set of continuous functions from $X$ to $Y$ that carry $L$ into $V$ with respect to $T$ and $U$}\}$.
We have $R$ is a relation by Definition 1, Definition 12, Proposition 121.

Claim: For all $N\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ there exists $P$ such that $N\mathrel{R} P$.

Fix $N\class{latex-symbol-tip latex-symbol-id-in}{\in} G$.
Take $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C_0$ and $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\lambda}}$ by Definition 1.
$h(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 1, Definition 263, Proposition 361.
Let $B_0 = \{y\class{latex-symbol-tip latex-symbol-id-in}{\in} Y \mid d((h(x),y)) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \lambda\}$.
$B_0$ is the closed metric ball in $Y$ about $h(x)$ with radius $\lambda$ with respect to $d$ by Definition 376.
Let $L = \preimg{\restrl{h}{C_0}}{B_0}$.
$L$ is a compact subspace of $X$ with respect to $T$ by Lemma 888.
Let $V = \metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-eta}{\eta}}$.
$V$ is open in $Y$ with respect to $U$ by Definition 1, Definition 103, Definition 115, Definition 180, Definition 181, Definition 182, Lemma 76, Lemma 77, Lemma 194, Proposition 155.
Let $P = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in} C \mid \img{g}{L}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V\}$.
$P$ is the set of continuous functions from $X$ to $Y$ that carry $L$ into $V$ with respect to $T$ and $U$ by Definition 373.
$P\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{F}$ by Definition 1, Definition 345, Proposition 6, Proposition 155.
Let $w = (N,P)$.
$w\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Definition 1, Proposition 115.
Therefore $N\mathrel{R} P$ by Definition 12.

Take $m$ such that $m$ is a function on $G$ and for all $N\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ we have $N\mathrel{R}\apply{m}{N}$ by Axiom 54.
Let $H_0 = \img{m}{G}$.
Let $H = H_0\union\{C,C\}$.
Let $M = \inters{H}$.
We have $H_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} K$ by Axiom 6, Definition 1, Definition 12, Definition 101, Definition 103, Definition 374, Lemma 886, Proposition 235, Proposition 349.
$H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} K$ by Axiom 5, Axiom 6, Definition 1, Definition 101, Proposition 19.
$H_0$ is finite by Axiom 6, Lemma 192.
$H$ is finite by Lemma 40, Lemma 45.
$C\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ by Proposition 16, Proposition 39.
Thus $M\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ by Lemma 124.
$M$ is open in $C$ with respect to $K$ by Definition 103.

Claim: For all $P$ if $P\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ then $h\class{latex-symbol-tip latex-symbol-id-in}{\in} P$.

Fix $P$.
Assume $P\class{latex-symbol-tip latex-symbol-id-in}{\in} H$.
$P\class{latex-symbol-tip latex-symbol-id-in}{\in} H_0$ or $P\class{latex-symbol-tip latex-symbol-id-in}{\in}\{C,C\}$ by Axiom 5.

Case. $P\class{latex-symbol-tip latex-symbol-id-in}{\in} H_0$.

Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ such that $(N,P)\class{latex-symbol-tip latex-symbol-id-in}{\in} m$ by Proposition 235.
$N\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{m}$ by Definition 1.
$N\mathrel{R}\apply{m}{N}$ by Definition 1.
$P = \apply{m}{N}$ by Proposition 349.
Take $N_0, P_0, x_0, B_0, L, V$ such that $(N,\apply{m}{N}) = (N_0,P_0)$ and $N_0\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ and $P_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{F}$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} C_0$ and $B_0$ is the closed metric ball in $Y$ about $h(x_0)$ with radius $\lambda$ with respect to $d$ and $L = \preimg{\restrl{h}{C_0}}{B_0}$ and $V = \metricBall{d}{Y}{h(x_0)}{\class{latex-symbol-tip latex-symbol-id-eta}{\eta}}$ and $N_0 = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x_0)}{\lambda}}$ and $L$ is a compact subspace of $X$ with respect to $T$ and $P_0$ is the set of continuous functions from $X$ to $Y$ that carry $L$ into $V$ with respect to $T$ and $U$ by Axiom 6, Definition 12.
$P$ is the set of continuous functions from $X$ to $Y$ that carry $L$ into $V$ with respect to $T$ and $U$ by Axiom 6.

Claim: For all $z$ if $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{h}{L}$ then $z\class{latex-symbol-tip latex-symbol-id-in}{\in} V$.

$\img{h}{L}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ by Definition 1.
Take $Q$ such that $Q$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $P = \{f\class{latex-symbol-tip latex-symbol-id-in}{\in} Q \mid \img{f}{L}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V\}$ by Definition 373.
$h\class{latex-symbol-tip latex-symbol-id-in}{\in} Q$ by Axiom 1 [Set extensionality], Axiom 6, Definition 345.
Therefore $h\class{latex-symbol-tip latex-symbol-id-in}{\in} P$ by Proposition 30.

Case. $P\class{latex-symbol-tip latex-symbol-id-in}{\in}\{C,C\}$.

$h\class{latex-symbol-tip latex-symbol-id-in}{\in} P$ by Axiom 6, Proposition 19.

LaTeX source
\begin{byCase}
        \caseOf{$P\in H_0$.}
            Take $N\in G$ such that $(N,P)\in m$ by \cref{img_iff}.
            $N\in\dom{m}$ by \cref{subseteq}.
            $N\mathrel{R}\apply{m}{N}$ by \cref{subseteq}.
            $P = \apply{m}{N}$ by \cref{function_apply_iff}.
            Take $N_0, P_0, x_0, B_0, L, V$ such that
                $(N,\apply{m}{N}) = (N_0,P_0)$ and
                $N_0\in G$ and
                $P_0\in\pow{F}$ and
                $x_0\in C_0$ and
                $B_0$ is the closed metric ball in $Y$ about $h(x_0)$ with radius $\lambda$ with respect to $d$ and
                $L = \preimg{\restrl{h}{C_0}}{B_0}$ and
                $V = \metricBall{d}{Y}{h(x_0)}{\eta}$ and
                $N_0 = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x_0)}{\lambda}}$ and
                $L$ is a compact subspace of $X$ with respect to $T$ and
                $P_0$ is the set of continuous functions from $X$ to $Y$ that carry $L$ into $V$ with respect to $T$ and $U$
                by \cref{relation,pair_eq_iff}.
            $P$ is the set of continuous functions from $X$ to $Y$ that carry $L$ into $V$ with respect to $T$ and $U$
                by \cref{pair_eq_iff}.
            Show that for all $z$ if $z\in\img{h}{L}$ then $z\in V$.
            \begin{subproof}
                Follows by \cref{funs_is_function,img_of_function_elim,inter_elim_right,preimg_iff,preimg_subseteq_dom,restrl_dom,subseteq,continuous,funs_elim,function_apply_elim,restrl_iff,function_rightunique,pair_eq_iff,half_radius_closed_ball_subset_open_ball}.
            \end{subproof}
            $\img{h}{L}\subseteq V$ by \cref{subseteq}.
            Take $Q$ such that
                $Q$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
                $P = \{f\in Q \mid \img{f}{L}\subseteq V\}$ by \cref{compact_open_set}.
            $h\in Q$ by \cref{continuous_function_set,setext,pair_eq_iff}.
            Therefore $h\in P$ by \cref{inters_iff_forall}.
        \caseOf{$P\in\{C,C\}$.}
            $h\in P$ by \cref{upair_iff,pair_eq_iff}.
        
\end{byCase}

$h\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ by Proposition 30.

Claim: For all $g$ if $g\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ then $g\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.

Fix $g$.
Assume $g\class{latex-symbol-tip latex-symbol-id-in}{\in} M$.
We have $g\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Definition 1, Definition 101, Definition 103, Definition 345, Proposition 156.
$\restrl{h}{C_0}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C_0}{Y}$ and $\restrl{g}{C_0}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C_0}{Y}$ by Definition 1, Definition 263, Definition 345, Lemma 862.

Claim: For all $y\class{latex-symbol-tip latex-symbol-id-in}{\in} C_0$ we have $\apply{\boundedMetric{d}}{(\apply{\restrl{h}{C_0}}{y}, \apply{\restrl{g}{C_0}}{y})} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$.

Fix $y$.
Assume $y\class{latex-symbol-tip latex-symbol-id-in}{\in} C_0$.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} N$ by Axiom 4, Definition 1, Definition 245.
$N\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{m}$ by Definition 1.
$N\mathrel{R}\apply{m}{N}$ by Definition 1.
Take $x, B_0, L, V$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C_0$ and $B_0$ is the closed metric ball in $Y$ about $h(x)$ with radius $\lambda$ with respect to $d$ and $L = \preimg{\restrl{h}{C_0}}{B_0}$ and $V = \metricBall{d}{Y}{h(x)}{\class{latex-symbol-tip latex-symbol-id-eta}{\eta}}$ and $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\lambda}}$ and $L$ is a compact subspace of $X$ with respect to $T$ and $\apply{m}{N}$ is the set of continuous functions from $X$ to $Y$ that carry $L$ into $V$ with respect to $T$ and $U$ by Axiom 6, Definition 12.
Take $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{Y}{h(x)}{\lambda}$ such that $(y,u)\class{latex-symbol-tip latex-symbol-id-in}{\in}\restrl{h}{C_0}$ by Proposition 246.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ by Definition 1, Definition 160, Definition 263, Proposition 359.
$(y,h(y))\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ by Proposition 348, Proposition 356.
$(y,h(y))\class{latex-symbol-tip latex-symbol-id-in}{\in}\restrl{h}{C_0}$ by Proposition 262.
$u = h(y)$ by Definition 1, Definition 263, Definition 345, Lemma 862, Proposition 345, Proposition 356.
$h(y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBall{d}{Y}{h(x)}{\lambda}$ by Axiom 6.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} L$ by Axiom 6, Lemma 882, Proposition 246.
$g\class{latex-symbol-tip latex-symbol-id-in}{\in}\apply{m}{N}$ by Axiom 6, Proposition 30, Proposition 38, Proposition 235, Proposition 348.
Take $Q$ such that $Q$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $\apply{m}{N} = \{f\class{latex-symbol-tip latex-symbol-id-in}{\in} Q \mid \img{f}{L}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V\}$ by Definition 373.
$g\class{latex-symbol-tip latex-symbol-id-in}{\in} Q$ by Axiom 1 [Set extensionality], Axiom 6, Definition 345.
$\img{g}{L}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ by Proposition 30.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}\inter L$ by Axiom 6, Definition 1, Definition 345, Proposition 61, Proposition 359.
$g(y)\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{g}{L}$ by Definition 345, Proposition 356, Proposition 364.
$g(y)\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Definition 1.
$h(y)\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Axiom 6, Lemma 882, Lemma 885, Proposition 246.
$h(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 1, Definition 263, Proposition 361.
$h(y)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ and $g(y)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Definition 1, Definition 180.
$(h(y),g(y))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $(h(y),h(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ and $(h(x),g(y))\class{latex-symbol-tip latex-symbol-id-in}{\in} Y\class{latex-symbol-tip latex-symbol-id-times}{\times} Y$ by Proposition 115.
$d((h(y),h(x))) < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ and $d((h(x),g(y))) < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Definition 177, Definition 179, Definition 180, Lemma 82.
$d((h(y),g(y))) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} d((h(y),h(x))) + d((h(x),g(y)))$ by Definition 178, Definition 179.
$d((h(y),h(x)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((h(x),g(y)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $d((h(y),g(y)))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Proposition 361.
$d((h(y),h(x))) + d((h(x),g(y))) < \class{latex-symbol-tip latex-symbol-id-eta}{\eta} + \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Proposition 450.
$d((h(y),g(y))) < \class{latex-symbol-tip latex-symbol-id-eta}{\eta} + \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Axiom 13, Axiom 36, Lemma 81, Lemma 82.
Hence $d((h(y),g(y))) < \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ by Lemma 83.
$d((h(y),g(y))) < 1$ by Axiom 36, Axiom 41, Axiom 42, Definition 1, Definition 179, Proposition 115, Proposition 361.
Therefore $\apply{\boundedMetric{d}}{(h(y),g(y))} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ by Lemma 82, Lemma 204, Lemma 231.
$\apply{\restrl{h}{C_0}}{y} = h(y)$ and $\apply{\restrl{g}{C_0}}{y} = g(y)$ by Definition 1, Definition 263, Definition 345, Proposition 355, Proposition 356, Proposition 359, Proposition 384.
$\apply{\boundedMetric{d}}{(\apply{\restrl{h}{C_0}}{y}, \apply{\restrl{g}{C_0}}{y})} = \apply{\boundedMetric{d}}{(h(y),g(y))}$ by Axiom 6.
Hence $\apply{\boundedMetric{d}}{(\apply{\restrl{h}{C_0}}{y}, \apply{\restrl{g}{C_0}}{y})} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ by Axiom 6.

$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{h}{C_0},\restrl{g}{C_0})) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-alpha}{\alpha}$ by Lemma 677.
$\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{h}{C_0},\restrl{g}{C_0}))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Definition 344, Proposition 115, Proposition 361.
Hence $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{h}{C_0},\restrl{g}{C_0})) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ by Axiom 36, Lemma 81, Lemma 82.
Therefore $g\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 1.

Follows by definition.

LaTeX source
\begin{proof}
    Let $F = \funs{X}{Y}$.
    Take $F_0, S$ such that
        $F_0$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
        $S$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
        $K = \subbasisTopology{S}{F_0}$ by \cref{compact_open_topology}.
    We have $K = \subbasisTopology{S}{C}$ by \cref{continuous_function_set,setext,pair_eq_iff}.
    $K$ is a topology on $C$ by \cref{compact_open_subbasis_is_subbasis,compact_open_topology,subbasis_finite_intersections_basis,basis_for_topology,basis_topology_is_topology,topology_generated_by_subbasis}.
    Take $\rho$ such that
        $\rho$ is the uniform metric on functions from $C_0$ to $Y$ with respect to $d$ and
        $A = \{g\in F \mid \rho((\restrl{h}{C_0},\restrl{g}{C_0})) < \epsilon\}$ by \cref{compact_convergence_ball}.
    $C\subseteq F$ by \cref{continuous_function_set,subseteq}.
    $h\in F$ and $h$ is continuous from $X$ to $Y$ with respect to $T$ and $U$
        by \cref{continuous_function_set}.
    $U$ is a topology on $Y$ by \cref{metric_basis_is_basis,basis_topology_is_topology,metric_topology,basis_for_topology}.
    $C_0$ is a compact subspace of $X$ with respect to $T$ and $\epsilon\in\reals$ and $0 < \epsilon$
        by \cref{compact_convergence_ball}.
    $C_0\subseteq X$ by \cref{compact_subspace}.
    $C_0$ is a subspace of $X$ with respect to $T$ by \cref{subspace_of}.
    Let $T_C = \subspaceTopology{T}{C_0}$.
    $T_C$ is a topology on $C_0$ by \cref{subspace_topology_is_topology}.
    $C_0$ is compact with respect to $T_C$ by \cref{compact_subspace}.
    $\restrl{h}{C_0}$ is continuous from $C_0$ to $Y$ with respect to $T_C$ and $U$
        by \cref{continuous_restrict_domain}.
    Take $\alpha$ such that
        $\alpha\in\reals$ and
        $0 < \alpha$ and
        $\alpha < 1$ and
        $\alpha < \epsilon$ by \cref{positive_real_has_smaller_positive_below_one}.
    Let $\eta = \alpha / (1 + 1)$.
    $\eta\in\reals$ and $0 < \eta$ and $\eta + \eta = \alpha$
        by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_zero_lt_one,real_half_of_positive}.
    Let $\lambda = \eta / (1 + 1)$.
    $\lambda\in\reals$ and $0 < \lambda$ and $\lambda + \lambda = \eta$
        by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq,real_zero_lt_one,real_half_of_positive}.
    Let $D = \{N\in\pow{C_0} \mid \text{there exists $x$ such that
        $x\in C_0$ and
        $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\lambda}}$}\}$.
    Show that for all $x\in C_0$ we have $x\in\unions{D}$.
    \begin{subproof}
        Fix $x\in C_0$.
        $x\in\dom{h}$ by \cref{compact_subspace,continuous,funs_elim,subseteq}.
        $h(x)\in Y$ by \cref{compact_subspace,subseteq,funs_type_apply}.
        $d((h(x),h(x))) = 0$ by \cref{metric_on,metric_zero_characterization,times_tuple_intro,funs_type_apply}.
        $h(x)\in\metricBall{d}{Y}{h(x)}{\lambda}$ by \cref{real_lt_subst_left,metric_ball}.
        Let $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\lambda}}$.
        We have $N\in D$ by \cref{preimg_subseteq_dom,restrl_dom,subseteq,powerset_intro}.
        $x\in N$ by \cref{function_apply_elim,funs_is_function,restrl_iff,preimg_iff}.
        Therefore $x\in\unions{D}$ by \cref{unions_iff}.
    \end{subproof}
    $D$ is a covering of $C_0$ by \cref{subseteq,covering}.
    Show that for all $N$ if $N\in D$ then $N$ is open in $C_0$ with respect to $T_C$.
    \begin{subproof}
        Follows by \cref{subseteq,funs_type_apply,metric_ball,powerset_intro,metric_basis,metric_basis_is_basis,basis_elem_open_in_generated,metric_topology,open_in,basis_topology_is_topology,basis_for_topology,continuous}.
    \end{subproof}
    Hence $D$ is an open covering of $C_0$ with respect to $T_C$ by \cref{open_covering}.
    Take $G$ such that $G\subseteq D$ and $G$ is finite and $G$ is a covering of $C_0$
        by \cref{compact}.
    Let $R = \{w\in G\times\pow{F} \mid \text{there exist $N, P, x, B_0, L, V$ such that
        $N\in G$ and
        $P\in\pow{F}$ and
        $x\in C_0$ and
        $w = (N,P)$ and
        $B_0$ is the closed metric ball in $Y$ about $h(x)$ with radius $\lambda$ with respect to $d$ and
        $L = \preimg{\restrl{h}{C_0}}{B_0}$ and
        $V = \metricBall{d}{Y}{h(x)}{\eta}$ and
        $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\lambda}}$ and
        $L$ is a compact subspace of $X$ with respect to $T$ and
        $P$ is the set of continuous functions from $X$ to $Y$ that carry $L$ into $V$ with respect to $T$ and $U$}\}$.
    We have $R$ is a relation by \cref{relation,subseteq,times_elem_is_tuple}.
    Show that for all $N\in G$ there exists $P$ such that $N\mathrel{R} P$.
    \begin{subproof}
        Fix $N\in G$.
        Take $x$ such that
            $x\in C_0$ and
            $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\lambda}}$ by \cref{subseteq}.
        $h(x)\in Y$ by \cref{compact_subspace,subseteq,funs_type_apply}.
        Let $B_0 = \{y\in Y \mid d((h(x),y)) \leq \lambda\}$.
        $B_0$ is the closed metric ball in $Y$ about $h(x)$ with radius $\lambda$ with respect to $d$
            by \cref{closed_metric_ball}.
        Let $L = \preimg{\restrl{h}{C_0}}{B_0}$.
        $L$ is a compact subspace of $X$ with respect to $T$ by \cref{closed_ball_preimage_compact_subspace}.
        Let $V = \metricBall{d}{Y}{h(x)}{\eta}$.
        $V$ is open in $Y$ with respect to $U$ by
            \cref{metric_ball,subseteq,powerset_intro,metric_basis,metric_basis_is_basis,basis_elem_open_in_generated,basis_for_topology,metric_topology,basis_topology_is_topology,open_in}.
        Let $P = \{g\in C \mid \img{g}{L}\subseteq V\}$.
        $P$ is the set of continuous functions from $X$ to $Y$ that carry $L$ into $V$ with respect to $T$ and $U$
            by \cref{compact_open_set}.
        $P\in\pow{F}$ by \cref{subseteq,continuous_function_set,subseteq_transitive,powerset_intro}.
        Let $w = (N,P)$.
        $w\in R$ by \cref{times_tuple_intro,subseteq}.
        Therefore $N\mathrel{R} P$ by \cref{relation}.
    \end{subproof}
    Take $m$ such that $m$ is a function on $G$ and for all $N\in G$ we have $N\mathrel{R}\apply{m}{N}$ by \cref{axiom_of_choice}.
    Let $H_0 = \img{m}{G}$.
    Let $H = H_0\union\{C,C\}$.
    Let $M = \inters{H}$.
    We have $H_0\subseteq K$ by \cref{img_iff,subseteq,function_apply_iff,relation,pair_eq_iff,compact_open_function_space_subbasis,compact_open_subbasis_element_open,open_in,topology_on}.
    $H\subseteq K$ by \cref{union_iff,subseteq,upair_iff,pair_eq_iff,topology_on}.
    $H_0$ is finite by \cref{pair_eq_iff,finite_image_function}.
    $H$ is finite by \cref{pair_is_finite,union_of_finite_is_finite}.
    $C\in H$ by \cref{upair_intro_left,union_intro_right}.
    Thus $M\in K$ by \cref{finite_intersections_open_in_topology}.
    $M$ is open in $C$ with respect to $K$ by \cref{open_in}.
    Show that for all $P$ if $P\in H$ then $h\in P$.
    \begin{subproof}
        Fix $P$.
        Assume $P\in H$.
        $P\in H_0$ or $P\in\{C,C\}$ by \cref{union_iff}.
        \begin{byCase}
        \caseOf{$P\in H_0$.}
            Take $N\in G$ such that $(N,P)\in m$ by \cref{img_iff}.
            $N\in\dom{m}$ by \cref{subseteq}.
            $N\mathrel{R}\apply{m}{N}$ by \cref{subseteq}.
            $P = \apply{m}{N}$ by \cref{function_apply_iff}.
            Take $N_0, P_0, x_0, B_0, L, V$ such that
                $(N,\apply{m}{N}) = (N_0,P_0)$ and
                $N_0\in G$ and
                $P_0\in\pow{F}$ and
                $x_0\in C_0$ and
                $B_0$ is the closed metric ball in $Y$ about $h(x_0)$ with radius $\lambda$ with respect to $d$ and
                $L = \preimg{\restrl{h}{C_0}}{B_0}$ and
                $V = \metricBall{d}{Y}{h(x_0)}{\eta}$ and
                $N_0 = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x_0)}{\lambda}}$ and
                $L$ is a compact subspace of $X$ with respect to $T$ and
                $P_0$ is the set of continuous functions from $X$ to $Y$ that carry $L$ into $V$ with respect to $T$ and $U$
                by \cref{relation,pair_eq_iff}.
            $P$ is the set of continuous functions from $X$ to $Y$ that carry $L$ into $V$ with respect to $T$ and $U$
                by \cref{pair_eq_iff}.
            Show that for all $z$ if $z\in\img{h}{L}$ then $z\in V$.
            \begin{subproof}
                Follows by \cref{funs_is_function,img_of_function_elim,inter_elim_right,preimg_iff,preimg_subseteq_dom,restrl_dom,subseteq,continuous,funs_elim,function_apply_elim,restrl_iff,function_rightunique,pair_eq_iff,half_radius_closed_ball_subset_open_ball}.
            \end{subproof}
            $\img{h}{L}\subseteq V$ by \cref{subseteq}.
            Take $Q$ such that
                $Q$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
                $P = \{f\in Q \mid \img{f}{L}\subseteq V\}$ by \cref{compact_open_set}.
            $h\in Q$ by \cref{continuous_function_set,setext,pair_eq_iff}.
            Therefore $h\in P$ by \cref{inters_iff_forall}.
        \caseOf{$P\in\{C,C\}$.}
            $h\in P$ by \cref{upair_iff,pair_eq_iff}.
        \end{byCase}
    \end{subproof}
    $h\in M$ by \cref{inters_iff_forall}.
    Show that for all $g$ if $g\in M$ then $g\in A$.
    \begin{subproof}
        Fix $g$.
        Assume $g\in M$.
        We have $g\in F$ by \cref{open_in,topology_on,subseteq,powerset_elim,continuous_function_set}.
        $\restrl{h}{C_0}\in\funs{C_0}{Y}$ and $\restrl{g}{C_0}\in\funs{C_0}{Y}$
            by \cref{restrl_typed_function,continuous_function_set,compact_subspace,subseteq}.
        Show that for all $y\in C_0$ we have $\apply{\boundedMetric{d}}{(\apply{\restrl{h}{C_0}}{y}, \apply{\restrl{g}{C_0}}{y})} \leq \alpha$.
        \begin{subproof}
            Fix $y$.
            Assume $y\in C_0$.
            Take $N\in G$ such that $y\in N$ by \cref{covering,subseteq,unions_iff}.
            $N\in\dom{m}$ by \cref{subseteq}.
            $N\mathrel{R}\apply{m}{N}$ by \cref{subseteq}.
            Take $x, B_0, L, V$ such that
                $x\in C_0$ and
                $B_0$ is the closed metric ball in $Y$ about $h(x)$ with radius $\lambda$ with respect to $d$ and
                $L = \preimg{\restrl{h}{C_0}}{B_0}$ and
                $V = \metricBall{d}{Y}{h(x)}{\eta}$ and
                $N = \preimg{\restrl{h}{C_0}}{\metricBall{d}{Y}{h(x)}{\lambda}}$ and
                $L$ is a compact subspace of $X$ with respect to $T$ and
                $\apply{m}{N}$ is the set of continuous functions from $X$ to $Y$ that carry $L$ into $V$ with respect to $T$ and $U$
                by \cref{relation,pair_eq_iff}.
            Take $u\in\metricBall{d}{Y}{h(x)}{\lambda}$ such that $(y,u)\in\restrl{h}{C_0}$ by \cref{preimg_iff}.
            $y\in\dom{h}$ by \cref{compact_subspace,continuous,funs_elim,subseteq}.
            $(y,h(y))\in h$ by \cref{function_apply_elim,funs_is_function}.
            $(y,h(y))\in\restrl{h}{C_0}$ by \cref{restrl_iff}.
            $u = h(y)$ by \cref{function_rightunique,funs_is_function,restrl_typed_function,continuous_function_set,compact_subspace,subseteq}.
            $h(y)\in\metricBall{d}{Y}{h(x)}{\lambda}$ by \cref{pair_eq_iff}.
            $y\in L$ by \cref{metric_ball_subset_closed_metric_ball,preimg_iff,pair_eq_iff}.
            $g\in\apply{m}{N}$ by \cref{pair_eq_iff,function_apply_elim,img_iff,union_intro_left,inters_iff_forall}.
            Take $Q$ such that
                $Q$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
                $\apply{m}{N} = \{f\in Q \mid \img{f}{L}\subseteq V\}$ by \cref{compact_open_set}.
            $g\in Q$ by \cref{continuous_function_set,setext,pair_eq_iff}.
            $\img{g}{L}\subseteq V$ by \cref{inters_iff_forall}.
            $y\in\dom{g}\inter L$ by \cref{continuous_function_set,pair_eq_iff,funs_elim,subseteq,inter_intro}.
            $g(y)\in\img{g}{L}$ by \cref{continuous_function_set,funs_is_function,img_of_function_intro}.
            $g(y)\in V$ by \cref{subseteq}.
            $h(y)\in V$ by \cref{half_radius_closed_ball_subset_open_ball,metric_ball_subset_closed_metric_ball,preimg_iff,pair_eq_iff}.
            $h(x)\in Y$ by \cref{compact_subspace,subseteq,funs_type_apply}.
            $h(y)\in Y$ and $g(y)\in Y$ by \cref{metric_ball,subseteq}.
            $(h(y),g(y))\in Y\times Y$ and $(h(y),h(x))\in Y\times Y$ and $(h(x),g(y))\in Y\times Y$
                by \cref{times_tuple_intro}.
            $d((h(y),h(x))) < \eta$ and $d((h(x),g(y))) < \eta$ by \cref{metric_ball,metric_on,metric_symmetric,real_lt_subst_left}.
            $d((h(y),g(y))) \leq d((h(y),h(x))) + d((h(x),g(y)))$
                by \cref{metric_on,metric_triangle_inequality}.
            $d((h(y),h(x)))\in\reals$ and $d((h(x),g(y)))\in\reals$ and $d((h(y),g(y)))\in\reals$
                by \cref{metric_on,funs_type_apply}.
            $d((h(y),h(x))) + d((h(x),g(y))) < \eta + \eta$ by \cref{real_lt_add_two}.
            $d((h(y),g(y))) < \eta + \eta$ by \cref{real_leq_split,real_lt_trans,real_lt_subst_left,real_add_closed}.
            Hence $d((h(y),g(y))) < \alpha$ by \cref{real_lt_subst_right}.
            $d((h(y),g(y))) < 1$
                by \cref{metric_on,times_tuple_intro,funs_type_apply,real_one_in_naturals,real_naturals_subset_reals,subseteq,real_lt_trans}.
            Therefore $\apply{\boundedMetric{d}}{(h(y),g(y))} \leq \alpha$
                by \cref{bounded_metric_apply_below_one,real_lt_subst_left,real_lt_imp_leq}.
            $\apply{\restrl{h}{C_0}}{y} = h(y)$ and $\apply{\restrl{g}{C_0}}{y} = g(y)$
                by \cref{restrl_of_function_apply,compact_subspace,subseteq,continuous_function_set,funs_is_function,funs_is_relation,funs_elim}.
            $\apply{\boundedMetric{d}}{(\apply{\restrl{h}{C_0}}{y}, \apply{\restrl{g}{C_0}}{y})}
                = \apply{\boundedMetric{d}}{(h(y),g(y))}$ by \cref{pair_eq_iff}.
            Hence $\apply{\boundedMetric{d}}{(\apply{\restrl{h}{C_0}}{y}, \apply{\restrl{g}{C_0}}{y})} \leq \alpha$
                by \cref{pair_eq_iff}.
        \end{subproof}
        $\rho((\restrl{h}{C_0},\restrl{g}{C_0})) \leq \alpha$ by \cref{uniform_metric_leq_from_coordinate_bounds}.
        $\rho((\restrl{h}{C_0},\restrl{g}{C_0}))\in\reals$
            by \cref{uniform_metric_on_function_space,metric_on,funs_type_apply,times_tuple_intro}.
        Hence $\rho((\restrl{h}{C_0},\restrl{g}{C_0})) < \epsilon$ by
            \cref{real_leq_split,real_lt_trans,real_lt_subst_left}.
        Therefore $g\in A$ by \cref{subseteq}.
    \end{subproof}
    Follows by definition.
\end{proof}
Lemma 890
continuous_function_sets_equal

Assume $C_1$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Assume $C_2$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Then $C_1 = C_2$.

LaTeX source
\begin{lemma}
\label{continuous_function_sets_equal}
    Assume $C_1$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Assume $C_2$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Then $C_1 = C_2$.
\end{lemma}
Theorem 131
compact_open_equals_compact_convergence_on_continuous_functions

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}$.
Assume $K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d}{Y}$.
Assume $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
Then $K = \subspaceTopology{T_0}{C}$.

LaTeX source
\begin{theorem}
\label{compact_open_equals_compact_convergence_on_continuous_functions}
    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}$.
    Assume $K$ is the compact open topology on continuous functions from $X$ to $Y$
        with respect to $T$ and $\metricTopology{d}{Y}$.
    Assume $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
    Then $K = \subspaceTopology{T_0}{C}$.
\end{theorem}
Proof

Let $F = \funs{X}{Y}$.
Let $U = \metricTopology{d}{Y}$.
Take $F_0, S$ such that $F_0$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $S$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $K = \subbasisTopology{S}{F_0}$ by Definition 375.
We have $K = \subbasisTopology{S}{C}$ by Axiom 6, Lemma 890.
$U$ is a topology on $Y$ by Definition 115, Definition 182, Lemma 76, Lemma 194.
$S$ is a subbasis on $C$ by Lemma 884.
$\finiteIntersections{S}$ is a basis for $K$ on $C$ by Definition 115, Definition 126, Lemma 99.
$K$ is a topology on $C$ by Definition 115, Lemma 76.
Take $B$ such that $B$ is the compact-convergence basis on functions from $X$ to $Y$ with respect to $T$ and $d$ and $T_0 = \basisTopology{B}{F}$ by Definition 369.
Let $T_1 = \subspaceTopology{T_0}{C}$.
$C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} F$ by Definition 1, Definition 345.
$T_1$ is a topology on $C$ by Definition 369, Lemma 131.

Claim: For all $A$ if $A\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ then $A\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$.

Fix $A$.
Assume $A\class{latex-symbol-tip latex-symbol-id-in}{\in} S$.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Axiom 12, Definition 1, Definition 124, Lemma 884.

Claim: For all $h$ if $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ then there exists $P$ such that $P$ is a neighborhood of $h$ in $C$ with respect to $T_1$ and $P\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$.

Fix $h$.
Assume $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Take $C_0, V$ such that $A$ is the set of continuous functions from $X$ to $Y$ that carry $C_0$ into $V$ with respect to $T$ and $U$ by Definition 374.
Take $M$ such that $M$ is open in $F$ with respect to $T_0$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ and for all $g$ if $g\class{latex-symbol-tip latex-symbol-id-in}{\in} M\inter C$ then $g\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Lemma 887.
Let $N = C\inter M$.
$N$ is a neighborhood of $h$ in $C$ with respect to $T_1$ by Axiom 12, Definition 1, Definition 103, Definition 124, Definition 146, Definition 153, Lemma 884, Proposition 61.
$N\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Definition 1, Definition 5.
Follows by definition.

Therefore $A\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ by Definition 103, Lemma 870.

$S\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_1$ by Definition 1.

Claim: For all $W$ if $W\class{latex-symbol-tip latex-symbol-id-in}{\in}\finiteIntersections{S}$ then $W\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$.

$\finiteIntersections{S}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_1$ by Definition 1.

Claim: For all $W$ if $W\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ then $W\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$.

$K\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_1$ by Definition 1.

Claim: For all $W$ if $W\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$ then $W\class{latex-symbol-tip latex-symbol-id-in}{\in} K$.

Fix $W$.
Assume $W\class{latex-symbol-tip latex-symbol-id-in}{\in} T_1$.
$W\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C$ by Axiom 12, Definition 1, Definition 146, Proposition 73.

Claim: For all $h$ if $h\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ then there exists $P$ such that $P$ is a neighborhood of $h$ in $C$ with respect to $K$ and $P\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} W$.

Fix $h$.
Assume $h\class{latex-symbol-tip latex-symbol-id-in}{\in} W$.
Take $V\class{latex-symbol-tip latex-symbol-id-in}{\in} T_0$ such that $W = C\inter V$ by Definition 146.
$h\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Definition 5.
Take $A\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ by Axiom 6, Definition 103, Definition 114.
Take $h_0, C_0, \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $A$ is the compact-convergence ball about $h_0$ over $C_0$ with radius $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ from $X$ to $Y$ with respect to $T$ and $d$ by Definition 368.
Take $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}, D$ such that $\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 $D$ is the compact-convergence ball about $h$ over $C_0$ with radius $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ from $X$ to $Y$ with respect to $T$ and $d$ and $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Lemma 864.
Take $N$ such that $N$ is open in $C$ with respect to $K$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} N$ and for all $g$ if $g\class{latex-symbol-tip latex-symbol-id-in}{\in} N$ then $g\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Lemma 889.
$N$ is a neighborhood of $h$ in $C$ with respect to $K$ by Definition 153.
$N\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} W$ by Axiom 6, Axiom 12, Definition 1, Definition 101, Definition 103, Proposition 61.
Follows by definition.

Hence $W\class{latex-symbol-tip latex-symbol-id-in}{\in} K$ by Definition 103, Lemma 870.

$T_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} K$ by Definition 1.
Therefore $K = T_1$ by Proposition 3.

LaTeX source
\begin{proof}
    Let $F = \funs{X}{Y}$.
    Let $U = \metricTopology{d}{Y}$.
    Take $F_0, S$ such that
        $F_0$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
        $S$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
        $K = \subbasisTopology{S}{F_0}$ by \cref{compact_open_topology}.
    We have $K = \subbasisTopology{S}{C}$ by \cref{continuous_function_sets_equal,pair_eq_iff}.
    $U$ is a topology on $Y$ by \cref{metric_basis_is_basis,basis_topology_is_topology,metric_topology,basis_for_topology}.
    $S$ is a subbasis on $C$ by \cref{compact_open_subbasis_is_subbasis}.
    $\finiteIntersections{S}$ is a basis for $K$ on $C$
        by \cref{subbasis_finite_intersections_basis,basis_for_topology,topology_generated_by_subbasis}.
    $K$ is a topology on $C$ by \cref{basis_for_topology,basis_topology_is_topology}.
    Take $B$ such that
        $B$ is the compact-convergence basis on functions from $X$ to $Y$ with respect to $T$ and $d$ and
        $T_0 = \basisTopology{B}{F}$ by \cref{compact_convergence_topology}.
    Let $T_1 = \subspaceTopology{T_0}{C}$.
    $C\subseteq F$ by \cref{continuous_function_set,subseteq}.
    $T_1$ is a topology on $C$ by \cref{compact_convergence_topology,subspace_topology_is_topology}.
    Show that for all $A$ if $A\in S$ then $A\in T_1$.
    \begin{subproof}
        Fix $A$.
        Assume $A\in S$.
        $A\subseteq C$ by \cref{compact_open_subbasis_is_subbasis,subbasis_on,subseteq,pow_iff}.
        Show that for all $h$ if $h\in A$ then there exists $P$ such that
            $P$ is a neighborhood of $h$ in $C$ with respect to $T_1$ and
            $P\subseteq A$.
        \begin{subproof}
            Fix $h$.
            Assume $h\in A$.
            Take $C_0, V$ such that
                $A$ is the set of continuous functions from $X$ to $Y$ that carry $C_0$ into $V$
                    with respect to $T$ and $U$ by \cref{compact_open_function_space_subbasis}.
            Take $M$ such that
                $M$ is open in $F$ with respect to $T_0$ and
                $h\in M$ and
                for all $g$ if $g\in M\inter C$ then $g\in A$
                by \cref{compact_open_local_compact_convergence}.
            Let $N = C\inter M$.
            $N$ is a neighborhood of $h$ in $C$ with respect to $T_1$
                by \cref{subspace_topology,open_in,compact_open_subbasis_is_subbasis,subbasis_on,subseteq,pow_iff,inter_intro,neighborhood}.
            $N\subseteq A$ by \cref{inter,subseteq}.
            Follows by definition.
        \end{subproof}
        Therefore $A\in T_1$ by \cref{open_from_local_neighborhoods,open_in}.
    \end{subproof}
    $S\subseteq T_1$ by \cref{subseteq}.
    Show that for all $W$ if $W\in\finiteIntersections{S}$ then $W\in T_1$.
    \begin{subproof}
        Follows by \cref{finite_intersections,subseteq_transitive,finite_intersections_open_in_topology,pair_eq_iff}.
    \end{subproof}
    $\finiteIntersections{S}\subseteq T_1$ by \cref{subseteq}.
    Show that for all $W$ if $W\in K$ then $W\in T_1$.
    \begin{subproof}
        Follows by \cref{basis_topology_unions,subseteq_transitive,topology_on}.
    \end{subproof}
    $K\subseteq T_1$ by \cref{subseteq}.
    Show that for all $W$ if $W\in T_1$ then $W\in K$.
    \begin{subproof}
        Fix $W$.
        Assume $W\in T_1$.
        $W\subseteq C$ by \cref{subspace_topology,inter_lower_left,pow_iff,subseteq}.
        Show that for all $h$ if $h\in W$ then there exists $P$ such that
            $P$ is a neighborhood of $h$ in $C$ with respect to $K$ and
            $P\subseteq W$.
        \begin{subproof}
            Fix $h$.
            Assume $h\in W$.
            Take $V\in T_0$ such that $W = C\inter V$ by \cref{subspace_topology}.
            $h\in C$ and $h\in V$ by \cref{inter}.
            Take $A\in B$ such that $h\in A$ and $A\subseteq V$
                by \cref{open_in,pair_eq_iff,topology_generated_by_basis}.
            Take $h_0, C_0, \epsilon$ such that
                $A$ is the compact-convergence ball about $h_0$ over $C_0$ with radius $\epsilon$
                    from $X$ to $Y$ with respect to $T$ and $d$
                by \cref{compact_convergence_function_space_basis}.
            Take $\delta, D$ such that
                $\delta\in\reals$ and
                $0 < \delta$ and
                $D$ is the compact-convergence ball about $h$ over $C_0$ with radius $\delta$
                    from $X$ to $Y$ with respect to $T$ and $d$ and
                $D\subseteq A$ by \cref{compact_convergence_ball_refinement}.
            Take $N$ such that
                $N$ is open in $C$ with respect to $K$ and
                $h\in N$ and
                for all $g$ if $g\in N$ then $g\in D$
                by \cref{compact_convergence_local_compact_open}.
            $N$ is a neighborhood of $h$ in $C$ with respect to $K$ by \cref{neighborhood}.
            $N\subseteq W$
                by \cref{subseteq,open_in,topology_on,pow_iff,inter_intro,pair_eq_iff}.
            Follows by definition.
        \end{subproof}
        Hence $W\in K$ by \cref{open_from_local_neighborhoods,open_in}.
    \end{subproof}
    $T_1\subseteq K$ by \cref{subseteq}.
    Therefore $K = T_1$ by \cref{subseteq_antisymmetric}.
\end{proof}
Corollary 21
compact_convergence_on_continuous_functions_metric_independent

Assume $T$ is a topology on $X$.
Assume $d_1$ is a metric on $Y$.
Assume $d_2$ is a metric on $Y$.
Assume $\metricTopology{d_1}{Y} = \metricTopology{d_2}{Y}$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d_1}{Y}$.
Assume $T_1$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d_1$.
Assume $T_2$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d_2$.
Then $\subspaceTopology{T_1}{C} = \subspaceTopology{T_2}{C}$.

LaTeX source
\begin{corollary}
\label{compact_convergence_on_continuous_functions_metric_independent}
    Assume $T$ is a topology on $X$.
    Assume $d_1$ is a metric on $Y$.
    Assume $d_2$ is a metric on $Y$.
    Assume $\metricTopology{d_1}{Y} = \metricTopology{d_2}{Y}$.
    Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d_1}{Y}$.
    Assume $T_1$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d_1$.
    Assume $T_2$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d_2$.
    Then $\subspaceTopology{T_1}{C} = \subspaceTopology{T_2}{C}$.
\end{corollary}
Proof

Let $U = \metricTopology{d_1}{Y}$.
Let $S = \{A\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\funs{X}{Y}} \mid \text{there exist $C_0, V$ such that $A$ is the set of continuous functions from $X$ to $Y$ that carry $C_0$ into $V$ with respect to $T$ and $U$}\}$.
Let $K = \subbasisTopology{S}{C}$.
$U$ is a topology on $Y$ by Definition 115, Definition 182, Lemma 76, Lemma 194.
$S$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ by Definition 374.
$K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ by Definition 375.
$K = \subspaceTopology{T_1}{C}$ by Theorem 131.
$C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d_2}{Y}$ by Axiom 6.
$S$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d_2}{Y}$ by Axiom 6.
$K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d_2}{Y}$ by Axiom 6, Definition 375.
$K = \subspaceTopology{T_2}{C}$ by Theorem 131.
Therefore $\subspaceTopology{T_1}{C} = \subspaceTopology{T_2}{C}$ by Axiom 6.

LaTeX source
\begin{proof}
    Let $U = \metricTopology{d_1}{Y}$.
    Let $S = \{A\in\pow{\funs{X}{Y}} \mid \text{there exist $C_0, V$ such that
        $A$ is the set of continuous functions from $X$ to $Y$ that carry $C_0$ into $V$
            with respect to $T$ and $U$}\}$.
    Let $K = \subbasisTopology{S}{C}$.
    $U$ is a topology on $Y$ by \cref{metric_basis_is_basis,basis_topology_is_topology,metric_topology,basis_for_topology}.
    $S$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$
        by \cref{compact_open_function_space_subbasis}.
    $K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $U$
        by \cref{compact_open_topology}.
    $K = \subspaceTopology{T_1}{C}$ by \cref{compact_open_equals_compact_convergence_on_continuous_functions}.
    $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d_2}{Y}$
        by \cref{pair_eq_iff}.
    $S$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d_2}{Y}$
        by \cref{pair_eq_iff}.
    $K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d_2}{Y}$
        by \cref{compact_open_topology,pair_eq_iff}.
    $K = \subspaceTopology{T_2}{C}$ by \cref{compact_open_equals_compact_convergence_on_continuous_functions}.
    Therefore $\subspaceTopology{T_1}{C} = \subspaceTopology{T_2}{C}$ by \cref{pair_eq_iff}.
\end{proof}
Lemma 891
compact_domain_uniform_metric_topology_is_compact_convergence

Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
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$.
Then $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{X}{Y}}$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.

LaTeX source
\begin{lemma}
\label{compact_domain_uniform_metric_topology_is_compact_convergence}
    Assume $T$ is a topology on $X$.
    Assume $X$ is compact with respect to $T$.
    Assume $d$ is a metric on $Y$.
    Assume $\rho$ is the uniform metric on functions from $X$ to $Y$ with respect to $d$.
    Then $\metricTopology{\rho}{\funs{X}{Y}}$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
\end{lemma}
Proof

Let $F = \funs{X}{Y}$.
Let $B = \{A\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{F} \mid \text{there exist $f, C, \epsilon$ such that $A$ is the compact-convergence ball about $f$ over $C$ with radius $\epsilon$ from $X$ to $Y$ with respect to $T$ and $d$}\}$.
$B$ is the compact-convergence basis on functions from $X$ to $Y$ with respect to $T$ and $d$ by Definition 368.
Let $T_0 = \basisTopology{B}{F}$.
Let $T_X = \subspaceTopology{T}{X}$.
We have $T_X = T$ by Definition 1, Definition 101, Definition 146, Proposition 3, Proposition 70, Proposition 156.

Claim: For all $U$ if $U\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ then $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_0$.

Fix $U$.
Assume $U\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$.
$U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} F$ by Axiom 12, Definition 1, Definition 114, Definition 182, Definition 344.

Claim: For all $h\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ there exists $A\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.

Fix $h\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
Take $M\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBasis{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ such that $h\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ and $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 114, Definition 115, Definition 182, Lemma 194.
Take $f,\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $f\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ and $M = \metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}{f}{\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}}$ by Definition 181.
Let $A = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \class{latex-symbol-tip latex-symbol-id-rho}{\rho}((\restrl{f}{X},\restrl{g}{X})) < \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}\}$.
We have $M = A$ by Definition 1, Definition 180, Lemma 82, Lemma 83, Lemma 876, Proposition 3, Proposition 30.
$M$ is the compact-convergence ball about $f$ over $X$ with radius $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ from $X$ to $Y$ with respect to $T$ and $d$ by Axiom 6, Definition 263, Definition 367, Proposition 2.
$M\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Definition 1, Definition 180, Definition 368, Proposition 155.
Follows by definition.

Therefore $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_0$ by Definition 114, Proposition 155.

$\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T_0$ by Definition 1.

Claim: For all $U$ if $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_0$ then $U\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$.

Fix $U$.
Assume $U\class{latex-symbol-tip latex-symbol-id-in}{\in} T_0$.
$U\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} F$ by Axiom 12, Definition 1, Definition 114.
$\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ is a topology on $F$ by Definition 115, Definition 182, Definition 344, Lemma 76, Lemma 194.

Claim: For all $h\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ there exists $N$ such that $N$ is a neighborhood of $h$ in $F$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ and $N\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.

Fix $h\class{latex-symbol-tip latex-symbol-id-in}{\in} U$.
$h\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Definition 1.
Take $A\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 114.
Take $f, C, \class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ such that $A$ is the compact-convergence ball about $f$ over $C$ with radius $\class{latex-symbol-tip latex-symbol-id-epsilon}{\epsilon}$ from $X$ to $Y$ with respect to $T$ and $d$ by Definition 368.
Take $D,\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ such that $\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 $D$ is the compact-convergence ball about $h$ over $C$ with radius $\class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ from $X$ to $Y$ with respect to $T$ and $d$ and $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Lemma 864.
Take $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ such that $\class{latex-symbol-tip latex-symbol-id-eta}{\eta}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $0 < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ and $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} < 1$ and $\class{latex-symbol-tip latex-symbol-id-eta}{\eta} < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Lemma 867.
Let $M = \metricBall{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}{h}{\class{latex-symbol-tip latex-symbol-id-eta}{\eta}}$.
Take $\sigma$ such that $\sigma$ is the uniform metric on functions from $C$ to $Y$ with respect to $d$ and $D = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in} F \mid \sigma((\restrl{h}{C},\restrl{g}{C})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}\}$ by Definition 367.

Claim: For all $g$ if $g\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ then $g\class{latex-symbol-tip latex-symbol-id-in}{\in} D$.

Fix $g$.
Assume $g\class{latex-symbol-tip latex-symbol-id-in}{\in} M$.
We have $g\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}((h,g)) < \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Definition 180.
$\restrl{h}{C}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C}{Y}$ and $\restrl{g}{C}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{C}{Y}$ by Definition 1, Definition 263, Definition 367, Lemma 862.

Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $\apply{\boundedMetric{d}}{(\apply{\restrl{h}{C}}{x}, \apply{\restrl{g}{C}}{x})} \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$.

$\sigma((\restrl{h}{C},\restrl{g}{C})) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} \class{latex-symbol-tip latex-symbol-id-eta}{\eta}$ by Lemma 677.
$\sigma((\restrl{h}{C},\restrl{g}{C}))\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 179, Definition 344, Proposition 115, Proposition 361.
Hence $\sigma((\restrl{h}{C},\restrl{g}{C})) < \class{latex-symbol-tip latex-symbol-id-delta}{\delta}$ by Axiom 36, Lemma 81, Lemma 82.
Therefore $g\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Definition 1.

$M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Definition 1, Proposition 6.
$M\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricBasis{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ by Definition 1, Definition 180, Definition 181, Proposition 155.
$M$ is a neighborhood of $h$ in $F$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ by Definition 103, Definition 153, Definition 176, Definition 179, Definition 180, Definition 182, Definition 344, Lemma 77, Lemma 82, Lemma 194, Proposition 115.
Hence there exists $N$ such that $N$ is a neighborhood of $h$ in $F$ with respect to $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ and $N\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Axiom 6, Definition 1.

Therefore $U\class{latex-symbol-tip latex-symbol-id-in}{\in}\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ by Definition 103, Lemma 870.

$T_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ by Definition 1.

Thus $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F} = T_0$ by Proposition 3.
$\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ is a topology on $F$ by Definition 115, Definition 182, Definition 344, Lemma 76, Lemma 194.
Hence $\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{F}$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$ by Definition 369.

LaTeX source
\begin{proof}
    Let $F = \funs{X}{Y}$.
    Let $B = \{A\in\pow{F} \mid \text{there exist $f, C, \epsilon$ such that
        $A$ is the compact-convergence ball about $f$ over $C$ with radius $\epsilon$
            from $X$ to $Y$ with respect to $T$ and $d$}\}$.
    $B$ is the compact-convergence basis on functions from $X$ to $Y$ with respect to $T$ and $d$
        by \cref{compact_convergence_function_space_basis}.
    Let $T_0 = \basisTopology{B}{F}$.
    Let $T_X = \subspaceTopology{T}{X}$.
    We have $T_X = T$ by \cref{topology_on,powerset_elim,subseteq,inter_absorb_supseteq_left,subspace_topology,subseteq_antisymmetric}.

    Show that for all $U$ if $U\in\metricTopology{\rho}{F}$ then $U\in T_0$.
    \begin{subproof}
        Fix $U$.
        Assume $U\in\metricTopology{\rho}{F}$.
        $U\subseteq F$ by \cref{uniform_metric_on_function_space,metric_topology,topology_generated_by_basis,pow_iff,subseteq}.
        Show that for all $h\in U$ there exists $A\in B$ such that $h\in A$ and $A\subseteq U$.
        \begin{subproof}
            Fix $h\in U$.
            Take $M\in\metricBasis{\rho}{F}$ such that $h\in M$ and $M\subseteq U$
                by \cref{metric_topology,metric_basis_is_basis,basis_for_topology,topology_generated_by_basis}.
            Take $f,\epsilon$ such that
                $f\in F$ and
                $\epsilon\in\reals$ and
                $0 < \epsilon$ and
                $M = \metricBall{\rho}{F}{f}{\epsilon}$ by \cref{metric_basis}.
            Let $A = \{g\in F \mid \rho((\restrl{f}{X},\restrl{g}{X})) < \epsilon\}$.
            We have $M = A$
                by \cref{metric_ball,restrl_self_typed_function,real_lt_subst_left,real_lt_subst_right,inters_iff_forall,subseteq,subseteq_antisymmetric}.
            $M$ is the compact-convergence ball about $f$ over $X$ with radius $\epsilon$
                from $X$ to $Y$ with respect to $T$ and $d$
                by \cref{subseteq_refl,compact_subspace,compact_convergence_ball,pair_eq_iff}.
            $M\in B$ by \cref{metric_ball,subseteq,compact_convergence_function_space_basis,powerset_intro}.
            Follows by definition.
        \end{subproof}
        Therefore $U\in T_0$ by \cref{powerset_intro,topology_generated_by_basis}.
    \end{subproof}
    $\metricTopology{\rho}{F}\subseteq T_0$ by \cref{subseteq}.

    Show that for all $U$ if $U\in T_0$ then $U\in\metricTopology{\rho}{F}$.
    \begin{subproof}
        Fix $U$.
        Assume $U\in T_0$.
        $U\subseteq F$ by \cref{topology_generated_by_basis,pow_iff,subseteq}.
        $\metricTopology{\rho}{F}$ is a topology on $F$
            by \cref{uniform_metric_on_function_space,metric_basis_is_basis,basis_topology_is_topology,metric_topology,basis_for_topology}.
        Show that for all $h\in U$ there exists $N$ such that
            $N$ is a neighborhood of $h$ in $F$ with respect to $\metricTopology{\rho}{F}$ and
            $N\subseteq U$.
        \begin{subproof}
            Fix $h\in U$.
            $h\in F$ by \cref{subseteq}.
            Take $A\in B$ such that $h\in A$ and $A\subseteq U$ by \cref{topology_generated_by_basis}.
            Take $f, C, \epsilon$ such that
                $A$ is the compact-convergence ball about $f$ over $C$ with radius $\epsilon$
                    from $X$ to $Y$ with respect to $T$ and $d$
                by \cref{compact_convergence_function_space_basis}.
            Take $D,\delta$ such that
                $\delta\in\reals$ and
                $0 < \delta$ and
                $D$ is the compact-convergence ball about $h$ over $C$ with radius $\delta$
                    from $X$ to $Y$ with respect to $T$ and $d$ and
                $D\subseteq A$ by \cref{compact_convergence_ball_refinement}.
            Take $\eta$ such that
                $\eta\in\reals$ and
                $0 < \eta$ and
                $\eta < 1$ and
                $\eta < \delta$ by \cref{positive_real_has_smaller_positive_below_one}.
            Let $M = \metricBall{\rho}{F}{h}{\eta}$.
            Take $\sigma$ such that
                $\sigma$ is the uniform metric on functions from $C$ to $Y$ with respect to $d$ and
                $D = \{g\in F \mid \sigma((\restrl{h}{C},\restrl{g}{C})) < \delta\}$ by \cref{compact_convergence_ball}.
            Show that for all $g$ if $g\in M$ then $g\in D$.
            \begin{subproof}
                Fix $g$.
                Assume $g\in M$.
                We have $g\in F$ and $\rho((h,g)) < \eta$ by \cref{metric_ball}.
                $\restrl{h}{C}\in\funs{C}{Y}$ and $\restrl{g}{C}\in\funs{C}{Y}$
                    by \cref{compact_convergence_ball,compact_subspace,subseteq,restrl_typed_function}.
                Show that for all $x\in C$ we have
                    $\apply{\boundedMetric{d}}{(\apply{\restrl{h}{C}}{x}, \apply{\restrl{g}{C}}{x})} \leq \eta$.
                \begin{subproof}
                    Follows by \cref{compact_convergence_ball,compact_subspace,subseteq,uniform_metric_small_implies_pointwise_small,times_tuple_intro,funs_type_apply,metric_on,real_one_in_naturals,real_naturals_subset_reals,real_lt_trans,bounded_metric_apply_below_one,real_lt_subst_left,real_lt_imp_leq,restrl_of_function_apply,funs_is_function,funs_is_relation,funs_elim,pair_eq_iff}.
                \end{subproof}
                $\sigma((\restrl{h}{C},\restrl{g}{C})) \leq \eta$ by \cref{uniform_metric_leq_from_coordinate_bounds}.
                    $\sigma((\restrl{h}{C},\restrl{g}{C}))\in\reals$
                        by \cref{uniform_metric_on_function_space,metric_on,funs_type_apply,times_tuple_intro}.
                Hence $\sigma((\restrl{h}{C},\restrl{g}{C})) < \delta$
                    by \cref{real_leq_split,real_lt_trans,real_lt_subst_left}.
                Therefore $g\in D$ by \cref{subseteq}.
            \end{subproof}
            $M\subseteq A$ by \cref{subseteq,subseteq_transitive}.
            $M\in\metricBasis{\rho}{F}$ by \cref{metric_ball,subseteq,metric_basis,powerset_intro}.
            $M$ is a neighborhood of $h$ in $F$ with respect to $\metricTopology{\rho}{F}$
                by \cref{metric_topology,metric_basis_is_basis,basis_elem_open_in_generated,open_in,metric_ball,metric_on,uniform_metric_on_function_space,metric_zero_characterization,times_tuple_intro,real_lt_subst_left,neighborhood}.
            Hence there exists $N$ such that
                $N$ is a neighborhood of $h$ in $F$ with respect to $\metricTopology{\rho}{F}$ and
                $N\subseteq U$ by \cref{subseteq,pair_eq_iff}.
        \end{subproof}
        Therefore $U\in\metricTopology{\rho}{F}$ by \cref{open_from_local_neighborhoods,open_in}.
    \end{subproof}
    $T_0\subseteq\metricTopology{\rho}{F}$ by \cref{subseteq}.

    Thus $\metricTopology{\rho}{F} = T_0$ by \cref{subseteq_antisymmetric}.
    $\metricTopology{\rho}{F}$ is a topology on $F$
        by \cref{metric_basis_is_basis,basis_topology_is_topology,metric_topology,basis_for_topology,uniform_metric_on_function_space}.
    Hence $\metricTopology{\rho}{F}$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$
        by \cref{compact_convergence_topology}.
\end{proof}
Corollary 22
uniform_topology_on_continuous_functions_metric_independent_for_compact_domain

Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $d_1$ is a metric on $Y$.
Assume $d_2$ is a metric on $Y$.
Assume $\metricTopology{d_1}{Y} = \metricTopology{d_2}{Y}$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}_1$ is the uniform metric on functions from $X$ to $Y$ with respect to $d_1$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}_2$ is the uniform metric on functions from $X$ to $Y$ with respect to $d_2$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d_1}{Y}$.
Then $\subspaceTopology{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}_1}{\funs{X}{Y}}}{C} = \subspaceTopology{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}_2}{\funs{X}{Y}}}{C}$.

LaTeX source
\begin{corollary}
\label{uniform_topology_on_continuous_functions_metric_independent_for_compact_domain}
    Assume $T$ is a topology on $X$.
    Assume $X$ is compact with respect to $T$.
    Assume $d_1$ is a metric on $Y$.
    Assume $d_2$ is a metric on $Y$.
    Assume $\metricTopology{d_1}{Y} = \metricTopology{d_2}{Y}$.
    Assume $\rho_1$ is the uniform metric on functions from $X$ to $Y$ with respect to $d_1$.
    Assume $\rho_2$ is the uniform metric on functions from $X$ to $Y$ with respect to $d_2$.
    Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d_1}{Y}$.
    Then $\subspaceTopology{\metricTopology{\rho_1}{\funs{X}{Y}}}{C}
        = \subspaceTopology{\metricTopology{\rho_2}{\funs{X}{Y}}}{C}$.
\end{corollary}
Proof

Follows by Axiom 6, Lemma 891, Corollary 21.

LaTeX source
\begin{proof}
    Follows by \cref{pair_eq_iff,compact_domain_uniform_metric_topology_is_compact_convergence,compact_convergence_on_continuous_functions_metric_independent}.
\end{proof}
Lemma 892
compact_domain_uniform_subspace_equals_compact_convergence_subspace

Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
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 $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
Then $\subspaceTopology{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}}{\funs{X}{Y}}}{C} = \subspaceTopology{T_0}{C}$.

LaTeX source
\begin{lemma}
\label{compact_domain_uniform_subspace_equals_compact_convergence_subspace}
    Assume $T$ is a topology on $X$.
    Assume $X$ is compact with respect to $T$.
    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 $T_0$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d$.
    Then $\subspaceTopology{\metricTopology{\rho}{\funs{X}{Y}}}{C} = \subspaceTopology{T_0}{C}$.
\end{lemma}
Lemma 893
compact_domain_uniform_subspace_metric_independence_from_compact_convergence

Assume $T$ is a topology on $X$.
Assume $X$ is compact with respect to $T$.
Assume $d_1$ is a metric on $Y$.
Assume $d_2$ is a metric on $Y$.
Assume $\metricTopology{d_1}{Y} = \metricTopology{d_2}{Y}$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}_1$ is the uniform metric on functions from $X$ to $Y$ with respect to $d_1$.
Assume $\class{latex-symbol-tip latex-symbol-id-rho}{\rho}_2$ is the uniform metric on functions from $X$ to $Y$ with respect to $d_2$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d_1}{Y}$.
Assume $T_1$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d_1$.
Assume $T_2$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d_2$.
Then $\subspaceTopology{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}_1}{\funs{X}{Y}}}{C} = \subspaceTopology{\metricTopology{\class{latex-symbol-tip latex-symbol-id-rho}{\rho}_2}{\funs{X}{Y}}}{C}$.

LaTeX source
\begin{lemma}
\label{compact_domain_uniform_subspace_metric_independence_from_compact_convergence}
    Assume $T$ is a topology on $X$.
    Assume $X$ is compact with respect to $T$.
    Assume $d_1$ is a metric on $Y$.
    Assume $d_2$ is a metric on $Y$.
    Assume $\metricTopology{d_1}{Y} = \metricTopology{d_2}{Y}$.
    Assume $\rho_1$ is the uniform metric on functions from $X$ to $Y$ with respect to $d_1$.
    Assume $\rho_2$ is the uniform metric on functions from $X$ to $Y$ with respect to $d_2$.
    Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $\metricTopology{d_1}{Y}$.
    Assume $T_1$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d_1$.
    Assume $T_2$ is the topology of compact convergence on functions from $X$ to $Y$ with respect to $T$ and $d_2$.
    Then $\subspaceTopology{\metricTopology{\rho_1}{\funs{X}{Y}}}{C}
        = \subspaceTopology{\metricTopology{\rho_2}{\funs{X}{Y}}}{C}$.
\end{lemma}
Definition 377
evaluation_map

$e$ is the evaluation map from $X$ and $C$ to $Y$ iff $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\funs{X}{Y}$ and $e\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} C}{Y}$ and for all $x, f$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $f\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $\apply{e}{(x,f)} = \apply{f}{x}$.

LaTeX source
\begin{definition}
\label{evaluation_map}
    $e$ is the evaluation map from $X$ and $C$ to $Y$ iff
        $C\subseteq\funs{X}{Y}$ and
        $e\in\funs{X\times C}{Y}$ and
        for all $x, f$ such that $x\in X$ and $f\in C$ we have
            $\apply{e}{(x,f)} = \apply{f}{x}$.
\end{definition}
Theorem 132
evaluation_map_continuous_compact_open

Assume $T$ is a topology on $X$.
Assume $U$ is a topology on $Y$.
Assume $X$ is locally compact with respect to $T$.
Assume $X$ is Hausdorff with respect to $T$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Assume $K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Assume $e$ is the evaluation map from $X$ and $C$ to $Y$.
Then $e$ is continuous from $X\class{latex-symbol-tip latex-symbol-id-times}{\times} C$ to $Y$ with respect to $\productTopology{T}{K}{X}{C}$ and $U$.

LaTeX source
\begin{theorem}
\label{evaluation_map_continuous_compact_open}
    Assume $T$ is a topology on $X$.
    Assume $U$ is a topology on $Y$.
    Assume $X$ is locally compact with respect to $T$.
    Assume $X$ is Hausdorff with respect to $T$.
    Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Assume $K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Assume $e$ is the evaluation map from $X$ and $C$ to $Y$.
    Then $e$ is continuous from $X\times C$ to $Y$ with respect to $\productTopology{T}{K}{X}{C}$ and $U$.
\end{theorem}
Proof

Let $P = \productTopology{T}{K}{X}{C}$.
$e\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} C}{Y}$ by Definition 377.
Take $F_0, S$ such that $F_0$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $S$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $K = \subbasisTopology{S}{F_0}$ by Definition 375.
We have $K = \subbasisTopology{S}{C}$ by Axiom 6, Lemma 890.
$S$ is a subbasis on $C$ by Lemma 884.
$K$ is a topology on $C$ by Definition 115, Definition 126, Lemma 76, Lemma 99.
$P$ is a topology on $X\class{latex-symbol-tip latex-symbol-id-times}{\times} C$ by Definition 141, Lemma 76, Lemma 126.

Claim: For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} C$ we have $e$ is continuous at $p$ from $X\class{latex-symbol-tip latex-symbol-id-times}{\times} C$ to $Y$ with respect to $P$ and $U$.

Fix $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} C$.
Take $x, g$ such that $p = (x,g)$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $g\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Proposition 121.
$g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ and $g$ is continuous from $X$ to $Y$ with respect to $T$ and $U$ by Definition 345.
$\apply{e}{p} = \apply{g}{x}$ by Axiom 6, Definition 377.

Claim: For all $V$ such that $V$ is a neighborhood of $\apply{e}{p}$ in $Y$ with respect to $U$ there exists $N$ such that $N$ is a neighborhood of $p$ in $X\class{latex-symbol-tip latex-symbol-id-times}{\times} C$ with respect to $P$ and $\img{e}{N}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$.

Fix $V$ such that $V$ is a neighborhood of $\apply{e}{p}$ in $Y$ with respect to $U$.
$V$ is open in $Y$ with respect to $U$ and $\apply{g}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Axiom 6, Definition 153.
Let $W = \preimg{g}{V}$.
$W$ is a neighborhood of $x$ in $X$ with respect to $T$ by Axiom 6, Definition 1, Definition 55, Definition 153, Definition 160, Proposition 246, Proposition 348, Proposition 356.
Take $U_0$ such that $U_0$ is a neighborhood of $x$ in $X$ with respect to $T$ and $\closure{U_0}{X}{T}$ is a compact subspace of $X$ with respect to $T$ and $\closure{U_0}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} W$ by Theorem 77.
Let $D = \closure{U_0}{X}{T}$.
$D$ is a compact subspace of $X$ with respect to $T$ and $D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} W$ by Definition 1.
Let $A = \{f\class{latex-symbol-tip latex-symbol-id-in}{\in} C \mid \img{f}{D}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V\}$.
$A$ is the set of continuous functions from $X$ to $Y$ that carry $D$ into $V$ with respect to $T$ and $U$ by Definition 373.
$A\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Definition 1, Definition 345, Definition 374, Proposition 6, Proposition 155.
$A$ is open in $C$ with respect to $K$ by Lemma 886.

Claim: For all $y$ if $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{g}{D}$ then $y\class{latex-symbol-tip latex-symbol-id-in}{\in} V$.

Fix $y$.
Assume $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{g}{D}$.
Take $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}\inter D$ such that $y = g(x_0)$ by Proposition 356, Proposition 365.
Therefore $y\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Axiom 6, Definition 1, Proposition 63, Proposition 246, Proposition 349, Proposition 356.

$\img{g}{D}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ by Definition 1.
$g\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 30.
Let $N = U_0\class{latex-symbol-tip latex-symbol-id-times}{\times} A$.
$U_0$ is open in $X$ with respect to $T$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} U_0$ by Definition 153.
$N$ is a neighborhood of $p$ in $X\class{latex-symbol-tip latex-symbol-id-times}{\times} C$ with respect to $P$ by Axiom 6, Axiom 12, Definition 1, Definition 101, Definition 103, Definition 140, Definition 141, Definition 153, Lemma 77, Lemma 126, Proposition 115, Proposition 143, Proposition 144.

Claim: For all $y$ if $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{e}{N}$ then $y\class{latex-symbol-tip latex-symbol-id-in}{\in} V$.

Fix $y$.
Assume $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{e}{N}$.
Take $q\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{e}\inter N$ such that $y = e(q)$ by Definition 377, Proposition 356, Proposition 365.
Take $x_0, h$ such that $q = (x_0,h)$ and $x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} U_0$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Proposition 63, Proposition 121.
$x_0\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 153, Lemma 146.
We have $h\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ and $\img{h}{D}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ by Proposition 30.
$h\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ by Axiom 6, Definition 345.
$x_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}\inter D$ by Definition 1, Definition 55, Definition 263, Proposition 61.
$h(x_0)\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{h}{D}$ by Proposition 356, Proposition 364.
$h(x_0)\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Definition 1.
Therefore $y\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Axiom 6, Definition 1, Definition 263, Definition 377, Proposition 348.

$\img{e}{N}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ by Definition 1.
Follows by definition.

Hence $e$ is continuous at $p$ from $X\class{latex-symbol-tip latex-symbol-id-times}{\times} C$ to $Y$ with respect to $P$ and $U$ by Definition 161.

Therefore $e$ is continuous from $X\class{latex-symbol-tip latex-symbol-id-times}{\times} C$ to $Y$ with respect to $P$ and $U$ by Definition 161, Lemma 162.

LaTeX source
\begin{proof}
    Let $P = \productTopology{T}{K}{X}{C}$.
    $e\in\funs{X\times C}{Y}$ by \cref{evaluation_map}.
    Take $F_0, S$ such that
        $F_0$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
        $S$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
        $K = \subbasisTopology{S}{F_0}$ by \cref{compact_open_topology}.
    We have $K = \subbasisTopology{S}{C}$ by \cref{continuous_function_sets_equal,pair_eq_iff}.
    $S$ is a subbasis on $C$ by \cref{compact_open_subbasis_is_subbasis}.
    $K$ is a topology on $C$
        by \cref{subbasis_finite_intersections_basis,basis_for_topology,topology_generated_by_subbasis,basis_topology_is_topology}.
    $P$ is a topology on $X\times C$
        by \cref{product_basis_is_basis,basis_topology_is_topology,product_topology}.
    Show that for all $p\in X\times C$ we have
        $e$ is continuous at $p$ from $X\times C$ to $Y$ with respect to $P$ and $U$.
    \begin{subproof}
        Fix $p\in X\times C$.
        Take $x, g$ such that $p = (x,g)$ and $x\in X$ and $g\in C$ by \cref{times_elem_is_tuple}.
        $g\in\funs{X}{Y}$ and $g$ is continuous from $X$ to $Y$ with respect to $T$ and $U$
            by \cref{continuous_function_set}.
        $\apply{e}{p} = \apply{g}{x}$ by \cref{evaluation_map,pair_eq_iff}.
        Show that for all $V$ such that $V$ is a neighborhood of $\apply{e}{p}$ in $Y$ with respect to $U$
            there exists $N$ such that
                $N$ is a neighborhood of $p$ in $X\times C$ with respect to $P$ and
                $\img{e}{N}\subseteq V$.
        \begin{subproof}
            Fix $V$ such that $V$ is a neighborhood of $\apply{e}{p}$ in $Y$ with respect to $U$.
            $V$ is open in $Y$ with respect to $U$ and $\apply{g}{x}\in V$
                by \cref{neighborhood,pair_eq_iff}.
            Let $W = \preimg{g}{V}$.
            $W$ is a neighborhood of $x$ in $X$ with respect to $T$
                by \cref{continuous,pair_eq_iff,funs,subseteq,function_apply_elim,funs_is_function,preimg_iff,neighborhood}.
            Take $U_0$ such that
                $U_0$ is a neighborhood of $x$ in $X$ with respect to $T$ and
                $\closure{U_0}{X}{T}$ is a compact subspace of $X$ with respect to $T$ and
                $\closure{U_0}{X}{T}\subseteq W$
                by \cref{locally_compact_neighborhood_characterization}.
            Let $D = \closure{U_0}{X}{T}$.
            $D$ is a compact subspace of $X$ with respect to $T$ and $D\subseteq W$ by \cref{subseteq}.
            Let $A = \{f\in C \mid \img{f}{D}\subseteq V\}$.
            $A$ is the set of continuous functions from $X$ to $Y$ that carry $D$ into $V$
                with respect to $T$ and $U$ by \cref{compact_open_set}.
            $A\in S$ by \cref{subseteq,continuous_function_set,subseteq_transitive,powerset_intro,compact_open_function_space_subbasis}.
            $A$ is open in $C$ with respect to $K$
                by \cref{compact_open_subbasis_element_open}.
            Show that for all $y$ if $y\in\img{g}{D}$ then $y\in V$.
            \begin{subproof}
                Fix $y$.
                Assume $y\in\img{g}{D}$.
                Take $x_0\in\dom{g}\inter D$ such that $y = g(x_0)$ by \cref{funs_is_function,img_of_function_elim}.
                Therefore $y\in V$ by \cref{inter_elim_right,subseteq,preimg_iff,function_apply_iff,funs_is_function,pair_eq_iff}.
            \end{subproof}
            $\img{g}{D}\subseteq V$ by \cref{subseteq}.
            $g\in A$ by \cref{inters_iff_forall}.
            Let $N = U_0\times A$.
            $U_0$ is open in $X$ with respect to $T$ and $x\in U_0$ by \cref{neighborhood}.
            $N$ is a neighborhood of $p$ in $X\times C$ with respect to $P$ by
                \cref{open_in,topology_on,subseteq,pow_iff,times_subseteq_left,times_subseteq_right,product_basis,product_basis_is_basis,product_topology,basis_elem_open_in_generated,times_tuple_intro,pair_eq_iff,neighborhood}.
            Show that for all $y$ if $y\in\img{e}{N}$ then $y\in V$.
            \begin{subproof}
                Fix $y$.
                Assume $y\in\img{e}{N}$.
                Take $q\in\dom{e}\inter N$ such that $y = e(q)$ by \cref{evaluation_map,funs_is_function,img_of_function_elim}.
                Take $x_0, h$ such that $q = (x_0,h)$ and $x_0\in U_0$ and $h\in A$ by \cref{inter_elim_right,times_elem_is_tuple}.
                $x_0\in D$ by \cref{neighborhood,open_in,topology_on,subseteq,pow_iff,subseteq_closure}.
                We have $h\in C$ and $\img{h}{D}\subseteq V$ by \cref{inters_iff_forall}.
                $h\in\funs{X}{Y}$ by \cref{continuous_function_set,pair_eq_iff}.
                $x_0\in\dom{h}\inter D$
                    by \cref{funs,inter_intro,compact_subspace,subseteq}.
                $h(x_0)\in\img{h}{D}$ by \cref{funs_is_function,img_of_function_intro}.
                $h(x_0)\in V$ by \cref{subseteq}.
                Therefore $y\in V$ by \cref{evaluation_map,function_apply_elim,compact_subspace,subseteq,pair_eq_iff}.
            \end{subproof}
            $\img{e}{N}\subseteq V$ by \cref{subseteq}.
            Follows by definition.
        \end{subproof}
        Hence $e$ is continuous at $p$ from $X\times C$ to $Y$ with respect to $P$ and $U$
            by \cref{continuous_at}.
    \end{subproof}
    Therefore $e$ is continuous from $X\times C$ to $Y$ with respect to $P$ and $U$
        by \cref{continuous_at,continuous_at_implies_continuous}.
\end{proof}
Definition 378
induced_map_into_function_space

$F$ is the map induced by $f$ from $Z$ to $C$ with respect to $X$ and $Y$ iff $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z}{Y}$ and $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\funs{X}{Y}$ and $F\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{Z}{C}$ and for all $z, x$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $\apply{\apply{F}{z}}{x} = \apply{f}{(x,z)}$.

LaTeX source
\begin{definition}
\label{induced_map_into_function_space}
    $F$ is the map induced by $f$ from $Z$ to $C$ with respect to $X$ and $Y$ iff
        $f\in\funs{X\times Z}{Y}$ and
        $C\subseteq\funs{X}{Y}$ and
        $F\in\funs{Z}{C}$ and
        for all $z, x$ such that $z\in Z$ and $x\in X$ we have
            $\apply{\apply{F}{z}}{x} = \apply{f}{(x,z)}$.
\end{definition}
Lemma 894
induced_map_compact_open_local_subbasic

Assume $T$ is a topology on $X$.
Assume $S$ is a topology on $Z$.
Assume $U$ is a topology on $Y$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Assume $f$ is continuous from $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z$ to $Y$ with respect to $\productTopology{T}{S}{X}{Z}$ and $U$.
Assume $F$ is the map induced by $f$ from $Z$ to $C$ with respect to $X$ and $Y$.
Assume $A$ is the set of continuous functions from $X$ to $Y$ that carry $C_0$ into $V$ with respect to $T$ and $U$.
Assume $z_0\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$.
Suppose $\apply{F}{z_0}\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Then there exists $W$ such that $W$ is open in $Z$ with respect to $S$ and $z_0\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ and $W\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\preimg{F}{A}$.

LaTeX source
\begin{lemma}
\label{induced_map_compact_open_local_subbasic}
    Assume $T$ is a topology on $X$.
    Assume $S$ is a topology on $Z$.
    Assume $U$ is a topology on $Y$.
    Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Assume $f$ is continuous from $X\times Z$ to $Y$ with respect to $\productTopology{T}{S}{X}{Z}$ and $U$.
    Assume $F$ is the map induced by $f$ from $Z$ to $C$ with respect to $X$ and $Y$.
    Assume $A$ is the set of continuous functions from $X$ to $Y$ that carry $C_0$ into $V$ with respect to $T$ and $U$.
    Assume $z_0\in Z$.
    Suppose $\apply{F}{z_0}\in A$.
    Then there exists $W$ such that
        $W$ is open in $Z$ with respect to $S$ and
        $z_0\in W$ and
        $W\subseteq\preimg{F}{A}$.
\end{lemma}
Proof

Take $Q$ such that $Q$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $A = \{g\class{latex-symbol-tip latex-symbol-id-in}{\in} Q \mid \img{g}{C_0}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V\}$ by Definition 373.
$Q = C$ by Lemma 890.
$C_0$ is a compact subspace of $X$ with respect to $T$ and $V$ is open in $Y$ with respect to $U$ by Definition 373.
$C_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Definition 263.
$\apply{F}{z_0}\class{latex-symbol-tip latex-symbol-id-in}{\in} Q$ and $\img{\apply{F}{z_0}}{C_0}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ by Proposition 30.
$\apply{F}{z_0}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ by Axiom 6, Definition 345.

Let $T_C = \subspaceTopology{T}{C_0}$.
$T_C$ is a topology on $C_0$ and $C_0$ is compact with respect to $T_C$ by Definition 263, Lemma 131.
$C_0$ is a subspace of $X$ with respect to $T$ by Definition 147, Definition 263.
Let $j = \identity{C_0}$.
$j$ is continuous from $C_0$ to $X$ with respect to $T_C$ and $T$ by Lemma 164.

Let $P = \productTopology{S}{T_C}{Z}{C_0}$.
Let $g_1 = j\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \piTwo{Z}{C_0}$.
$\piTwo{Z}{C_0}$ is continuous from $Z\class{latex-symbol-tip latex-symbol-id-times}{\times} C_0$ to $C_0$ with respect to $P$ and $T_C$ by Lemma 172.
$g_1$ is continuous from $Z\class{latex-symbol-tip latex-symbol-id-times}{\times} C_0$ to $X$ with respect to $P$ and $T$ by Lemma 165.
Let $g_2 = \piOne{Z}{C_0}$.
$g_2$ is continuous from $Z\class{latex-symbol-tip latex-symbol-id-times}{\times} C_0$ to $Z$ with respect to $P$ and $S$ by Lemma 171.
Let $G = \{(p,(g_1(p),g_2(p))) \mid p\class{latex-symbol-tip latex-symbol-id-in}{\in} Z\class{latex-symbol-tip latex-symbol-id-times}{\times} C_0\}$.
$G$ is continuous from $Z\class{latex-symbol-tip latex-symbol-id-times}{\times} C_0$ to $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z$ with respect to $P$ and $\productTopology{T}{S}{X}{Z}$ by Lemma 174.
Let $h = f\class{latex-symbol-tip latex-symbol-id-circ}{\circ} G$.
$h$ is continuous from $Z\class{latex-symbol-tip latex-symbol-id-times}{\times} C_0$ to $Y$ with respect to $P$ and $U$ by Lemma 165.

Let $N = \preimg{h}{V}$.
$N$ is open in $Z\class{latex-symbol-tip latex-symbol-id-times}{\times} C_0$ with respect to $P$ by Definition 160.

Claim: For all $p$ if $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\{z_0\}\class{latex-symbol-tip latex-symbol-id-times}{\times} C_0$ then $p\class{latex-symbol-tip latex-symbol-id-in}{\in} N$.

Fix $p$.
Assume $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\{z_0\}\class{latex-symbol-tip latex-symbol-id-times}{\times} C_0$.
Take $z, x$ such that $p = (z,x)$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\{z_0\}$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C_0$ by Proposition 121.
$z = z_0$ by Proposition 22.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in} Z\class{latex-symbol-tip latex-symbol-id-times}{\times} C_0$ by Definition 1, Proposition 115.
$\apply{g_2}{p} = z$ by Definition 142, Definition 160, Proposition 346, Proposition 356.
$\apply{\piTwo{Z}{C_0}}{p} = x$ by Definition 143, Definition 160, Lemma 172, Proposition 346, Proposition 356.
$\apply{j}{x} = x$ by Proposition 405, Proposition 406.
$\piTwo{Z}{C_0}$ is a function and $j$ is a function by Definition 160, Lemma 172, Proposition 356.
$\ran{\piTwo{Z}{C_0}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C_0$ by Definition 1, Definition 160, Lemma 172, Proposition 363.
$\ran{\piTwo{Z}{C_0}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \dom{j}$ by Axiom 6, Definition 1, Proposition 297.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{\piTwo{Z}{C_0}}$ by Definition 55, Definition 160, Lemma 172.
$\apply{g_1}{p} = \apply{j}{\apply{\piTwo{Z}{C_0}}{p}}$ by Proposition 373.
$\apply{g_1}{p} = x$ by Axiom 6.
$\apply{G}{p} = (\apply{g_1}{p},\apply{g_2}{p})$ by Definition 160, Proposition 346, Proposition 356.
$\apply{G}{p} = (x,z_0)$ by Axiom 6.
$G$ is a function and $f$ is a function by Definition 160, Proposition 356.
$\ran{G}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z$ by Definition 1, Definition 160, Proposition 363.
$\ran{G}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \dom{f}$ by Axiom 6, Definition 1, Definition 55, Definition 160.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{G}$ by Definition 55, Definition 160.
$\apply{h}{p} = \apply{f}{\apply{G}{p}}$ by Proposition 373.
$\apply{h}{p} = \apply{f}{(x,z_0)}$ by Axiom 6.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{\apply{F}{z_0}}$ by Definition 1, Definition 55.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{\apply{F}{z_0}}\inter C_0$ by Proposition 61.
$\apply{\apply{F}{z_0}}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{\apply{F}{z_0}}{C_0}$ by Axiom 6, Definition 345, Proposition 356, Proposition 364.
$\apply{\apply{F}{z_0}}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Definition 1.
$\apply{\apply{F}{z_0}}{x} = \apply{f}{(x,z_0)}$ by Definition 1, Definition 378.
$h(p)\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Axiom 6.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ by Definition 55, Definition 160.
$(p,\apply{h}{p})\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ by Definition 160, Proposition 348, Proposition 356.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in} N$ by Axiom 6, Proposition 246.

$\{z_0\}\class{latex-symbol-tip latex-symbol-id-times}{\times} C_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} N$ by Definition 1.
Take $W$ such that $W$ is open in $Z$ with respect to $S$ and $z_0\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ and $W\class{latex-symbol-tip latex-symbol-id-times}{\times} C_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} N$ by Lemma 361.

Claim: For all $z$ if $z\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ then $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\preimg{F}{A}$.

Fix $z$.
Assume $z\class{latex-symbol-tip latex-symbol-id-in}{\in} W$.
$z\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ by Axiom 12, Definition 1, Definition 101, Definition 103.
$\apply{F}{z}\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Definition 378, Proposition 361.
$\apply{F}{z}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{Y}$ by Definition 1, Definition 345.

Claim: For all $y$ if $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{\apply{F}{z}}{C_0}$ then $y\class{latex-symbol-tip latex-symbol-id-in}{\in} V$.

Fix $y$.
Assume $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{\apply{F}{z}}{C_0}$.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{\apply{F}{z}}\inter C_0$ such that $y = \apply{\apply{F}{z}}{x}$ by Definition 378, Proposition 356, Proposition 361, Proposition 365.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} C_0$ by Proposition 63.
$(z,x)\class{latex-symbol-tip latex-symbol-id-in}{\in} W\class{latex-symbol-tip latex-symbol-id-times}{\times} C_0$ by Proposition 115.
$(z,x)\class{latex-symbol-tip latex-symbol-id-in}{\in} N$ by Definition 1.
Let $p = (z,x)$.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in} Z\class{latex-symbol-tip latex-symbol-id-times}{\times} C_0$ by Proposition 115.
$\apply{g_2}{p} = z$ by Axiom 6, Definition 142, Definition 160, Proposition 346, Proposition 356.
$\apply{\piTwo{Z}{C_0}}{p} = x$ by Axiom 6, Definition 143, Definition 160, Lemma 172, Proposition 346, Proposition 356.
$\apply{j}{x} = x$ by Proposition 405, Proposition 406.
$\piTwo{Z}{C_0}$ is a function and $j$ is a function by Definition 160, Lemma 172, Proposition 356.
$\ran{\piTwo{Z}{C_0}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} C_0$ by Definition 1, Definition 160, Lemma 172, Proposition 363.
$\ran{\piTwo{Z}{C_0}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \dom{j}$ by Axiom 6, Definition 1, Proposition 297.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{\piTwo{Z}{C_0}}$ by Definition 55, Definition 160, Lemma 172.
$\apply{g_1}{p} = \apply{j}{\apply{\piTwo{Z}{C_0}}{p}}$ by Proposition 373.
$\apply{g_1}{p} = x$ by Axiom 6.
$\apply{G}{p} = (\apply{g_1}{p},\apply{g_2}{p})$ by Definition 160, Proposition 346, Proposition 356.
$\apply{G}{p} = (x,z)$ by Axiom 6.
$G$ is a function and $f$ is a function by Definition 160, Proposition 356.
$\ran{G}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z$ by Definition 1, Definition 160, Proposition 363.
$\ran{G}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \dom{f}$ by Axiom 6, Definition 1, Definition 55, Definition 160.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{G}$ by Definition 55, Definition 160.
$\apply{h}{p} = \apply{f}{\apply{G}{p}}$ by Proposition 373.
$\apply{h}{p} = \apply{f}{(x,z)}$ by Axiom 6.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ by Definition 55, Definition 160.
Take $u\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ such that $(p,u)\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ by Axiom 6, Proposition 246.
$h$ is a function by Definition 160, Proposition 356.
$\apply{h}{p} = u$ by Proposition 349.
$\apply{f}{(x,z)} = u$ by Axiom 6.
$\apply{\apply{F}{z}}{x} = \apply{f}{(x,z)}$ by Definition 1, Definition 378.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Axiom 6.

$\img{\apply{F}{z}}{C_0}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} V$ by Definition 1.
$\apply{F}{z}\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 6, Proposition 30.
$(z,\apply{F}{z})\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Definition 55, Definition 378, Proposition 348, Proposition 356.
$z\class{latex-symbol-tip latex-symbol-id-in}{\in}\preimg{F}{A}$ by Proposition 246.

$W\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\preimg{F}{A}$ by Definition 1.
Follows by definition.

LaTeX source
\begin{proof}
    Take $Q$ such that
        $Q$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
        $A = \{g\in Q \mid \img{g}{C_0}\subseteq V\}$ by \cref{compact_open_set}.
    $Q = C$ by \cref{continuous_function_sets_equal}.
    $C_0$ is a compact subspace of $X$ with respect to $T$ and
        $V$ is open in $Y$ with respect to $U$ by \cref{compact_open_set}.
    $C_0\subseteq X$ by \cref{compact_subspace}.
    $\apply{F}{z_0}\in Q$ and $\img{\apply{F}{z_0}}{C_0}\subseteq V$ by \cref{inters_iff_forall}.
    $\apply{F}{z_0}\in\funs{X}{Y}$ by \cref{pair_eq_iff,continuous_function_set}.

    Let $T_C = \subspaceTopology{T}{C_0}$.
    $T_C$ is a topology on $C_0$ and $C_0$ is compact with respect to $T_C$
        by \cref{subspace_topology_is_topology,compact_subspace}.
    $C_0$ is a subspace of $X$ with respect to $T$ by \cref{subspace_of,compact_subspace}.
    Let $j = \identity{C_0}$.
    $j$ is continuous from $C_0$ to $X$ with respect to $T_C$ and $T$
        by \cref{inclusion_continuous}.

    Let $P = \productTopology{S}{T_C}{Z}{C_0}$.
    Let $g_1 = j\circ \piTwo{Z}{C_0}$.
    $\piTwo{Z}{C_0}$ is continuous from $Z\times C_0$ to $C_0$ with respect to $P$ and $T_C$
        by \cref{projection_two_continuous}.
    $g_1$ is continuous from $Z\times C_0$ to $X$ with respect to $P$ and $T$
        by \cref{continuous_composite}.
    Let $g_2 = \piOne{Z}{C_0}$.
    $g_2$ is continuous from $Z\times C_0$ to $Z$ with respect to $P$ and $S$
        by \cref{projection_one_continuous}.
    Let $G = \{(p,(g_1(p),g_2(p))) \mid p\in Z\times C_0\}$.
    $G$ is continuous from $Z\times C_0$ to $X\times Z$ with respect to $P$ and
        $\productTopology{T}{S}{X}{Z}$ by \cref{continuous_map_into_product_backward}.
    Let $h = f\circ G$.
    $h$ is continuous from $Z\times C_0$ to $Y$ with respect to $P$ and $U$
        by \cref{continuous_composite}.

    Let $N = \preimg{h}{V}$.
    $N$ is open in $Z\times C_0$ with respect to $P$ by \cref{continuous}.
    Show that for all $p$ if $p\in\{z_0\}\times C_0$ then $p\in N$.
    \begin{subproof}
        Fix $p$.
        Assume $p\in\{z_0\}\times C_0$.
        Take $z, x$ such that $p = (z,x)$ and $z\in\{z_0\}$ and $x\in C_0$ by \cref{times_elem_is_tuple}.
        $z = z_0$ by \cref{singleton_iff}.
        $p\in Z\times C_0$ by \cref{times_tuple_intro,subseteq}.
        $\apply{g_2}{p} = z$ by \cref{projection_first,continuous,funs_is_function,function_apply_intro}.
        $\apply{\piTwo{Z}{C_0}}{p} = x$
            by \cref{projection_second,projection_two_continuous,continuous,funs_is_function,function_apply_intro}.
        $\apply{j}{x} = x$ by \cref{id_apply,id_elem_funs}.
        $\piTwo{Z}{C_0}$ is a function and $j$ is a function
            by \cref{projection_two_continuous,continuous,funs_is_function}.
        $\ran{\piTwo{Z}{C_0}}\subseteq C_0$ by \cref{projection_two_continuous,continuous,funs_ran,subseteq}.
        $\ran{\piTwo{Z}{C_0}}\subseteq \dom{j}$ by \cref{id_dom,pair_eq_iff,subseteq}.
        $p\in\dom{\piTwo{Z}{C_0}}$ by \cref{projection_two_continuous,continuous,funs}.
        $\apply{g_1}{p} = \apply{j}{\apply{\piTwo{Z}{C_0}}{p}}$
            by \cref{circ_apply}.
        $\apply{g_1}{p} = x$ by \cref{pair_eq_iff}.
        $\apply{G}{p} = (\apply{g_1}{p},\apply{g_2}{p})$ by \cref{continuous,funs_is_function,function_apply_intro}.
        $\apply{G}{p} = (x,z_0)$ by \cref{pair_eq_iff}.
        $G$ is a function and $f$ is a function by \cref{continuous,funs_is_function}.
        $\ran{G}\subseteq X\times Z$ by \cref{continuous,funs_ran,subseteq}.
        $\ran{G}\subseteq \dom{f}$ by \cref{continuous,funs,pair_eq_iff,subseteq}.
        $p\in\dom{G}$ by \cref{continuous,funs}.
        $\apply{h}{p} = \apply{f}{\apply{G}{p}}$ by \cref{circ_apply}.
        $\apply{h}{p} = \apply{f}{(x,z_0)}$ by \cref{pair_eq_iff}.
        $x\in\dom{\apply{F}{z_0}}$ by \cref{funs,subseteq}.
        $x\in\dom{\apply{F}{z_0}}\inter C_0$ by \cref{inter_intro}.
        $\apply{\apply{F}{z_0}}{x}\in\img{\apply{F}{z_0}}{C_0}$
            by \cref{funs_is_function,img_of_function_intro,continuous_function_set,pair_eq_iff}.
        $\apply{\apply{F}{z_0}}{x}\in V$ by \cref{subseteq}.
        $\apply{\apply{F}{z_0}}{x} = \apply{f}{(x,z_0)}$ by \cref{induced_map_into_function_space,subseteq}.
        $h(p)\in V$ by \cref{pair_eq_iff}.
        $p\in\dom{h}$ by \cref{continuous,funs}.
        $(p,\apply{h}{p})\in h$ by \cref{function_apply_elim,continuous,funs_is_function}.
        $p\in N$ by \cref{preimg_iff,pair_eq_iff}.
    \end{subproof}
    $\{z_0\}\times C_0\subseteq N$ by \cref{subseteq}.
    Take $W$ such that
        $W$ is open in $Z$ with respect to $S$ and
        $z_0\in W$ and
        $W\times C_0\subseteq N$ by \cref{tube_lemma}.

    Show that for all $z$ if $z\in W$ then $z\in\preimg{F}{A}$.
    \begin{subproof}
        Fix $z$.
        Assume $z\in W$.
        $z\in Z$ by \cref{open_in,topology_on,subseteq,pow_iff}.
        $\apply{F}{z}\in C$ by \cref{induced_map_into_function_space,funs_type_apply}.
        $\apply{F}{z}\in\funs{X}{Y}$ by \cref{continuous_function_set,subseteq}.
        Show that for all $y$ if $y\in\img{\apply{F}{z}}{C_0}$ then $y\in V$.
        \begin{subproof}
            Fix $y$.
            Assume $y\in\img{\apply{F}{z}}{C_0}$.
            Take $x\in\dom{\apply{F}{z}}\inter C_0$ such that $y = \apply{\apply{F}{z}}{x}$
                by \cref{funs_is_function,img_of_function_elim,induced_map_into_function_space,funs_type_apply}.
            $x\in C_0$ by \cref{inter_elim_right}.
            $(z,x)\in W\times C_0$ by \cref{times_tuple_intro}.
            $(z,x)\in N$ by \cref{subseteq}.
            Let $p = (z,x)$.
            $p\in Z\times C_0$ by \cref{times_tuple_intro}.
            $\apply{g_2}{p} = z$ by \cref{projection_first,continuous,funs_is_function,function_apply_intro,pair_eq_iff}.
            $\apply{\piTwo{Z}{C_0}}{p} = x$
                by \cref{projection_second,projection_two_continuous,continuous,funs_is_function,function_apply_intro,pair_eq_iff}.
            $\apply{j}{x} = x$ by \cref{id_apply,id_elem_funs}.
            $\piTwo{Z}{C_0}$ is a function and $j$ is a function
                by \cref{projection_two_continuous,continuous,funs_is_function}.
            $\ran{\piTwo{Z}{C_0}}\subseteq C_0$ by \cref{projection_two_continuous,continuous,funs_ran,subseteq}.
            $\ran{\piTwo{Z}{C_0}}\subseteq \dom{j}$ by \cref{id_dom,pair_eq_iff,subseteq}.
            $p\in\dom{\piTwo{Z}{C_0}}$ by \cref{projection_two_continuous,continuous,funs}.
            $\apply{g_1}{p} = \apply{j}{\apply{\piTwo{Z}{C_0}}{p}}$
                by \cref{circ_apply}.
            $\apply{g_1}{p} = x$ by \cref{pair_eq_iff}.
            $\apply{G}{p} = (\apply{g_1}{p},\apply{g_2}{p})$ by \cref{continuous,funs_is_function,function_apply_intro}.
            $\apply{G}{p} = (x,z)$ by \cref{pair_eq_iff}.
            $G$ is a function and $f$ is a function by \cref{continuous,funs_is_function}.
            $\ran{G}\subseteq X\times Z$ by \cref{continuous,funs_ran,subseteq}.
            $\ran{G}\subseteq \dom{f}$ by \cref{continuous,funs,pair_eq_iff,subseteq}.
            $p\in\dom{G}$ by \cref{continuous,funs}.
            $\apply{h}{p} = \apply{f}{\apply{G}{p}}$ by \cref{circ_apply}.
            $\apply{h}{p} = \apply{f}{(x,z)}$ by \cref{pair_eq_iff}.
            $p\in\dom{h}$ by \cref{continuous,funs}.
            Take $u\in V$ such that $(p,u)\in h$ by \cref{preimg_iff,pair_eq_iff}.
            $h$ is a function by \cref{continuous,funs_is_function}.
            $\apply{h}{p} = u$ by \cref{function_apply_iff}.
            $\apply{f}{(x,z)} = u$ by \cref{pair_eq_iff}.
            $\apply{\apply{F}{z}}{x} = \apply{f}{(x,z)}$ by \cref{induced_map_into_function_space,subseteq}.
            $y\in V$ by \cref{pair_eq_iff}.
        \end{subproof}
        $\img{\apply{F}{z}}{C_0}\subseteq V$ by \cref{subseteq}.
        $\apply{F}{z}\in A$ by \cref{pair_eq_iff,inters_iff_forall}.
        $(z,\apply{F}{z})\in F$
            by \cref{induced_map_into_function_space,funs_is_function,funs,function_apply_elim}.
        $z\in\preimg{F}{A}$ by \cref{preimg_iff}.
    \end{subproof}
    $W\subseteq\preimg{F}{A}$ by \cref{subseteq}.
    Follows by definition.
\end{proof}
Theorem 133
induced_map_continuous_compact_open

Assume $T$ is a topology on $X$.
Assume $S$ is a topology on $Z$.
Assume $U$ is a topology on $Y$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Assume $K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Assume $f$ is continuous from $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z$ to $Y$ with respect to $\productTopology{T}{S}{X}{Z}$ and $U$.
Assume $F$ is the map induced by $f$ from $Z$ to $C$ with respect to $X$ and $Y$.
Then $F$ is continuous from $Z$ to $C$ with respect to $S$ and $K$.

LaTeX source
\begin{theorem}
\label{induced_map_continuous_compact_open}
    Assume $T$ is a topology on $X$.
    Assume $S$ is a topology on $Z$.
    Assume $U$ is a topology on $Y$.
    Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Assume $K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Assume $f$ is continuous from $X\times Z$ to $Y$ with respect to $\productTopology{T}{S}{X}{Z}$ and $U$.
    Assume $F$ is the map induced by $f$ from $Z$ to $C$ with respect to $X$ and $Y$.
    Then $F$ is continuous from $Z$ to $C$ with respect to $S$ and $K$.
\end{theorem}
Proof

We have $F$ is a function from $Z$ to $C$ by Definition 55, Definition 378.
Take $F_0, S_0$ such that $F_0$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $S_0$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $K = \subbasisTopology{S_0}{F_0}$ by Definition 375.
$K = \subbasisTopology{S_0}{C}$ by Axiom 6, Lemma 890.
$S_0$ is a subbasis on $C$ by Lemma 884.
$\finiteIntersections{S_0}$ is a basis for $K$ on $C$ by Definition 115, Definition 126, Lemma 99.
$K$ is a topology on $C$ by Definition 115, Lemma 76.

Claim: For all $W$ such that $W$ is open in $C$ with respect to $K$ we have $\preimg{F}{W}$ is open in $Z$ with respect to $S$.

Fix $W$ such that $W$ is open in $C$ with respect to $K$.
$\preimg{F}{W}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} Z$ by Definition 1, Definition 55, Definition 378, Proposition 249.

Claim: For all $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\preimg{F}{W}$ there exists $P$ such that $P$ is a neighborhood of $z$ in $Z$ with respect to $S$ and $P\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\preimg{F}{W}$.

Fix $z$ such that $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\preimg{F}{W}$.
$\apply{F}{z}\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ by Axiom 6, Definition 1, Proposition 246, Proposition 249, Proposition 349, Proposition 356.
Take $B$ such that $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\finiteIntersections{S_0}$ and $W = \unions{B}$ by Definition 103, Definition 115, Lemma 78.
Take $M\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $\apply{F}{z}\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ by Axiom 4, Axiom 6.
$M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} W$ by Axiom 4, Axiom 6, Definition 1.
Take $G$ such that $G\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} S_0$ and $G$ is finite and inhabited and $M = \inters{G}$ by Definition 1, Definition 125.

Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} G\class{latex-symbol-tip latex-symbol-id-times}{\times} S \mid \text{there exist $A, P$ such that $w = (A,P)$ and $z\in P$ and $P\subseteq\preimg{F}{A}$}\}$.
$R$ is a relation by Definition 1, Definition 12, Proposition 121.
For all $A\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ there exists $P$ such that $A\mathrel{R} P$ by Axiom 6, Definition 1, Definition 103, Definition 374, Lemma 894, Proposition 30, Proposition 115.
Take $m$ such that $m$ is a function on $G$ and for all $A\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ we have $A\mathrel{R}\apply{m}{A}$ by Axiom 54.
Let $H_0 = \img{m}{G}$.
Let $H = H_0\union\{Z,Z\}$.
Let $P = \inters{H}$.

For all $Q$ if $Q\class{latex-symbol-tip latex-symbol-id-in}{\in} H_0$ then $Q\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Definition 1, Definition 12, Proposition 114, Proposition 235, Proposition 349.
$H_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} S$ by Definition 1.
For all $Q$ if $Q\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ then $Q\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Axiom 5, Axiom 6, Definition 1, Definition 101, Proposition 19.
$H\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} S$ by Definition 1.
$H$ is finite by Axiom 6, Lemma 40, Lemma 45, Lemma 192.
$Z\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ by Proposition 16, Proposition 39.
$P$ is open in $Z$ with respect to $S$ by Definition 103, Lemma 124.

For all $Q$ if $Q\class{latex-symbol-tip latex-symbol-id-in}{\in} H$ then $z\class{latex-symbol-tip latex-symbol-id-in}{\in} Q$ by Axiom 5, Axiom 6, Definition 1, Definition 12, Proposition 19, Proposition 235, Proposition 249, Proposition 349.
$P$ is a neighborhood of $z$ in $Z$ with respect to $S$ by Axiom 6, Definition 153, Proposition 30.

Let $E = \preimg{F}{W}$.

Claim: For all $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} P$ we have $y\class{latex-symbol-tip latex-symbol-id-in}{\in} E$.

Fix $y$ such that $y\class{latex-symbol-tip latex-symbol-id-in}{\in} P$.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ by Axiom 12, Definition 1, Definition 101, Definition 103.
For all $A$ such that $A\class{latex-symbol-tip latex-symbol-id-in}{\in} G$ we have $\apply{F}{y}\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 6, Definition 1, Definition 12, Proposition 30, Proposition 38, Proposition 235, Proposition 246, Proposition 249, Proposition 348, Proposition 349, Proposition 356.
$\apply{F}{y}\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ by Axiom 6, Proposition 30.
$\apply{F}{y}\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ by Axiom 6, Definition 1.
$(y,\apply{F}{y})\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Definition 1, Definition 55, Definition 378, Proposition 348, Proposition 356.
$y\class{latex-symbol-tip latex-symbol-id-in}{\in} E$ by Axiom 6, Proposition 246.

There exists $Q$ such that $Q$ is a neighborhood of $z$ in $Z$ with respect to $S$ and $Q\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\preimg{F}{W}$ by Axiom 6, Definition 1.

$\preimg{F}{W}$ is open in $Z$ with respect to $S$ by Lemma 870.

$F$ is continuous from $Z$ to $C$ with respect to $S$ and $K$ by Definition 160, Lemma 870.

LaTeX source
\begin{proof}
    We have $F$ is a function from $Z$ to $C$ by \cref{induced_map_into_function_space,funs}.
    Take $F_0, S_0$ such that
        $F_0$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
        $S_0$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
        $K = \subbasisTopology{S_0}{F_0}$ by \cref{compact_open_topology}.
    $K = \subbasisTopology{S_0}{C}$ by \cref{continuous_function_sets_equal,pair_eq_iff}.
    $S_0$ is a subbasis on $C$ by \cref{compact_open_subbasis_is_subbasis}.
    $\finiteIntersections{S_0}$ is a basis for $K$ on $C$
        by \cref{subbasis_finite_intersections_basis,basis_for_topology,topology_generated_by_subbasis}.
    $K$ is a topology on $C$ by \cref{basis_for_topology,basis_topology_is_topology}.

    Show that for all $W$ such that $W$ is open in $C$ with respect to $K$
        we have $\preimg{F}{W}$ is open in $Z$ with respect to $S$.
    \begin{subproof}
        Fix $W$ such that $W$ is open in $C$ with respect to $K$.
        $\preimg{F}{W}\subseteq Z$ by \cref{preimg_subseteq_dom,induced_map_into_function_space,funs,subseteq}.
        Show that for all $z\in\preimg{F}{W}$ there exists $P$ such that
            $P$ is a neighborhood of $z$ in $Z$ with respect to $S$ and
            $P\subseteq\preimg{F}{W}$.
        \begin{subproof}
            Fix $z$ such that $z\in\preimg{F}{W}$.
            $\apply{F}{z}\in W$
                by \cref{preimg_subseteq_dom,subseteq,preimg_iff,funs_is_function,function_apply_iff,pair_eq_iff}.
            Take $B$ such that $B\subseteq\finiteIntersections{S_0}$ and $W = \unions{B}$
                by \cref{basis_topology_unions,basis_for_topology,open_in}.
            Take $M\in B$ such that $\apply{F}{z}\in M$ by \cref{unions_iff,pair_eq_iff}.
            $M\subseteq W$ by \cref{subseteq,unions_iff,pair_eq_iff}.
            Take $G$ such that $G\subseteq S_0$ and $G$ is finite and inhabited and $M = \inters{G}$
                by \cref{subseteq,finite_intersections}.

            Let $R = \{w\in G\times S \mid \text{there exist $A, P$ such that
                $w = (A,P)$ and
                $z\in P$ and
                $P\subseteq\preimg{F}{A}$}\}$.
            $R$ is a relation by \cref{relation,subseteq,times_elem_is_tuple}.
            For all $A\in G$ there exists $P$ such that $A\mathrel{R} P$ by
                \cref{subseteq,compact_open_function_space_subbasis,inters_iff_forall,induced_map_compact_open_local_subbasic,open_in,times_tuple_intro,pair_eq_iff}.
            Take $m$ such that $m$ is a function on $G$ and for all $A\in G$ we have $A\mathrel{R}\apply{m}{A}$
                by \cref{axiom_of_choice}.
            Let $H_0 = \img{m}{G}$.
            Let $H = H_0\union\{Z,Z\}$.
            Let $P = \inters{H}$.

            For all $Q$ if $Q\in H_0$ then $Q\in S$
                by \cref{img_iff,subseteq,function_apply_iff,relation,times_tuple_elim}.
            $H_0\subseteq S$ by \cref{subseteq}.
            For all $Q$ if $Q\in H$ then $Q\in S$
                by \cref{union_iff,subseteq,upair_iff,pair_eq_iff,topology_on}.
            $H\subseteq S$ by \cref{subseteq}.
            $H$ is finite by \cref{pair_eq_iff,finite_image_function,pair_is_finite,union_of_finite_is_finite}.
            $Z\in H$ by \cref{upair_intro_left,union_intro_right}.
            $P$ is open in $Z$ with respect to $S$ by \cref{finite_intersections_open_in_topology,open_in}.

            For all $Q$ if $Q\in H$ then $z\in Q$
                by \cref{union_iff,img_iff,subseteq,function_apply_iff,relation,pair_eq_iff,upair_iff,preimg_subseteq_dom}.
            $P$ is a neighborhood of $z$ in $Z$ with respect to $S$ by \cref{inters_iff_forall,pair_eq_iff,neighborhood}.

            Let $E = \preimg{F}{W}$.
            Show that for all $y$ such that $y\in P$ we have $y\in E$.
            \begin{subproof}
                Fix $y$ such that $y\in P$.
                $y\in Z$ by \cref{open_in,topology_on,subseteq,pow_iff}.
                For all $A$ such that $A\in G$ we have $\apply{F}{y}\in A$ by
                    \cref{subseteq,relation,function_apply_elim,img_iff,union_intro_left,inters_iff_forall,pair_eq_iff,preimg_subseteq_dom,funs_is_function,preimg_iff,function_apply_iff}.
                $\apply{F}{y}\in M$ by \cref{inters_iff_forall,pair_eq_iff}.
                $\apply{F}{y}\in W$ by \cref{pair_eq_iff,subseteq}.
                $(y,\apply{F}{y})\in F$
                    by \cref{induced_map_into_function_space,funs,subseteq,function_apply_elim,funs_is_function}.
                $y\in E$ by \cref{preimg_iff,pair_eq_iff}.
            \end{subproof}
            There exists $Q$ such that
                $Q$ is a neighborhood of $z$ in $Z$ with respect to $S$ and
                $Q\subseteq\preimg{F}{W}$ by \cref{subseteq,pair_eq_iff}.
        \end{subproof}
        $\preimg{F}{W}$ is open in $Z$ with respect to $S$ by \cref{open_from_local_neighborhoods}.
    \end{subproof}
    $F$ is continuous from $Z$ to $C$ with respect to $S$ and $K$
        by \cref{open_from_local_neighborhoods,continuous}.
\end{proof}
Lemma 895
evaluation_map_exists

Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Then there exists $e$ such that $e$ is the evaluation map from $X$ and $C$ to $Y$.

LaTeX source
\begin{lemma}
\label{evaluation_map_exists}
    Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Then there exists $e$ such that $e$ is the evaluation map from $X$ and $C$ to $Y$.
\end{lemma}
Proof

We have $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\funs{X}{Y}$ by Definition 1, Definition 345.
Let $e = \{((x,h),h(x)) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X, h\class{latex-symbol-tip latex-symbol-id-in}{\in} C\}$.
$e$ is a relation by Axiom 6, Definition 12.
$e$ is a function by Axiom 6, Definition 12, Definition 51.

Claim: For all $p$ if $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{e}$ then $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} C$.

Fix $p$.
Assume $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{e}$.
Take $x,h,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ and $((x,h),h(x)) = (p,y)$ by Axiom 6, Proposition 199.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} C$ by Axiom 6, Proposition 115.

$\dom{e}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-times}{\times} C$ by Definition 1.

Claim: For all $p$ if $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} C$ then $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{e}$.

Fix $p$.
Assume $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} C$.
Take $x,h$ such that $p = (x,h)$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Proposition 121.
$p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{e}$ by Axiom 6, Proposition 200.

$X\class{latex-symbol-tip latex-symbol-id-times}{\times} C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{e}$ by Definition 1.
$\dom{e} = X\class{latex-symbol-tip latex-symbol-id-times}{\times} C$ by Proposition 3.

Claim: For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{e}$ we have $e(p)\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$.

$e\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} C}{Y}$ by Proposition 358.

Claim: For all $x,h$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $\apply{e}{(x,h)} = \apply{h}{x}$.

There exists $f$ such that $f$ is the evaluation map from $X$ and $C$ to $Y$ by Axiom 6, Definition 377.

LaTeX source
\begin{proof}
    We have $C\subseteq\funs{X}{Y}$ by \cref{continuous_function_set,subseteq}.
    Let $e = \{((x,h),h(x)) \mid x\in X, h\in C\}$.
    $e$ is a relation by \cref{relation,pair_eq_iff}.
    $e$ is a function by \cref{pair_eq_iff,rightunique,relation}.
    Show that for all $p$ if $p\in\dom{e}$ then $p\in X\times C$.
    \begin{subproof}
        Fix $p$.
        Assume $p\in\dom{e}$.
        Take $x,h,y$ such that $x\in X$ and $h\in C$ and $((x,h),h(x)) = (p,y)$ by \cref{dom_iff,pair_eq_iff}.
        $p\in X\times C$ by \cref{times_tuple_intro,pair_eq_iff}.
    \end{subproof}
    $\dom{e}\subseteq X\times C$ by \cref{subseteq}.
    Show that for all $p$ if $p\in X\times C$ then $p\in\dom{e}$.
    \begin{subproof}
        Fix $p$.
        Assume $p\in X\times C$.
        Take $x,h$ such that $p = (x,h)$ and $x\in X$ and $h\in C$ by \cref{times_elem_is_tuple}.
        $p\in\dom{e}$ by \cref{pair_eq_iff,dom_intro}.
    \end{subproof}
    $X\times C\subseteq\dom{e}$ by \cref{subseteq}.
    $\dom{e} = X\times C$ by \cref{subseteq_antisymmetric}.
    Show that for all $p\in\dom{e}$ we have $e(p)\in Y$.
    \begin{subproof}
        Follows by \cref{function_apply_elim,pair_eq_iff,funs_type_apply,subseteq}.
    \end{subproof}
    $e\in\funs{X\times C}{Y}$ by \cref{funs_intro}.
    Show that for all $x,h$ such that $x\in X$ and $h\in C$ we have $\apply{e}{(x,h)} = \apply{h}{x}$.
    \begin{subproof}
        Follows by \cref{times_tuple_intro,pair_eq_iff,function_apply_elim}.
    \end{subproof}
    There exists $f$ such that $f$ is the evaluation map from $X$ and $C$ to $Y$ by \cref{evaluation_map,pair_eq_iff}.
\end{proof}
Lemma 896
evaluation_composite_with_induced_graph

Assume $T$ is a topology on $X$.
Assume $S$ is a topology on $Z$.
Assume $K$ is a topology on $C$.
Assume $e$ is the evaluation map from $X$ and $C$ to $Y$.
Assume $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z}{Y}$.
Assume $F$ is the map induced by $f$ from $Z$ to $C$ with respect to $X$ and $Y$.
Assume $F$ is continuous from $Z$ to $C$ with respect to $S$ and $K$.
Let $P = \productTopology{T}{S}{X}{Z}$.
Let $Q = \productTopology{T}{K}{X}{C}$.
Let $g_1 = \piOne{X}{Z}$.
Let $g_2 = F\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \piTwo{X}{Z}$.
Let $G = \{(p,(g_1(p),g_2(p))) \mid p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z\}$.
Let $h = e\class{latex-symbol-tip latex-symbol-id-circ}{\circ} G$.
Then $h = f$.

LaTeX source
\begin{lemma}
\label{evaluation_composite_with_induced_graph}
    Assume $T$ is a topology on $X$.
    Assume $S$ is a topology on $Z$.
    Assume $K$ is a topology on $C$.
    Assume $e$ is the evaluation map from $X$ and $C$ to $Y$.
    Assume $f\in\funs{X\times Z}{Y}$.
    Assume $F$ is the map induced by $f$ from $Z$ to $C$ with respect to $X$ and $Y$.
    Assume $F$ is continuous from $Z$ to $C$ with respect to $S$ and $K$.
    Let $P = \productTopology{T}{S}{X}{Z}$.
    Let $Q = \productTopology{T}{K}{X}{C}$.
    Let $g_1 = \piOne{X}{Z}$.
    Let $g_2 = F\circ \piTwo{X}{Z}$.
    Let $G = \{(p,(g_1(p),g_2(p))) \mid p\in X\times Z\}$.
    Let $h = e\circ G$.
    Then $h = f$.
\end{lemma}
Proof

We have $G$ is continuous from $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z$ to $X\class{latex-symbol-tip latex-symbol-id-times}{\times} C$ with respect to $P$ and $Q$ by Lemma 165, Lemma 171, Lemma 172, Lemma 174.

Claim: For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z$ we have $h(p) = f(p)$.

Fix $p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z$.
Take $x,z$ such that $p = (x,z)$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ by Proposition 121.
$\apply{G}{p} = (x,\apply{F}{z})$ by Axiom 6, Definition 1, Definition 55, Definition 142, Definition 143, Definition 160, Lemma 171, Lemma 172, Proposition 346, Proposition 356, Proposition 363, Proposition 373.
$h(p) = \apply{\apply{F}{z}}{x}$ by Axiom 6, Definition 1, Definition 55, Definition 160, Definition 377, Proposition 356, Proposition 361, Proposition 363, Proposition 373.
$h(p) = f(p)$ by Axiom 6, Definition 378.

$h\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z}{Y}$ by Definition 160, Definition 377, Proposition 382.
$h = f$ by Definition 1, Proposition 3, Proposition 350, Proposition 359.

LaTeX source
\begin{proof}
    We have $G$ is continuous from $X\times Z$ to $X\times C$ with respect to $P$ and $Q$
        by \cref{projection_one_continuous,projection_two_continuous,continuous_composite,continuous_map_into_product_backward}.
    Show that for all $p\in X\times Z$ we have $h(p) = f(p)$.
    \begin{subproof}
        Fix $p\in X\times Z$.
        Take $x,z$ such that $p = (x,z)$ and $x\in X$ and $z\in Z$ by \cref{times_elem_is_tuple}.
        $\apply{G}{p} = (x,\apply{F}{z})$
            by \cref{projection_first,projection_one_continuous,projection_second,projection_two_continuous,circ_apply,continuous,funs_is_function,function_apply_intro,funs_ran,subseteq,funs,pair_eq_iff}.
        $h(p) = \apply{\apply{F}{z}}{x}$
            by \cref{circ_apply,continuous,funs_is_function,funs_ran,subseteq,evaluation_map,funs,pair_eq_iff,funs_type_apply}.
        $h(p) = f(p)$ by \cref{induced_map_into_function_space,pair_eq_iff}.
    \end{subproof}
    $h\in\funs{X\times Z}{Y}$ by \cref{evaluation_map,continuous,funs_circ}.
    $h = f$ by \cref{funs_elim,subseteq,fun_subseteq,subseteq_antisymmetric}.
\end{proof}
Lemma 897
induced_map_continuity_via_evaluation

Assume $T$ is a topology on $X$.
Assume $S$ is a topology on $Z$.
Assume $U$ is a topology on $Y$.
Assume $X$ is locally compact with respect to $T$.
Assume $X$ is Hausdorff with respect to $T$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Assume $K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Assume $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z}{Y}$.
Assume $F$ is the map induced by $f$ from $Z$ to $C$ with respect to $X$ and $Y$.
Assume $F$ is continuous from $Z$ to $C$ with respect to $S$ and $K$.
Then $f$ is continuous from $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z$ to $Y$ with respect to $\productTopology{T}{S}{X}{Z}$ and $U$.

LaTeX source
\begin{lemma}
\label{induced_map_continuity_via_evaluation}
    Assume $T$ is a topology on $X$.
    Assume $S$ is a topology on $Z$.
    Assume $U$ is a topology on $Y$.
    Assume $X$ is locally compact with respect to $T$.
    Assume $X$ is Hausdorff with respect to $T$.
    Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Assume $K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Assume $f\in\funs{X\times Z}{Y}$.
    Assume $F$ is the map induced by $f$ from $Z$ to $C$ with respect to $X$ and $Y$.
    Assume $F$ is continuous from $Z$ to $C$ with respect to $S$ and $K$.
    Then $f$ is continuous from $X\times Z$ to $Y$ with respect to $\productTopology{T}{S}{X}{Z}$ and $U$.
\end{lemma}
Proof

Let $P = \productTopology{T}{S}{X}{Z}$.
Let $Q = \productTopology{T}{K}{X}{C}$.
Take $e$ such that $e$ is the evaluation map from $X$ and $C$ to $Y$ by Lemma 895.
Take $F_0, S_0$ such that $F_0$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $S_0$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and $K = \subbasisTopology{S_0}{F_0}$ by Definition 375.
$K = \subbasisTopology{S_0}{C}$ by Axiom 6, Definition 375, Lemma 890.
$S_0$ is a subbasis on $C$ by Lemma 884.
$K$ is a topology on $C$ by Definition 115, Definition 126, Lemma 76, Lemma 99.
$e$ is continuous from $X\class{latex-symbol-tip latex-symbol-id-times}{\times} C$ to $Y$ with respect to $Q$ and $U$ by Theorem 132.
Let $g_1 = \piOne{X}{Z}$.
Let $g_2 = F\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \piTwo{X}{Z}$.
Let $G = \{(p,(g_1(p),g_2(p))) \mid p\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z\}$.
$G$ is continuous from $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z$ to $X\class{latex-symbol-tip latex-symbol-id-times}{\times} C$ with respect to $P$ and $Q$ by Lemma 165, Lemma 171, Lemma 172, Lemma 174.
Let $h = e\class{latex-symbol-tip latex-symbol-id-circ}{\circ} G$.
$h = f$ by Lemma 896.
$f$ is continuous from $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z$ to $Y$ with respect to $P$ and $U$ by Axiom 6, Lemma 165.

LaTeX source
\begin{proof}
    Let $P = \productTopology{T}{S}{X}{Z}$.
    Let $Q = \productTopology{T}{K}{X}{C}$.
    Take $e$ such that $e$ is the evaluation map from $X$ and $C$ to $Y$ by \cref{evaluation_map_exists}.
    Take $F_0, S_0$ such that
        $F_0$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
        $S_0$ is the compact-open subbasis on continuous functions from $X$ to $Y$ with respect to $T$ and $U$ and
        $K = \subbasisTopology{S_0}{F_0}$ by \cref{compact_open_topology}.
    $K = \subbasisTopology{S_0}{C}$
        by \cref{compact_open_topology,continuous_function_sets_equal,pair_eq_iff}.
    $S_0$ is a subbasis on $C$ by \cref{compact_open_subbasis_is_subbasis}.
    $K$ is a topology on $C$
        by \cref{subbasis_finite_intersections_basis,basis_for_topology,topology_generated_by_subbasis,basis_topology_is_topology}.
    $e$ is continuous from $X\times C$ to $Y$ with respect to $Q$ and $U$
        by \cref{evaluation_map_continuous_compact_open}.
    Let $g_1 = \piOne{X}{Z}$.
    Let $g_2 = F\circ \piTwo{X}{Z}$.
    Let $G = \{(p,(g_1(p),g_2(p))) \mid p\in X\times Z\}$.
    $G$ is continuous from $X\times Z$ to $X\times C$ with respect to $P$ and $Q$
        by \cref{projection_one_continuous,projection_two_continuous,continuous_composite,continuous_map_into_product_backward}.
    Let $h = e\circ G$.
    $h = f$ by \cref{evaluation_composite_with_induced_graph}.
    $f$ is continuous from $X\times Z$ to $Y$ with respect to $P$ and $U$
        by \cref{continuous_composite,pair_eq_iff}.
\end{proof}
Theorem 134
induced_map_continuity_characterization_compact_open

Assume $T$ is a topology on $X$.
Assume $S$ is a topology on $Z$.
Assume $U$ is a topology on $Y$.
Assume $X$ is locally compact with respect to $T$.
Assume $X$ is Hausdorff with respect to $T$.
Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Assume $K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
Assume $f\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z}{Y}$.
Assume $F$ is the map induced by $f$ from $Z$ to $C$ with respect to $X$ and $Y$.
Suppose $F$ is continuous from $Z$ to $C$ with respect to $S$ and $K$.
Then $f$ is continuous from $X\class{latex-symbol-tip latex-symbol-id-times}{\times} Z$ to $Y$ with respect to $\productTopology{T}{S}{X}{Z}$ and $U$.

LaTeX source
\begin{theorem}
\label{induced_map_continuity_characterization_compact_open}
    Assume $T$ is a topology on $X$.
    Assume $S$ is a topology on $Z$.
    Assume $U$ is a topology on $Y$.
    Assume $X$ is locally compact with respect to $T$.
    Assume $X$ is Hausdorff with respect to $T$.
    Assume $C$ is the set of continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Assume $K$ is the compact open topology on continuous functions from $X$ to $Y$ with respect to $T$ and $U$.
    Assume $f\in\funs{X\times Z}{Y}$.
    Assume $F$ is the map induced by $f$ from $Z$ to $C$ with respect to $X$ and $Y$.
    Suppose $F$ is continuous from $Z$ to $C$ with respect to $S$ and $K$.
    Then $f$ is continuous from $X\times Z$ to $Y$ with respect to $\productTopology{T}{S}{X}{Z}$ and $U$.
\end{theorem}
Proof

Follows by Lemma 897.

LaTeX source
\begin{proof}
    Follows by \cref{induced_map_continuity_via_evaluation}.
\end{proof}
Definition 379
homotopy_between_maps

$h$ is a homotopy between $f$ and $g$ from $X$ to $Y$ with respect to $T$ and $U$ iff $f$ is continuous from $X$ to $Y$ with respect to $T$ and $U$ and $g$ is continuous from $X$ to $Y$ with respect to $T$ and $U$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-times}{\times}\intervalclosed{0}{1}}{Y}$ and $h$ is continuous from $X\class{latex-symbol-tip latex-symbol-id-times}{\times}\intervalclosed{0}{1}$ to $Y$ with respect to $\productTopology{T}{\subspaceTopology{\standardTopologyR}{\intervalclosed{0}{1}}}{X}{\intervalclosed{0}{1}}$ and $U$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $\apply{h}{(x,0)} = \apply{f}{x}$ and $\apply{h}{(x,1)} = \apply{g}{x}$.

LaTeX source
\begin{definition}
\label{homotopy_between_maps}
    $h$ is a homotopy between $f$ and $g$ from $X$ to $Y$ with respect to $T$ and $U$ iff
        $f$ is continuous from $X$ to $Y$ with respect to $T$ and $U$ and
        $g$ is continuous from $X$ to $Y$ with respect to $T$ and $U$ and
        $h\in\funs{X\times\intervalclosed{0}{1}}{Y}$ and
        $h$ is continuous from $X\times\intervalclosed{0}{1}$ to $Y$ with respect to
            $\productTopology{T}{\subspaceTopology{\standardTopologyR}{\intervalclosed{0}{1}}}{X}{\intervalclosed{0}{1}}$
            and $U$ and
        for all $x\in X$ we have
            $\apply{h}{(x,0)} = \apply{f}{x}$ and
            $\apply{h}{(x,1)} = \apply{g}{x}$.
\end{definition}
Definition 380
homotopic_maps

$f$ is homotopic to $g$ from $X$ to $Y$ with respect to $T$ and $U$ iff there exists $h$ such that $h$ is a homotopy between $f$ and $g$ from $X$ to $Y$ with respect to $T$ and $U$.

LaTeX source
\begin{definition}
\label{homotopic_maps}
    $f$ is homotopic to $g$ from $X$ to $Y$ with respect to $T$ and $U$ iff
        there exists $h$ such that
            $h$ is a homotopy between $f$ and $g$ from $X$ to $Y$ with respect to $T$ and $U$.
\end{definition}