Topology (Munkres)
§36 Imbeddings of Manifolds
$X$ is a manifold of dimension $m$ with respect to $T$ iff $X$ is Hausdorff with respect to $T$ and $X$ satisfies the second countability axiom with respect to $T$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exist $U, V, R, S, h$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and $R = \{(i,\reals) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}\}$ and $S = \{(i,\standardTopologyR) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}\}$ and $V$ is open in $\productFamily{R}$ with respect to $\productTopologyIndexed{S}{R}$ and $h$ is a homeomorphism between $U$ and $V$ with respect to $\subspaceTopology{T}{U}$ and $\subspaceTopology{\productTopologyIndexed{S}{R}}{V}$.
LaTeX source
\begin{definition}
\label{m_manifold}
$X$ is a manifold of dimension $m$ with respect to $T$ iff
$X$ is Hausdorff with respect to $T$ and
$X$ satisfies the second countability axiom with respect to $T$ and
for all $x\in X$ there exist $U, V, R, S, h$ such that
$U$ is a neighborhood of $x$ in $X$ with respect to $T$ and
$R = \{(i,\reals) \mid i\in\initialSegment{m}\}$ and
$S = \{(i,\standardTopologyR) \mid i\in\initialSegment{m}\}$ and
$V$ is open in $\productFamily{R}$ with respect to $\productTopologyIndexed{S}{R}$ and
$h$ is a homeomorphism between $U$ and $V$ with respect to
$\subspaceTopology{T}{U}$ and $\subspaceTopology{\productTopologyIndexed{S}{R}}{V}$.
\end{definition}
$\supp{f}{X}{T} = \closure{X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\preimg{f}{\{0\}}}{X}{T}$.
LaTeX source
\begin{definition}
\label{support}
$\supp{f}{X}{T} = \closure{X\setminus\preimg{f}{\{0\}}}{X}{T}$.
\end{definition}
$\finitePartitionComponentCondition{f}{X}{U}{T}{n}$ iff for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ there exists $I$ such that $I = \intervalclosed{0}{1}$ and $\apply{f}{i}$ is continuous from $X$ to $I$ with respect to $T$ and $\subspaceTopology{\standardTopologyR}{I}$ and $\supp{\apply{f}{i}}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{i}$.
LaTeX source
\begin{definition}
\label{finite_partition_component_condition}
$\finitePartitionComponentCondition{f}{X}{U}{T}{n}$ iff
for all $i\in\initialSegment{n}$ there exists $I$ such that
$I = \intervalclosed{0}{1}$ and
$\apply{f}{i}$ is continuous from $X$ to $I$ with respect to $T$ and $\subspaceTopology{\standardTopologyR}{I}$ and
$\supp{\apply{f}{i}}{X}{T}\subseteq \apply{U}{i}$.
\end{definition}
$\finitePartitionSumCondition{f}{X}{n}$ iff for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $a(i) = \apply{\apply{f}{i}}{x}$ and $\sumFiniteSequence{a}{1}$.
LaTeX source
\begin{definition}
\label{finite_partition_sum_condition}
$\finitePartitionSumCondition{f}{X}{n}$ iff
for all $x\in X$ there exists $a$ such that
$a\in\funs{\initialSegment{n}}{\reals}$ and
for all $i\in\initialSegment{n}$ we have $a(i) = \apply{\apply{f}{i}}{x}$ and
$\sumFiniteSequence{a}{1}$.
\end{definition}
$f$ is a partition of unity on $X$ dominated by $U$ with respect to $T$ and $n$ iff $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $U$ is a function on $\initialSegment{n}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{U}{i}$ is open in $X$ with respect to $T$ and $\img{U}{\initialSegment{n}}$ is a covering of $X$ and $f$ is a function on $\initialSegment{n}$ and $\finitePartitionComponentCondition{f}{X}{U}{T}{n}$ and $\finitePartitionSumCondition{f}{X}{n}$.
LaTeX source
\begin{definition}
\label{finite_partition_of_unity}
$f$ is a partition of unity on $X$ dominated by $U$ with respect to $T$ and $n$ iff
$n\in\naturalsPlus$ and
$U$ is a function on $\initialSegment{n}$ and
for all $i\in\initialSegment{n}$ we have $\apply{U}{i}$ is open in $X$ with respect to $T$ and
$\img{U}{\initialSegment{n}}$ is a covering of $X$ and
$f$ is a function on $\initialSegment{n}$ and
$\finitePartitionComponentCondition{f}{X}{U}{T}{n}$ and
$\finitePartitionSumCondition{f}{X}{n}$.
\end{definition}
$g$ is a finite real sum witness for $f$ on $X$ with respect to $T$ and $n$ iff $g$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ and $\sumFiniteSequence{a}{g(x)}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $a(i) = \apply{\apply{f}{i}}{x}$.
LaTeX source
\begin{definition}
\label{finite_real_sum_witness}
$g$ is a finite real sum witness for $f$ on $X$ with respect to $T$ and $n$ iff
$g$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and
for all $x\in X$ there exists $a$ such that
$a\in\funs{\initialSegment{n}}{\reals}$ and
$\sumFiniteSequence{a}{g(x)}$ and
for all $i\in\initialSegment{n}$ we have $a(i) = \apply{\apply{f}{i}}{x}$.
\end{definition}
$\finiteShrinkStage{U}{X}{T}{n}{k}$ iff if $k \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then there exists $V$ such that $V$ is a function on $\initialSegment{k}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}$ we have $\apply{V}{i}$ is open in $X$ with respect to $T$ and $\closure{\apply{V}{i}}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{i}$ and $\finiteShrinkCoverCondition{V}{U}{X}{n}{k}$.
LaTeX source
\begin{definition}
\label{finite_shrink_stage}
$\finiteShrinkStage{U}{X}{T}{n}{k}$ iff
if $k \leq n$ then there exists $V$ such that
$V$ is a function on $\initialSegment{k}$ and
for all $i\in\initialSegment{k}$ we have
$\apply{V}{i}$ is open in $X$ with respect to $T$ and
$\closure{\apply{V}{i}}{X}{T}\subseteq \apply{U}{i}$
and
$\finiteShrinkCoverCondition{V}{U}{X}{n}{k}$.
\end{definition}
$\finiteShrinkCoverCondition{V}{U}{X}{n}{k}$ iff for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ such that either $i \class{latex-symbol-tip latex-symbol-id-leq}{\leq} k$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{V}{i}$ or $k < i$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}$.
LaTeX source
\begin{definition}
\label{finite_shrink_cover_condition}
$\finiteShrinkCoverCondition{V}{U}{X}{n}{k}$ iff
for all $x\in X$ there exists $i\in\initialSegment{n}$ such that
either $i \leq k$ and $x\in \apply{V}{i}$
or $k < i$ and $x\in \apply{U}{i}$.
\end{definition}
$\finiteShrinkTailIndices{n}{k} = \{i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n} \mid k < i\}$.
LaTeX source
\begin{definition}
\label{finite_shrink_tail_indices}
$\finiteShrinkTailIndices{n}{k} = \{i\in\initialSegment{n} \mid k < i\}$.
\end{definition}
$\finiteShrinkStageSet{U}{X}{T}{n} = \{k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \finiteShrinkStage{U}{X}{T}{n}{k}\}$.
LaTeX source
\begin{definition}
\label{finite_shrink_stage_set}
$\finiteShrinkStageSet{U}{X}{T}{n} = \{k\in\naturalsPlus \mid \finiteShrinkStage{U}{X}{T}{n}{k}\}$.
\end{definition}
Assume $X$ is normal with respect to $T$.
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $U$ is a function on $\initialSegment{n}$.
Suppose for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{U}{i}$ is open in $X$ with respect to $T$.
Suppose $\img{U}{\initialSegment{n}}$ is a covering of $X$.
Then $\finiteShrinkStage{U}{X}{T}{n}{1}$.
LaTeX source
\begin{lemma}
\label{finite_shrink_stage_one}
Assume $X$ is normal with respect to $T$.
Assume $n\in\naturalsPlus$.
Assume $U$ is a function on $\initialSegment{n}$.
Suppose for all $i\in\initialSegment{n}$ we have $\apply{U}{i}$ is open in $X$ with respect to $T$.
Suppose $\img{U}{\initialSegment{n}}$ is a covering of $X$.
Then $\finiteShrinkStage{U}{X}{T}{n}{1}$.
\end{lemma}
Proof
Let $J = \finiteShrinkTailIndices{n}{1}$.
Let $C = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\unions{\img{U}{J}}$.
Claim: If $1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then there exists $V$ such that $V$ is a function on $\initialSegment{1}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{1}$ we have $\apply{V}{i}$ is open in $X$ with respect to $T$ and $\closure{\apply{V}{i}}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{i}$ and $\finiteShrinkCoverCondition{V}{U}{X}{n}{1}$.
Assume $1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
For all $W$ such that $W\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{U}{J}$ we have $W\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 1, Definition 103, Definition 300, Proposition 235, Proposition 346.
We have $\unions{\img{U}{J}}\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 277, Definition 300, Proposition 235, Proposition 346.
Hence $\unions{\img{U}{J}}$ is open in $X$ with respect to $T$ by Definition 103, Definition 277.
We have $\unions{\img{U}{J}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 277.
Therefore $C$ is closed in $X$ with respect to $T$ by Definition 1, Definition 103, Definition 149, Proposition 92, Proposition 97.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{1}$ by Axiom 4, Axiom 43, Definition 1, Definition 84, Definition 245, Definition 300, Lemma 81, Proposition 86, Proposition 87, Proposition 235, Proposition 346, Proposition 348.
We have $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{1}$ by Definition 1.
$\apply{U}{1}$ is open in $X$ with respect to $T$ by Axiom 42, Definition 1, Definition 84.
Take $W$ such that $W$ is open in $X$ with respect to $T$ and $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} W$ and $\closure{W}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{1}$ by Lemma 450.
Let $V = \{(1,W)\}$.
$V$ is a function by Axiom 6, Definition 12, Definition 51, Proposition 21.
We have $\dom{V} = \initialSegment{1}$ by Axiom 6, Axiom 41, Axiom 42, Axiom 43, Definition 1, Definition 84, Lemma 25, Proposition 3, Proposition 20, Proposition 21, Proposition 199, Proposition 200.
We have $V$ is a function on $\initialSegment{1}$ by Definition 55.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{1}$ we have $\apply{V}{i}$ is open in $X$ with respect to $T$ and $\closure{\apply{V}{i}}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{i}$ by Axiom 6, Axiom 36, Axiom 39, Axiom 41, Axiom 42, Axiom 43, Definition 1, Definition 84, Lemma 81, Proposition 20, Proposition 346.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ and either $i \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{V}{i}$ or $1 < i$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}$.
Fix $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ or $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} W$.
Take $i$ such that $i = 1$.
We have $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ and $i \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 1$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{V}{i}$ by Axiom 6, Axiom 42, Definition 1, Definition 84, Proposition 20, Proposition 346.
Take $W_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{U}{J}$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} W_0$ by Axiom 4, Definition 1, Proposition 85.
Take $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ and $(i,W_0)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Proposition 235.
We have $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ and $1 < i$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}$ by Definition 300, Proposition 346.
LaTeX source
\begin{byCase}
\caseOf{$x\in W$.}
Take $i$ such that $i = 1$.
We have $i\in\initialSegment{n}$ and $i \leq 1$ and $x\in \apply{V}{i}$ by
\cref{real_one_in_naturals,initial_segment_naturalsplus,subseteq,singleton_intro,pair_eq_iff,function_apply_intro}.
\caseOf{$x\notin W$.}
Take $W_0\in\img{U}{J}$ such that $x\in W_0$ by \cref{subseteq,setminus_intro,unions_iff}.
Take $i$ such that $i\in J$ and $(i,W_0)\in U$ by \cref{img_iff}.
We have $i\in\initialSegment{n}$ and $1 < i$ and $x\in \apply{U}{i}$
by \cref{finite_shrink_tail_indices,function_apply_intro}.
\end{byCase}
Therefore $\finiteShrinkCoverCondition{V}{U}{X}{n}{1}$ by Definition 299.
Follows by Axiom 6.
Therefore $\finiteShrinkStage{U}{X}{T}{n}{1}$ by Definition 298.
LaTeX source
\begin{proof}
Let $J = \finiteShrinkTailIndices{n}{1}$.
Let $C = X\setminus\unions{\img{U}{J}}$.
Show that if $1 \leq n$ then there exists $V$ such that
$V$ is a function on $\initialSegment{1}$ and
for all $i\in\initialSegment{1}$ we have
$\apply{V}{i}$ is open in $X$ with respect to $T$ and
$\closure{\apply{V}{i}}{X}{T}\subseteq \apply{U}{i}$ and
$\finiteShrinkCoverCondition{V}{U}{X}{n}{1}$.
\begin{subproof}
Assume $1 \leq n$.
For all $W$ such that $W\in\img{U}{J}$ we have $W\in T$
by \cref{img_iff,finite_shrink_tail_indices,function_apply_intro,subseteq,open_in}.
We have $\unions{\img{U}{J}}\in T$
by \cref{img_iff,finite_shrink_tail_indices,function_apply_intro,subseteq,open_in,normal_space,topology_on,pow_iff}.
Hence $\unions{\img{U}{J}}$ is open in $X$ with respect to $T$ by \cref{normal_space,open_in}.
We have $\unions{\img{U}{J}}\subseteq X$ by \cref{open_in,normal_space,topology_on,subseteq,pow_iff}.
Therefore $C$ is closed in $X$ with respect to $T$
by \cref{setminus_subseteq,double_relative_complement,subseteq,open_in,closed_in}.
For all $x$ such that $x\in C$ we have $x\in \apply{U}{1}$
by \cref{setminus_elim_left,covering,unions_iff,subseteq,img_iff,function_apply_intro,function_apply_elim,initial_segment_naturalsplus,real_one_leq_naturalsplus,finite_shrink_tail_indices,real_leq_split,setminus_elim_right}.
We have $C\subseteq \apply{U}{1}$ by \cref{subseteq}.
$\apply{U}{1}$ is open in $X$ with respect to $T$
by \cref{real_one_in_naturals,initial_segment_naturalsplus,subseteq}.
Take $W$ such that
$W$ is open in $X$ with respect to $T$ and
$C\subseteq W$ and
$\closure{W}{X}{T}\subseteq \apply{U}{1}$
by \cref{normal_closure_neighborhood}.
Let $V = \{(1,W)\}$.
$V$ is a function by \cref{singleton_elim,pair_eq_iff,rightunique,relation}.
We have $\dom{V} = \initialSegment{1}$ by
\cref{dom_iff,singleton_elim,pair_eq_iff,real_one_in_naturals,initial_segment_naturalsplus,real_naturals_subset_reals,subseteq,real_one_leq_naturalsplus,real_leq_antisym,singleton_intro,dom_intro,subseteq_antisymmetric}.
We have $V$ is a function on $\initialSegment{1}$ by \cref{funs}.
For all $i\in\initialSegment{1}$ we have
$\apply{V}{i}$ is open in $X$ with respect to $T$ and
$\closure{\apply{V}{i}}{X}{T}\subseteq \apply{U}{i}$
by \cref{initial_segment_naturalsplus,real_one_leq_naturalsplus,real_one_in_naturals,real_naturals_subset_reals,subseteq,real_leq_split,real_lt_trans,real_lt_irreflexive,singleton_intro,pair_eq_iff,function_apply_intro}.
Show that for all $x\in X$ there exists $i$ such that
$i\in\initialSegment{n}$ and
either $i \leq 1$ and $x\in \apply{V}{i}$
or $1 < i$ and $x\in \apply{U}{i}$.
\begin{subproof}
Fix $x\in X$.
$x\in W$ or $x\notin W$.
\begin{byCase}
\caseOf{$x\in W$.}
Take $i$ such that $i = 1$.
We have $i\in\initialSegment{n}$ and $i \leq 1$ and $x\in \apply{V}{i}$ by
\cref{real_one_in_naturals,initial_segment_naturalsplus,subseteq,singleton_intro,pair_eq_iff,function_apply_intro}.
\caseOf{$x\notin W$.}
Take $W_0\in\img{U}{J}$ such that $x\in W_0$ by \cref{subseteq,setminus_intro,unions_iff}.
Take $i$ such that $i\in J$ and $(i,W_0)\in U$ by \cref{img_iff}.
We have $i\in\initialSegment{n}$ and $1 < i$ and $x\in \apply{U}{i}$
by \cref{finite_shrink_tail_indices,function_apply_intro}.
\end{byCase}
\end{subproof}
Therefore $\finiteShrinkCoverCondition{V}{U}{X}{n}{1}$ by \cref{finite_shrink_cover_condition}.
Follows by \cref{pair_eq_iff}.
\end{subproof}
Therefore $\finiteShrinkStage{U}{X}{T}{n}{1}$ by \cref{finite_shrink_stage}.
\end{proof}
Suppose $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Suppose $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k + 1}$.
Suppose $k < i$.
Then $i = k + 1$.
LaTeX source
\begin{lemma}
\label{initial_segment_succ_last}
Suppose $k\in\naturalsPlus$.
Suppose $i\in\initialSegment{k + 1}$.
Suppose $k < i$.
Then $i = k + 1$.
\end{lemma}
Proof
We have $i = k + 1$ by Axiom 36, Axiom 39, Axiom 41, Definition 1, Definition 84, Lemma 29.
LaTeX source
\begin{proof}
We have $i = k + 1$
by \cref{real_naturals_leq_succ_elim,initial_segment_naturalsplus,real_naturals_subset_reals,subseteq,real_lt_trans,real_lt_irreflexive}.
\end{proof}
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $V$ is a function on $\initialSegment{n}$.
Suppose $\finiteShrinkCoverCondition{V}{U}{X}{n}{n}$.
Then $\img{V}{\initialSegment{n}}$ is a covering of $X$.
LaTeX source
\begin{lemma}
\label{finite_shrink_cover_condition_final}
Assume $n\in\naturalsPlus$.
Assume $V$ is a function on $\initialSegment{n}$.
Suppose $\finiteShrinkCoverCondition{V}{U}{X}{n}{n}$.
Then $\img{V}{\initialSegment{n}}$ is a covering of $X$.
\end{lemma}
Proof
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{\img{V}{\initialSegment{n}}}$ by Axiom 4, Axiom 36, Axiom 39, Axiom 41, Definition 1, Definition 84, Definition 299, Proposition 235, Proposition 348.
Therefore $\img{V}{\initialSegment{n}}$ is a covering of $X$ by Definition 1, Definition 245.
LaTeX source
\begin{proof}
For all $x$ such that $x\in X$ we have $x\in\unions{\img{V}{\initialSegment{n}}}$
by \cref{finite_shrink_cover_condition,initial_segment_naturalsplus,real_naturals_subset_reals,subseteq,real_lt_trans,real_lt_irreflexive,function_apply_elim,img_iff,unions_iff}.
Therefore $\img{V}{\initialSegment{n}}$ is a covering of $X$ by \cref{subseteq,covering}.
\end{proof}
Assume $X$ is normal with respect to $T$.
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $U$ is a function on $\initialSegment{n}$.
Suppose for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{U}{i}$ is open in $X$ with respect to $T$.
Suppose $\img{U}{\initialSegment{n}}$ is a covering of $X$.
Assume $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Suppose $\finiteShrinkStage{U}{X}{T}{n}{k}$.
Then $\finiteShrinkStage{U}{X}{T}{n}{k + 1}$.
LaTeX source
\begin{lemma}
\label{finite_shrink_stage_succ}
Assume $X$ is normal with respect to $T$.
Assume $n\in\naturalsPlus$.
Assume $U$ is a function on $\initialSegment{n}$.
Suppose for all $i\in\initialSegment{n}$ we have $\apply{U}{i}$ is open in $X$ with respect to $T$.
Suppose $\img{U}{\initialSegment{n}}$ is a covering of $X$.
Assume $k\in\naturalsPlus$.
Suppose $\finiteShrinkStage{U}{X}{T}{n}{k}$.
Then $\finiteShrinkStage{U}{X}{T}{n}{k + 1}$.
\end{lemma}
Proof
Claim: If $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then there exists $V$ such that $V$ is a function on $\initialSegment{k + 1}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k + 1}$ we have $\apply{V}{i}$ is open in $X$ with respect to $T$ and $\closure{\apply{V}{i}}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{i}$ and $\finiteShrinkCoverCondition{V}{U}{X}{n}{k + 1}$.
Assume $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
$k\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 41, Axiom 42, Axiom 45, Definition 1.
We have $k < k + 1$ by Lemma 399.
Hence $k \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ by Lemma 23, Lemma 231.
Take $V_0$ such that $V_0$ is a function on $\initialSegment{k}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}$ we have $\apply{V_0}{i}$ is open in $X$ with respect to $T$ and $\closure{\apply{V_0}{i}}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{i}$ and $\finiteShrinkCoverCondition{V_0}{U}{X}{n}{k}$ by Definition 298.
Let $J = \finiteShrinkTailIndices{n}{k + 1}$.
Let $A = \unions{\img{V_0}{\initialSegment{k}}}$.
Let $B = \unions{\img{U}{J}}$.
Let $F = \{A,B\}$.
Let $D = \unions{F}$.
Let $C = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} D$.
For all $W$ such that $W\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{V_0}{\initialSegment{k}}$ we have $W\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 1, Definition 103, Proposition 235, Proposition 346.
$T$ is a topology on $X$ by Definition 277.
We have $\img{V_0}{\initialSegment{k}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T$ by Definition 1.
$A\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Axiom 12, Definition 101.
Therefore $A$ is open in $X$ with respect to $T$ by Definition 103.
For all $W$ such that $W\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{U}{J}$ we have $W\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 1, Definition 103, Definition 300, Proposition 235, Proposition 346.
We have $\img{U}{J}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T$ by Definition 1.
$B\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Axiom 12, Definition 101, Definition 277.
Hence $B$ is open in $X$ with respect to $T$ by Definition 103.
For all $W$ such that $W\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $W\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 103, Proposition 19.
We have $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T$ by Definition 1.
$D\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Axiom 12, Definition 101, Definition 277.
Therefore $D$ is open in $X$ with respect to $T$ by Definition 103.
$D\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 277.
Hence $C$ is closed in $X$ with respect to $T$ by Definition 1, Definition 103, Definition 149, Proposition 92, Proposition 97.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{k + 1}$ by Axiom 4, Axiom 34, Axiom 36, Axiom 39, Axiom 41, Axiom 45, Definition 1, Definition 84, Definition 299, Definition 300, Lemma 29, Lemma 83, Lemma 231, Proposition 16, Proposition 17, Proposition 86, Proposition 87, Proposition 235, Proposition 348, Proposition 359.
We have $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{k + 1}$ by Definition 1.
$k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ by Axiom 45, Definition 84.
$\apply{U}{k + 1}$ is open in $X$ with respect to $T$ by Definition 1.
Take $W$ such that $W$ is open in $X$ with respect to $T$ and $C\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} W$ and $\closure{W}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{k + 1}$ by Lemma 450.
Let $G = \{(k + 1,W)\}$.
$G$ is a function and $\dom{G} = \{k + 1\}$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 20, Proposition 21, Proposition 199, Proposition 200.
For all $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{V_0}\inter\dom{G}$ we have $\apply{V_0}{a} = \apply{G}{a}$.
Let $V = V_0\union G$.
We have $V$ is a function by Lemma 170.
$\dom{V} = \dom{V_0}\union\dom{G}$ by Proposition 205.
Hence $\dom{V} = \initialSegment{k}\union \{k + 1\}$ by Proposition 359.
For all $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}\union\{k + 1\}$ we have $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k + 1}$ by Axiom 5, Axiom 13, Axiom 16, Axiom 17, Axiom 36, Axiom 37, Axiom 41, Axiom 42, Definition 1, Definition 84, Lemma 82, Proposition 21, Proposition 462.
For all $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k + 1}$ we have $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}\union\{k + 1\}$ by Axiom 5, Definition 84, Lemma 29, Proposition 20.
Hence $\initialSegment{k}\union\{k + 1\} = \initialSegment{k + 1}$ by Definition 1, Proposition 3.
Therefore $V$ is a function on $\initialSegment{k + 1}$ by Definition 1, Definition 55, Proposition 3.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k + 1}$ we have $\apply{V}{i}$ is open in $X$ with respect to $T$ and $\closure{\apply{V}{i}}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{i}$ by Axiom 5, Axiom 6, Definition 1, Definition 84, Lemma 29, Proposition 20, Proposition 346, Proposition 348, Proposition 359.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ and either $i \class{latex-symbol-tip latex-symbol-id-leq}{\leq} k + 1$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{V}{i}$ or $k + 1 < i$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}$.
Fix $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ or $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} W$.
Take $i$ such that $i = k + 1$.
Hence $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ and $i \class{latex-symbol-tip latex-symbol-id-leq}{\leq} k + 1$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{V}{i}$ by Axiom 5, Axiom 6, Axiom 45, Definition 84, Proposition 20, Proposition 346.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Definition 1, Proposition 85.
Take $Y$ such that $Y\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Y$ by Axiom 4.
$Y = A$ or $Y = B$ by Proposition 19.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Take $W_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{V_0}{\initialSegment{k}}$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} W_0$ by Axiom 4.
Take $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}$ and $(i,W_0)\class{latex-symbol-tip latex-symbol-id-in}{\in} V_0$ by Proposition 235.
$i\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $i \class{latex-symbol-tip latex-symbol-id-leq}{\leq} k$ by Definition 84.
Hence $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ and $i \class{latex-symbol-tip latex-symbol-id-leq}{\leq} k + 1$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{V}{i}$ by Axiom 5, Axiom 41, Definition 1, Definition 84, Lemma 23, Proposition 346.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} B$.
Take $W_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{U}{J}$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} W_0$ by Axiom 4.
Take $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ and $(i,W_0)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Proposition 235.
Hence $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ and $k + 1 < i$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}$ by Definition 300, Proposition 346.
LaTeX source
\begin{byCase}
\caseOf{$Y = A$.}
$x\in A$.
Take $W_0\in\img{V_0}{\initialSegment{k}}$ such that $x\in W_0$ by \cref{unions_iff}.
Take $i$ such that $i\in\initialSegment{k}$ and $(i,W_0)\in V_0$ by \cref{img_iff}.
$i\in\naturalsPlus$ and $i \leq k$ by \cref{initial_segment_naturalsplus}.
Hence $i\in\initialSegment{n}$ and $i \leq k + 1$ and $x\in \apply{V}{i}$ by
\cref{real_naturals_subset_reals,subseteq,real_leq_trans,initial_segment_naturalsplus,union_iff,function_apply_intro}.
\caseOf{$Y = B$.}
$x\in B$.
Take $W_0\in\img{U}{J}$ such that $x\in W_0$ by \cref{unions_iff}.
Take $i$ such that $i\in J$ and $(i,W_0)\in U$ by \cref{img_iff}.
Hence $i\in\initialSegment{n}$ and $k + 1 < i$ and $x\in \apply{U}{i}$
by \cref{finite_shrink_tail_indices,function_apply_intro}.
\end{byCase}
LaTeX source
\begin{byCase}
\caseOf{$x\in W$.}
Take $i$ such that $i = k + 1$.
Hence $i\in\initialSegment{n}$ and $i \leq k + 1$ and $x\in \apply{V}{i}$ by
\cref{real_naturals_closed_succ,initial_segment_naturalsplus,singleton_intro,pair_eq_iff,union_iff,function_apply_intro}.
\caseOf{$x\notin W$.}
We have $x\in D$ by \cref{subseteq,setminus_intro}.
Take $Y$ such that $Y\in F$ and $x\in Y$ by \cref{unions_iff}.
$Y = A$ or $Y = B$ by \cref{upair_iff}.
\begin{byCase}
\caseOf{$Y = A$.}
$x\in A$.
Take $W_0\in\img{V_0}{\initialSegment{k}}$ such that $x\in W_0$ by \cref{unions_iff}.
Take $i$ such that $i\in\initialSegment{k}$ and $(i,W_0)\in V_0$ by \cref{img_iff}.
$i\in\naturalsPlus$ and $i \leq k$ by \cref{initial_segment_naturalsplus}.
Hence $i\in\initialSegment{n}$ and $i \leq k + 1$ and $x\in \apply{V}{i}$ by
\cref{real_naturals_subset_reals,subseteq,real_leq_trans,initial_segment_naturalsplus,union_iff,function_apply_intro}.
\caseOf{$Y = B$.}
$x\in B$.
Take $W_0\in\img{U}{J}$ such that $x\in W_0$ by \cref{unions_iff}.
Take $i$ such that $i\in J$ and $(i,W_0)\in U$ by \cref{img_iff}.
Hence $i\in\initialSegment{n}$ and $k + 1 < i$ and $x\in \apply{U}{i}$
by \cref{finite_shrink_tail_indices,function_apply_intro}.
\end{byCase}
\end{byCase}
Therefore $\finiteShrinkCoverCondition{V}{U}{X}{n}{k + 1}$ by Definition 299.
Follows by Axiom 6.
Hence $\finiteShrinkStage{U}{X}{T}{n}{k + 1}$ by Definition 298.
LaTeX source
\begin{proof}
Show that if $k + 1 \leq n$ then there exists $V$ such that
$V$ is a function on $\initialSegment{k + 1}$ and
for all $i\in\initialSegment{k + 1}$ we have
$\apply{V}{i}$ is open in $X$ with respect to $T$ and
$\closure{\apply{V}{i}}{X}{T}\subseteq \apply{U}{i}$ and
$\finiteShrinkCoverCondition{V}{U}{X}{n}{k + 1}$.
\begin{subproof}
Assume $k + 1 \leq n$.
$k\in\reals$ and $n\in\reals$ and $k + 1\in\reals$
by \cref{real_naturals_subset_reals,real_naturals_closed_succ,subseteq,real_add_closed,real_one_in_naturals}.
We have $k < k + 1$ by \cref{real_naturals_lt_succ_local}.
Hence $k \leq n$ by \cref{real_lt_imp_leq,real_leq_trans}.
Take $V_0$ such that
$V_0$ is a function on $\initialSegment{k}$ and
for all $i\in\initialSegment{k}$ we have
$\apply{V_0}{i}$ is open in $X$ with respect to $T$ and
$\closure{\apply{V_0}{i}}{X}{T}\subseteq \apply{U}{i}$ and
$\finiteShrinkCoverCondition{V_0}{U}{X}{n}{k}$
by \cref{finite_shrink_stage}.
Let $J = \finiteShrinkTailIndices{n}{k + 1}$.
Let $A = \unions{\img{V_0}{\initialSegment{k}}}$.
Let $B = \unions{\img{U}{J}}$.
Let $F = \{A,B\}$.
Let $D = \unions{F}$.
Let $C = X\setminus D$.
For all $W$ such that $W\in\img{V_0}{\initialSegment{k}}$ we have $W\in T$
by \cref{img_iff,function_apply_intro,subseteq,open_in}.
$T$ is a topology on $X$ by \cref{normal_space}.
We have $\img{V_0}{\initialSegment{k}}\subseteq T$ by \cref{subseteq}.
$A\in T$ by \cref{topology_on,pow_iff}.
Therefore $A$ is open in $X$ with respect to $T$ by \cref{open_in}.
For all $W$ such that $W\in\img{U}{J}$ we have $W\in T$
by \cref{img_iff,finite_shrink_tail_indices,function_apply_intro,subseteq,open_in}.
We have $\img{U}{J}\subseteq T$ by \cref{subseteq}.
$B\in T$ by \cref{normal_space,topology_on,pow_iff}.
Hence $B$ is open in $X$ with respect to $T$ by \cref{open_in}.
For all $W$ such that $W\in F$ we have $W\in T$ by \cref{upair_iff,open_in}.
We have $F\subseteq T$ by \cref{subseteq}.
$D\in T$ by \cref{normal_space,topology_on,pow_iff}.
Therefore $D$ is open in $X$ with respect to $T$ by \cref{open_in}.
$D\subseteq X$ by \cref{open_in,normal_space,topology_on,subseteq,pow_iff}.
Hence $C$ is closed in $X$ with respect to $T$
by \cref{setminus_subseteq,double_relative_complement,subseteq,open_in,closed_in}.
For all $x$ such that $x\in C$ we have $x\in \apply{U}{k + 1}$
by \cref{setminus_elim_left,finite_shrink_cover_condition,initial_segment_naturalsplus,funs_elim,subseteq,function_apply_elim,img_iff,unions_iff,upair_intro_left,upair_intro_right,setminus_elim_right,finite_shrink_tail_indices,real_naturals_subset_reals,real_naturals_closed_succ,real_lt_trichotomy,real_lt_imp_leq,real_naturals_leq_succ_elim,real_lt_trans,real_lt_irreflexive,real_lt_subst_right}.
We have $C\subseteq \apply{U}{k + 1}$ by \cref{subseteq}.
$k + 1\in\initialSegment{n}$ by \cref{real_naturals_closed_succ,initial_segment_naturalsplus}.
$\apply{U}{k + 1}$ is open in $X$ with respect to $T$ by \cref{subseteq}.
Take $W$ such that
$W$ is open in $X$ with respect to $T$ and
$C\subseteq W$ and
$\closure{W}{X}{T}\subseteq \apply{U}{k + 1}$
by \cref{normal_closure_neighborhood}.
Let $G = \{(k + 1,W)\}$.
$G$ is a function and $\dom{G} = \{k + 1\}$
by \cref{singleton_elim,pair_eq_iff,rightunique,relation,dom_iff,singleton_intro,dom_intro,subseteq,subseteq_antisymmetric}.
For all $a$ such that $a\in\dom{V_0}\inter\dom{G}$ we have $\apply{V_0}{a} = \apply{G}{a}$.
Let $V = V_0\union G$.
We have $V$ is a function by \cref{union_compatible_functions}.
$\dom{V} = \dom{V_0}\union\dom{G}$ by \cref{dom_union}.
Hence $\dom{V} = \initialSegment{k}\union \{k + 1\}$ by \cref{funs_elim}.
For all $a$ such that $a\in\initialSegment{k}\union\{k + 1\}$ we have $a\in\initialSegment{k + 1}$
by \cref{union_iff,initial_segment_naturalsplus,real_naturals_subset_reals,subseteq,real_one_in_naturals,real_add_ident,real_add_closed,real_zero_lt_one,real_lt_add,real_add_comm,real_lt_subst_left,real_lt_trans,singleton_elim}.
For all $a$ such that $a\in\initialSegment{k + 1}$ we have $a\in\initialSegment{k}\union\{k + 1\}$
by \cref{initial_segment_naturalsplus,real_naturals_leq_succ_elim,union_iff,singleton_intro}.
Hence $\initialSegment{k}\union\{k + 1\} = \initialSegment{k + 1}$ by \cref{subseteq,subseteq_antisymmetric}.
Therefore $V$ is a function on $\initialSegment{k + 1}$ by \cref{subseteq,subseteq_antisymmetric,funs}.
For all $i\in\initialSegment{k + 1}$ we have
$\apply{V}{i}$ is open in $X$ with respect to $T$ and
$\closure{\apply{V}{i}}{X}{T}\subseteq \apply{U}{i}$
by \cref{singleton_intro,pair_eq_iff,union_iff,function_apply_intro,initial_segment_naturalsplus,real_naturals_leq_succ_elim,funs_elim,subseteq,function_apply_elim}.
Show that for all $x\in X$ there exists $i$ such that
$i\in\initialSegment{n}$ and
either $i \leq k + 1$ and $x\in \apply{V}{i}$
or $k + 1 < i$ and $x\in \apply{U}{i}$.
\begin{subproof}
Fix $x\in X$.
$x\in W$ or $x\notin W$.
\begin{byCase}
\caseOf{$x\in W$.}
Take $i$ such that $i = k + 1$.
Hence $i\in\initialSegment{n}$ and $i \leq k + 1$ and $x\in \apply{V}{i}$ by
\cref{real_naturals_closed_succ,initial_segment_naturalsplus,singleton_intro,pair_eq_iff,union_iff,function_apply_intro}.
\caseOf{$x\notin W$.}
We have $x\in D$ by \cref{subseteq,setminus_intro}.
Take $Y$ such that $Y\in F$ and $x\in Y$ by \cref{unions_iff}.
$Y = A$ or $Y = B$ by \cref{upair_iff}.
\begin{byCase}
\caseOf{$Y = A$.}
$x\in A$.
Take $W_0\in\img{V_0}{\initialSegment{k}}$ such that $x\in W_0$ by \cref{unions_iff}.
Take $i$ such that $i\in\initialSegment{k}$ and $(i,W_0)\in V_0$ by \cref{img_iff}.
$i\in\naturalsPlus$ and $i \leq k$ by \cref{initial_segment_naturalsplus}.
Hence $i\in\initialSegment{n}$ and $i \leq k + 1$ and $x\in \apply{V}{i}$ by
\cref{real_naturals_subset_reals,subseteq,real_leq_trans,initial_segment_naturalsplus,union_iff,function_apply_intro}.
\caseOf{$Y = B$.}
$x\in B$.
Take $W_0\in\img{U}{J}$ such that $x\in W_0$ by \cref{unions_iff}.
Take $i$ such that $i\in J$ and $(i,W_0)\in U$ by \cref{img_iff}.
Hence $i\in\initialSegment{n}$ and $k + 1 < i$ and $x\in \apply{U}{i}$
by \cref{finite_shrink_tail_indices,function_apply_intro}.
\end{byCase}
\end{byCase}
\end{subproof}
Therefore $\finiteShrinkCoverCondition{V}{U}{X}{n}{k + 1}$ by \cref{finite_shrink_cover_condition}.
Follows by \cref{pair_eq_iff}.
\end{subproof}
Hence $\finiteShrinkStage{U}{X}{T}{n}{k + 1}$ by \cref{finite_shrink_stage}.
\end{proof}
Assume $X$ is normal with respect to $T$.
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $U$ is a function on $\initialSegment{n}$.
Suppose for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{U}{i}$ is open in $X$ with respect to $T$.
Suppose $\img{U}{\initialSegment{n}}$ is a covering of $X$.
Then there exists $V$ such that $V$ is a function on $\initialSegment{n}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{V}{i}$ is open in $X$ with respect to $T$ and $\closure{\apply{V}{i}}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{i}$ and $\img{V}{\initialSegment{n}}$ is a covering of $X$.
LaTeX source
\begin{lemma}
\label{finite_shrinking_cover}
Assume $X$ is normal with respect to $T$.
Assume $n\in\naturalsPlus$.
Assume $U$ is a function on $\initialSegment{n}$.
Suppose for all $i\in\initialSegment{n}$ we have $\apply{U}{i}$ is open in $X$ with respect to $T$.
Suppose $\img{U}{\initialSegment{n}}$ is a covering of $X$.
Then there exists $V$ such that
$V$ is a function on $\initialSegment{n}$ and
for all $i\in\initialSegment{n}$ we have
$\apply{V}{i}$ is open in $X$ with respect to $T$ and
$\closure{\apply{V}{i}}{X}{T}\subseteq \apply{U}{i}$ and
$\img{V}{\initialSegment{n}}$ is a covering of $X$.
\end{lemma}
Proof
Let $S = \finiteShrinkStageSet{U}{X}{T}{n}$.
$S\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1, Definition 301.
We have $1\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Axiom 42, Definition 301, Lemma 551.
For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ we have $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Axiom 45, Definition 301, Lemma 554.
Hence $\finiteShrinkStage{U}{X}{T}{n}{n}$ by Definition 1, Definition 301, Proposition 445.
$n \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
Take $V$ such that $V$ is a function on $\initialSegment{n}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{V}{i}$ is open in $X$ with respect to $T$ and $\closure{\apply{V}{i}}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{i}$ and $\finiteShrinkCoverCondition{V}{U}{X}{n}{n}$ by Definition 298.
Hence $\img{V}{\initialSegment{n}}$ is a covering of $X$ by Definition 84, Lemma 553.
Follows by Axiom 6.
LaTeX source
\begin{proof}
Let $S = \finiteShrinkStageSet{U}{X}{T}{n}$.
$S\subseteq\naturalsPlus$ by \cref{finite_shrink_stage_set,subseteq}.
We have $1\in S$ by \cref{finite_shrink_stage_one,finite_shrink_stage_set,real_one_in_naturals}.
For all $k\in S$ we have $k + 1\in S$
by \cref{finite_shrink_stage_set,finite_shrink_stage_succ,real_naturals_closed_succ}.
Hence $\finiteShrinkStage{U}{X}{T}{n}{n}$
by \cref{real_naturals_induction,subseteq,finite_shrink_stage_set}.
$n \leq n$.
Take $V$ such that
$V$ is a function on $\initialSegment{n}$ and
for all $i\in\initialSegment{n}$ we have
$\apply{V}{i}$ is open in $X$ with respect to $T$ and
$\closure{\apply{V}{i}}{X}{T}\subseteq \apply{U}{i}$ and
$\finiteShrinkCoverCondition{V}{U}{X}{n}{n}$
by \cref{finite_shrink_stage}.
Hence $\img{V}{\initialSegment{n}}$ is a covering of $X$
by \cref{initial_segment_naturalsplus,finite_shrink_cover_condition_final}.
Follows by \cref{pair_eq_iff}.
\end{proof}
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $f$ is a function on $\initialSegment{n}$.
Suppose for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{f}{i}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$.
Then there exists $g$ such that $g$ is a finite real sum witness for $f$ on $X$ with respect to $T$ and $n$.
LaTeX source
\begin{lemma}
\label{finite_real_sum_continuous}
Assume $n\in\naturalsPlus$.
Assume $f$ is a function on $\initialSegment{n}$.
Suppose for all $i\in\initialSegment{n}$ we have
$\apply{f}{i}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$.
Then there exists $g$ such that
$g$ is a finite real sum witness for $f$ on $X$ with respect to $T$ and $n$.
\end{lemma}
Proof
Let $A = \{k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \text{if $k \leq n$ then there exists $g$ such that $g$ is a finite real sum witness for $f$ on $X$ with respect to $T$ and $k$}\}$.
Claim: If $1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then there exists $g$ such that $g$ is a finite real sum witness for $f$ on $X$ with respect to $T$ and $1$.
Assume $1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
Let $g = \apply{f}{1}$.
We have $g$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by Axiom 42, Definition 1, Definition 84.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{1}}{\reals}$ and $\sumFiniteSequence{a}{g(x)}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{1}$ we have $a(i) = \apply{\apply{f}{i}}{x}$.
Fix $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $a = \{(1,\apply{g}{x})\}$.
$a$ is a function by Axiom 6, Definition 12, Definition 51, Proposition 21.
We have $\dom{a} = \initialSegment{1}$ by Axiom 6, Axiom 41, Axiom 42, Axiom 43, Definition 1, Definition 84, Lemma 25, Proposition 3, Proposition 20, Proposition 21, Proposition 199, Proposition 200.
For all $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{a}$ we have $a(u)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 6, Definition 1, Definition 160, Proposition 20, Proposition 21, Proposition 199, Proposition 346, Proposition 361.
$a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{1}}{\reals}$ by Proposition 358.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{1}$ we have $a(i) = \apply{\apply{f}{i}}{x}$ by Axiom 6, Axiom 41, Axiom 42, Axiom 43, Definition 1, Definition 84, Lemma 25, Lemma 82, Proposition 20, Proposition 346.
$\sumFiniteSequence{a}{g(x)}$ by Axiom 13, Axiom 17, Axiom 36, Axiom 37, Axiom 39, Axiom 41, Axiom 42, Axiom 43, Definition 1, Definition 84, Definition 193, Lemma 24, Lemma 82, Lemma 83, Proposition 361, Proposition 462.
Follows by Definition 297.
Hence $1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 42.
Claim: For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Fix $k$ such that $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Claim: If $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ then there exists $g$ such that $g$ is a finite real sum witness for $f$ on $X$ with respect to $T$ and $k + 1$.
Assume $k + 1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
$k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Definition 1.
$k\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 13, Axiom 41, Axiom 42, Axiom 45, Definition 1.
We have $k < k + 1$ by Lemma 399.
Hence $k \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$ by Lemma 23, Lemma 231.
Take $g_0$ such that $g_0$ is a finite real sum witness for $f$ on $X$ with respect to $T$ and $k$ by Definition 1.
We have $g_0$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k}}{\reals}$ and $\sumFiniteSequence{a}{g_0(x)}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}$ we have $a(i) = \apply{\apply{f}{i}}{x}$ by Definition 297.
$k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ by Axiom 45, Definition 84.
Let $g_1 = \apply{f}{k + 1}$.
We have $g_1$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by Definition 1.
Let $g = \{(x, \apply{g_0}{x} + \apply{g_1}{x}) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\}$.
Therefore $g$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by Theorem 32.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k + 1}}{\reals}$ and $\sumFiniteSequence{a}{g(x)}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k + 1}$ we have $a(i) = \apply{\apply{f}{i}}{x}$.
Fix $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Take $a_0$ such that $a_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k}}{\reals}$ and $\sumFiniteSequence{a_0}{g_0(x)}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}$ we have $a_0(i) = \apply{\apply{f}{i}}{x}$.
Let $b = \{(k + 1,\apply{g_1}{x})\}$.
$b$ is a function by Axiom 6, Definition 12, Definition 51, Proposition 21.
For all $u$ such that $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{a_0}\inter\dom{b}$ we have $\apply{a_0}{u} = \apply{b}{u}$ by Axiom 6, Axiom 36, Axiom 39, Definition 84, Lemma 83, Lemma 399, Proposition 21, Proposition 62, Proposition 63, Proposition 199, Proposition 359.
We have $a_0$ is right-unique and $a_0$ is a relation by Proposition 345, Proposition 355, Proposition 356.
$b$ is right-unique and $b$ is a relation by Definition 12, Definition 51.
Let $a = a_0\union b$.
$a$ is right-unique and $a$ is a relation by Lemma 170.
Therefore $a$ is a function by Definition 12, Definition 51.
$\dom{a} = \dom{a_0}\union\dom{b}$ by Proposition 205.
Hence $\dom{a} = \initialSegment{k}\union\dom{b}$ by Proposition 359.
We have $\dom{b} = \{k + 1\}$ by Axiom 6, Definition 1, Proposition 3, Proposition 20, Proposition 21, Proposition 199, Proposition 200.
$\dom{a} = \initialSegment{k}\union \{k + 1\}$.
For all $u$ such that $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}\union\{k + 1\}$ we have $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k + 1}$ by Axiom 5, Axiom 13, Axiom 16, Axiom 17, Axiom 36, Axiom 37, Axiom 41, Axiom 42, Definition 1, Definition 84, Lemma 82, Proposition 21, Proposition 462.
For all $u$ such that $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k + 1}$ we have $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k}\union\{k + 1\}$ by Axiom 5, Definition 84, Lemma 29, Proposition 20.
Hence $\initialSegment{k}\union\{k + 1\} = \initialSegment{k + 1}$ by Definition 1, Proposition 3.
Therefore $\dom{a} = \initialSegment{k + 1}$.
For all $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{a}$ we have $a(u)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 5, Axiom 6, Definition 1, Definition 160, Proposition 20, Proposition 21, Proposition 205, Proposition 346, Proposition 348, Proposition 359, Proposition 361.
We have $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k + 1}}{\reals}$ by Proposition 358.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{k + 1}$ we have $a(i) = \apply{\apply{f}{i}}{x}$ by Axiom 5, Axiom 6, Definition 1, Definition 84, Lemma 29, Lemma 82, Proposition 20, Proposition 346, Proposition 348, Proposition 359.
Take $s\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{a}{s}$ by Axiom 45, Lemma 225.
Let $a_1 = \restrl{a}{\initialSegment{k}}$.
We have $a_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{k}}{\reals}$ and there exists $s_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{a_1}{s_0}$ and $s = s_0 + a(k + 1)$ by Lemma 238.
Take $s_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ such that $\sumFiniteSequence{a_1}{s_0}$ and $s = s_0 + a(k + 1)$.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} a_1$ we have $w\class{latex-symbol-tip latex-symbol-id-in}{\in} a_0$ by Axiom 5, Axiom 6, Axiom 36, Axiom 39, Definition 1, Definition 12, Definition 84, Lemma 83, Lemma 399, Proposition 21, Proposition 200, Proposition 263, Proposition 269.
$a_1\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} a_0$ by Definition 1.
For all $w$ such that $w\class{latex-symbol-tip latex-symbol-id-in}{\in} a_0$ we have $w\class{latex-symbol-tip latex-symbol-id-in}{\in} a_1$ by Axiom 5, Axiom 6, Definition 1, Definition 12, Proposition 199, Proposition 262, Proposition 359.
$a_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} a_1$ by Definition 1.
Hence $a_1 = a_0$ by Proposition 3.
$s_0 = g_0(x)$ by Lemma 206.
Therefore $a(k + 1) = \apply{g_1}{x}$ by Axiom 5, Axiom 6, Proposition 20, Proposition 346.
Hence $s = g_0(x) + g_1(x)$ by Proposition 437.
Thus $g(x) = g_0(x) + g_1(x)$ by Definition 160, Proposition 346, Proposition 356.
We have $\sumFiniteSequence{a}{g(x)}$ by Lemma 83.
Follows by Definition 297.
Therefore $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 45.
Hence $n\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 1, Proposition 445.
$n \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n$.
Therefore there exists $g$ such that $g$ is a finite real sum witness for $f$ on $X$ with respect to $T$ and $n$ by Definition 1.
LaTeX source
\begin{proof}
Let $A = \{k\in\naturalsPlus \mid \text{if $k \leq n$ then there exists $g$ such that
$g$ is a finite real sum witness for $f$ on $X$ with respect to $T$ and $k$}\}$.
Show that if $1 \leq n$ then there exists $g$ such that
$g$ is a finite real sum witness for $f$ on $X$ with respect to $T$ and $1$.
\begin{subproof}
Assume $1 \leq n$.
Let $g = \apply{f}{1}$.
We have $g$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by \cref{real_one_in_naturals,initial_segment_naturalsplus,subseteq}.
Show that for all $x\in X$ there exists $a$ such that
$a\in\funs{\initialSegment{1}}{\reals}$ and
$\sumFiniteSequence{a}{g(x)}$ and
for all $i\in\initialSegment{1}$ we have $a(i) = \apply{\apply{f}{i}}{x}$.
\begin{subproof}
Fix $x\in X$.
Let $a = \{(1,\apply{g}{x})\}$.
$a$ is a function by \cref{singleton_elim,pair_eq_iff,rightunique,relation}.
We have $\dom{a} = \initialSegment{1}$ by
\cref{dom_iff,singleton_elim,pair_eq_iff,real_one_in_naturals,initial_segment_naturalsplus,real_naturals_subset_reals,subseteq,real_one_leq_naturalsplus,real_leq_antisym,singleton_intro,dom_intro,subseteq_antisymmetric}.
For all $u\in\dom{a}$ we have $a(u)\in\reals$
by \cref{dom_iff,singleton_elim,pair_eq_iff,singleton_intro,function_apply_intro,subseteq,continuous,funs_type_apply}.
$a\in\funs{\initialSegment{1}}{\reals}$ by \cref{funs_intro}.
For all $i\in\initialSegment{1}$ we have $a(i) = \apply{\apply{f}{i}}{x}$
by \cref{initial_segment_naturalsplus,real_naturals_subset_reals,subseteq,real_one_in_naturals,real_one_leq_naturalsplus,real_leq_antisym,singleton_intro,pair_eq_iff,function_apply_intro,real_lt_subst_left}.
$\sumFiniteSequence{a}{g(x)}$
by \cref{initial_segment_naturalsplus,real_one_in_naturals,funs_type_apply,real_one_leq_naturalsplus,real_naturals_subset_reals,subseteq,real_add_closed,real_leq_add,real_add_ident,real_zero_lt_one,real_lt_add,real_lt_subst_left,real_lt_trans,real_lt_subst_right,real_lt_irreflexive,sum_finite_sequence_pred}.
\end{subproof}
Follows by \cref{finite_real_sum_witness}.
\end{subproof}
Hence $1\in A$ by \cref{real_one_in_naturals}.
Show that for all $k\in A$ we have $k + 1\in A$.
\begin{subproof}
Fix $k$ such that $k\in A$.
Show that if $k + 1 \leq n$ then there exists $g$ such that
$g$ is a finite real sum witness for $f$ on $X$ with respect to $T$ and $k + 1$.
\begin{subproof}
Assume $k + 1 \leq n$.
$k\in\naturalsPlus$ by \cref{subseteq}.
$k\in\reals$ and $k + 1\in\reals$ and $n\in\reals$
by \cref{real_naturals_subset_reals,real_naturals_closed_succ,subseteq,real_add_closed,real_one_in_naturals}.
We have $k < k + 1$ by \cref{real_naturals_lt_succ_local}.
Hence $k \leq n$ by \cref{real_lt_imp_leq,real_leq_trans}.
Take $g_0$ such that
$g_0$ is a finite real sum witness for $f$ on $X$ with respect to $T$ and $k$
by \cref{subseteq}.
We have $g_0$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and
for all $x\in X$ there exists $a$ such that
$a\in\funs{\initialSegment{k}}{\reals}$ and
$\sumFiniteSequence{a}{g_0(x)}$ and
for all $i\in\initialSegment{k}$ we have $a(i) = \apply{\apply{f}{i}}{x}$
by \cref{finite_real_sum_witness}.
$k + 1\in\initialSegment{n}$ by \cref{real_naturals_closed_succ,initial_segment_naturalsplus}.
Let $g_1 = \apply{f}{k + 1}$.
We have $g_1$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by \cref{subseteq}.
Let $g = \{(x, \apply{g_0}{x} + \apply{g_1}{x}) \mid x\in X\}$.
Therefore $g$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$
by \cref{real_function_addition_continuous}.
Show that for all $x\in X$ there exists $a$ such that
$a\in\funs{\initialSegment{k + 1}}{\reals}$ and
$\sumFiniteSequence{a}{g(x)}$ and
for all $i\in\initialSegment{k + 1}$ we have $a(i) = \apply{\apply{f}{i}}{x}$.
\begin{subproof}
Fix $x\in X$.
Take $a_0$ such that
$a_0\in\funs{\initialSegment{k}}{\reals}$ and
$\sumFiniteSequence{a_0}{g_0(x)}$ and
for all $i\in\initialSegment{k}$ we have $a_0(i) = \apply{\apply{f}{i}}{x}$.
Let $b = \{(k + 1,\apply{g_1}{x})\}$.
$b$ is a function by \cref{singleton_elim,pair_eq_iff,rightunique,relation}.
For all $u$ such that $u\in\dom{a_0}\inter\dom{b}$ we have $\apply{a_0}{u} = \apply{b}{u}$
by \cref{inter_elim_left,inter_elim_right,funs_elim,dom_iff,singleton_elim,pair_eq_iff,initial_segment_naturalsplus,real_naturals_lt_succ_local,real_lt_subst_right,real_lt_trans,real_lt_irreflexive}.
We have $a_0$ is right-unique and $a_0$ is a relation
by \cref{funs_is_function,function_rightunique,funs_is_relation}.
$b$ is right-unique and $b$ is a relation by \cref{rightunique,relation}.
Let $a = a_0\union b$.
$a$ is right-unique and $a$ is a relation by \cref{union_compatible_functions}.
Therefore $a$ is a function by \cref{relation,rightunique}.
$\dom{a} = \dom{a_0}\union\dom{b}$ by \cref{dom_union}.
Hence $\dom{a} = \initialSegment{k}\union\dom{b}$ by \cref{funs_elim}.
We have $\dom{b} = \{k + 1\}$
by \cref{dom_iff,singleton_elim,pair_eq_iff,singleton_intro,dom_intro,subseteq,subseteq_antisymmetric}.
$\dom{a} = \initialSegment{k}\union \{k + 1\}$.
For all $u$ such that $u\in\initialSegment{k}\union\{k + 1\}$ we have $u\in\initialSegment{k + 1}$
by \cref{union_iff,initial_segment_naturalsplus,real_naturals_subset_reals,subseteq,real_one_in_naturals,real_add_ident,real_add_closed,real_zero_lt_one,real_lt_add,real_add_comm,real_lt_subst_left,real_lt_trans,singleton_elim}.
For all $u$ such that $u\in\initialSegment{k + 1}$ we have $u\in\initialSegment{k}\union\{k + 1\}$
by \cref{initial_segment_naturalsplus,real_naturals_leq_succ_elim,union_iff,singleton_intro}.
Hence $\initialSegment{k}\union\{k + 1\} = \initialSegment{k + 1}$ by \cref{subseteq,subseteq_antisymmetric}.
Therefore $\dom{a} = \initialSegment{k + 1}$.
For all $u\in\dom{a}$ we have $a(u)\in\reals$
by \cref{dom_union,union_iff,function_apply_elim,function_apply_intro,funs_elim,funs_type_apply,subseteq,singleton_elim,singleton_intro,pair_eq_iff,continuous}.
We have $a\in\funs{\initialSegment{k + 1}}{\reals}$ by \cref{funs_intro}.
For all $i\in\initialSegment{k + 1}$ we have $a(i) = \apply{\apply{f}{i}}{x}$
by \cref{singleton_intro,pair_eq_iff,union_iff,function_apply_intro,real_lt_subst_left,initial_segment_naturalsplus,real_naturals_leq_succ_elim,funs_elim,subseteq,function_apply_elim}.
Take $s\in\reals$ such that $\sumFiniteSequence{a}{s}$ by \cref{real_naturals_closed_succ,sum_finite_sequence_exists}.
Let $a_1 = \restrl{a}{\initialSegment{k}}$.
We have $a_1\in\funs{\initialSegment{k}}{\reals}$ and
there exists $s_0\in\reals$ such that $\sumFiniteSequence{a_1}{s_0}$ and $s = s_0 + a(k + 1)$
by \cref{sum_finite_sequence_split_last}.
Take $s_0\in\reals$ such that $\sumFiniteSequence{a_1}{s_0}$ and $s = s_0 + a(k + 1)$.
For all $w$ such that $w\in a_1$ we have $w\in a_0$
by \cref{restrl_subseteq,subseteq,relation,pair_eq_iff,dom_intro,restrl_dom,union_iff,singleton_elim,initial_segment_naturalsplus,real_naturals_lt_succ_local,real_lt_subst_right,real_lt_trans,real_lt_irreflexive}.
$a_1\subseteq a_0$ by \cref{subseteq}.
For all $w$ such that $w\in a_0$ we have $w\in a_1$
by \cref{relation,pair_eq_iff,dom_iff,funs_elim,union_iff,restrl_iff,subseteq}.
$a_0\subseteq a_1$ by \cref{subseteq}.
Hence $a_1 = a_0$ by \cref{subseteq_antisymmetric}.
$s_0 = g_0(x)$ by \cref{sum_finite_sequence_unique}.
Therefore $a(k + 1) = \apply{g_1}{x}$ by \cref{singleton_intro,pair_eq_iff,union_iff,function_apply_intro}.
Hence $s = g_0(x) + g_1(x)$ by \cref{real_add_eq_subst}.
Thus $g(x) = g_0(x) + g_1(x)$ by \cref{continuous,funs_is_function,function_apply_intro}.
We have $\sumFiniteSequence{a}{g(x)}$ by \cref{real_lt_subst_right}.
\end{subproof}
Follows by \cref{finite_real_sum_witness}.
\end{subproof}
Therefore $k + 1\in A$ by \cref{real_naturals_closed_succ}.
\end{subproof}
Hence $n\in A$ by \cref{subseteq,real_naturals_induction}.
$n \leq n$.
Therefore there exists $g$ such that
$g$ is a finite real sum witness for $f$ on $X$ with respect to $T$ and $n$
by \cref{subseteq}.
\end{proof}
Assume $V$ is open in $X$ with respect to $T$.
Assume $\closure{V}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.
Suppose $f$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$.
Suppose for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} V$ we have $f(x) = 0$.
Then $\supp{f}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$.
LaTeX source
\begin{lemma}
\label{support_subseteq_from_zero_outside}
Assume $V$ is open in $X$ with respect to $T$.
Assume $\closure{V}{X}{T}\subseteq U$.
Suppose $f$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$.
Suppose for all $x\in X\setminus V$ we have $f(x) = 0$.
Then $\supp{f}{X}{T}\subseteq U$.
\end{lemma}
Proof
Let $S = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus}\preimg{f}{\{0\}}$.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} V$ by Definition 1, Definition 6, Definition 55, Definition 160, Lemma 83, Proposition 20, Proposition 85, Proposition 246, Proposition 348, Proposition 356.
We have $S\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\closure{V}{X}{T}$ by Axiom 12, Definition 1, Definition 1, Definition 101, Definition 103, Lemma 146, Proposition 6.
Therefore $\closure{S}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\closure{V}{X}{T}$ by Axiom 12, Definition 1, Definition 101, Definition 103, Lemma 144, Lemma 147, Proposition 97.
Hence $\supp{f}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} U$ by Definition 293, Proposition 6.
LaTeX source
\begin{proof}
Let $S = X\setminus\preimg{f}{\{0\}}$.
For all $x$ such that $x\in S$ we have $x\in V$
by \cref{setminus,setminus_intro,continuous,funs_is_function,funs,function_apply_elim,real_lt_subst_right,preimg_iff,singleton_intro,subseteq}.
We have $S\subseteq\closure{V}{X}{T}$ by \cref{subseteq,open_in,topology_on,subseteq,pow_iff,subseteq_closure,subseteq_transitive}.
Therefore $\closure{S}{X}{T}\subseteq\closure{V}{X}{T}$ by
\cref{setminus_subseteq,open_in,topology_on,subseteq,pow_iff,closure_closed_in,closure_subseteq_closed}.
Hence $\supp{f}{X}{T}\subseteq U$ by \cref{support,subseteq_transitive}.
\end{proof}
Let $I_0 = \intervalclosed{0}{1}$.
Let $T_0 = \subspaceTopology{\standardTopologyR}{I_0}$.
Suppose $g$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$.
Suppose for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} g(x)$.
Let $c = \{(x,1) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\}$.
Let $q = \{(x, c(x) \rmul \inv{(g(x))}) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\}$.
Then $q$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$.
LaTeX source
\begin{lemma}
\label{reciprocal_geq_one_unit_interval_continuous}
Let $I_0 = \intervalclosed{0}{1}$.
Let $T_0 = \subspaceTopology{\standardTopologyR}{I_0}$.
Suppose $g$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$.
Suppose for all $x\in X$ we have $1 \leq g(x)$.
Let $c = \{(x,1) \mid x\in X\}$.
Let $q = \{(x, c(x) \rmul \inv{(g(x))}) \mid x\in X\}$.
Then $q$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$.
\end{lemma}
Proof
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
$T$ is a topology on $X$ by Definition 160.
$\standardTopologyR$ is a topology on $\reals$ by Definition 118, Lemma 76, Lemma 93.
We have for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ $c(x) = 1$ by Lemma 309, Proposition 346, Proposition 356.
$c$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by Lemma 163, Lemma 309.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $g(x)\class{latex-symbol-tip latex-symbol-id-neq}{\neq} 0$ by Axiom 17, Axiom 39, Axiom 41, Axiom 42, Definition 1, Definition 160, Lemma 25, Lemma 82, Lemma 231, Proposition 361, Proposition 462.
Therefore $q$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by Theorem 35.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $q(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} I_0$ by Axiom 17, Axiom 20, Axiom 21, Axiom 22, Axiom 36, Axiom 38, Axiom 41, Axiom 42, Definition 1, Definition 75, Definition 160, Lemma 20, Lemma 81, Lemma 82, Lemma 83, Lemma 231, Proposition 346, Proposition 356, Proposition 361, Proposition 462, Proposition 463.
Hence $q$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ by Definition 1, Definition 75, Definition 160, Lemma 470, Proposition 235, Proposition 349, Proposition 356.
LaTeX source
\begin{proof}
$1\in\reals$ by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq}.
$T$ is a topology on $X$ by \cref{continuous}.
$\standardTopologyR$ is a topology on $\reals$
by \cref{standard_basis_is_basis,basis_topology_is_topology,standard_topology_reals}.
We have for all $x\in X$ $c(x) = 1$
by \cref{constant_map_function,funs_is_function,function_apply_intro}.
$c$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$
by \cref{constant_map_function,constant_continuous}.
For all $x\in X$ we have $g(x)\neq 0$
by \cref{continuous,funs_type_apply,real_one_in_naturals,real_naturals_subset_reals,subseteq,real_add_ident,real_zero_lt_one,real_lt_imp_leq,real_leq_antisym,real_lt_irreflexive,real_lt_subst_left}.
Therefore $q$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$
by \cref{real_function_division_continuous}.
For all $x\in X$ we have $q(x)\in I_0$
by \cref{continuous,funs_type_apply,real_leq_split,real_add_ident,real_one_in_naturals,real_naturals_subset_reals,subseteq,real_zero_lt_one,real_lt_trans,real_lt_subst_right,real_mul_inverse,real_inv_pos,funs_is_function,function_apply_intro,real_mul_ident,real_lt_subst_left,real_lt_imp_leq,real_lt_mul_pos,real_mul_comm,real_pos_nonzero,intervalclosed}.
Hence $q$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$
by \cref{subseteq,img_iff,continuous,funs_is_function,function_apply_iff,intervalclosed,continuous_subspace_range}.
\end{proof}
Assume $X$ is normal with respect to $T$.
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $U$ is a function on $\initialSegment{n}$.
Suppose for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{U}{i}$ is open in $X$ with respect to $T$.
Suppose $\img{U}{\initialSegment{n}}$ is a covering of $X$.
Then there exists $f$ such that $f$ is a partition of unity on $X$ dominated by $U$ with respect to $T$ and $n$.
LaTeX source
\begin{theorem}
\label{finite_partition_of_unity_existence}
Assume $X$ is normal with respect to $T$.
Assume $n\in\naturalsPlus$.
Assume $U$ is a function on $\initialSegment{n}$.
Suppose for all $i\in\initialSegment{n}$ we have $\apply{U}{i}$ is open in $X$ with respect to $T$.
Suppose $\img{U}{\initialSegment{n}}$ is a covering of $X$.
Then there exists $f$ such that
$f$ is a partition of unity on $X$ dominated by $U$ with respect to $T$ and $n$.
\end{theorem}
Proof
Let $I_0 = \intervalclosed{0}{1}$.
Let $T_0 = \subspaceTopology{\standardTopologyR}{I_0}$.
Take $V$ such that $V$ is a function on $\initialSegment{n}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{V}{i}$ is open in $X$ with respect to $T$ and $\closure{\apply{V}{i}}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{i}$ and $\img{V}{\initialSegment{n}}$ is a covering of $X$ by Lemma 555.
Take $W$ such that $W$ is a function on $\initialSegment{n}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{W}{i}$ is open in $X$ with respect to $T$ and $\closure{\apply{W}{i}}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{V}{i}$ and $\img{W}{\initialSegment{n}}$ is a covering of $X$ by Lemma 555.
Let $B = \pow{X\class{latex-symbol-tip latex-symbol-id-times}{\times} I_0}$.
Let $R = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\class{latex-symbol-tip latex-symbol-id-times}{\times} B \mid \text{there exists $i\in\initialSegment{n}$ such that there exists $u\in B$ such that $w = (i,u)$ and $u$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ and $\img{u}{\closure{\apply{W}{i}}{X}{T}}\subseteq \{1\}$ and $\img{u}{X\setminus \apply{V}{i}}\subseteq \{0\}$}\}$.
Claim: For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ there exists $u$ such that $i\mathrel{R} u$.
Fix $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$.
$\apply{W}{i}$ is open in $X$ with respect to $T$ and $\closure{\apply{W}{i}}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{V}{i}$ by assumption.
We have $\apply{W}{i}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 277.
$T$ is a topology on $X$ by Definition 277.
$\apply{V}{i}$ is open in $X$ with respect to $T$ by assumption.
Hence $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} \apply{V}{i}$ is closed in $X$ with respect to $T$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 149, Definition 277, Proposition 92, Proposition 97.
$\closure{\apply{W}{i}}{X}{T}$ is closed in $X$ with respect to $T$ by Lemma 144.
$X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} \apply{V}{i}$ is disjoint from $\closure{\apply{W}{i}}{X}{T}$ by Definition 1, Definition 3, Proposition 87.
Take $u$ such that $u$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ and $\img{u}{X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} \apply{V}{i}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \{0\}$ and $\img{u}{\closure{\apply{W}{i}}{X}{T}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \{1\}$ by Lemma 510.
Hence $i\mathrel{R} u$ by Axiom 6, Definition 1, Definition 55, Definition 160, Proposition 115, Proposition 155, Proposition 282, Proposition 284, Proposition 355, Proposition 357.
$R$ is a relation by Definition 12.
Take $c$ such that $c$ is a function on $\initialSegment{n}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $i\mathrel{R} c(i)$ by Axiom 54.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{c}{i}$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ and $\img{\apply{c}{i}}{\closure{\apply{W}{i}}{X}{T}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \{1\}$ and $\img{\apply{c}{i}}{X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} \apply{V}{i}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \{0\}$ by Axiom 6, Axiom 54.
Let $j = \identity{I_0}$.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $j\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{c}{i}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by Lemma 525.
Let $p = \{(i,j\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{c}{i}) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\}$.
For all $i,u_1,u_2$ such that $(i,u_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} p$ and $(i,u_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} p$ we have $u_1 = u_2$ by Axiom 6.
We have $p$ is a function by Axiom 6, Definition 12, Definition 51.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{p}$ we have $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ by Axiom 6, Proposition 199.
For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{p}$ by Axiom 6, Proposition 200.
Therefore $\dom{p} = \initialSegment{n}$ by Definition 1, Proposition 3.
Hence $p$ is a function on $\initialSegment{n}$ by Definition 55.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{p}{i} = j\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{c}{i}$ by Axiom 6, Proposition 346.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{p}{i}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by Lemma 367.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $\apply{\apply{p}{i}}{x} = \apply{\apply{c}{i}}{x}$ by Definition 1, Definition 55, Definition 160, Proposition 284, Proposition 296, Proposition 297, Proposition 345, Proposition 355, Proposition 356, Proposition 357, Proposition 361, Proposition 373, Proposition 400, Proposition 405.
Take $g$ such that $g$ is a finite real sum witness for $p$ on $X$ with respect to $T$ and $n$ by Lemma 556.
Therefore $g$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ and $\sumFiniteSequence{a}{g(x)}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $a(i) = \apply{\apply{p}{i}}{x}$ by Definition 297.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} g(x)$.
Fix $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ by Axiom 42, Axiom 43, Definition 84.
Take $Z\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{W}{\initialSegment{n}}$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} Z$ by Axiom 4, Definition 1, Definition 245.
Take $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ and $(i,Z)\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ by Proposition 235.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{W}{i}$ by Proposition 346.
Take $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ and $\sumFiniteSequence{a}{g(x)}$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $a(k) = \apply{\apply{p}{k}}{x}$.
For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{a}$ we have $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a(k)$ by Definition 1, Definition 55, Definition 75, Definition 160, Definition 160, Proposition 356, Proposition 359, Proposition 361.
Therefore $a(i) \class{latex-symbol-tip latex-symbol-id-leq}{\leq} g(x)$ by Definition 1, Lemma 215, Proposition 359.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \closure{\apply{W}{i}}{X}{T}$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 277, Lemma 146.
$\apply{c}{i}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{I_0}$ and $\apply{c}{i}$ is a function and $\dom{\apply{c}{i}} = X$ by Definition 55, Definition 160, Proposition 356.
Therefore $\apply{\apply{c}{i}}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{\apply{c}{i}}{\closure{\apply{W}{i}}{X}{T}}$ by Definition 1, Proposition 61, Proposition 364.
Thus $\apply{\apply{c}{i}}{x} = 1$ by Definition 1, Proposition 21.
We have $a(i) = 1$ by Definition 1, Lemma 83, Proposition 359.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
$1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} g(x)$.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $g(x)\class{latex-symbol-tip latex-symbol-id-neq}{\neq} 0$ by Axiom 17, Axiom 39, Axiom 41, Axiom 42, Definition 1, Definition 160, Lemma 25, Lemma 82, Lemma 231, Proposition 361, Proposition 462.
Let $d = \{(x,1) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\}$.
Let $q = \{(x, d(x) \rmul \inv{(g(x))}) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\}$.
Therefore $q$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ by Lemma 558.
Let $q_1 = j\class{latex-symbol-tip latex-symbol-id-circ}{\circ} q$.
Hence $q_1$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by Lemma 525.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $q_1(x) = q(x)$ by Definition 1, Definition 55, Definition 160, Proposition 284, Proposition 296, Proposition 297, Proposition 345, Proposition 355, Proposition 356, Proposition 357, Proposition 361, Proposition 373, Proposition 400, Proposition 405.
$1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
$d$ is a function from $X$ to $\reals$ by Lemma 309.
We have for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ $d(x) = 1$ by Lemma 309, Proposition 346, Proposition 356.
Let $P = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\class{latex-symbol-tip latex-symbol-id-times}{\times} B \mid \text{there exists $i\in\initialSegment{n}$ such that there exists $u\in B$ such that $w = (i,u)$ and $u$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ and $\supp{u}{X}{T}\subseteq \apply{U}{i}$ and for all $x\in X$ we have $u(x) = \apply{q_1}{x} \rmul \apply{\apply{c}{i}}{x}$}\}$.
Claim: For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ there exists $u$ such that $i\mathrel{P} u$.
Fix $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$.
Let $c_i = \apply{c}{i}$.
We have $c_i$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ and $\img{c_i}{\closure{\apply{W}{i}}{X}{T}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \{1\}$ and $\img{c_i}{X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} \apply{V}{i}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \{0\}$ by assumption.
Let $u = \{(x,\apply{q_1}{x} \rmul \apply{c_i}{x}) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\}$.
Therefore $u$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by Theorem 34.
$T$ is a topology on $X$ by Definition 277.
Let $v = \{(x,\apply{q}{x} \rmul \apply{c_i}{x}) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\}$.
Hence $v$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ by Lemma 512.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $u(x) = v(x)$ by Axiom 6, Definition 55, Definition 160, Lemma 280, Proposition 346, Proposition 356.
We have for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $u(x)\class{latex-symbol-tip latex-symbol-id-in}{\in} I_0$ by Definition 160, Proposition 361.
$\img{u}{X}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} I_0$ by Definition 1, Definition 55, Definition 160, Proposition 235, Proposition 346, Proposition 356.
$u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{\reals}$ by Definition 160.
Therefore $u$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ by Definition 1, Definition 75, Lemma 470.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} \apply{V}{i}$ we have $u(x) = 0$.
Fix $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} \apply{V}{i}$.
$c_i\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{I_0}$ and $c_i$ is a function and $\dom{c_i} = X$ by Definition 55, Definition 160, Proposition 356.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{c_i}\inter(X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} \apply{V}{i})$ by Definition 1, Proposition 61, Proposition 86.
$c_i(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{c_i}{X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} \apply{V}{i}}$ by Proposition 364.
Therefore $c_i(x) = 0$ by Definition 1, Proposition 21.
Hence $u(x) = \apply{q_1}{x} \rmul c_i(x)$ by Axiom 6, Definition 55, Definition 160, Proposition 86, Proposition 346, Proposition 356.
Thus $u(x) = \apply{q_1}{x} \rmul 0$ by Lemma 83.
$\apply{q_1}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 160, Proposition 86, Proposition 361.
$u(x) = 0$ by Axiom 17, Axiom 20, Proposition 439.
Hence $\supp{u}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{i}$ by Lemma 557.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $u(x) = \apply{q_1}{x} \rmul \apply{\apply{c}{i}}{x}$ by Axiom 6, Definition 55, Definition 160, Lemma 280, Proposition 346, Proposition 356.
Therefore $i\mathrel{P} u$ by Axiom 6, Definition 1, Definition 55, Definition 160, Proposition 115, Proposition 155, Proposition 282, Proposition 284, Proposition 355, Proposition 357.
$P$ is a relation by Definition 12.
Take $f$ such that $f$ is a function on $\initialSegment{n}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $i\mathrel{P} f(i)$ by Axiom 54.
Claim: For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{f}{i}$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ and $\supp{\apply{f}{i}}{X}{T}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{i}$.
Therefore $\finitePartitionComponentCondition{f}{X}{U}{T}{n}$ by Axiom 6, Definition 294.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $a(i) = \apply{\apply{f}{i}}{x}$ and $\sumFiniteSequence{a}{1}$.
Fix $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Take $a_0$ such that $a_0\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ and $\sumFiniteSequence{a_0}{g(x)}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $a_0(i) = \apply{\apply{p}{i}}{x}$.
Let $a = \coordScalarSequence{n}{q_1(x)}{a_0}$.
We have $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ by Definition 160, Lemma 230, Proposition 361.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $a(i) = \apply{\apply{f}{i}}{x}$ by Axiom 6, Axiom 54, Definition 1, Definition 202, Lemma 83, Lemma 280, Proposition 346, Proposition 348, Proposition 356, Proposition 359.
$q_1(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 160, Proposition 361.
$\sumFiniteSequence{a}{q_1(x) \rmul g(x)}$ by Lemma 237.
$q_1(x) = q(x)$ by assumption.
We have $g(x)\class{latex-symbol-tip latex-symbol-id-neq}{\neq} 0$ by assumption.
$g(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 160, Proposition 361.
$q$ is a function by Definition 160, Proposition 356.
We have $(x,d(x) \rmul \inv{(g(x))})\class{latex-symbol-tip latex-symbol-id-in}{\in} q$.
$q(x) = d(x) \rmul \inv{(g(x))}$ by Proposition 346.
Hence $q_1(x) = 1 \rmul \inv{(g(x))}$ by Lemma 82.
Therefore $q_1(x) = \inv{(g(x))}$ by Axiom 21, Axiom 22.
Thus $q_1(x) \rmul g(x) = 1$ by Axiom 20, Axiom 22, Lemma 83, Lemma 280.
We have $\sumFiniteSequence{a}{1}$ by Lemma 83.
Therefore there exists $b$ such that $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $b(i) = \apply{\apply{f}{i}}{x}$ and $\sumFiniteSequence{b}{1}$.
Hence $\finitePartitionSumCondition{f}{X}{n}$ by Definition 295.
$U$ is a function on $\initialSegment{n}$ by assumption.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{U}{i}$ is open in $X$ with respect to $T$ by assumption.
$\img{U}{\initialSegment{n}}$ is a covering of $X$ by assumption.
$f$ is a function on $\initialSegment{n}$ by Axiom 54.
Therefore $f$ is a partition of unity on $X$ dominated by $U$ with respect to $T$ and $n$ by Definition 296.
LaTeX source
\begin{proof}
Let $I_0 = \intervalclosed{0}{1}$.
Let $T_0 = \subspaceTopology{\standardTopologyR}{I_0}$.
Take $V$ such that
$V$ is a function on $\initialSegment{n}$ and
for all $i\in\initialSegment{n}$ we have
$\apply{V}{i}$ is open in $X$ with respect to $T$ and
$\closure{\apply{V}{i}}{X}{T}\subseteq \apply{U}{i}$ and
$\img{V}{\initialSegment{n}}$ is a covering of $X$
by \cref{finite_shrinking_cover}.
Take $W$ such that
$W$ is a function on $\initialSegment{n}$ and
for all $i\in\initialSegment{n}$ we have
$\apply{W}{i}$ is open in $X$ with respect to $T$ and
$\closure{\apply{W}{i}}{X}{T}\subseteq \apply{V}{i}$ and
$\img{W}{\initialSegment{n}}$ is a covering of $X$
by \cref{finite_shrinking_cover}.
Let $B = \pow{X\times I_0}$.
Let $R = \{w\in\initialSegment{n}\times B \mid \text{there exists $i\in\initialSegment{n}$ such that there exists $u\in B$ such that
$w = (i,u)$ and
$u$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ and
$\img{u}{\closure{\apply{W}{i}}{X}{T}}\subseteq \{1\}$ and
$\img{u}{X\setminus \apply{V}{i}}\subseteq \{0\}$}\}$.
Show that for all $i\in\initialSegment{n}$ there exists $u$ such that $i\mathrel{R} u$.
\begin{subproof}
Fix $i\in\initialSegment{n}$.
$\apply{W}{i}$ is open in $X$ with respect to $T$ and
$\closure{\apply{W}{i}}{X}{T}\subseteq \apply{V}{i}$ by assumption.
We have $\apply{W}{i}\subseteq X$ by \cref{open_in,normal_space,topology_on,subseteq,pow_iff}.
$T$ is a topology on $X$ by \cref{normal_space}.
$\apply{V}{i}$ is open in $X$ with respect to $T$ by assumption.
Hence $X\setminus \apply{V}{i}$ is closed in $X$ with respect to $T$
by \cref{open_in,normal_space,topology_on,subseteq,pow_iff,closed_in,setminus_subseteq,double_relative_complement}.
$\closure{\apply{W}{i}}{X}{T}$ is closed in $X$ with respect to $T$
by \cref{closure_closed_in}.
$X\setminus \apply{V}{i}$ is disjoint from $\closure{\apply{W}{i}}{X}{T}$
by \cref{subseteq,setminus_elim_right,disjoint}.
Take $u$ such that
$u$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ and
$\img{u}{X\setminus \apply{V}{i}}\subseteq \{0\}$ and
$\img{u}{\closure{\apply{W}{i}}{X}{T}}\subseteq \{1\}$
by \cref{urysohn_unit_interval}.
Hence $i\mathrel{R} u$
by \cref{continuous,funs_is_relation,funs,funs_subseteq_rels,subseteq,rels_ran_subseteq,rels_elim,powerset_intro,times_tuple_intro,pair_eq_iff}.
\end{subproof}
$R$ is a relation by \cref{relation}.
Take $c$ such that $c$ is a function on $\initialSegment{n}$ and for all $i\in\initialSegment{n}$ we have $i\mathrel{R} c(i)$
by \cref{axiom_of_choice}.
For all $i\in\initialSegment{n}$ we have
$\apply{c}{i}$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ and
$\img{\apply{c}{i}}{\closure{\apply{W}{i}}{X}{T}}\subseteq \{1\}$ and
$\img{\apply{c}{i}}{X\setminus \apply{V}{i}}\subseteq \{0\}$
by \cref{axiom_of_choice,pair_eq_iff}.
Let $j = \identity{I_0}$.
For all $i\in\initialSegment{n}$ we have
$j\circ \apply{c}{i}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$
by \cref{continuous_interval_expand_range}.
Let $p = \{(i,j\circ \apply{c}{i}) \mid i\in\initialSegment{n}\}$.
For all $i,u_1,u_2$ such that $(i,u_1)\in p$ and $(i,u_2)\in p$ we have $u_1 = u_2$ by \cref{pair_eq_iff}.
We have $p$ is a function by \cref{relation,pair_eq_iff,rightunique}.
For all $i$ such that $i\in\dom{p}$ we have $i\in\initialSegment{n}$ by \cref{dom_iff,pair_eq_iff}.
For all $i$ such that $i\in\initialSegment{n}$ we have $i\in\dom{p}$ by \cref{pair_eq_iff,dom_intro}.
Therefore $\dom{p} = \initialSegment{n}$ by \cref{subseteq,subseteq_antisymmetric}.
Hence $p$ is a function on $\initialSegment{n}$ by \cref{funs}.
For all $i\in\initialSegment{n}$ we have $\apply{p}{i} = j\circ \apply{c}{i}$ by \cref{pair_eq_iff,function_apply_intro}.
For all $i\in\initialSegment{n}$ we have
$\apply{p}{i}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$
by \cref{continuous_eq_subst}.
For all $i\in\initialSegment{n}$ for all $x\in X$ we have $\apply{\apply{p}{i}}{x} = \apply{\apply{c}{i}}{x}$
by \cref{continuous,funs_is_function,funs,funs_is_relation,function_rightunique,funs_subseteq_rels,subseteq,rels_ran_subseteq,id_dom,id_rightunique,id_is_relation,circ_apply,funs_type_apply,id_apply}.
Take $g$ such that
$g$ is a finite real sum witness for $p$ on $X$ with respect to $T$ and $n$
by \cref{finite_real_sum_continuous}.
Therefore $g$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and
for all $x\in X$ there exists $a$ such that
$a\in\funs{\initialSegment{n}}{\reals}$ and
$\sumFiniteSequence{a}{g(x)}$ and
for all $i\in\initialSegment{n}$ we have $a(i) = \apply{\apply{p}{i}}{x}$
by \cref{finite_real_sum_witness}.
Show that for all $x\in X$ we have $1 \leq g(x)$.
\begin{subproof}
Fix $x\in X$.
$1\in\initialSegment{n}$ by \cref{real_one_leq_naturalsplus,real_one_in_naturals,initial_segment_naturalsplus}.
Take $Z\in\img{W}{\initialSegment{n}}$ such that $x\in Z$ by \cref{covering,unions_iff,subseteq}.
Take $i$ such that $i\in\initialSegment{n}$ and $(i,Z)\in W$ by \cref{img_iff}.
We have $x\in \apply{W}{i}$ by \cref{function_apply_intro}.
Take $a$ such that
$a\in\funs{\initialSegment{n}}{\reals}$ and
$\sumFiniteSequence{a}{g(x)}$ and
for all $k\in\initialSegment{n}$ we have $a(k) = \apply{\apply{p}{k}}{x}$.
For all $k\in\dom{a}$ we have $0 \leq a(k)$
by \cref{funs_elim,continuous,funs_is_function,funs,subseteq,continuous,funs_type_apply,intervalclosed}.
Therefore $a(i) \leq g(x)$ by \cref{funs_elim,subseteq,sum_finite_sequence_term_leq}.
Hence $x\in \closure{\apply{W}{i}}{X}{T}$ by \cref{open_in,normal_space,topology_on,subseteq,pow_iff,subseteq_closure}.
$\apply{c}{i}\in\funs{X}{I_0}$ and $\apply{c}{i}$ is a function and $\dom{\apply{c}{i}} = X$
by \cref{continuous,funs_is_function,funs}.
Therefore $\apply{\apply{c}{i}}{x}\in\img{\apply{c}{i}}{\closure{\apply{W}{i}}{X}{T}}$
by \cref{subseteq,inter_intro,img_of_function_intro}.
Thus $\apply{\apply{c}{i}}{x} = 1$ by \cref{subseteq,singleton_elim}.
We have $a(i) = 1$ by \cref{funs_elim,subseteq,real_lt_subst_right}.
$1\in\reals$ by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq}.
$1 \leq g(x)$.
\end{subproof}
For all $x\in X$ we have $g(x)\neq 0$
by \cref{continuous,funs_type_apply,real_one_in_naturals,real_naturals_subset_reals,subseteq,real_add_ident,real_zero_lt_one,real_lt_imp_leq,real_leq_antisym,real_lt_irreflexive,real_lt_subst_left}.
Let $d = \{(x,1) \mid x\in X\}$.
Let $q = \{(x, d(x) \rmul \inv{(g(x))}) \mid x\in X\}$.
Therefore $q$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$
by \cref{reciprocal_geq_one_unit_interval_continuous}.
Let $q_1 = j\circ q$.
Hence $q_1$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$
by \cref{continuous_interval_expand_range}.
For all $x\in X$ we have $q_1(x) = q(x)$
by \cref{continuous,funs_is_function,funs,function_rightunique,funs_is_relation,funs_subseteq_rels,subseteq,rels_ran_subseteq,id_dom,id_rightunique,id_is_relation,circ_apply,funs_type_apply,id_apply}.
$1\in\reals$ by \cref{real_one_in_naturals,real_naturals_subset_reals,subseteq}.
$d$ is a function from $X$ to $\reals$ by \cref{constant_map_function}.
We have for all $x\in X$ $d(x) = 1$
by \cref{constant_map_function,funs_is_function,function_apply_intro}.
Let $P = \{w\in\initialSegment{n}\times B \mid \text{there exists $i\in\initialSegment{n}$ such that there exists $u\in B$ such that
$w = (i,u)$ and
$u$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ and
$\supp{u}{X}{T}\subseteq \apply{U}{i}$ and
for all $x\in X$ we have $u(x) = \apply{q_1}{x} \rmul \apply{\apply{c}{i}}{x}$}\}$.
Show that for all $i\in\initialSegment{n}$ there exists $u$ such that $i\mathrel{P} u$.
\begin{subproof}
Fix $i\in\initialSegment{n}$.
Let $c_i = \apply{c}{i}$.
We have $c_i$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ and
$\img{c_i}{\closure{\apply{W}{i}}{X}{T}}\subseteq \{1\}$ and
$\img{c_i}{X\setminus \apply{V}{i}}\subseteq \{0\}$ by assumption.
Let $u = \{(x,\apply{q_1}{x} \rmul \apply{c_i}{x}) \mid x\in X\}$.
Therefore $u$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$
by \cref{real_function_multiplication_continuous}.
$T$ is a topology on $X$ by \cref{normal_space}.
Let $v = \{(x,\apply{q}{x} \rmul \apply{c_i}{x}) \mid x\in X\}$.
Hence $v$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$
by \cref{unit_interval_product_continuous}.
For all $x\in X$ we have $u(x) = v(x)$
by \cref{pair_eq_iff,continuous,funs_is_function,funs,function_apply_intro,real_mul_eq_subst}.
We have for all $x\in X$ we have $u(x)\in I_0$ by \cref{continuous,funs_type_apply}.
$\img{u}{X}\subseteq I_0$
by \cref{subseteq,img_iff,continuous,funs_is_function,funs,function_apply_intro}.
$u\in\funs{X}{\reals}$ by \cref{continuous}.
Therefore $u$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$
by \cref{intervalclosed,subseteq,continuous_subspace_range}.
Show that for all $x\in X\setminus \apply{V}{i}$ we have $u(x) = 0$.
\begin{subproof}
Fix $x\in X\setminus \apply{V}{i}$.
$c_i\in\funs{X}{I_0}$ and $c_i$ is a function and $\dom{c_i} = X$
by \cref{continuous,funs_is_function,funs}.
We have $x\in\dom{c_i}\inter(X\setminus \apply{V}{i})$ by \cref{setminus_elim_left,subseteq,inter_intro}.
$c_i(x)\in\img{c_i}{X\setminus \apply{V}{i}}$ by \cref{img_of_function_intro}.
Therefore $c_i(x) = 0$ by \cref{subseteq,singleton_elim}.
Hence $u(x) = \apply{q_1}{x} \rmul c_i(x)$
by \cref{setminus_elim_left,pair_eq_iff,continuous,funs_is_function,funs,function_apply_intro}.
Thus $u(x) = \apply{q_1}{x} \rmul 0$ by \cref{real_lt_subst_right}.
$\apply{q_1}{x}\in\reals$ by \cref{setminus_elim_left,continuous,funs_type_apply}.
$u(x) = 0$ by \cref{real_add_ident,real_mul_comm,real_mul_zero}.
\end{subproof}
Hence $\supp{u}{X}{T}\subseteq \apply{U}{i}$ by \cref{support_subseteq_from_zero_outside}.
For all $x\in X$ we have $u(x) = \apply{q_1}{x} \rmul \apply{\apply{c}{i}}{x}$
by \cref{pair_eq_iff,continuous,funs_is_function,funs,function_apply_intro,real_mul_eq_subst}.
Therefore $i\mathrel{P} u$
by \cref{continuous,funs_is_relation,funs,funs_subseteq_rels,subseteq,rels_ran_subseteq,rels_elim,powerset_intro,times_tuple_intro,pair_eq_iff}.
\end{subproof}
$P$ is a relation by \cref{relation}.
Take $f$ such that $f$ is a function on $\initialSegment{n}$ and for all $i\in\initialSegment{n}$ we have $i\mathrel{P} f(i)$
by \cref{axiom_of_choice}.
Show that for all $i\in\initialSegment{n}$ we have
$\apply{f}{i}$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ and
$\supp{\apply{f}{i}}{X}{T}\subseteq \apply{U}{i}$.
\begin{subproof}
Follows by \cref{axiom_of_choice,pair_eq_iff}.
\end{subproof}
Therefore $\finitePartitionComponentCondition{f}{X}{U}{T}{n}$
by \cref{finite_partition_component_condition,pair_eq_iff}.
Show that for all $x\in X$ there exists $a$ such that
$a\in\funs{\initialSegment{n}}{\reals}$ and
for all $i\in\initialSegment{n}$ we have $a(i) = \apply{\apply{f}{i}}{x}$ and
$\sumFiniteSequence{a}{1}$.
\begin{subproof}
Fix $x\in X$.
Take $a_0$ such that
$a_0\in\funs{\initialSegment{n}}{\reals}$ and
$\sumFiniteSequence{a_0}{g(x)}$ and
for all $i\in\initialSegment{n}$ we have $a_0(i) = \apply{\apply{p}{i}}{x}$.
Let $a = \coordScalarSequence{n}{q_1(x)}{a_0}$.
We have $a\in\funs{\initialSegment{n}}{\reals}$ by \cref{continuous,funs_type_apply,coord_scalar_sequence_function}.
For all $i\in\initialSegment{n}$ we have $a(i) = \apply{\apply{f}{i}}{x}$
by \cref{funs_elim,subseteq,funs_is_function,function_apply_elim,coord_scalar_sequence,function_apply_intro,real_mul_eq_subst,axiom_of_choice,pair_eq_iff,real_lt_subst_right}.
$q_1(x)\in\reals$ by \cref{continuous,funs_type_apply}.
$\sumFiniteSequence{a}{q_1(x) \rmul g(x)}$ by \cref{sum_finite_sequence_scalar}.
$q_1(x) = q(x)$ by assumption.
We have $g(x)\neq 0$ by assumption.
$g(x)\in\reals$ by \cref{continuous,funs_type_apply}.
$q$ is a function by \cref{continuous,funs_is_function}.
We have $(x,d(x) \rmul \inv{(g(x))})\in q$.
$q(x) = d(x) \rmul \inv{(g(x))}$ by \cref{function_apply_intro}.
Hence $q_1(x) = 1 \rmul \inv{(g(x))}$ by \cref{real_lt_subst_left}.
Therefore $q_1(x) = \inv{(g(x))}$ by \cref{real_mul_inverse,real_mul_ident}.
Thus $q_1(x) \rmul g(x) = 1$
by \cref{real_mul_eq_subst,real_mul_comm,real_mul_inverse,real_lt_subst_right}.
We have $\sumFiniteSequence{a}{1}$ by \cref{real_lt_subst_right}.
Therefore there exists $b$ such that
$b\in\funs{\initialSegment{n}}{\reals}$ and
for all $i\in\initialSegment{n}$ we have $b(i) = \apply{\apply{f}{i}}{x}$ and
$\sumFiniteSequence{b}{1}$.
\end{subproof}
Hence $\finitePartitionSumCondition{f}{X}{n}$ by \cref{finite_partition_sum_condition}.
$U$ is a function on $\initialSegment{n}$ by assumption.
For all $i\in\initialSegment{n}$ we have $\apply{U}{i}$ is open in $X$ with respect to $T$ by assumption.
$\img{U}{\initialSegment{n}}$ is a covering of $X$ by assumption.
$f$ is a function on $\initialSegment{n}$ by \cref{axiom_of_choice}.
Therefore $f$ is a partition of unity on $X$ dominated by $U$ with respect to $T$ and $n$
by \cref{finite_partition_of_unity}.
\end{proof}
Assume $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $X$ is inhabited.
Assume $X$ is a manifold of dimension $m$ with respect to $T$.
Assume $X$ is compact with respect to $T$.
Let $R_0 = \{(j,\reals) \mid j\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}\}$.
Let $S_0 = \{(j,\standardTopologyR) \mid j\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}\}$.
Let $P_0 = \productTopologyIndexed{S_0}{R_0}$.
Then there exist $n,U$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $U$ is a function on $\initialSegment{n}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ there exist $V,h$ such that $\apply{U}{i}$ is open in $X$ with respect to $T$ and $V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and $h$ is a homeomorphism between $\apply{U}{i}$ and $V$ with respect to $\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V}$ and $\img{U}{\initialSegment{n}}$ is a covering of $X$.
LaTeX source
\begin{lemma}
\label{compact_manifold_finite_chart_cover}
Assume $m\in\naturalsPlus$.
Assume $X$ is inhabited.
Assume $X$ is a manifold of dimension $m$ with respect to $T$.
Assume $X$ is compact with respect to $T$.
Let $R_0 = \{(j,\reals) \mid j\in\initialSegment{m}\}$.
Let $S_0 = \{(j,\standardTopologyR) \mid j\in\initialSegment{m}\}$.
Let $P_0 = \productTopologyIndexed{S_0}{R_0}$.
Then there exist $n,U$ such that
$n\in\naturalsPlus$ and
$U$ is a function on $\initialSegment{n}$ and
for all $i\in\initialSegment{n}$ there exist $V,h$ such that
$\apply{U}{i}$ is open in $X$ with respect to $T$ and
$V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h$ is a homeomorphism between $\apply{U}{i}$ and $V$ with respect to
$\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V}$ and
$\img{U}{\initialSegment{n}}$ is a covering of $X$.
\end{lemma}
Proof
$X$ is Hausdorff with respect to $T$ and $X$ satisfies the second countability axiom with respect to $T$ by Definition 292.
We have $T$ is a topology on $X$ by Definition 156.
Let $C = \{U\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{X} \mid \text{there exist $x\in X$ such that there exist $V,h$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and $V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and $h$ is a homeomorphism between $U$ and $V$ with respect to $\subspaceTopology{T}{U}$ and $\subspaceTopology{P_0}{V}$}\}$.
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{C}$.
Fix $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Take $U,V,R,S,h$ such that $U$ is a neighborhood of $x$ in $X$ with respect to $T$ and $R = \{(i,\reals) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}\}$ and $S = \{(i,\standardTopologyR) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}\}$ and $V$ is open in $\productFamily{R}$ with respect to $\productTopologyIndexed{S}{R}$ and $h$ is a homeomorphism between $U$ and $V$ with respect to $\subspaceTopology{T}{U}$ and $\subspaceTopology{\productTopologyIndexed{S}{R}}{V}$ by Definition 292.
For all $u$ such that $u\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ we have $u\class{latex-symbol-tip latex-symbol-id-in}{\in} R_0$ by Axiom 6.
For all $u$ such that $u\class{latex-symbol-tip latex-symbol-id-in}{\in} R_0$ we have $u\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ by Axiom 6.
Therefore $R = R_0$ by Definition 1, Proposition 3.
For all $u$ such that $u\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ we have $u\class{latex-symbol-tip latex-symbol-id-in}{\in} S_0$ by Axiom 6.
For all $u$ such that $u\class{latex-symbol-tip latex-symbol-id-in}{\in} S_0$ we have $u\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ by Axiom 6.
Thus $S = S_0$ by Definition 1, Proposition 3.
Hence $V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and $h$ is a homeomorphism between $U$ and $V$ with respect to $\subspaceTopology{T}{U}$ and $\subspaceTopology{P_0}{V}$ by Axiom 6.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{C}$ by Axiom 4, Axiom 6, Axiom 12, Definition 1, Definition 101, Definition 103, Definition 153.
Therefore $C$ is a covering of $X$ by Definition 1, Definition 245.
For all $W$ such that $W\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $W$ is open in $X$ with respect to $T$ by Definition 153, Proposition 156.
Hence $C$ is an open covering of $X$ with respect to $T$ by Definition 246.
Take $d$ such that $d$ is a sequence in $\pow{X}$ and for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ we have $d(n)$ is open in $X$ with respect to $T$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have for all $W$ such that $W$ is open in $X$ with respect to $T$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ there exists $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} d(n)$ and $d(n)\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} W$ by Definition 271.
Let $J = \{n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} A\class{latex-symbol-tip latex-symbol-id-in}{\in} C. d(n)\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A\}$.
Let $R_1 = \{(n,A) \mid n\class{latex-symbol-tip latex-symbol-id-in}{\in} J, A\class{latex-symbol-tip latex-symbol-id-in}{\in} C \mid d(n)\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A\}$.
$R_1$ is a relation by Axiom 6, Definition 12.
For all $n\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ there exists $A$ such that $n\mathrel{R_1} A$ by Axiom 6.
Take $b$ such that $b$ is a function on $J$ and for all $n\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $n\mathrel{R_1}\apply{b}{n}$ by Axiom 54.
For all $j\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\apply{b}{j}\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ by Axiom 6, Axiom 54.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{\img{b}{J}}$ by Axiom 4, Axiom 6, Axiom 54, Definition 1, Definition 245, Proposition 27, Proposition 235, Proposition 349.
Therefore $\img{b}{J}$ is a covering of $X$ by Definition 1, Definition 245.
For all $W$ such that $W\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{b}{J}$ we have $W$ is open in $X$ with respect to $T$ by Definition 1, Proposition 235, Proposition 346.
Hence $\img{b}{J}$ is an open covering of $X$ with respect to $T$ by Definition 246.
Take $B$ such that $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\img{b}{J}$ and $B$ is finite and $B$ is a covering of $X$ by Definition 247.
Take $W_0\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $W_0\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Axiom 4, Definition 1, Definition 245.
Take $j_0\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $(j_0,W_0)\class{latex-symbol-tip latex-symbol-id-in}{\in} b$ by Definition 1, Proposition 235.
We have $W_0 = \apply{b}{j_0}$ by Proposition 346.
$W_0\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Axiom 6, Definition 1, Proposition 156, Proposition 346.
Let $Q = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} B\class{latex-symbol-tip latex-symbol-id-times}{\times}\naturalsPlus \mid \class{latex-symbol-tip latex-symbol-id-exists}{\exists} W\class{latex-symbol-tip latex-symbol-id-in}{\in} B.\class{latex-symbol-tip latex-symbol-id-exists}{\exists} j\class{latex-symbol-tip latex-symbol-id-in}{\in} J. w = (W,j) \class{latex-symbol-tip latex-symbol-id-land}{\land} \apply{b}{j} = W\}$.
We have $Q$ is a relation by Definition 12.
For all $W\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ there exists $j$ such that $W\mathrel{Q} j$ by Axiom 6, Definition 1, Proposition 115, Proposition 235, Proposition 346.
Take $s$ such that $s$ is a function on $B$ and for all $W\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ we have $W\mathrel{Q}\apply{s}{W}$ by Axiom 54.
Let $F = \img{s}{B}$.
$F$ is finite by Lemma 192.
We have $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Axiom 54, Definition 1, Proposition 114, Proposition 235, Proposition 346.
$F\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Definition 1, Lemma 323, Proposition 10, Proposition 235, Proposition 348.
Hence $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Axiom 41, Definition 1, Proposition 6.
Take $n\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ such that $n$ is a maximum of $F$ by Lemma 47.
Hence $F\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\initialSegment{n}$ by Definition 1, Definition 73, Definition 84.
Let $U = \{(i,W) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}, W\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{X} \mid (i\class{latex-symbol-tip latex-symbol-id-in}{\in} F \class{latex-symbol-tip latex-symbol-id-land}{\land} W = \apply{b}{i}) \class{latex-symbol-tip latex-symbol-id-lor}{\lor} (i\class{latex-symbol-tip latex-symbol-id-notin}{\notin} F \class{latex-symbol-tip latex-symbol-id-land}{\land} W = W_0)\}$.
For all $i,W_1,W_2$ such that $(i,W_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $(i,W_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ we have $W_1 = W_2$ by Axiom 6.
We have $U$ is a function by Definition 12, Definition 51.
Claim: For all $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{U}$.
Fix $i$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$.
Take $W\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $(W,i)\class{latex-symbol-tip latex-symbol-id-in}{\in} s$ by Proposition 235.
We have $(W,i)\class{latex-symbol-tip latex-symbol-id-in}{\in} Q$ by Axiom 54, Proposition 346.
$i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ by Axiom 6.
Hence $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{U}$ by Axiom 6, Definition 1, Proposition 156, Proposition 200.
We have $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{U}$ by Axiom 6, Definition 1, Proposition 156, Proposition 200, Proposition 235.
LaTeX source
\begin{byCase}
\caseOf{$i\in F$.}
Take $W\in B$ such that $(W,i)\in s$ by \cref{img_iff}.
We have $(W,i)\in Q$ by \cref{axiom_of_choice,function_apply_intro}.
$i\in J$ by \cref{pair_eq_iff}.
Hence $i\in\dom{U}$ by \cref{subseteq,powerset_elim,pair_eq_iff,dom_intro}.
\caseOf{$i\notin F$.}
We have $i\in\dom{U}$ by \cref{subseteq,img_iff,powerset_elim,pair_eq_iff,dom_intro}.
\end{byCase}
Therefore $U$ is a function on $\initialSegment{n}$ by Axiom 6, Definition 1, Definition 55, Proposition 3, Proposition 199.
Claim: For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ there exist $V,h$ such that $\apply{U}{i}$ is open in $X$ with respect to $T$ and $V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and $h$ is a homeomorphism between $\apply{U}{i}$ and $V$ with respect to $\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V}$.
Fix $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$.
Take $W\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ such that $(W,i)\class{latex-symbol-tip latex-symbol-id-in}{\in} s$ by Proposition 235.
We have $(W,i)\class{latex-symbol-tip latex-symbol-id-in}{\in} Q$ by Axiom 54, Proposition 346.
$i\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ by Axiom 6.
Hence $(i,\apply{U}{i})\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ and $(i,\apply{b}{i})\class{latex-symbol-tip latex-symbol-id-in}{\in} b$ by Definition 1, Proposition 348.
Therefore $\apply{U}{i} = \apply{b}{i}$ by Proposition 346.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that there exist $V,h$ such that $\apply{b}{i}$ is a neighborhood of $x$ in $X$ with respect to $T$ and $V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and $h$ is a homeomorphism between $\apply{b}{i}$ and $V$ with respect to $\subspaceTopology{T}{\apply{b}{i}}$ and $\subspaceTopology{P_0}{V}$ by Definition 1, Proposition 156.
Take $V,h$ such that $\apply{b}{i}$ is a neighborhood of $x$ in $X$ with respect to $T$ and $V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and $h$ is a homeomorphism between $\apply{b}{i}$ and $V$ with respect to $\subspaceTopology{T}{\apply{b}{i}}$ and $\subspaceTopology{P_0}{V}$.
Therefore there exist $V_2,h_2$ such that $\apply{U}{i}$ is open in $X$ with respect to $T$ and $V_2$ is open in $\productFamily{R_0}$ with respect to $P_0$ and $h_2$ is a homeomorphism between $\apply{U}{i}$ and $V_2$ with respect to $\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V_2}$ by Definition 103, Definition 153, Lemma 83.
We have $(i,\apply{U}{i})\class{latex-symbol-tip latex-symbol-id-in}{\in} U$ by Definition 1, Proposition 348.
Hence $\apply{U}{i} = W_0$ by Axiom 6.
Take $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ such that there exist $V,h$ such that $\apply{b}{j_0}$ is a neighborhood of $x$ in $X$ with respect to $T$ and $V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and $h$ is a homeomorphism between $\apply{b}{j_0}$ and $V$ with respect to $\subspaceTopology{T}{\apply{b}{j_0}}$ and $\subspaceTopology{P_0}{V}$ by Definition 1, Proposition 156.
Take $V,h$ such that $\apply{b}{j_0}$ is a neighborhood of $x$ in $X$ with respect to $T$ and $V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and $h$ is a homeomorphism between $\apply{b}{j_0}$ and $V$ with respect to $\subspaceTopology{T}{\apply{b}{j_0}}$ and $\subspaceTopology{P_0}{V}$.
Therefore there exist $V_2,h_2$ such that $\apply{U}{i}$ is open in $X$ with respect to $T$ and $V_2$ is open in $\productFamily{R_0}$ with respect to $P_0$ and $h_2$ is a homeomorphism between $\apply{U}{i}$ and $V_2$ with respect to $\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V_2}$ by Axiom 6, Definition 103, Definition 153.
LaTeX source
\begin{byCase}
\caseOf{$i\in F$.}
Take $W\in B$ such that $(W,i)\in s$ by \cref{img_iff}.
We have $(W,i)\in Q$ by \cref{axiom_of_choice,function_apply_intro}.
$i\in J$ by \cref{pair_eq_iff}.
Hence $(i,\apply{U}{i})\in U$ and $(i,\apply{b}{i})\in b$ by \cref{subseteq,function_apply_elim}.
Therefore $\apply{U}{i} = \apply{b}{i}$ by \cref{function_apply_intro}.
Take $x\in X$ such that there exist $V,h$ such that
$\apply{b}{i}$ is a neighborhood of $x$ in $X$ with respect to $T$ and
$V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h$ is a homeomorphism between $\apply{b}{i}$ and $V$ with respect to
$\subspaceTopology{T}{\apply{b}{i}}$ and $\subspaceTopology{P_0}{V}$ by \cref{subseteq,powerset_elim}.
Take $V,h$ such that
$\apply{b}{i}$ is a neighborhood of $x$ in $X$ with respect to $T$ and
$V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h$ is a homeomorphism between $\apply{b}{i}$ and $V$ with respect to
$\subspaceTopology{T}{\apply{b}{i}}$ and $\subspaceTopology{P_0}{V}$.
Therefore there exist $V_2,h_2$ such that
$\apply{U}{i}$ is open in $X$ with respect to $T$ and
$V_2$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h_2$ is a homeomorphism between $\apply{U}{i}$ and $V_2$ with respect to
$\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V_2}$
by \cref{neighborhood,open_in,real_lt_subst_right}.
\caseOf{$i\notin F$.}
We have $(i,\apply{U}{i})\in U$ by \cref{subseteq,function_apply_elim}.
Hence $\apply{U}{i} = W_0$ by \cref{pair_eq_iff}.
Take $x\in X$ such that there exist $V,h$ such that
$\apply{b}{j_0}$ is a neighborhood of $x$ in $X$ with respect to $T$ and
$V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h$ is a homeomorphism between $\apply{b}{j_0}$ and $V$ with respect to
$\subspaceTopology{T}{\apply{b}{j_0}}$ and $\subspaceTopology{P_0}{V}$ by \cref{subseteq,powerset_elim}.
Take $V,h$ such that
$\apply{b}{j_0}$ is a neighborhood of $x$ in $X$ with respect to $T$ and
$V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h$ is a homeomorphism between $\apply{b}{j_0}$ and $V$ with respect to
$\subspaceTopology{T}{\apply{b}{j_0}}$ and $\subspaceTopology{P_0}{V}$.
Therefore there exist $V_2,h_2$ such that
$\apply{U}{i}$ is open in $X$ with respect to $T$ and
$V_2$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h_2$ is a homeomorphism between $\apply{U}{i}$ and $V_2$ with respect to
$\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V_2}$
by \cref{pair_eq_iff,neighborhood,open_in}.
\end{byCase}
Claim: For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{\img{U}{\initialSegment{n}}}$.
Hence $\img{U}{\initialSegment{n}}$ is a covering of $X$ by Definition 1, Definition 245.
LaTeX source
\begin{proof}
$X$ is Hausdorff with respect to $T$ and $X$ satisfies the second countability axiom with respect to $T$
by \cref{m_manifold}.
We have $T$ is a topology on $X$ by \cref{hausdorff}.
Let $C = \{U\in\pow{X} \mid \text{there exist $x\in X$ such that there exist $V,h$ such that
$U$ is a neighborhood of $x$ in $X$ with respect to $T$ and
$V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h$ is a homeomorphism between $U$ and $V$ with respect to
$\subspaceTopology{T}{U}$ and $\subspaceTopology{P_0}{V}$}\}$.
Show that for all $x$ such that $x\in X$ we have $x\in\unions{C}$.
\begin{subproof}
Fix $x$ such that $x\in X$.
Take $U,V,R,S,h$ such that
$U$ is a neighborhood of $x$ in $X$ with respect to $T$ and
$R = \{(i,\reals) \mid i\in\initialSegment{m}\}$ and
$S = \{(i,\standardTopologyR) \mid i\in\initialSegment{m}\}$ and
$V$ is open in $\productFamily{R}$ with respect to $\productTopologyIndexed{S}{R}$ and
$h$ is a homeomorphism between $U$ and $V$ with respect to
$\subspaceTopology{T}{U}$ and $\subspaceTopology{\productTopologyIndexed{S}{R}}{V}$
by \cref{m_manifold}.
For all $u$ such that $u\in R$ we have $u\in R_0$ by \cref{pair_eq_iff}.
For all $u$ such that $u\in R_0$ we have $u\in R$ by \cref{pair_eq_iff}.
Therefore $R = R_0$ by \cref{subseteq,subseteq_antisymmetric}.
For all $u$ such that $u\in S$ we have $u\in S_0$ by \cref{pair_eq_iff}.
For all $u$ such that $u\in S_0$ we have $u\in S$ by \cref{pair_eq_iff}.
Thus $S = S_0$ by \cref{subseteq,subseteq_antisymmetric}.
Hence $V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h$ is a homeomorphism between $U$ and $V$ with respect to
$\subspaceTopology{T}{U}$ and $\subspaceTopology{P_0}{V}$ by \cref{pair_eq_iff}.
Therefore $x\in\unions{C}$ by \cref{neighborhood,open_in,topology_on,subseteq,pow_iff,pair_eq_iff,unions_iff}.
\end{subproof}
Therefore $C$ is a covering of $X$ by \cref{subseteq,covering}.
For all $W$ such that $W\in C$ we have $W$ is open in $X$ with respect to $T$
by \cref{powerset_elim,neighborhood}.
Hence $C$ is an open covering of $X$ with respect to $T$ by \cref{open_covering}.
Take $d$ such that
$d$ is a sequence in $\pow{X}$ and
for all $n\in\naturalsPlus$ we have $d(n)$ is open in $X$ with respect to $T$ and
for all $x\in X$ we have
for all $W$ such that $W$ is open in $X$ with respect to $T$ and $x\in W$
there exists $n\in\naturalsPlus$ such that $x\in d(n)$ and $d(n)\subseteq W$
by \cref{second_countability_axiom}.
Let $J = \{n\in\naturalsPlus \mid \exists A\in C. d(n)\subseteq A\}$.
Let $R_1 = \{(n,A) \mid n\in J, A\in C \mid d(n)\subseteq A\}$.
$R_1$ is a relation by \cref{pair_eq_iff,relation}.
For all $n\in J$ there exists $A$ such that $n\mathrel{R_1} A$ by \cref{pair_eq_iff}.
Take $b$ such that $b$ is a function on $J$ and for all $n\in J$ we have $n\mathrel{R_1}\apply{b}{n}$
by \cref{axiom_of_choice}.
For all $j\in J$ we have $\apply{b}{j}\in C$ by \cref{axiom_of_choice,pair_eq_iff}.
For all $x$ such that $x\in X$ we have $x\in\unions{\img{b}{J}}$
by \cref{covering,subseteq,unions_iff,axiom_of_choice,pair_eq_iff,function_apply_iff,img_iff,unions_intro}.
Therefore $\img{b}{J}$ is a covering of $X$ by \cref{subseteq,covering}.
For all $W$ such that $W\in\img{b}{J}$ we have $W$ is open in $X$ with respect to $T$
by \cref{img_iff,function_apply_intro,subseteq}.
Hence $\img{b}{J}$ is an open covering of $X$ with respect to $T$ by \cref{open_covering}.
Take $B$ such that
$B\subseteq\img{b}{J}$ and
$B$ is finite and
$B$ is a covering of $X$ by \cref{compact}.
Take $W_0\in B$ such that $W_0\in B$ by \cref{covering,subseteq,unions_iff}.
Take $j_0\in J$ such that $(j_0,W_0)\in b$ by \cref{subseteq,img_iff}.
We have $W_0 = \apply{b}{j_0}$ by \cref{function_apply_intro}.
$W_0\subseteq X$ by \cref{subseteq,function_apply_intro,pair_eq_iff,powerset_elim}.
Let $Q = \{w\in B\times\naturalsPlus \mid \exists W\in B.\exists j\in J. w = (W,j) \land \apply{b}{j} = W\}$.
We have $Q$ is a relation by \cref{relation}.
For all $W\in B$ there exists $j$ such that $W\mathrel{Q} j$
by \cref{subseteq,img_iff,function_apply_intro,times_tuple_intro,pair_eq_iff}.
Take $s$ such that $s$ is a function on $B$ and for all $W\in B$ we have $W\mathrel{Q}\apply{s}{W}$ by \cref{axiom_of_choice}.
Let $F = \img{s}{B}$.
$F$ is finite by \cref{finite_image_function}.
We have $F\subseteq\naturalsPlus$ by \cref{img_iff,function_apply_intro,axiom_of_choice,times_tuple_elim,subseteq}.
$F\neq\emptyset$ by \cref{subseteq,function_apply_elim,img_iff,inhabited_nonempty,nonempty_inhabited}.
Hence $F\subseteq\reals$ by \cref{subseteq,real_naturals_subset_reals,subseteq_transitive}.
Take $n\in F$ such that $n$ is a maximum of $F$ by \cref{finite_real_maximum}.
Hence $F\subseteq\initialSegment{n}$ by \cref{subseteq,real_maximum,initial_segment_naturalsplus}.
Let $U = \{(i,W) \mid i\in\initialSegment{n}, W\in\pow{X} \mid
(i\in F \land W = \apply{b}{i}) \lor (i\notin F \land W = W_0)\}$.
For all $i,W_1,W_2$ such that $(i,W_1)\in U$ and $(i,W_2)\in U$ we have $W_1 = W_2$ by \cref{pair_eq_iff}.
We have $U$ is a function by \cref{rightunique,relation}.
Show that for all $i$ such that $i\in\initialSegment{n}$ we have $i\in\dom{U}$.
\begin{subproof}
Fix $i$ such that $i\in\initialSegment{n}$.
\begin{byCase}
\caseOf{$i\in F$.}
Take $W\in B$ such that $(W,i)\in s$ by \cref{img_iff}.
We have $(W,i)\in Q$ by \cref{axiom_of_choice,function_apply_intro}.
$i\in J$ by \cref{pair_eq_iff}.
Hence $i\in\dom{U}$ by \cref{subseteq,powerset_elim,pair_eq_iff,dom_intro}.
\caseOf{$i\notin F$.}
We have $i\in\dom{U}$ by \cref{subseteq,img_iff,powerset_elim,pair_eq_iff,dom_intro}.
\end{byCase}
\end{subproof}
Therefore $U$ is a function on $\initialSegment{n}$
by \cref{dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric,funs}.
Show that for all $i\in\initialSegment{n}$ there exist $V,h$ such that
$\apply{U}{i}$ is open in $X$ with respect to $T$ and
$V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h$ is a homeomorphism between $\apply{U}{i}$ and $V$ with respect to
$\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V}$.
\begin{subproof}
Fix $i\in\initialSegment{n}$.
\begin{byCase}
\caseOf{$i\in F$.}
Take $W\in B$ such that $(W,i)\in s$ by \cref{img_iff}.
We have $(W,i)\in Q$ by \cref{axiom_of_choice,function_apply_intro}.
$i\in J$ by \cref{pair_eq_iff}.
Hence $(i,\apply{U}{i})\in U$ and $(i,\apply{b}{i})\in b$ by \cref{subseteq,function_apply_elim}.
Therefore $\apply{U}{i} = \apply{b}{i}$ by \cref{function_apply_intro}.
Take $x\in X$ such that there exist $V,h$ such that
$\apply{b}{i}$ is a neighborhood of $x$ in $X$ with respect to $T$ and
$V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h$ is a homeomorphism between $\apply{b}{i}$ and $V$ with respect to
$\subspaceTopology{T}{\apply{b}{i}}$ and $\subspaceTopology{P_0}{V}$ by \cref{subseteq,powerset_elim}.
Take $V,h$ such that
$\apply{b}{i}$ is a neighborhood of $x$ in $X$ with respect to $T$ and
$V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h$ is a homeomorphism between $\apply{b}{i}$ and $V$ with respect to
$\subspaceTopology{T}{\apply{b}{i}}$ and $\subspaceTopology{P_0}{V}$.
Therefore there exist $V_2,h_2$ such that
$\apply{U}{i}$ is open in $X$ with respect to $T$ and
$V_2$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h_2$ is a homeomorphism between $\apply{U}{i}$ and $V_2$ with respect to
$\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V_2}$
by \cref{neighborhood,open_in,real_lt_subst_right}.
\caseOf{$i\notin F$.}
We have $(i,\apply{U}{i})\in U$ by \cref{subseteq,function_apply_elim}.
Hence $\apply{U}{i} = W_0$ by \cref{pair_eq_iff}.
Take $x\in X$ such that there exist $V,h$ such that
$\apply{b}{j_0}$ is a neighborhood of $x$ in $X$ with respect to $T$ and
$V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h$ is a homeomorphism between $\apply{b}{j_0}$ and $V$ with respect to
$\subspaceTopology{T}{\apply{b}{j_0}}$ and $\subspaceTopology{P_0}{V}$ by \cref{subseteq,powerset_elim}.
Take $V,h$ such that
$\apply{b}{j_0}$ is a neighborhood of $x$ in $X$ with respect to $T$ and
$V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h$ is a homeomorphism between $\apply{b}{j_0}$ and $V$ with respect to
$\subspaceTopology{T}{\apply{b}{j_0}}$ and $\subspaceTopology{P_0}{V}$.
Therefore there exist $V_2,h_2$ such that
$\apply{U}{i}$ is open in $X$ with respect to $T$ and
$V_2$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h_2$ is a homeomorphism between $\apply{U}{i}$ and $V_2$ with respect to
$\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V_2}$
by \cref{pair_eq_iff,neighborhood,open_in}.
\end{byCase}
\end{subproof}
Show that for all $x$ such that $x\in X$ we have $x\in\unions{\img{U}{\initialSegment{n}}}$.
\begin{subproof}
Follows by \cref{covering,subseteq,unions_iff,function_apply_elim,img_iff,axiom_of_choice,pair_eq_iff,function_apply_intro,real_lt_subst_right,img_of_function_intro,inter_intro}.
\end{subproof}
Hence $\img{U}{\initialSegment{n}}$ is a covering of $X$ by \cref{subseteq,covering}.
\end{proof}
Assume $t\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $A = \{(t,i) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\}$.
Then $A$ is finite.
LaTeX source
\begin{lemma}
\label{initial_segment_row_finite}
Assume $t\in\naturalsPlus$.
Assume $n\in\naturalsPlus$.
Let $A = \{(t,i) \mid i\in\initialSegment{n}\}$.
Then $A$ is finite.
\end{lemma}
Proof
Let $f = \{(i,(t,i)) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\}$.
For all $i,b_1,b_2$ such that $(i,b_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} f$ and $(i,b_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} f$ we have $b_1 = b_2$ by Axiom 6.
We have $f$ is a function on $\initialSegment{n}$ by Axiom 6, Definition 1, Definition 12, Definition 51, Definition 55, Proposition 3, Proposition 199, Proposition 200.
For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ there exists $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ such that $f(i) = a$ by Axiom 6, Proposition 346.
Hence $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\img{f}{\initialSegment{n}}$ by Definition 1, Proposition 235.
For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\img{f}{\initialSegment{n}}$ we have $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 6, Proposition 235, Proposition 346.
Hence $A = \img{f}{\initialSegment{n}}$ by Definition 1, Proposition 3.
Therefore $A$ is finite by Lemma 192, Lemma 208.
LaTeX source
\begin{proof}
Let $f = \{(i,(t,i)) \mid i\in\initialSegment{n}\}$.
For all $i,b_1,b_2$ such that $(i,b_1)\in f$ and $(i,b_2)\in f$ we have $b_1 = b_2$ by \cref{pair_eq_iff}.
We have $f$ is a function on $\initialSegment{n}$
by \cref{relation,pair_eq_iff,rightunique,dom_intro,dom_iff,subseteq,subseteq_antisymmetric,funs}.
For all $a\in A$ there exists $i\in\initialSegment{n}$ such that $f(i) = a$
by \cref{pair_eq_iff,function_apply_intro}.
Hence $A\subseteq\img{f}{\initialSegment{n}}$ by \cref{subseteq,img_iff}.
For all $a\in\img{f}{\initialSegment{n}}$ we have $a\in A$
by \cref{img_iff,function_apply_intro,pair_eq_iff}.
Hence $A = \img{f}{\initialSegment{n}}$ by \cref{subseteq,subseteq_antisymmetric}.
Therefore $A$ is finite by \cref{initial_segment_finite,finite_image_function}.
\end{proof}
Assume $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $J = \initialSegment{m}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{n}$.
Then $J$ is finite.
LaTeX source
\begin{lemma}
\label{initial_segment_grid_finite}
Assume $m\in\naturalsPlus$.
Assume $n\in\naturalsPlus$.
Let $J = \initialSegment{m}\times\initialSegment{n}$.
Then $J$ is finite.
\end{lemma}
Proof
Let $A = \{k\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus \mid \text{$\initialSegment{k}\times\initialSegment{n}$ is finite}\}$.
$A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1.
Let $B = \{(1,i) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\}$.
$B$ is finite by Axiom 42, Lemma 560.
For all $u$ such that $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{1}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{n}$ we have $u\class{latex-symbol-tip latex-symbol-id-in}{\in} B$ by Axiom 6, Axiom 41, Axiom 42, Axiom 43, Definition 1, Definition 84, Lemma 25, Proposition 121.
Hence $\initialSegment{1}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{n}$ is finite by Definition 1, Lemma 44.
Therefore $1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 42.
Claim: For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
Fix $k$ such that $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
We have $\initialSegment{k}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{n}$ is finite.
$k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 45, Definition 1.
Let $C = \initialSegment{k + 1}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{n}$.
For all $u$ such that $u\class{latex-symbol-tip latex-symbol-id-in}{\in} C$ we have $u\class{latex-symbol-tip latex-symbol-id-in}{\in} (\initialSegment{k}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{n})\union(\{k + 1\}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{n})$ by Axiom 5, Definition 84, Lemma 29, Proposition 20, Proposition 38, Proposition 39, Proposition 115, Proposition 121.
Let $D = \{(k + 1,i) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\}$.
For all $u$ such that $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\{k + 1\}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{n}$ we have $u\class{latex-symbol-tip latex-symbol-id-in}{\in} D$ by Axiom 6, Proposition 21, Proposition 121.
Hence $\{k + 1\}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{n}$ is finite by Definition 1, Lemma 44, Lemma 560.
Therefore $C$ is finite by Definition 1, Lemma 44, Lemma 45.
Therefore $k + 1\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 45, Definition 1.
Therefore $J$ is finite by Definition 1, Proposition 445.
LaTeX source
\begin{proof}
Let $A = \{k\in\naturalsPlus \mid \text{$\initialSegment{k}\times\initialSegment{n}$ is finite}\}$.
$A\subseteq\naturalsPlus$ by \cref{subseteq}.
Let $B = \{(1,i) \mid i\in\initialSegment{n}\}$.
$B$ is finite by \cref{real_one_in_naturals,initial_segment_row_finite}.
For all $u$ such that $u\in\initialSegment{1}\times\initialSegment{n}$ we have $u\in B$
by \cref{times_elem_is_tuple,initial_segment_naturalsplus,real_naturals_subset_reals,subseteq,real_one_in_naturals,real_one_leq_naturalsplus,real_leq_antisym,pair_eq_iff}.
Hence $\initialSegment{1}\times\initialSegment{n}$ is finite by \cref{subseteq,subseteq_finite_is_finite}.
Therefore $1\in A$ by \cref{real_one_in_naturals}.
Show that for all $k\in A$ we have $k + 1\in A$.
\begin{subproof}
Fix $k$ such that $k\in A$.
We have $\initialSegment{k}\times\initialSegment{n}$ is finite.
$k + 1\in\naturalsPlus$ by \cref{subseteq,real_naturals_closed_succ}.
Let $C = \initialSegment{k + 1}\times\initialSegment{n}$.
For all $u$ such that $u\in C$ we have $u\in (\initialSegment{k}\times\initialSegment{n})\union(\{k + 1\}\times\initialSegment{n})$
by \cref{times_elem_is_tuple,initial_segment_naturalsplus,real_naturals_leq_succ_elim,union_iff,singleton_intro,times_tuple_intro,union_intro_left,union_intro_right}.
Let $D = \{(k + 1,i) \mid i\in\initialSegment{n}\}$.
For all $u$ such that $u\in\{k + 1\}\times\initialSegment{n}$ we have $u\in D$
by \cref{times_elem_is_tuple,singleton_elim,pair_eq_iff}.
Hence $\{k + 1\}\times\initialSegment{n}$ is finite
by \cref{initial_segment_row_finite,subseteq,subseteq_finite_is_finite}.
Therefore $C$ is finite by \cref{subseteq,union_of_finite_is_finite,subseteq_finite_is_finite}.
Therefore $k + 1\in A$ by \cref{subseteq,real_naturals_closed_succ}.
\end{subproof}
Therefore $J$ is finite by \cref{real_naturals_induction,subseteq}.
\end{proof}
Assume $f$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$.
Assume $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} \supp{f}{X}{T}$.
Then $f(x) = 0$.
LaTeX source
\begin{lemma}
\label{outside_support_zero}
Assume $f$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$.
Assume $x\in X\setminus \supp{f}{X}{T}$.
Then $f(x) = 0$.
\end{lemma}
Proof
Let $A = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} \preimg{f}{\{0\}}$.
We have $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \supp{f}{X}{T}$ by Definition 55, Definition 160, Definition 293, Lemma 146, Proposition 6, Proposition 97, Proposition 249.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\preimg{f}{\{0\}}$ by Definition 1, Definition 6, Proposition 85, Proposition 87.
Take $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\{0\}$ such that $(x,r)\class{latex-symbol-tip latex-symbol-id-in}{\in} f$ by Proposition 246.
Therefore $f(x) = 0$ by Definition 1, Definition 55, Definition 160, Proposition 21, Proposition 346, Proposition 356.
LaTeX source
\begin{proof}
Let $A = X\setminus \preimg{f}{\{0\}}$.
We have $A\subseteq \supp{f}{X}{T}$
by \cref{continuous,preimg_subseteq_dom,funs,subseteq_transitive,setminus_subseteq,support,subseteq_closure}.
Hence $x\in\preimg{f}{\{0\}}$ by \cref{subseteq,setminus_elim_right,setminus,setminus_intro}.
Take $r\in\{0\}$ such that $(x,r)\in f$ by \cref{preimg_iff}.
Therefore $f(x) = 0$ by \cref{singleton_elim,continuous,funs_is_function,funs,subseteq,function_apply_intro}.
\end{proof}
Assume $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $U$ is a function on $\initialSegment{n}$.
Assume $p$ is a partition of unity on $X$ dominated by $U$ with respect to $T$ and $n$.
Assume $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$.
Assume $j\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}$.
Let $R_0 = \{(k,\reals) \mid k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}\}$.
Let $S_0 = \{(k,\standardTopologyR) \mid k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}\}$.
Let $P_0 = \productTopologyIndexed{S_0}{R_0}$.
Suppose $V$ is open in $\productFamily{R_0}$ with respect to $P_0$.
Suppose $h$ is a homeomorphism between $\apply{U}{i}$ and $V$ with respect to $\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V}$.
Let $A = \supp{\apply{p}{i}}{X}{T}$.
Then there exists $u$ such that $u$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $u(x) = \apply{\apply{p}{i}}{x} \rmul \apply{\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} h}{x}$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ we have $u(x) = 0$.
LaTeX source
\begin{lemma}
\label{weighted_chart_coordinate_extension}
Assume $m\in\naturalsPlus$.
Assume $n\in\naturalsPlus$.
Assume $U$ is a function on $\initialSegment{n}$.
Assume $p$ is a partition of unity on $X$ dominated by $U$ with respect to $T$ and $n$.
Assume $i\in\initialSegment{n}$.
Assume $j\in\initialSegment{m}$.
Let $R_0 = \{(k,\reals) \mid k\in\initialSegment{m}\}$.
Let $S_0 = \{(k,\standardTopologyR) \mid k\in\initialSegment{m}\}$.
Let $P_0 = \productTopologyIndexed{S_0}{R_0}$.
Suppose $V$ is open in $\productFamily{R_0}$ with respect to $P_0$.
Suppose $h$ is a homeomorphism between $\apply{U}{i}$ and $V$ with respect to
$\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V}$.
Let $A = \supp{\apply{p}{i}}{X}{T}$.
Then there exists $u$ such that
$u$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and
for all $x\in A$ we have
$u(x) = \apply{\apply{p}{i}}{x} \rmul \apply{\piIndex{R_0}{j}\circ h}{x}$ and
for all $x\in X\setminus A$ we have $u(x) = 0$.
\end{lemma}
Proof
Let $I_0 = \intervalclosed{0}{1}$.
Let $T_0 = \subspaceTopology{\standardTopologyR}{I_0}$.
Let $p_i = \apply{p}{i}$.
Let $T_U = \subspaceTopology{T}{\apply{U}{i}}$.
$p_i$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ and $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{i}$ by Definition 294, Definition 296.
$T$ is a topology on $X$ by Definition 160.
$\apply{U}{i}$ is open in $X$ with respect to $T$ by Definition 296.
We have $\apply{U}{i}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Axiom 12, Definition 1, Definition 101, Definition 103.
$\apply{U}{i}$ is a subspace of $X$ with respect to $T$ by Definition 147.
$T_U$ is a topology on $\apply{U}{i}$ by Lemma 131.
$R_0$ is a relation by Definition 12.
For all $k,y_1,y_2$ such that $(k,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} R_0$ and $(k,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} R_0$ we have $y_1 = y_2$ by Axiom 6.
We have $R_0$ is a function on $\initialSegment{m}$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
$S_0$ is a relation by Definition 12.
For all $k,y_1,y_2$ such that $(k,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} S_0$ and $(k,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} S_0$ we have $y_1 = y_2$ by Axiom 6.
We have $S_0$ is a function on $\initialSegment{m}$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}$ we have $R_0(k) = \reals$ and $S_0(k) = \standardTopologyR$ by Proposition 346.
$\standardTopologyR$ is a topology on $\reals$ by Definition 156, Lemma 198, Lemma 200, Lemma 395.
$P_0$ is a topology on $\productFamily{R_0}$ by Definition 115, Definition 156, Lemma 76, Lemma 176, Lemma 177.
We have $V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \productFamily{R_0}$ by Axiom 12, Definition 1, Definition 101, Definition 103.
$V$ is a subspace of $\productFamily{R_0}$ with respect to $P_0$ by Definition 147.
Let $h_0 = \identity{V}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} h$.
Therefore $h_0$ is continuous from $\apply{U}{i}$ to $\productFamily{R_0}$ with respect to $T_U$ and $P_0$ by Definition 162, Lemma 168.
Let $q_0 = \piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} h_0$.
Hence $q_0$ is continuous from $\apply{U}{i}$ to $\reals$ with respect to $T_U$ and $\standardTopologyR$ by Lemma 165, Lemma 366.
Let $r_0 = \identity{I_0}$.
Let $r = r_0\class{latex-symbol-tip latex-symbol-id-circ}{\circ} p_i$.
Therefore $r$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by Lemma 525.
$p_i\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{I_0}$ and $p_i$ is a function and $\dom{p_i} = X$ by Definition 55, Definition 160, Proposition 356.
We have $p_i$ is right-unique and $p_i$ is a relation by Proposition 345, Proposition 355.
$\dom{r_0} = I_0$ and $r_0$ is right-unique and $r_0$ is a relation by Proposition 296, Proposition 297, Proposition 400.
We have $p_i\class{latex-symbol-tip latex-symbol-id-in}{\in}\rels{X}{I_0}$ by Definition 1, Proposition 357.
$\ran{p_i}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} I_0$ by Proposition 284.
Therefore $\ran{p_i}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{r_0}$ by Proposition 297.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $r(x) = p_i(x)$ by Definition 1, Definition 160, Proposition 361, Proposition 373, Proposition 405.
Let $r_U = \restrl{r}{\apply{U}{i}}$.
Hence $r_U$ is continuous from $\apply{U}{i}$ to $\reals$ with respect to $T_U$ and $\standardTopologyR$ by Lemma 166.
Let $w = \{(x, r_U(x) \rmul q_0(x)) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}\}$.
Therefore $w$ is continuous from $\apply{U}{i}$ to $\reals$ with respect to $T_U$ and $\standardTopologyR$ by Theorem 34.
Let $z = \{(x,0) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A\}$.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17, Proposition 462.
We have $z$ is a function from $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ to $\reals$ by Lemma 309.
Hence $\subspaceTopology{T}{X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A}$ is a topology on $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ by Definition 147, Lemma 131, Proposition 97.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ we have $z(x) = 0$ by Definition 1, Lemma 309, Proposition 346, Proposition 356, Proposition 359.
Therefore $z$ is continuous from $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ to $\reals$ with respect to $\subspaceTopology{T}{X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A}$ and $\standardTopologyR$ by Lemma 163.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}\inter (X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A)$ we have $w(x) = z(x)$.
Fix $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}\inter (X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A)$.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}$ and $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ by Definition 5.
Let $B = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} \preimg{p_i}{\{0\}}$.
$B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Definition 55, Definition 160, Definition 293, Lemma 146, Proposition 6, Proposition 97, Proposition 249.
Hence $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} B$ by Definition 1, Proposition 87.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} \preimg{p_i}{\{0\}}$ by Definition 6.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\preimg{p_i}{\{0\}}$ by Proposition 85.
Take $s\class{latex-symbol-tip latex-symbol-id-in}{\in}\{0\}$ such that $(x,s)\class{latex-symbol-tip latex-symbol-id-in}{\in} p_i$ by Proposition 246.
$p_i$ is a function and $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{p_i}$ by Definition 1, Definition 55, Proposition 356.
Hence $p_i(x) = 0$ by Proposition 21, Proposition 346.
$r_U$ is a function and $\dom{r_U} = \apply{U}{i}$ by Definition 55, Definition 160, Proposition 356.
We have $w$ is a function and $\dom{w} = \apply{U}{i}$ by Definition 55, Definition 160, Proposition 356.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{r_U}$ by Definition 1.
$r$ is a function and $\dom{r} = X$ by Definition 55, Definition 160, Proposition 356.
Therefore $\apply{U}{i}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{r}$ by Definition 1.
Hence $r_U(x) = r(x)$ by Proposition 384.
Therefore $r(x) = 0$ by Lemma 83.
We have $(x, r_U(x) \rmul q_0(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} w$ by Axiom 6.
$q_0(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 160, Proposition 361.
Hence $w(x) = 0$ by Lemma 82, Proposition 346, Proposition 439.
We have $z(x) = 0$ by Definition 1, Lemma 309, Proposition 346, Proposition 356, Proposition 359.
Therefore $w(x) = z(x)$.
Let $u = w\union z$.
$w\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\apply{U}{i}}{\reals}$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A}{\reals}$ and $\dom{w} = \apply{U}{i}$ and $\dom{z} = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ by Definition 55, Definition 160.
$u$ is a function and $\dom{u} = \dom{w}\union\dom{z}$ by Definition 1, Definition 5, Lemma 170, Proposition 205, Proposition 356.
$\apply{U}{i}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Axiom 12, Definition 1, Definition 101, Definition 103, Definition 296.
$X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Proposition 97.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}\union (X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A)$.
Therefore $X = \apply{U}{i}\union (X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A)$ by Definition 1, Proposition 3, Proposition 44.
$A$ is closed in $X$ with respect to $T$ by Definition 55, Definition 160, Definition 293, Lemma 144, Proposition 97, Proposition 249.
Hence $X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ is open in $X$ with respect to $T$ by Definition 101, Definition 149, Proposition 92, Proposition 97.
Let $M = \{\apply{U}{i}, X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A\}$.
For all $W$ such that $W\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ we have $W\class{latex-symbol-tip latex-symbol-id-in}{\in} T$ by Definition 103, Definition 296, Proposition 19.
We have $M\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} T$ by Definition 1.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{M}$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}\union (X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A)$.
For all $x$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}\union (X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A)$ we have $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\unions{M}$ by Axiom 4, Axiom 5, Proposition 16, Proposition 17.
We have $\unions{M} = \apply{U}{i}\union (X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A)$ by Definition 1, Proposition 3.
Hence $\unions{M} = X$ by Axiom 6.
Therefore $\dom{u} = X$ by Axiom 6.
Claim: For all $W$ such that $W\class{latex-symbol-tip latex-symbol-id-in}{\in} M$ we have $\restrl{u}{W}$ is continuous from $W$ to $\reals$ with respect to $\subspaceTopology{T}{W}$ and $\standardTopologyR$.
Fix $W$ such that $W\class{latex-symbol-tip latex-symbol-id-in}{\in} M$.
We have $W = \apply{U}{i}$ or $W = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ by Proposition 19.
Claim: For all $v$ such that $v\class{latex-symbol-tip latex-symbol-id-in}{\in}\restrl{u}{W}$ we have $v\class{latex-symbol-tip latex-symbol-id-in}{\in} w$.
Fix $v$ such that $v\class{latex-symbol-tip latex-symbol-id-in}{\in}\restrl{u}{W}$.
Hence $v\class{latex-symbol-tip latex-symbol-id-in}{\in} u$ by Definition 1, Definition 12, Proposition 263.
Take $x,y$ such that $v = (x,y)$ by Axiom 6, Definition 12.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ and $(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} u$ by Axiom 6, Proposition 262.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}$ and $(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} w\union z$ by Axiom 5, Axiom 6.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} w$ or $(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} z$ by Axiom 5.
Hence $v\class{latex-symbol-tip latex-symbol-id-in}{\in} w$ by Axiom 6.
$z$ is a function and $\dom{z} = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ by Proposition 359.
Take $t\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ such that $(x,y) = (t,z(t))$ by Definition 1, Proposition 347, Proposition 359.
Hence $x = t$ by Axiom 6.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ by Definition 1.
Thus $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}\inter (X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A)$ by Proposition 61.
Hence $w(x) = z(x)$ by Definition 1.
$w$ is a function and $z$ is a function by Definition 55, Definition 160, Proposition 356.
We have $(x,w(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} w$ and $(x,z(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} z$ by Proposition 348.
Therefore $y = z(x)$ by Proposition 345.
Hence $y = w(x)$ by Lemma 83.
Thus $v\class{latex-symbol-tip latex-symbol-id-in}{\in} w$ by Axiom 6, Proposition 349.
LaTeX source
\begin{byCase}
\caseOf{$(x,y)\in w$.}
Hence $v\in w$ by \cref{pair_eq_iff}.
\caseOf{$(x,y)\in z$.}
$z$ is a function and $\dom{z} = X\setminus A$ by \cref{funs_elim}.
Take $t\in X\setminus A$ such that $(x,y) = (t,z(t))$ by \cref{funs_elim,function_member_elim,subseteq}.
Hence $x = t$ by \cref{pair_eq_iff}.
Therefore $x\in X\setminus A$ by \cref{subseteq}.
Thus $x\in \apply{U}{i}\inter (X\setminus A)$ by \cref{inter_intro}.
Hence $w(x) = z(x)$ by \cref{subseteq}.
$w$ is a function and $z$ is a function by \cref{continuous,funs_is_function,funs}.
We have $(x,w(x))\in w$ and $(x,z(x))\in z$ by \cref{function_apply_elim}.
Therefore $y = z(x)$ by \cref{function_rightunique}.
Hence $y = w(x)$ by \cref{real_lt_subst_right}.
Thus $v\in w$ by \cref{pair_eq_iff,function_apply_iff}.
\end{byCase}
For all $v$ such that $v\class{latex-symbol-tip latex-symbol-id-in}{\in} w$ we have $v\class{latex-symbol-tip latex-symbol-id-in}{\in} \restrl{u}{W}$ by Axiom 5, Axiom 6, Definition 12, Definition 55, Definition 160, Proposition 38, Proposition 262, Proposition 349, Proposition 356.
Therefore $\restrl{u}{W} = w$ by Definition 1, Proposition 3.
Hence $\restrl{u}{W}$ is continuous from $W$ to $\reals$ with respect to $\subspaceTopology{T}{W}$ and $\standardTopologyR$ by Lemma 367.
Claim: For all $v$ such that $v\class{latex-symbol-tip latex-symbol-id-in}{\in}\restrl{u}{W}$ we have $v\class{latex-symbol-tip latex-symbol-id-in}{\in} z$.
Fix $v$ such that $v\class{latex-symbol-tip latex-symbol-id-in}{\in}\restrl{u}{W}$.
Hence $v\class{latex-symbol-tip latex-symbol-id-in}{\in} u$ by Definition 1, Definition 12, Proposition 263.
Take $x,y$ such that $v = (x,y)$ by Axiom 6, Definition 12.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} W$ and $(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} u$ by Axiom 6, Proposition 262.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ and $(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} w\union z$ by Axiom 5, Axiom 6.
$(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} w$ or $(x,y)\class{latex-symbol-tip latex-symbol-id-in}{\in} z$ by Axiom 5.
Hence $v\class{latex-symbol-tip latex-symbol-id-in}{\in} z$ by Axiom 6.
$w$ is a function and $\dom{w} = \apply{U}{i}$ by Definition 55, Definition 160, Proposition 356.
Take $t\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}$ such that $(x,y) = (t,w(t))$ by Definition 1, Proposition 347, Proposition 359.
Hence $x = t$ by Axiom 6.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}$ by Definition 1.
Thus $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}\inter (X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A)$ by Proposition 61.
Hence $w(x) = z(x)$ by Definition 1.
$w$ is a function and $z$ is a function by Definition 55, Definition 160, Proposition 356.
We have $(x,w(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} w$ and $(x,z(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} z$ by Proposition 348.
Therefore $y = w(x)$ by Proposition 345.
Hence $y = z(x)$ by Lemma 83.
Thus $v\class{latex-symbol-tip latex-symbol-id-in}{\in} z$ by Axiom 6, Proposition 349.
LaTeX source
\begin{byCase}
\caseOf{$(x,y)\in z$.}
Hence $v\in z$ by \cref{pair_eq_iff}.
\caseOf{$(x,y)\in w$.}
$w$ is a function and $\dom{w} = \apply{U}{i}$ by \cref{continuous,funs_is_function,funs}.
Take $t\in \apply{U}{i}$ such that $(x,y) = (t,w(t))$ by \cref{funs_elim,function_member_elim,subseteq}.
Hence $x = t$ by \cref{pair_eq_iff}.
Therefore $x\in \apply{U}{i}$ by \cref{subseteq}.
Thus $x\in \apply{U}{i}\inter (X\setminus A)$ by \cref{inter_intro}.
Hence $w(x) = z(x)$ by \cref{subseteq}.
$w$ is a function and $z$ is a function by \cref{continuous,funs_is_function,funs}.
We have $(x,w(x))\in w$ and $(x,z(x))\in z$ by \cref{function_apply_elim}.
Therefore $y = w(x)$ by \cref{function_rightunique}.
Hence $y = z(x)$ by \cref{real_lt_subst_right}.
Thus $v\in z$ by \cref{pair_eq_iff,function_apply_iff}.
\end{byCase}
For all $v$ such that $v\class{latex-symbol-tip latex-symbol-id-in}{\in} z$ we have $v\class{latex-symbol-tip latex-symbol-id-in}{\in} \restrl{u}{W}$ by Axiom 5, Axiom 6, Definition 12, Proposition 39, Proposition 262, Proposition 349, Proposition 359.
Therefore $\restrl{u}{W} = z$ by Definition 1, Proposition 3.
Hence $\restrl{u}{W}$ is continuous from $W$ to $\reals$ with respect to $\subspaceTopology{T}{W}$ and $\standardTopologyR$ by Lemma 367.
LaTeX source
\begin{byCase}
\caseOf{$W = \apply{U}{i}$.}
Show that for all $v$ such that $v\in\restrl{u}{W}$ we have $v\in w$.
\begin{subproof}
Fix $v$ such that $v\in\restrl{u}{W}$.
Hence $v\in u$ by \cref{restrl_subseteq,relation,subseteq}.
Take $x,y$ such that $v = (x,y)$ by \cref{relation,pair_eq_iff}.
We have $x\in W$ and $(x,y)\in u$ by \cref{restrl_iff,pair_eq_iff}.
Therefore $x\in \apply{U}{i}$ and $(x,y)\in w\union z$ by \cref{pair_eq_iff,union_iff}.
$(x,y)\in w$ or $(x,y)\in z$ by \cref{union_iff}.
\begin{byCase}
\caseOf{$(x,y)\in w$.}
Hence $v\in w$ by \cref{pair_eq_iff}.
\caseOf{$(x,y)\in z$.}
$z$ is a function and $\dom{z} = X\setminus A$ by \cref{funs_elim}.
Take $t\in X\setminus A$ such that $(x,y) = (t,z(t))$ by \cref{funs_elim,function_member_elim,subseteq}.
Hence $x = t$ by \cref{pair_eq_iff}.
Therefore $x\in X\setminus A$ by \cref{subseteq}.
Thus $x\in \apply{U}{i}\inter (X\setminus A)$ by \cref{inter_intro}.
Hence $w(x) = z(x)$ by \cref{subseteq}.
$w$ is a function and $z$ is a function by \cref{continuous,funs_is_function,funs}.
We have $(x,w(x))\in w$ and $(x,z(x))\in z$ by \cref{function_apply_elim}.
Therefore $y = z(x)$ by \cref{function_rightunique}.
Hence $y = w(x)$ by \cref{real_lt_subst_right}.
Thus $v\in w$ by \cref{pair_eq_iff,function_apply_iff}.
\end{byCase}
\end{subproof}
For all $v$ such that $v\in w$ we have $v\in \restrl{u}{W}$
by \cref{relation,pair_eq_iff,continuous,funs_is_function,funs,function_apply_iff,union_iff,union_intro_left,restrl_iff}.
Therefore $\restrl{u}{W} = w$ by \cref{subseteq,subseteq_antisymmetric}.
Hence $\restrl{u}{W}$ is continuous from $W$ to $\reals$ with respect to
$\subspaceTopology{T}{W}$ and $\standardTopologyR$ by \cref{continuous_eq_subst}.
\caseOf{$W = X\setminus A$.}
Show that for all $v$ such that $v\in\restrl{u}{W}$ we have $v\in z$.
\begin{subproof}
Fix $v$ such that $v\in\restrl{u}{W}$.
Hence $v\in u$ by \cref{restrl_subseteq,relation,subseteq}.
Take $x,y$ such that $v = (x,y)$ by \cref{relation,pair_eq_iff}.
We have $x\in W$ and $(x,y)\in u$ by \cref{restrl_iff,pair_eq_iff}.
Therefore $x\in X\setminus A$ and $(x,y)\in w\union z$ by \cref{pair_eq_iff,union_iff}.
$(x,y)\in w$ or $(x,y)\in z$ by \cref{union_iff}.
\begin{byCase}
\caseOf{$(x,y)\in z$.}
Hence $v\in z$ by \cref{pair_eq_iff}.
\caseOf{$(x,y)\in w$.}
$w$ is a function and $\dom{w} = \apply{U}{i}$ by \cref{continuous,funs_is_function,funs}.
Take $t\in \apply{U}{i}$ such that $(x,y) = (t,w(t))$ by \cref{funs_elim,function_member_elim,subseteq}.
Hence $x = t$ by \cref{pair_eq_iff}.
Therefore $x\in \apply{U}{i}$ by \cref{subseteq}.
Thus $x\in \apply{U}{i}\inter (X\setminus A)$ by \cref{inter_intro}.
Hence $w(x) = z(x)$ by \cref{subseteq}.
$w$ is a function and $z$ is a function by \cref{continuous,funs_is_function,funs}.
We have $(x,w(x))\in w$ and $(x,z(x))\in z$ by \cref{function_apply_elim}.
Therefore $y = w(x)$ by \cref{function_rightunique}.
Hence $y = z(x)$ by \cref{real_lt_subst_right}.
Thus $v\in z$ by \cref{pair_eq_iff,function_apply_iff}.
\end{byCase}
\end{subproof}
For all $v$ such that $v\in z$ we have $v\in \restrl{u}{W}$
by \cref{relation,pair_eq_iff,funs_elim,function_apply_iff,union_iff,union_intro_right,restrl_iff}.
Therefore $\restrl{u}{W} = z$ by \cref{subseteq,subseteq_antisymmetric}.
Hence $\restrl{u}{W}$ is continuous from $W$ to $\reals$ with respect to
$\subspaceTopology{T}{W}$ and $\standardTopologyR$ by \cref{continuous_eq_subst}.
\end{byCase}
$w\class{latex-symbol-tip latex-symbol-id-in}{\in}\rels{\apply{U}{i}}{\reals}$ and $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\rels{X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A}{\reals}$ and $\ran{u} = \ran{w}\union\ran{z}$ by Definition 1, Proposition 214, Proposition 357.
Hence $\ran{u}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Proposition 44, Proposition 284.
Therefore $u\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{\reals}$ by Definition 1, Proposition 208, Proposition 348, Proposition 358.
Hence $u$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by Lemma 169.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $u(x) = p_i(x) \rmul \apply{\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} h}{x}$.
Fix $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
We have $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}$ by Definition 1.
$x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ by Proposition 87.
$u$ is a function and $w$ is a function by Definition 55, Definition 160, Proposition 356.
Hence $(x,w(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} w$ by Proposition 348.
Therefore $(x,w(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} u$ by Axiom 5.
Hence $u(x) = w(x)$ by Proposition 346.
$w$ is a function and $\dom{w} = \apply{U}{i}$ by Definition 55, Definition 160, Proposition 356.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{w}$ by Definition 1.
Therefore $w(x) = r_U(x) \rmul q_0(x)$ by Proposition 346.
$r_U$ is a function and $\dom{r_U} = \apply{U}{i}$ by Definition 55, Definition 160, Proposition 356.
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{r_U}$ by Definition 1.
$r$ is a function and $\dom{r} = X$ by Definition 55, Definition 160, Proposition 356.
Therefore $\apply{U}{i}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\dom{r}$ by Definition 1.
Hence $r_U(x) = r(x)$ by Proposition 384.
Therefore $r(x) = p_i(x)$ by Definition 1.
$h\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\apply{U}{i}}{V}$ and $h$ is a function and $\dom{h} = \apply{U}{i}$ by Definition 55, Definition 58, Definition 162, Proposition 356, Proposition 389.
$\identity{V}$ is right-unique and $\identity{V}$ is a relation and $\dom{\identity{V}} = V$ by Proposition 296, Proposition 297, Proposition 400.
We have $h_0(x) = h(x)$ by Definition 1, Proposition 361, Proposition 363, Proposition 373, Proposition 405.
$q_0$ is a function and $\dom{q_0} = \apply{U}{i}$ by Definition 55, Definition 160, Proposition 356.
$h_0$ is a function and $\dom{h_0} = \apply{U}{i}$ by Definition 55, Definition 160, Proposition 356.
Hence $(x,h_0(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} h_0$ by Proposition 348.
We have $h_0(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{R_0}$ by Definition 160, Proposition 361.
Therefore $(h_0(x),\apply{h_0(x)}{j})\class{latex-symbol-tip latex-symbol-id-in}{\in} \piIndex{R_0}{j}$ by Definition 170.
Hence $(x,\apply{h_0(x)}{j})\class{latex-symbol-tip latex-symbol-id-in}{\in} q_0$ by Proposition 257.
$q_0(x) = \apply{h_0(x)}{j}$ by Proposition 346.
Therefore $q_0(x) = \apply{h(x)}{j}$ by Lemma 83.
$h\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\apply{U}{i}}{\productFamily{R_0}}$ by Definition 1, Proposition 360.
$\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} h\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\apply{U}{i}}{\reals}$ by Lemma 191, Proposition 359, Proposition 382.
We have $\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} h$ is a function by Proposition 356.
Hence $(x,h(x))\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ by Proposition 348.
Therefore $(h(x),\apply{h(x)}{j})\class{latex-symbol-tip latex-symbol-id-in}{\in} \piIndex{R_0}{j}$ by Definition 1, Definition 170.
Hence $(x,\apply{h(x)}{j})\class{latex-symbol-tip latex-symbol-id-in}{\in} \piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} h$ by Proposition 257.
$\apply{\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} h}{x} = \apply{h(x)}{j}$ by Proposition 346.
Therefore $u(x) = p_i(x) \rmul \apply{\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} h}{x}$ by Lemma 82, Lemma 83.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ we have $u(x) = 0$.
LaTeX source
\begin{proof}
Let $I_0 = \intervalclosed{0}{1}$.
Let $T_0 = \subspaceTopology{\standardTopologyR}{I_0}$.
Let $p_i = \apply{p}{i}$.
Let $T_U = \subspaceTopology{T}{\apply{U}{i}}$.
$p_i$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ and
$A\subseteq \apply{U}{i}$ by \cref{finite_partition_of_unity,finite_partition_component_condition}.
$T$ is a topology on $X$ by \cref{continuous}.
$\apply{U}{i}$ is open in $X$ with respect to $T$ by \cref{finite_partition_of_unity}.
We have $\apply{U}{i}\subseteq X$ by \cref{open_in,topology_on,subseteq,pow_iff}.
$\apply{U}{i}$ is a subspace of $X$ with respect to $T$ by \cref{subspace_of}.
$T_U$ is a topology on $\apply{U}{i}$ by \cref{subspace_topology_is_topology}.
$R_0$ is a relation by \cref{relation}.
For all $k,y_1,y_2$ such that $(k,y_1)\in R_0$ and $(k,y_2)\in R_0$ we have $y_1 = y_2$ by \cref{pair_eq_iff}.
We have $R_0$ is a function on $\initialSegment{m}$ by \cref{rightunique,relation,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
$S_0$ is a relation by \cref{relation}.
For all $k,y_1,y_2$ such that $(k,y_1)\in S_0$ and $(k,y_2)\in S_0$ we have $y_1 = y_2$ by \cref{pair_eq_iff}.
We have $S_0$ is a function on $\initialSegment{m}$ by \cref{rightunique,relation,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
For all $k\in\initialSegment{m}$ we have $R_0(k) = \reals$ and $S_0(k) = \standardTopologyR$ by \cref{function_apply_intro}.
$\standardTopologyR$ is a topology on $\reals$
by \cref{standard_metric_is_metric,metric_space_hausdorff,standard_metric_topology,hausdorff}.
$P_0$ is a topology on $\productFamily{R_0}$
by \cref{product_subbasis_is_subbasis,product_subbasis_finite_intersections_basis,basis_topology_is_topology,basis_for_topology,hausdorff}.
We have $V\subseteq \productFamily{R_0}$ by \cref{open_in,topology_on,subseteq,pow_iff}.
$V$ is a subspace of $\productFamily{R_0}$ with respect to $P_0$ by \cref{subspace_of}.
Let $h_0 = \identity{V}\circ h$.
Therefore $h_0$ is continuous from $\apply{U}{i}$ to $\productFamily{R_0}$ with respect to $T_U$ and $P_0$
by \cref{homeomorphism,continuous_expand_range}.
Let $q_0 = \piIndex{R_0}{j}\circ h_0$.
Hence $q_0$ is continuous from $\apply{U}{i}$ to $\reals$ with respect to $T_U$ and $\standardTopologyR$
by \cref{projection_map_indexed_continuous,continuous_composite}.
Let $r_0 = \identity{I_0}$.
Let $r = r_0\circ p_i$.
Therefore $r$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$
by \cref{continuous_interval_expand_range}.
$p_i\in\funs{X}{I_0}$ and $p_i$ is a function and $\dom{p_i} = X$
by \cref{continuous,funs_is_function,funs}.
We have $p_i$ is right-unique and $p_i$ is a relation by \cref{function_rightunique,funs_is_relation}.
$\dom{r_0} = I_0$ and $r_0$ is right-unique and $r_0$ is a relation
by \cref{id_dom,id_rightunique,id_is_relation}.
We have $p_i\in\rels{X}{I_0}$ by \cref{funs_subseteq_rels,subseteq}.
$\ran{p_i}\subseteq I_0$ by \cref{rels_ran_subseteq}.
Therefore $\ran{p_i}\subseteq\dom{r_0}$ by \cref{id_dom}.
For all $x\in X$ we have $r(x) = p_i(x)$ by \cref{subseteq,circ_apply,continuous,funs_type_apply,id_apply}.
Let $r_U = \restrl{r}{\apply{U}{i}}$.
Hence $r_U$ is continuous from $\apply{U}{i}$ to $\reals$ with respect to $T_U$ and $\standardTopologyR$
by \cref{continuous_restrict_domain}.
Let $w = \{(x, r_U(x) \rmul q_0(x)) \mid x\in \apply{U}{i}\}$.
Therefore $w$ is continuous from $\apply{U}{i}$ to $\reals$ with respect to $T_U$ and $\standardTopologyR$
by \cref{real_function_multiplication_continuous}.
Let $z = \{(x,0) \mid x\in X\setminus A\}$.
$0\in\reals$ by \cref{real_zero_lt_one,real_add_ident}.
We have $z$ is a function from $X\setminus A$ to $\reals$ by \cref{constant_map_function}.
Hence $\subspaceTopology{T}{X\setminus A}$ is a topology on $X\setminus A$
by \cref{setminus_subseteq,subspace_of,subspace_topology_is_topology}.
For all $x\in X\setminus A$ we have $z(x) = 0$ by
\cref{constant_map_function,funs_elim,subseteq,funs_is_function,function_apply_intro}.
Therefore $z$ is continuous from $X\setminus A$ to $\reals$ with respect to $\subspaceTopology{T}{X\setminus A}$ and $\standardTopologyR$
by \cref{constant_continuous}.
Show that for all $x\in \apply{U}{i}\inter (X\setminus A)$ we have $w(x) = z(x)$.
\begin{subproof}
Fix $x\in \apply{U}{i}\inter (X\setminus A)$.
We have $x\in \apply{U}{i}$ and $x\in X\setminus A$ by \cref{inter}.
Let $B = X\setminus \preimg{p_i}{\{0\}}$.
$B\subseteq A$
by \cref{continuous,preimg_subseteq_dom,funs,subseteq_transitive,setminus_subseteq,support,subseteq_closure}.
Hence $x\notin B$ by \cref{subseteq,setminus_elim_right}.
$x\in X$ and $x\notin X\setminus \preimg{p_i}{\{0\}}$ by \cref{setminus}.
Therefore $x\in\preimg{p_i}{\{0\}}$ by \cref{setminus_intro}.
Take $s\in\{0\}$ such that $(x,s)\in p_i$ by \cref{preimg_iff}.
$p_i$ is a function and $x\in\dom{p_i}$ by \cref{funs_is_function,funs,subseteq}.
Hence $p_i(x) = 0$ by \cref{singleton_elim,function_apply_intro}.
$r_U$ is a function and $\dom{r_U} = \apply{U}{i}$ by \cref{continuous,funs_is_function,funs}.
We have $w$ is a function and $\dom{w} = \apply{U}{i}$ by \cref{continuous,funs_is_function,funs}.
$x\in\dom{r_U}$ by \cref{subseteq}.
$r$ is a function and $\dom{r} = X$ by \cref{continuous,funs_is_function,funs}.
Therefore $\apply{U}{i}\subseteq\dom{r}$ by \cref{subseteq}.
Hence $r_U(x) = r(x)$ by \cref{restrl_of_function_apply}.
Therefore $r(x) = 0$ by \cref{real_lt_subst_right}.
We have $(x, r_U(x) \rmul q_0(x))\in w$ by \cref{pair_eq_iff}.
$q_0(x)\in\reals$ by \cref{continuous,funs_type_apply}.
Hence $w(x) = 0$ by \cref{function_apply_intro,real_lt_subst_left,real_mul_zero}.
We have $z(x) = 0$
by \cref{funs_elim,subseteq,constant_map_function,funs_is_function,function_apply_intro}.
Therefore $w(x) = z(x)$.
\end{subproof}
Let $u = w\union z$.
$w\in\funs{\apply{U}{i}}{\reals}$ and $z\in\funs{X\setminus A}{\reals}$ and
$\dom{w} = \apply{U}{i}$ and $\dom{z} = X\setminus A$ by \cref{continuous,funs}.
$u$ is a function and $\dom{u} = \dom{w}\union\dom{z}$ by \cref{inter,funs_is_function,subseteq,union_compatible_functions,dom_union}.
$\apply{U}{i}\subseteq X$ by \cref{open_in,topology_on,subseteq,pow_iff,finite_partition_of_unity}.
$X\setminus A\subseteq X$ by \cref{setminus_subseteq}.
For all $x$ such that $x\in X$ we have $x\in \apply{U}{i}\union (X\setminus A)$.
Therefore $X = \apply{U}{i}\union (X\setminus A)$ by \cref{subseteq,union_subsets_is_subset,subseteq_antisymmetric}.
$A$ is closed in $X$ with respect to $T$ by \cref{support,closure_closed_in,setminus_subseteq,preimg_subseteq_dom,continuous,funs}.
Hence $X\setminus A$ is open in $X$ with respect to $T$ by \cref{closed_in,topology_on,double_relative_complement,setminus_subseteq}.
Let $M = \{\apply{U}{i}, X\setminus A\}$.
For all $W$ such that $W\in M$ we have $W\in T$ by \cref{upair_iff,finite_partition_of_unity,open_in}.
We have $M\subseteq T$ by \cref{subseteq}.
For all $x$ such that $x\in\unions{M}$ we have $x\in \apply{U}{i}\union (X\setminus A)$.
For all $x$ such that $x\in \apply{U}{i}\union (X\setminus A)$ we have $x\in\unions{M}$
by \cref{union_iff,upair_intro_left,upair_intro_right,unions_iff}.
We have $\unions{M} = \apply{U}{i}\union (X\setminus A)$ by \cref{subseteq,subseteq_antisymmetric}.
Hence $\unions{M} = X$ by \cref{pair_eq_iff}.
Therefore $\dom{u} = X$ by \cref{pair_eq_iff}.
Show that for all $W$ such that $W\in M$ we have
$\restrl{u}{W}$ is continuous from $W$ to $\reals$ with respect to
$\subspaceTopology{T}{W}$ and $\standardTopologyR$.
\begin{subproof}
Fix $W$ such that $W\in M$.
We have $W = \apply{U}{i}$ or $W = X\setminus A$ by \cref{upair_iff}.
\begin{byCase}
\caseOf{$W = \apply{U}{i}$.}
Show that for all $v$ such that $v\in\restrl{u}{W}$ we have $v\in w$.
\begin{subproof}
Fix $v$ such that $v\in\restrl{u}{W}$.
Hence $v\in u$ by \cref{restrl_subseteq,relation,subseteq}.
Take $x,y$ such that $v = (x,y)$ by \cref{relation,pair_eq_iff}.
We have $x\in W$ and $(x,y)\in u$ by \cref{restrl_iff,pair_eq_iff}.
Therefore $x\in \apply{U}{i}$ and $(x,y)\in w\union z$ by \cref{pair_eq_iff,union_iff}.
$(x,y)\in w$ or $(x,y)\in z$ by \cref{union_iff}.
\begin{byCase}
\caseOf{$(x,y)\in w$.}
Hence $v\in w$ by \cref{pair_eq_iff}.
\caseOf{$(x,y)\in z$.}
$z$ is a function and $\dom{z} = X\setminus A$ by \cref{funs_elim}.
Take $t\in X\setminus A$ such that $(x,y) = (t,z(t))$ by \cref{funs_elim,function_member_elim,subseteq}.
Hence $x = t$ by \cref{pair_eq_iff}.
Therefore $x\in X\setminus A$ by \cref{subseteq}.
Thus $x\in \apply{U}{i}\inter (X\setminus A)$ by \cref{inter_intro}.
Hence $w(x) = z(x)$ by \cref{subseteq}.
$w$ is a function and $z$ is a function by \cref{continuous,funs_is_function,funs}.
We have $(x,w(x))\in w$ and $(x,z(x))\in z$ by \cref{function_apply_elim}.
Therefore $y = z(x)$ by \cref{function_rightunique}.
Hence $y = w(x)$ by \cref{real_lt_subst_right}.
Thus $v\in w$ by \cref{pair_eq_iff,function_apply_iff}.
\end{byCase}
\end{subproof}
For all $v$ such that $v\in w$ we have $v\in \restrl{u}{W}$
by \cref{relation,pair_eq_iff,continuous,funs_is_function,funs,function_apply_iff,union_iff,union_intro_left,restrl_iff}.
Therefore $\restrl{u}{W} = w$ by \cref{subseteq,subseteq_antisymmetric}.
Hence $\restrl{u}{W}$ is continuous from $W$ to $\reals$ with respect to
$\subspaceTopology{T}{W}$ and $\standardTopologyR$ by \cref{continuous_eq_subst}.
\caseOf{$W = X\setminus A$.}
Show that for all $v$ such that $v\in\restrl{u}{W}$ we have $v\in z$.
\begin{subproof}
Fix $v$ such that $v\in\restrl{u}{W}$.
Hence $v\in u$ by \cref{restrl_subseteq,relation,subseteq}.
Take $x,y$ such that $v = (x,y)$ by \cref{relation,pair_eq_iff}.
We have $x\in W$ and $(x,y)\in u$ by \cref{restrl_iff,pair_eq_iff}.
Therefore $x\in X\setminus A$ and $(x,y)\in w\union z$ by \cref{pair_eq_iff,union_iff}.
$(x,y)\in w$ or $(x,y)\in z$ by \cref{union_iff}.
\begin{byCase}
\caseOf{$(x,y)\in z$.}
Hence $v\in z$ by \cref{pair_eq_iff}.
\caseOf{$(x,y)\in w$.}
$w$ is a function and $\dom{w} = \apply{U}{i}$ by \cref{continuous,funs_is_function,funs}.
Take $t\in \apply{U}{i}$ such that $(x,y) = (t,w(t))$ by \cref{funs_elim,function_member_elim,subseteq}.
Hence $x = t$ by \cref{pair_eq_iff}.
Therefore $x\in \apply{U}{i}$ by \cref{subseteq}.
Thus $x\in \apply{U}{i}\inter (X\setminus A)$ by \cref{inter_intro}.
Hence $w(x) = z(x)$ by \cref{subseteq}.
$w$ is a function and $z$ is a function by \cref{continuous,funs_is_function,funs}.
We have $(x,w(x))\in w$ and $(x,z(x))\in z$ by \cref{function_apply_elim}.
Therefore $y = w(x)$ by \cref{function_rightunique}.
Hence $y = z(x)$ by \cref{real_lt_subst_right}.
Thus $v\in z$ by \cref{pair_eq_iff,function_apply_iff}.
\end{byCase}
\end{subproof}
For all $v$ such that $v\in z$ we have $v\in \restrl{u}{W}$
by \cref{relation,pair_eq_iff,funs_elim,function_apply_iff,union_iff,union_intro_right,restrl_iff}.
Therefore $\restrl{u}{W} = z$ by \cref{subseteq,subseteq_antisymmetric}.
Hence $\restrl{u}{W}$ is continuous from $W$ to $\reals$ with respect to
$\subspaceTopology{T}{W}$ and $\standardTopologyR$ by \cref{continuous_eq_subst}.
\end{byCase}
\end{subproof}
$w\in\rels{\apply{U}{i}}{\reals}$ and $z\in\rels{X\setminus A}{\reals}$ and $\ran{u} = \ran{w}\union\ran{z}$
by \cref{funs_subseteq_rels,subseteq,ran_union}.
Hence $\ran{u}\subseteq\reals$ by \cref{rels_ran_subseteq,union_subsets_is_subset}.
Therefore $u\in\funs{X}{\reals}$ by \cref{function_apply_elim,ran_iff,subseteq,funs_intro}.
Hence $u$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$
by \cref{continuous_local}.
Show that for all $x\in A$ we have
$u(x) = p_i(x) \rmul \apply{\piIndex{R_0}{j}\circ h}{x}$.
\begin{subproof}
Fix $x\in A$.
We have $x\in \apply{U}{i}$ by \cref{subseteq}.
$x\notin X\setminus A$ by \cref{setminus_elim_right}.
$u$ is a function and $w$ is a function by \cref{continuous,funs_is_function,funs}.
Hence $(x,w(x))\in w$ by \cref{function_apply_elim}.
Therefore $(x,w(x))\in u$ by \cref{union_iff}.
Hence $u(x) = w(x)$ by \cref{function_apply_intro}.
$w$ is a function and $\dom{w} = \apply{U}{i}$ by \cref{continuous,funs_is_function,funs}.
$x\in\dom{w}$ by \cref{subseteq}.
Therefore $w(x) = r_U(x) \rmul q_0(x)$ by \cref{function_apply_intro}.
$r_U$ is a function and $\dom{r_U} = \apply{U}{i}$ by \cref{continuous,funs_is_function,funs}.
$x\in\dom{r_U}$ by \cref{subseteq}.
$r$ is a function and $\dom{r} = X$ by \cref{continuous,funs_is_function,funs}.
Therefore $\apply{U}{i}\subseteq\dom{r}$ by \cref{subseteq}.
Hence $r_U(x) = r(x)$ by \cref{restrl_of_function_apply}.
Therefore $r(x) = p_i(x)$ by \cref{subseteq}.
$h\in\funs{\apply{U}{i}}{V}$ and $h$ is a function and $\dom{h} = \apply{U}{i}$
by \cref{homeomorphism,bijections,bijections_to_funs,funs_is_function,funs}.
$\identity{V}$ is right-unique and $\identity{V}$ is a relation and $\dom{\identity{V}} = V$
by \cref{id_rightunique,id_is_relation,id_dom}.
We have $h_0(x) = h(x)$ by \cref{circ_apply,funs_ran,subseteq,funs_type_apply,id_apply}.
$q_0$ is a function and $\dom{q_0} = \apply{U}{i}$ by \cref{continuous,funs_is_function,funs}.
$h_0$ is a function and $\dom{h_0} = \apply{U}{i}$ by \cref{continuous,funs_is_function,funs}.
Hence $(x,h_0(x))\in h_0$ by \cref{function_apply_elim}.
We have $h_0(x)\in\productFamily{R_0}$ by \cref{continuous,funs_type_apply}.
Therefore $(h_0(x),\apply{h_0(x)}{j})\in \piIndex{R_0}{j}$ by \cref{projection_map_indexed}.
Hence $(x,\apply{h_0(x)}{j})\in q_0$ by \cref{circ_iff}.
$q_0(x) = \apply{h_0(x)}{j}$ by \cref{function_apply_intro}.
Therefore $q_0(x) = \apply{h(x)}{j}$ by \cref{real_lt_subst_right}.
$h\in\funs{\apply{U}{i}}{\productFamily{R_0}}$ by \cref{funs_weaken_codom,subseteq}.
$\piIndex{R_0}{j}\circ h\in\funs{\apply{U}{i}}{\reals}$ by \cref{projection_map_indexed_function,funs_circ,funs_elim}.
We have $\piIndex{R_0}{j}\circ h$ is a function by \cref{funs_is_function}.
Hence $(x,h(x))\in h$ by \cref{function_apply_elim}.
Therefore $(h(x),\apply{h(x)}{j})\in \piIndex{R_0}{j}$ by \cref{projection_map_indexed,subseteq}.
Hence $(x,\apply{h(x)}{j})\in \piIndex{R_0}{j}\circ h$ by \cref{circ_iff}.
$\apply{\piIndex{R_0}{j}\circ h}{x} = \apply{h(x)}{j}$ by \cref{function_apply_intro}.
Therefore $u(x) = p_i(x) \rmul \apply{\piIndex{R_0}{j}\circ h}{x}$ by \cref{real_lt_subst_left,real_lt_subst_right}.
\end{subproof}
Show that for all $x\in X\setminus A$ we have $u(x) = 0$.
\begin{subproof}
Follows by \cref{continuous,funs_is_function,funs,function_apply_elim,union_iff,function_apply_intro,funs_elim,subseteq,constant_map_function}.
\end{subproof}
\end{proof}
Assume $r\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Assume $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Assume $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$.
Assume $0 < r$.
Suppose $r \rmul a = r \rmul b$.
Then $a = b$.
LaTeX source
\begin{lemma}
\label{positive_real_factor_cancel}
Assume $r\in\reals$.
Assume $a\in\reals$.
Assume $b\in\reals$.
Assume $0 < r$.
Suppose $r \rmul a = r \rmul b$.
Then $a = b$.
\end{lemma}
Proof
Follows by Lemma 20, Proposition 443.
LaTeX source
\begin{proof}
Follows by \cref{real_pos_nonzero,real_mul_cancel}.
\end{proof}
Assume $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Let $R_0 = \{(k,\reals) \mid k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}\}$.
Assume $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{R_0}$.
Assume $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{R_0}$.
Suppose for all $j\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}$ we have $x(j) = y(j)$.
Then $x = y$.
LaTeX source
\begin{lemma}
\label{finite_real_product_coordinate_extensionality}
Assume $m\in\naturalsPlus$.
Let $R_0 = \{(k,\reals) \mid k\in\initialSegment{m}\}$.
Assume $x\in\productFamily{R_0}$.
Assume $y\in\productFamily{R_0}$.
Suppose for all $j\in\initialSegment{m}$ we have $x(j) = y(j)$.
Then $x = y$.
\end{lemma}
Proof
$R_0$ is a function on $\initialSegment{m}$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{m}}{\reals}$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{m}}{\reals}$ by Axiom 42, Axiom 43, Definition 1, Definition 84, Definition 166, Definition 191, Lemma 209.
Therefore $x = y$ by Definition 1, Definition 55, Definition 166, Definition 191, Lemma 438, Proposition 356.
LaTeX source
\begin{proof}
$R_0$ is a function on $\initialSegment{m}$ by \cref{relation,rightunique,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
Hence $x\in\funs{\initialSegment{m}}{\reals}$ and $y\in\funs{\initialSegment{m}}{\reals}$
by \cref{real_one_in_naturals,real_one_leq_naturalsplus,initial_segment_naturalsplus,product_family_reals_power,reals_power,tuple_power,subseteq}.
Therefore $x = y$ by \cref{reals_power,tuple_power,subseteq,funs_is_function,funs,functions_eq_iff}.
\end{proof}
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$.
Assume $\sumFiniteSequence{a}{1}$.
Suppose for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} a(i)$.
Then there exists $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ such that $0 < a(i)$.
LaTeX source
\begin{lemma}
\label{finite_real_sum_one_positive_term}
Assume $n\in\naturalsPlus$.
Assume $a\in\funs{\initialSegment{n}}{\reals}$.
Assume $\sumFiniteSequence{a}{1}$.
Suppose for all $i\in\initialSegment{n}$ we have $0 \leq a(i)$.
Then there exists $i\in\initialSegment{n}$ such that $0 < a(i)$.
\end{lemma}
Proof
Suppose not.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $a(i) = 0$ by Lemma 81.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17.
Therefore $1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} n \rmul 0$ by Lemma 217.
$n\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $1\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 41, Axiom 42, Definition 1.
Thus $1 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} 0$ by Axiom 20, Lemma 83, Proposition 439.
Hence $1 = 0$ by Lemma 25, Lemma 231, Proposition 462.
Contradiction by Axiom 39, Lemma 83, Proposition 462.
LaTeX source
\begin{proof}
Suppose not.
For all $i\in\initialSegment{n}$ we have $a(i) = 0$ by \cref{real_leq_split}.
$0\in\reals$ by \cref{real_add_ident}.
Therefore $1 \leq n \rmul 0$ by \cref{sum_finite_sequence_leq_n_times}.
$n\in\reals$ and $1\in\reals$ by \cref{real_naturals_subset_reals,subseteq,real_one_in_naturals}.
Thus $1 \leq 0$ by \cref{real_mul_zero,real_mul_comm,real_lt_subst_right}.
Hence $1 = 0$ by \cref{real_zero_lt_one,real_lt_imp_leq,real_leq_antisym}.
Contradiction by \cref{real_zero_lt_one,real_lt_irreflexive,real_lt_subst_right}.
\end{proof}
$\finiteReindexAgreement{f}{h}{c}{J}$ iff for all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\apply{f}{\apply{h}{p}} = \apply{c}{p}$.
LaTeX source
\begin{definition}
\label{finite_reindex_agreement}
$\finiteReindexAgreement{f}{h}{c}{J}$ iff
for all $p\in J$ we have $\apply{f}{\apply{h}{p}} = \apply{c}{p}$.
\end{definition}
Assume $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $T$ is a topology on $X$.
Let $J = \initialSegment{n}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{m}$.
Assume $c$ is a function on $J$.
Suppose for all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\apply{c}{p}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$.
Then there exist $N,h,f$ such that $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\inj{J}{\initialSegment{N}}$ and $f$ is a function on $\initialSegment{N}$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}$ we have $\apply{f}{k}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and $\finiteReindexAgreement{f}{h}{c}{J}$.
LaTeX source
\begin{lemma}
\label{finite_grid_continuous_reindex}
Assume $m\in\naturalsPlus$.
Assume $n\in\naturalsPlus$.
Assume $T$ is a topology on $X$.
Let $J = \initialSegment{n}\times\initialSegment{m}$.
Assume $c$ is a function on $J$.
Suppose for all $p\in J$ we have $\apply{c}{p}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$.
Then there exist $N,h,f$ such that
$N\in\naturalsPlus$ and
$h\in\inj{J}{\initialSegment{N}}$ and
$f$ is a function on $\initialSegment{N}$ and
for all $k\in\initialSegment{N}$ we have $\apply{f}{k}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and
$\finiteReindexAgreement{f}{h}{c}{J}$.
\end{lemma}
Proof
$J$ is finite by Lemma 561.
Take $g$ such that $g\class{latex-symbol-tip latex-symbol-id-in}{\in}\inj{\naturalsPlus\class{latex-symbol-tip latex-symbol-id-times}{\times}\naturalsPlus}{\naturalsPlus}$ by Lemma 437.
Let $h = \restrl{g}{J}$.
$g\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\naturalsPlus\class{latex-symbol-tip latex-symbol-id-times}{\times}\naturalsPlus}{\naturalsPlus}$ by Definition 56.
We have $g$ is a function and $g$ is a relation and $\dom{g} = \naturalsPlus\class{latex-symbol-tip latex-symbol-id-times}{\times}\naturalsPlus$ by Definition 55, Proposition 355, Proposition 356.
For all $p_1,p_2$ such that $p_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ and $p_2\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{g}$ and $g(p_1) = g(p_2)$ we have $p_1 = p_2$ by Definition 1, Definition 56.
Hence $g$ is injective by Proposition 386.
$h$ is a function by Proposition 383.
For all $p$ such that $p\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus\class{latex-symbol-tip latex-symbol-id-times}{\times}\naturalsPlus$ by Axiom 6, Definition 84, Proposition 115, Proposition 121.
Therefore $J\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus\class{latex-symbol-tip latex-symbol-id-times}{\times}\naturalsPlus$ by Definition 1.
Hence $\dom{h} = J$ by Definition 55, Proposition 70, Corollary 3.
For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ we have $h(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Definition 1, Definition 55, Definition 56, Definition 84, Proposition 361, Proposition 384.
We have $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\naturalsPlus}$ by Proposition 358.
For all $p_1,p_2$ such that $p_1\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ and $p_2\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ and $h(p_1) = h(p_2)$ we have $p_1 = p_2$ by Axiom 6, Definition 1, Definition 55, Definition 84, Proposition 384, Proposition 386.
Hence $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\inj{J}{\naturalsPlus}$ by Definition 56.
Let $A = \img{h}{J}$.
Therefore $A$ is finite by Definition 55, Definition 56, Lemma 192, Proposition 355, Proposition 356.
We have $(1,1)\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ by Axiom 42, Axiom 43, Definition 84, Proposition 115.
Hence $h((1,1))\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Definition 56, Proposition 61, Proposition 364.
We have $A\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ by Lemma 323, Proposition 10.
We have $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\naturalsPlus$ by Definition 1, Definition 56, Proposition 6, Proposition 237, Proposition 284, Proposition 357.
Hence $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\reals$ by Axiom 41, Definition 1, Proposition 6.
Take $N\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $N$ is a maximum of $A$ by Lemma 47.
For all $k$ such that $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}$ by Definition 1, Definition 73, Definition 84.
Therefore $A\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\initialSegment{N}$ by Definition 1.
For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{h}$ we have $h(p)\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}$ by Definition 1, Definition 56, Proposition 61, Proposition 364.
We have $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{J}{\initialSegment{N}}$ by Proposition 358.
For all $p_1,p_2$ such that $p_1\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ and $p_2\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ and $h(p_1) = h(p_2)$ we have $p_1 = p_2$ by Definition 56.
Hence $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\inj{J}{\initialSegment{N}}$ by Definition 56.
Let $z = \{(x,0) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\}$.
$0\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 17.
$\standardTopologyR$ is a topology on $\reals$ by Definition 118, Lemma 76, Lemma 93.
$z$ is a function from $X$ to $\reals$ by Lemma 309.
Therefore for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $z(x) = 0$ by Lemma 309, Proposition 346, Proposition 356.
$z$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by Definition 118, Lemma 163.
Let $f_1 = \{(h(p),c(p)) \mid p\class{latex-symbol-tip latex-symbol-id-in}{\in} J\}$.
For all $k,u_1,u_2$ such that $(k,u_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} f_1$ and $(k,u_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} f_1$ we have $u_1 = u_2$ by Axiom 6, Definition 56.
Therefore $f_1$ is a relation and $f_1$ is right-unique by Axiom 6, Definition 12, Definition 51, Definition 56.
For all $k$ such that $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ we have $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{f_1}$ by Axiom 6, Definition 55, Definition 56, Proposition 200, Proposition 235, Proposition 345, Proposition 346, Proposition 355, Proposition 356.
For all $k$ such that $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{f_1}$ we have $k\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 6, Definition 1, Definition 56, Proposition 199, Proposition 235, Proposition 348, Proposition 359.
Hence $\dom{f_1} = A$ by Definition 1, Proposition 3.
Let $f_2 = \{(k,z) \mid k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A\}$.
For all $k,u_1,u_2$ such that $(k,u_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} f_2$ and $(k,u_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} f_2$ we have $u_1 = u_2$ by Axiom 6.
We have $f_2$ is a relation and $f_2$ is right-unique by Axiom 6, Definition 12, Definition 51.
Hence $\dom{f_2} = \initialSegment{N}\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ by Axiom 6, Definition 1, Proposition 3, Proposition 199.
Let $f = f_1\union f_2$.
For all $k$ such that $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{f_1}\inter\dom{f_2}$ we have $f_1(k) = f_2(k)$.
Therefore $f$ is a function on $\initialSegment{N}$ by Axiom 6, Definition 1, Definition 55, Lemma 170, Proposition 107, Proposition 205.
Claim: For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}$ we have $f(k)$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$.
Fix $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}$.
Take $p\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ such that $(p,k)\class{latex-symbol-tip latex-symbol-id-in}{\in} h$ by Definition 56, Proposition 235.
We have $k = h(p)$ by Proposition 346.
Hence $(k,c(p))\class{latex-symbol-tip latex-symbol-id-in}{\in} f$ by Axiom 5, Axiom 6, Proposition 38.
$f(k) = c(p)$ by Proposition 346.
Therefore $f(k)$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by Lemma 367.
We have $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A$ by Proposition 85.
Hence $(k,z)\class{latex-symbol-tip latex-symbol-id-in}{\in} f$ by Axiom 5, Axiom 6, Proposition 39.
$f(k) = z$ by Proposition 346.
Hence $f(k)$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by Lemma 367.
LaTeX source
\begin{byCase}
\caseOf{$k\in A$.}
Take $p\in J$ such that $(p,k)\in h$ by \cref{inj,img_iff}.
We have $k = h(p)$ by \cref{function_apply_intro}.
Hence $(k,c(p))\in f$ by \cref{pair_eq_iff,union_iff,union_intro_left}.
$f(k) = c(p)$ by \cref{function_apply_intro}.
Therefore $f(k)$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by \cref{continuous_eq_subst}.
\caseOf{$k\notin A$.}
We have $k\in\initialSegment{N}\setminus A$ by \cref{setminus_intro}.
Hence $(k,z)\in f$ by \cref{pair_eq_iff,union_iff,union_intro_right}.
$f(k) = z$ by \cref{function_apply_intro}.
Hence $f(k)$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by \cref{continuous_eq_subst}.
\end{byCase}
Claim: For all $p\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\apply{f}{\apply{h}{p}} = \apply{c}{p}$.
Therefore $\finiteReindexAgreement{f}{h}{c}{J}$ by Definition 302.
LaTeX source
\begin{proof}
$J$ is finite by \cref{initial_segment_grid_finite}.
Take $g$ such that $g\in\inj{\naturalsPlus\times\naturalsPlus}{\naturalsPlus}$ by \cref{naturalsplus_pairing_injection}.
Let $h = \restrl{g}{J}$.
$g\in\funs{\naturalsPlus\times\naturalsPlus}{\naturalsPlus}$ by \cref{inj}.
We have $g$ is a function and $g$ is a relation and $\dom{g} = \naturalsPlus\times\naturalsPlus$
by \cref{funs_is_function,funs_is_relation,funs}.
For all $p_1,p_2$ such that $p_1\in\dom{g}$ and $p_2\in\dom{g}$ and $g(p_1) = g(p_2)$ we have $p_1 = p_2$
by \cref{subseteq,inj}.
Hence $g$ is injective by \cref{injective_function}.
$h$ is a function by \cref{restrl_of_function_is_function}.
For all $p$ such that $p\in J$ we have $p\in\naturalsPlus\times\naturalsPlus$ by
\cref{times_elem_is_tuple,initial_segment_naturalsplus,times_tuple_intro,pair_eq_iff}.
Therefore $J\subseteq\naturalsPlus\times\naturalsPlus$ by \cref{subseteq}.
Hence $\dom{h} = J$ by \cref{funs,dom_of_restrl_eq_inter,inter_absorb_supseteq_left}.
For all $p\in\dom{h}$ we have $h(p)\in\naturalsPlus$ by
\cref{subseteq,initial_segment_naturalsplus,funs,restrl_of_function_apply,inj,funs_type_apply}.
We have $h\in\funs{J}{\naturalsPlus}$ by \cref{funs_intro}.
For all $p_1,p_2$ such that $p_1\in J$ and $p_2\in J$ and $h(p_1) = h(p_2)$ we have $p_1 = p_2$ by
\cref{subseteq,initial_segment_naturalsplus,funs,restrl_of_function_apply,pair_eq_iff,injective_function}.
Hence $h\in\inj{J}{\naturalsPlus}$ by \cref{inj}.
Let $A = \img{h}{J}$.
Therefore $A$ is finite by \cref{inj,funs_is_function,funs_is_relation,funs,finite_image_function}.
We have $(1,1)\in J$ by \cref{real_one_in_naturals,real_one_leq_naturalsplus,initial_segment_naturalsplus,times_tuple_intro}.
Hence $h((1,1))\in A$ by \cref{inj,img_of_function_intro,inter_intro}.
We have $A\neq\emptyset$ by \cref{inhabited_nonempty,nonempty_inhabited}.
We have $A\subseteq\naturalsPlus$ by \cref{inj,funs_subseteq_rels,subseteq,rels_ran_subseteq,img_subseteq_ran,subseteq_transitive}.
Hence $A\subseteq\reals$ by \cref{subseteq,real_naturals_subset_reals,subseteq_transitive}.
Take $N\in A$ such that $N$ is a maximum of $A$ by \cref{finite_real_maximum}.
For all $k$ such that $k\in A$ we have $k\in\initialSegment{N}$ by
\cref{subseteq,real_maximum,initial_segment_naturalsplus}.
Therefore $A\subseteq\initialSegment{N}$ by \cref{subseteq}.
For all $p\in\dom{h}$ we have $h(p)\in\initialSegment{N}$ by \cref{subseteq,inj,img_of_function_intro,inter_intro}.
We have $h\in\funs{J}{\initialSegment{N}}$ by \cref{funs_intro}.
For all $p_1,p_2$ such that $p_1\in J$ and $p_2\in J$ and $h(p_1) = h(p_2)$ we have $p_1 = p_2$
by \cref{inj}.
Hence $h\in\inj{J}{\initialSegment{N}}$ by \cref{inj}.
Let $z = \{(x,0) \mid x\in X\}$.
$0\in\reals$ by \cref{real_add_ident}.
$\standardTopologyR$ is a topology on $\reals$
by \cref{standard_basis_is_basis,basis_topology_is_topology,standard_topology_reals}.
$z$ is a function from $X$ to $\reals$ by \cref{constant_map_function}.
Therefore for all $x\in X$ we have $z(x) = 0$ by \cref{constant_map_function,funs_is_function,function_apply_intro}.
$z$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by \cref{constant_continuous,standard_topology_reals}.
Let $f_1 = \{(h(p),c(p)) \mid p\in J\}$.
For all $k,u_1,u_2$ such that $(k,u_1)\in f_1$ and $(k,u_2)\in f_1$ we have $u_1 = u_2$ by
\cref{pair_eq_iff,inj}.
Therefore $f_1$ is a relation and $f_1$ is right-unique by \cref{relation,pair_eq_iff,inj,rightunique}.
For all $k$ such that $k\in A$ we have $k\in\dom{f_1}$
by \cref{inj,funs,funs_is_function,function_rightunique,funs_is_relation,img_iff,function_apply_intro,pair_eq_iff,dom_intro}.
For all $k$ such that $k\in\dom{f_1}$ we have $k\in A$
by \cref{dom_iff,pair_eq_iff,inj,funs_elim,subseteq,function_apply_elim,img_iff}.
Hence $\dom{f_1} = A$ by \cref{subseteq,subseteq_antisymmetric}.
Let $f_2 = \{(k,z) \mid k\in\initialSegment{N}\setminus A\}$.
For all $k,u_1,u_2$ such that $(k,u_1)\in f_2$ and $(k,u_2)\in f_2$ we have $u_1 = u_2$ by \cref{pair_eq_iff}.
We have $f_2$ is a relation and $f_2$ is right-unique by \cref{relation,pair_eq_iff,rightunique}.
Hence $\dom{f_2} = \initialSegment{N}\setminus A$ by \cref{dom_iff,subseteq,subseteq_antisymmetric,pair_eq_iff}.
Let $f = f_1\union f_2$.
For all $k$ such that $k\in\dom{f_1}\inter\dom{f_2}$ we have $f_1(k) = f_2(k)$.
Therefore $f$ is a function on $\initialSegment{N}$
by \cref{union_compatible_functions,dom_union,pair_eq_iff,setminus_partition,subseteq,funs}.
Show that for all $k\in\initialSegment{N}$ we have $f(k)$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$.
\begin{subproof}
Fix $k\in\initialSegment{N}$.
\begin{byCase}
\caseOf{$k\in A$.}
Take $p\in J$ such that $(p,k)\in h$ by \cref{inj,img_iff}.
We have $k = h(p)$ by \cref{function_apply_intro}.
Hence $(k,c(p))\in f$ by \cref{pair_eq_iff,union_iff,union_intro_left}.
$f(k) = c(p)$ by \cref{function_apply_intro}.
Therefore $f(k)$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by \cref{continuous_eq_subst}.
\caseOf{$k\notin A$.}
We have $k\in\initialSegment{N}\setminus A$ by \cref{setminus_intro}.
Hence $(k,z)\in f$ by \cref{pair_eq_iff,union_iff,union_intro_right}.
$f(k) = z$ by \cref{function_apply_intro}.
Hence $f(k)$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by \cref{continuous_eq_subst}.
\end{byCase}
\end{subproof}
Show that for all $p\in J$ we have $\apply{f}{\apply{h}{p}} = \apply{c}{p}$.
\begin{subproof}
Follows by \cref{inj,funs_elim,function_apply_elim,img_iff,pair_eq_iff,union_iff,union_intro_left,function_apply_intro,funs_type_apply}.
\end{subproof}
Therefore $\finiteReindexAgreement{f}{h}{c}{J}$ by \cref{finite_reindex_agreement}.
\end{proof}
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $T$ is a topology on $X$.
Assume $f$ is a function on $\initialSegment{n}$.
Suppose for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{f}{i}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$.
Let $R = \{(i,\reals) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\}$.
Let $S = \{(i,\standardTopologyR) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\}$.
Let $P = \productTopologyIndexed{S}{R}$.
Let $F = \{(x,z) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X, z\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{R} \mid \class{latex-symbol-tip latex-symbol-id-forall}{\forall} i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}. z(i) = \apply{\apply{f}{i}}{x}\}$.
Then $F$ is a function from $X$ to $\productFamily{R}$ and $F$ is continuous from $X$ to $\productFamily{R}$ with respect to $T$ and $P$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{\apply{F}{x}}{i} = \apply{\apply{f}{i}}{x}$.
LaTeX source
\begin{lemma}
\label{finite_real_family_evaluation_map}
Assume $n\in\naturalsPlus$.
Assume $T$ is a topology on $X$.
Assume $f$ is a function on $\initialSegment{n}$.
Suppose for all $i\in\initialSegment{n}$ we have $\apply{f}{i}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$.
Let $R = \{(i,\reals) \mid i\in\initialSegment{n}\}$.
Let $S = \{(i,\standardTopologyR) \mid i\in\initialSegment{n}\}$.
Let $P = \productTopologyIndexed{S}{R}$.
Let $F = \{(x,z) \mid x\in X, z\in\productFamily{R} \mid
\forall i\in\initialSegment{n}. z(i) = \apply{\apply{f}{i}}{x}\}$.
Then $F$ is a function from $X$ to $\productFamily{R}$ and
$F$ is continuous from $X$ to $\productFamily{R}$ with respect to $T$ and $P$ and
for all $x\in X$ for all $i\in\initialSegment{n}$ we have $\apply{\apply{F}{x}}{i} = \apply{\apply{f}{i}}{x}$.
\end{lemma}
Proof
$\standardTopologyR$ is a topology on $\reals$ by Definition 118, Lemma 76, Lemma 93.
For all $i,y_1,y_2$ such that $(i,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ and $(i,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ we have $y_1 = y_2$ by Axiom 6.
Hence $R$ is a function on $\initialSegment{n}$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
For all $i,y_1,y_2$ such that $(i,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ and $(i,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ we have $y_1 = y_2$ by Axiom 6.
Therefore $S$ is a function on $\initialSegment{n}$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $S(i) = \standardTopologyR$ and $R(i) = \reals$ by Definition 55, Proposition 346.
We have $1\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ by Axiom 42, Axiom 43, Definition 84.
$\productFamily{R} = \realsPower{\initialSegment{n}}$ by Lemma 209.
$P$ is a topology on $\productFamily{R}$ by Definition 115, Definition 118, Lemma 76, Lemma 176, Lemma 177.
For all $x,z_1,z_2$ such that $(x,z_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ and $(x,z_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ we have $z_1 = z_2$ by Axiom 6, Lemma 565.
Hence $F$ is a function by Axiom 6, Definition 12, Definition 51, Lemma 565.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ there exists $z$ such that $(x,z)\class{latex-symbol-tip latex-symbol-id-in}{\in} F$.
Fix $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Let $z = \{(i,\apply{\apply{f}{i}}{x}) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\}$.
For all $i,y_1,y_2$ such that $(i,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} z$ and $(i,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} z$ we have $y_1 = y_2$ by Axiom 6.
Therefore $z$ is a function by Axiom 6, Definition 12, Definition 51.
We have $\dom{z} = \initialSegment{n}$ by Axiom 6, Definition 1, Proposition 3, Proposition 199, Proposition 200.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{z}$ we have $z(i)\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Axiom 6, Definition 160, Proposition 199, Proposition 346, Proposition 361.
Hence $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{R}$ by Definition 1, Definition 166, Definition 191, Proposition 358.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $z(i) = \apply{\apply{f}{i}}{x}$ by Proposition 346.
Therefore $(x,z)\class{latex-symbol-tip latex-symbol-id-in}{\in} F$ by Axiom 6.
Hence $\dom{F} = X$ by Axiom 6, Definition 1, Proposition 3, Proposition 199.
For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{F}$ we have $F(x)\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{R}$ by Axiom 6, Proposition 349.
Therefore $F\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{\productFamily{R}}$ by Proposition 358.
Claim: For all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{\apply{F}{x}}{i} = \apply{\apply{f}{i}}{x}$.
Follows by Axiom 6, Proposition 348, Proposition 359.
Claim: For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\piIndex{R}{i}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} F$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$.
Hence $F$ is continuous from $X$ to $\productFamily{R}$ with respect to $T$ and $P$ by Definition 1, Definition 55, Definition 118, Lemma 76, Lemma 93, Lemma 193, Lemma 209.
LaTeX source
\begin{proof}
$\standardTopologyR$ is a topology on $\reals$
by \cref{standard_basis_is_basis,basis_topology_is_topology,standard_topology_reals}.
For all $i,y_1,y_2$ such that $(i,y_1)\in R$ and $(i,y_2)\in R$ we have $y_1 = y_2$ by \cref{pair_eq_iff}.
Hence $R$ is a function on $\initialSegment{n}$ by \cref{relation,rightunique,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
For all $i,y_1,y_2$ such that $(i,y_1)\in S$ and $(i,y_2)\in S$ we have $y_1 = y_2$ by \cref{pair_eq_iff}.
Therefore $S$ is a function on $\initialSegment{n}$ by \cref{relation,rightunique,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
For all $i\in\initialSegment{n}$ we have $S(i) = \standardTopologyR$ and $R(i) = \reals$
by \cref{funs,function_apply_intro}.
We have $1\in\initialSegment{n}$ by \cref{real_one_in_naturals,real_one_leq_naturalsplus,initial_segment_naturalsplus}.
$\productFamily{R} = \realsPower{\initialSegment{n}}$ by \cref{product_family_reals_power}.
$P$ is a topology on $\productFamily{R}$
by \cref{product_subbasis_is_subbasis,product_subbasis_finite_intersections_basis,basis_topology_is_topology,basis_for_topology,standard_topology_reals}.
For all $x,z_1,z_2$ such that $(x,z_1)\in F$ and $(x,z_2)\in F$ we have $z_1 = z_2$
by \cref{pair_eq_iff,finite_real_product_coordinate_extensionality}.
Hence $F$ is a function by \cref{relation,rightunique,pair_eq_iff,finite_real_product_coordinate_extensionality}.
Show that for all $x\in X$ there exists $z$ such that $(x,z)\in F$.
\begin{subproof}
Fix $x\in X$.
Let $z = \{(i,\apply{\apply{f}{i}}{x}) \mid i\in\initialSegment{n}\}$.
For all $i,y_1,y_2$ such that $(i,y_1)\in z$ and $(i,y_2)\in z$ we have $y_1 = y_2$ by \cref{pair_eq_iff}.
Therefore $z$ is a function by \cref{relation,rightunique,pair_eq_iff}.
We have $\dom{z} = \initialSegment{n}$ by \cref{dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
For all $i\in\dom{z}$ we have $z(i)\in\reals$
by \cref{dom_iff,pair_eq_iff,continuous,funs_type_apply,function_apply_intro}.
Hence $z\in\productFamily{R}$ by \cref{funs_intro,reals_power,tuple_power,subseteq}.
For all $i\in\initialSegment{n}$ we have $z(i) = \apply{\apply{f}{i}}{x}$ by \cref{function_apply_intro}.
Therefore $(x,z)\in F$ by \cref{pair_eq_iff}.
\end{subproof}
Hence $\dom{F} = X$ by \cref{subseteq,dom_iff,pair_eq_iff,subseteq_antisymmetric}.
For all $x\in\dom{F}$ we have $F(x)\in\productFamily{R}$ by \cref{function_apply_iff,pair_eq_iff}.
Therefore $F\in\funs{X}{\productFamily{R}}$ by \cref{funs_intro}.
Show that for all $x\in X$ for all $i\in\initialSegment{n}$ we have $\apply{\apply{F}{x}}{i} = \apply{\apply{f}{i}}{x}$.
\begin{subproof}
Follows by \cref{funs_elim,function_apply_elim,pair_eq_iff}.
\end{subproof}
Show that for all $i\in\initialSegment{n}$ we have $\piIndex{R}{i}\circ F$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$.
\begin{subproof}
Follows by \cref{projection_map_indexed_function,funs_circ,funs_elim,continuous,funs_is_function,funs_type_apply,projection_map_indexed,function_apply_elim,circ_elem_intro,function_apply_intro,pair_eq_iff,functions_eq_iff,continuous_eq_subst}.
\end{subproof}
Hence $F$ is continuous from $X$ to $\productFamily{R}$ with respect to $T$ and $P$
by \cref{continuous_map_into_indexed_product,standard_basis_is_basis,basis_topology_is_topology,standard_topology_reals,product_family_reals_power,funs,subseteq}.
\end{proof}
Assume $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $X$ is a manifold of dimension $m$ with respect to $T$.
Assume $X$ is compact with respect to $T$.
Assume $X = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
Let $n = 1$.
Let $R = \{(i,\reals) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\}$.
Let $S = \{(i,\standardTopologyR) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\}$.
Let $f = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
Then $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $f$ is a topological embedding from $X$ to $\productFamily{R}$ with respect to $T$ and $\productTopologyIndexed{S}{R}$.
LaTeX source
\begin{lemma}
\label{compact_manifold_empty_embeds_in_euclidean_space}
Assume $m\in\naturalsPlus$.
Assume $X$ is a manifold of dimension $m$ with respect to $T$.
Assume $X$ is compact with respect to $T$.
Assume $X = \emptyset$.
Let $n = 1$.
Let $R = \{(i,\reals) \mid i\in\initialSegment{n}\}$.
Let $S = \{(i,\standardTopologyR) \mid i\in\initialSegment{n}\}$.
Let $f = \emptyset$.
Then $n\in\naturalsPlus$ and
$f$ is a topological embedding from $X$ to $\productFamily{R}$ with respect to $T$ and $\productTopologyIndexed{S}{R}$.
\end{lemma}
Proof
$X$ is Hausdorff with respect to $T$ by Definition 292.
Hence $T$ is a topology on $X$ by Definition 156.
Let $P = \productTopologyIndexed{S}{R}$.
$\standardTopologyR$ is a topology on $\reals$ by Definition 118, Lemma 76, Lemma 93.
For all $i,y_1,y_2$ such that $(i,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ and $(i,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ we have $y_1 = y_2$ by Axiom 6.
Therefore $R$ is a function on $\initialSegment{n}$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
For all $i,y_1,y_2$ such that $(i,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ and $(i,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} S$ we have $y_1 = y_2$ by Axiom 6.
$S$ is a function on $\initialSegment{n}$ by Axiom 6, Definition 1, Definition 12, Definition 51, Proposition 3, Proposition 199, Proposition 200.
For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{R}{i} = \reals$ and $\apply{S}{i} = \standardTopologyR$ by Definition 55, Proposition 346.
We have $\initialSegment{n}$ is inhabited by Axiom 42, Axiom 43, Definition 84.
$P$ is a topology on $\productFamily{R}$ by Definition 115, Definition 118, Lemma 76, Lemma 176, Lemma 177.
Claim: $f$ is a topological embedding from $X$ to $\productFamily{R}$ with respect to $T$ and $P$.
Follows by Lemma 520.
Hence $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $f$ is a topological embedding from $X$ to $\productFamily{R}$ with respect to $T$ and $\productTopologyIndexed{S}{R}$.
LaTeX source
\begin{proof}
$X$ is Hausdorff with respect to $T$ by \cref{m_manifold}.
Hence $T$ is a topology on $X$ by \cref{hausdorff}.
Let $P = \productTopologyIndexed{S}{R}$.
$\standardTopologyR$ is a topology on $\reals$
by \cref{standard_basis_is_basis,basis_topology_is_topology,standard_topology_reals}.
For all $i,y_1,y_2$ such that $(i,y_1)\in R$ and $(i,y_2)\in R$ we have $y_1 = y_2$ by \cref{pair_eq_iff}.
Therefore $R$ is a function on $\initialSegment{n}$ by \cref{relation,rightunique,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
For all $i,y_1,y_2$ such that $(i,y_1)\in S$ and $(i,y_2)\in S$ we have $y_1 = y_2$ by \cref{pair_eq_iff}.
$S$ is a function on $\initialSegment{n}$ by \cref{relation,rightunique,dom_intro,dom_iff,pair_eq_iff,subseteq,subseteq_antisymmetric}.
For all $i\in\initialSegment{n}$ we have $\apply{R}{i} = \reals$ and $\apply{S}{i} = \standardTopologyR$
by \cref{funs,function_apply_intro}.
We have $\initialSegment{n}$ is inhabited by \cref{real_one_in_naturals,real_one_leq_naturalsplus,initial_segment_naturalsplus}.
$P$ is a topology on $\productFamily{R}$
by \cref{product_subbasis_is_subbasis,product_subbasis_finite_intersections_basis,basis_topology_is_topology,basis_for_topology,standard_topology_reals}.
Show that $f$ is a topological embedding from $X$ to $\productFamily{R}$ with respect to $T$ and $P$.
\begin{subproof}
Follows by \cref{empty_domain_topological_embedding}.
\end{subproof}
Hence $n\in\naturalsPlus$ and
$f$ is a topological embedding from $X$ to $\productFamily{R}$ with respect to $T$ and $\productTopologyIndexed{S}{R}$.
\end{proof}
Assume $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $U$ is a function on $\initialSegment{n}$.
Assume for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ there exist $V,h$ such that $\apply{U}{i}$ is open in $X$ with respect to $T$ and $V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and $h$ is a homeomorphism between $\apply{U}{i}$ and $V$ with respect to $\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V}$ and $\img{U}{\initialSegment{n}}$ is a covering of $X$.
Then $\img{U}{\initialSegment{n}}$ is a covering of $X$.
LaTeX source
\begin{lemma}
\label{chart_cover_witness_is_covering}
Assume $n\in\naturalsPlus$.
Assume $U$ is a function on $\initialSegment{n}$.
Assume for all $i\in\initialSegment{n}$ there exist $V,h$ such that
$\apply{U}{i}$ is open in $X$ with respect to $T$ and
$V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h$ is a homeomorphism between $\apply{U}{i}$ and $V$ with respect to
$\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V}$ and
$\img{U}{\initialSegment{n}}$ is a covering of $X$.
Then $\img{U}{\initialSegment{n}}$ is a covering of $X$.
\end{lemma}
Proof
Follows by Axiom 42, Axiom 43, Definition 84.
LaTeX source
\begin{proof}
Follows by \cref{real_one_in_naturals,real_one_leq_naturalsplus,initial_segment_naturalsplus}.
\end{proof}
Assume $p$ is a partition of unity on $X$ dominated by $U$ with respect to $T$ and $n$.
Assume $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Then there exists $a$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $a(i) = \apply{\apply{p}{i}}{x}$ and $\sumFiniteSequence{a}{1}$.
LaTeX source
\begin{lemma}
\label{finite_partition_of_unity_sum_witness}
Assume $p$ is a partition of unity on $X$ dominated by $U$ with respect to $T$ and $n$.
Assume $x\in X$.
Then there exists $a$ such that
$a\in\funs{\initialSegment{n}}{\reals}$ and
for all $i\in\initialSegment{n}$ we have
$a(i) = \apply{\apply{p}{i}}{x}$ and
$\sumFiniteSequence{a}{1}$.
\end{lemma}
Proof
Follows by Axiom 42, Axiom 43, Definition 84, Definition 295, Definition 296.
LaTeX source
\begin{proof}
Follows by \cref{finite_partition_of_unity,real_one_in_naturals,real_one_leq_naturalsplus,initial_segment_naturalsplus,finite_partition_sum_condition}.
\end{proof}
Assume $p$ is a partition of unity on $X$ dominated by $U$ with respect to $T$ and $n$.
Assume $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$.
Assume $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Suppose $0 < \apply{\apply{p}{i}}{x}$.
Then $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \supp{\apply{p}{i}}{X}{T}$.
LaTeX source
\begin{lemma}
\label{positive_partition_component_in_support}
Assume $p$ is a partition of unity on $X$ dominated by $U$ with respect to $T$ and $n$.
Assume $i\in\initialSegment{n}$.
Assume $x\in X$.
Suppose $0 < \apply{\apply{p}{i}}{x}$.
Then $x\in \supp{\apply{p}{i}}{X}{T}$.
\end{lemma}
Proof
Let $A = \supp{\apply{p}{i}}{X}{T}$.
Let $B = X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} \preimg{\apply{p}{i}}{\{0\}}$.
$\apply{p}{i}$ is continuous from $X$ to $\intervalclosed{0}{1}$ with respect to $T$ and $\subspaceTopology{\standardTopologyR}{\intervalclosed{0}{1}}$ by Definition 294, Definition 296.
Therefore $B\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} A$ by Definition 160, Definition 293, Lemma 146, Proposition 97.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ by Axiom 17, Axiom 39, Definition 1, Definition 55, Definition 160, Lemma 83, Proposition 21, Proposition 85, Proposition 246, Proposition 346, Proposition 356.
LaTeX source
\begin{proof}
Let $A = \supp{\apply{p}{i}}{X}{T}$.
Let $B = X\setminus \preimg{\apply{p}{i}}{\{0\}}$.
$\apply{p}{i}$ is continuous from $X$ to $\intervalclosed{0}{1}$ with respect to $T$ and
$\subspaceTopology{\standardTopologyR}{\intervalclosed{0}{1}}$ by \cref{finite_partition_of_unity,finite_partition_component_condition}.
Therefore $B\subseteq A$ by \cref{continuous,setminus_subseteq,support,subseteq_closure}.
Hence $x\in A$
by \cref{continuous,funs_is_function,funs,preimg_iff,singleton_elim,function_apply_intro,real_lt_subst_right,real_add_ident,real_lt_irreflexive,setminus_intro,subseteq}.
\end{proof}
Assume $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $X$ is a manifold of dimension $m$ with respect to $T$.
Assume $X$ is compact with respect to $T$.
Assume $X\class{latex-symbol-tip latex-symbol-id-neq}{\neq}\class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
Then there exist $n, R, S, f$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $R = \{(i,\reals) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\}$ and $S = \{(i,\standardTopologyR) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\}$ and $f$ is a topological embedding from $X$ to $\productFamily{R}$ with respect to $T$ and $\productTopologyIndexed{S}{R}$.
LaTeX source
\begin{lemma}
\label{compact_manifold_nonempty_embeds_in_euclidean_space}
Assume $m\in\naturalsPlus$.
Assume $X$ is a manifold of dimension $m$ with respect to $T$.
Assume $X$ is compact with respect to $T$.
Assume $X\neq\emptyset$.
Then there exist $n, R, S, f$ such that
$n\in\naturalsPlus$ and
$R = \{(i,\reals) \mid i\in\initialSegment{n}\}$ and
$S = \{(i,\standardTopologyR) \mid i\in\initialSegment{n}\}$ and
$f$ is a topological embedding from $X$ to $\productFamily{R}$ with respect to $T$ and $\productTopologyIndexed{S}{R}$.
\end{lemma}
Proof
We have $X$ is inhabited by Proposition 10.
Let $I_0 = \intervalclosed{0}{1}$.
Let $T_0 = \subspaceTopology{\standardTopologyR}{I_0}$.
Let $j_0 = \identity{I_0}$.
Let $R_0 = \{(j,\reals) \mid j\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}\}$.
Let $S_0 = \{(j,\standardTopologyR) \mid j\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}\}$.
Let $P_0 = \productTopologyIndexed{S_0}{R_0}$.
Take $n,U$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $U$ is a function on $\initialSegment{n}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ there exist $V,h$ such that $\apply{U}{i}$ is open in $X$ with respect to $T$ and $V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and $h$ is a homeomorphism between $\apply{U}{i}$ and $V$ with respect to $\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V}$ and $\img{U}{\initialSegment{n}}$ is a covering of $X$ by Lemma 559.
$X$ is Hausdorff with respect to $T$ by Definition 292.
Hence $T$ is a topology on $X$ by Definition 156.
Therefore $X$ is normal with respect to $T$ by Theorem 82.
Hence $\img{U}{\initialSegment{n}}$ is a covering of $X$ by Lemma 570.
Take $p$ such that $p$ is a partition of unity on $X$ dominated by $U$ with respect to $T$ and $n$ by Theorem 93.
Let $B_0 = \pow{\productFamily{R_0}}\class{latex-symbol-tip latex-symbol-id-times}{\times}\pow{X\class{latex-symbol-tip latex-symbol-id-times}{\times}\productFamily{R_0}}$.
Let $A = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\class{latex-symbol-tip latex-symbol-id-times}{\times} B_0 \mid \text{there exist $i,V,h$ such that $w = (i,(V,h))$ and $\apply{U}{i}$ is open in $X$ with respect to $T$ and $V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and $h$ is a homeomorphism between $\apply{U}{i}$ and $V$ with respect to $\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V}$}\}$.
Claim: For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ there exists $q$ such that $i\mathrel{A} q$.
Fix $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$.
Take $V,h$ such that $\apply{U}{i}$ is open in $X$ with respect to $T$ and $V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and $h$ is a homeomorphism between $\apply{U}{i}$ and $V$ with respect to $\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V}$.
Hence $V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \productFamily{R_0}$ by Axiom 12, Definition 1, Definition 101, Definition 103.
$V\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{\productFamily{R_0}}$ by Proposition 155.
Therefore $h\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{i}\class{latex-symbol-tip latex-symbol-id-times}{\times} V$ by Definition 1, Definition 58, Definition 162, Proposition 282, Proposition 357, Proposition 389.
$\apply{U}{i}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X$ by Axiom 12, Definition 1, Definition 101, Definition 103.
Hence $\apply{U}{i}\class{latex-symbol-tip latex-symbol-id-times}{\times} V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-times}{\times} V$ by Proposition 143.
$X\class{latex-symbol-tip latex-symbol-id-times}{\times} V\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-times}{\times} \productFamily{R_0}$ by Definition 1, Proposition 144.
Hence $h\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-times}{\times} \productFamily{R_0}$ by Proposition 6.
Therefore $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\pow{X\class{latex-symbol-tip latex-symbol-id-times}{\times}\productFamily{R_0}}$ by Proposition 155.
Take $q$ such that $q = (V,h)$.
Hence $q\class{latex-symbol-tip latex-symbol-id-in}{\in} B_0$ by Axiom 6, Proposition 115.
$(i,q)\class{latex-symbol-tip latex-symbol-id-in}{\in} \initialSegment{n}\class{latex-symbol-tip latex-symbol-id-times}{\times} B_0$ by Proposition 115.
Therefore $i\mathrel{A} q$ by Axiom 6.
Take $a$ such that $a$ is a function on $\initialSegment{n}$ and for all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $i\mathrel{A}\apply{a}{i}$ by Axiom 54, Definition 12.
Claim: For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $\apply{U}{i}$ is open in $X$ with respect to $T$ and $\fst{\apply{a}{i}}$ is open in $\productFamily{R_0}$ with respect to $P_0$ and $\snd{\apply{a}{i}}$ is a homeomorphism between $\apply{U}{i}$ and $\fst{\apply{a}{i}}$ with respect to $\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{\fst{\apply{a}{i}}}$.
Claim: For all $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $j_0\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{p}{i}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $\apply{j_0\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{p}{i}}{x} = \apply{\apply{p}{i}}{x}$.
$m + 1\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Axiom 45.
Let $J = \initialSegment{n}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{m + 1}$.
Let $C_0 = \pow{X\class{latex-symbol-tip latex-symbol-id-times}{\times}\reals}$.
Let $Q_1 = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} J\class{latex-symbol-tip latex-symbol-id-times}{\times} C_0 \mid \text{there exist $s,u,i,j$ such that $w = (s,u)$ and $s = (i,j)$ and $j\in\initialSegment{m}$ and $u$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and for all $x\in \supp{\apply{p}{i}}{X}{T}$ we have $u(x) = \apply{\apply{p}{i}}{x} \rmul \apply{\piIndex{R_0}{j}\circ \snd{\apply{a}{i}}}{x}$ and for all $x\in X\setminus \supp{\apply{p}{i}}{X}{T}$ we have $u(x) = 0$}\}$.
Let $Q_2 = \{w\class{latex-symbol-tip latex-symbol-id-in}{\in} J\class{latex-symbol-tip latex-symbol-id-times}{\times} C_0 \mid \text{there exist $s,u,i,j$ such that $w = (s,u)$ and $s = (i,j)$ and $j = m + 1$ and $u = j_0\circ \apply{p}{i}$}\}$.
Let $Q = Q_1\union Q_2$.
Claim: For all $s\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ there exists $u$ such that $s\mathrel{Q} u$.
Fix $s\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
Take $i,j$ such that $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ and $j\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m + 1}$ and $s = (i,j)$ by Proposition 121.
$j \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$ or it is wrong that $j \class{latex-symbol-tip latex-symbol-id-leq}{\leq} m$.
$j\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ by Definition 84.
Hence $j\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}$ by Definition 84.
Let $V_i = \fst{\apply{a}{i}}$.
Let $h_i = \snd{\apply{a}{i}}$.
Let $A_i = \supp{\apply{p}{i}}{X}{T}$.
$\apply{U}{i}$ is open in $X$ with respect to $T$ and $V_i$ is open in $\productFamily{R_0}$ with respect to $P_0$ and $h_i$ is a homeomorphism between $\apply{U}{i}$ and $V_i$ with respect to $\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V_i}$ by assumption.
Take $u$ such that $u$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A_i$ we have $u(x) = \apply{\apply{p}{i}}{x} \rmul \apply{\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} h_i}{x}$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} A_i$ we have $u(x) = 0$ by Lemma 563.
Hence $u\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-times}{\times} \reals$ by Definition 1, Definition 55, Definition 160, Proposition 282, Proposition 284, Proposition 357.
Therefore $u\class{latex-symbol-tip latex-symbol-id-in}{\in} C_0$ by Proposition 155.
$(s,u)\class{latex-symbol-tip latex-symbol-id-in}{\in} J\class{latex-symbol-tip latex-symbol-id-times}{\times} C_0$ by Proposition 115.
Hence $(s,u)\class{latex-symbol-tip latex-symbol-id-in}{\in} Q$ by Axiom 5, Axiom 6, Proposition 38.
Therefore $s\mathrel{Q} u$ by Axiom 6.
We have $j = m + 1$ by Definition 84, Lemma 29.
Take $u$ such that $u = j_0\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{p}{i}$.
Hence $u\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} X\class{latex-symbol-tip latex-symbol-id-times}{\times} \reals$ by Definition 1, Definition 55, Definition 160, Proposition 282, Proposition 284, Proposition 357.
Therefore $u\class{latex-symbol-tip latex-symbol-id-in}{\in} C_0$ by Proposition 155.
$(s,u)\class{latex-symbol-tip latex-symbol-id-in}{\in} J\class{latex-symbol-tip latex-symbol-id-times}{\times} C_0$ by Proposition 115.
Hence $(s,u)\class{latex-symbol-tip latex-symbol-id-in}{\in} Q$ by Axiom 5, Axiom 6, Proposition 39.
Therefore $s\mathrel{Q} u$ by Axiom 6.
LaTeX source
\begin{byCase}
\caseOf{$j \leq m$.}
$j\in\naturalsPlus$ by \cref{initial_segment_naturalsplus}.
Hence $j\in\initialSegment{m}$ by \cref{initial_segment_naturalsplus}.
Let $V_i = \fst{\apply{a}{i}}$.
Let $h_i = \snd{\apply{a}{i}}$.
Let $A_i = \supp{\apply{p}{i}}{X}{T}$.
$\apply{U}{i}$ is open in $X$ with respect to $T$ and
$V_i$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h_i$ is a homeomorphism between $\apply{U}{i}$ and $V_i$ with respect to
$\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V_i}$ by assumption.
Take $u$ such that
$u$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and
for all $x\in A_i$ we have
$u(x) = \apply{\apply{p}{i}}{x} \rmul \apply{\piIndex{R_0}{j}\circ h_i}{x}$ and
for all $x\in X\setminus A_i$ we have $u(x) = 0$
by \cref{weighted_chart_coordinate_extension}.
Hence $u\subseteq X\times \reals$
by \cref{continuous,funs,funs_subseteq_rels,subseteq,rels_ran_subseteq,rels_elim}.
Therefore $u\in C_0$ by \cref{powerset_intro}.
$(s,u)\in J\times C_0$ by \cref{times_tuple_intro}.
Hence $(s,u)\in Q$ by \cref{pair_eq_iff,union_iff,union_intro_left}.
Therefore $s\mathrel{Q} u$ by \cref{pair_eq_iff}.
\caseOf{it is wrong that $j \leq m$.}
We have $j = m + 1$ by \cref{initial_segment_naturalsplus,real_naturals_leq_succ_elim}.
Take $u$ such that $u = j_0\circ \apply{p}{i}$.
Hence $u\subseteq X\times \reals$
by \cref{continuous,funs,subseteq,funs_subseteq_rels,rels_ran_subseteq,rels_elim}.
Therefore $u\in C_0$ by \cref{powerset_intro}.
$(s,u)\in J\times C_0$ by \cref{times_tuple_intro}.
Hence $(s,u)\in Q$ by \cref{pair_eq_iff,union_iff,union_intro_right}.
Therefore $s\mathrel{Q} u$ by \cref{pair_eq_iff}.
\end{byCase}
$Q$ is a relation by Axiom 5, Definition 12.
Take $c$ such that $c$ is a function on $J$ and for all $s\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $s\mathrel{Q}\apply{c}{s}$ by Axiom 54.
Claim: For all $s\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ we have $\apply{c}{s}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$.
Fix $s\class{latex-symbol-tip latex-symbol-id-in}{\in} J$.
Hence $(s,\apply{c}{s})\class{latex-symbol-tip latex-symbol-id-in}{\in} Q$ by Axiom 54.
Therefore $(s,\apply{c}{s})\class{latex-symbol-tip latex-symbol-id-in}{\in} Q_1$ or $(s,\apply{c}{s})\class{latex-symbol-tip latex-symbol-id-in}{\in} Q_2$ by Axiom 5.
$\apply{c}{s}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by Axiom 6.
There exist $i,j$ such that $s = (i,j)$ and $j = m + 1$ and $\apply{c}{s} = j_0\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{p}{i}$ by Axiom 6.
Hence $s\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\class{latex-symbol-tip latex-symbol-id-times}{\times}\initialSegment{m + 1}$ by Axiom 6.
Therefore $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ and $j\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m + 1}$ by Axiom 6, Proposition 114.
$j_0\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{p}{i}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by Definition 1.
Hence $\apply{c}{s}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by Lemma 367.
LaTeX source
\begin{byCase}
\caseOf{$(s,\apply{c}{s})\in Q_1$.}
$\apply{c}{s}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$
by \cref{pair_eq_iff}.
\caseOf{$(s,\apply{c}{s})\in Q_2$.}
There exist $i,j$ such that
$s = (i,j)$ and
$j = m + 1$ and
$\apply{c}{s} = j_0\circ \apply{p}{i}$
by \cref{pair_eq_iff}.
Hence $s\in\initialSegment{n}\times\initialSegment{m + 1}$ by \cref{pair_eq_iff}.
Therefore $i\in\initialSegment{n}$ and $j\in\initialSegment{m + 1}$ by \cref{pair_eq_iff,times_tuple_elim}.
$j_0\circ \apply{p}{i}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by \cref{subseteq}.
Hence $\apply{c}{s}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$
by \cref{continuous_eq_subst}.
\end{byCase}
Take $N,h,f$ such that $N\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $h\class{latex-symbol-tip latex-symbol-id-in}{\in}\inj{J}{\initialSegment{N}}$ and $f$ is a function on $\initialSegment{N}$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}$ we have $\apply{f}{k}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and $\finiteReindexAgreement{f}{h}{c}{J}$ by Lemma 567.
Let $R = \{(k,\reals) \mid k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}\}$.
Let $S = \{(k,\standardTopologyR) \mid k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}\}$.
Let $P = \productTopologyIndexed{S}{R}$.
Let $F = \{(x,z) \mid x\class{latex-symbol-tip latex-symbol-id-in}{\in} X, z\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{R} \mid \class{latex-symbol-tip latex-symbol-id-forall}{\forall} k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}. z(k) = \apply{\apply{f}{k}}{x}\}$.
Claim: $F$ is a function from $X$ to $\productFamily{R}$ and $F$ is continuous from $X$ to $\productFamily{R}$ with respect to $T$ and $P$ and for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}$ we have $\apply{\apply{F}{x}}{k} = \apply{\apply{f}{k}}{x}$.
Follows by Lemma 568.
$F$ is a function and $\dom{F} = X$ by Proposition 359.
Claim: For all $x,y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{F}$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{F}$ and $F(x) = F(y)$ we have $x = y$.
Fix $x$.
Fix $y$ such that $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{F}$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{F}$ and $F(x) = F(y)$.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} X$.
Take $b$ such that $b\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\initialSegment{n}}{\reals}$ and for all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $b(k) = \apply{\apply{p}{k}}{x}$ and $\sumFiniteSequence{b}{1}$ by Lemma 571.
Hence $b(1) = \apply{\apply{p}{1}}{x}$ and $\sumFiniteSequence{b}{1}$ by Axiom 42, Axiom 43, Definition 84.
For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ we have $0 \class{latex-symbol-tip latex-symbol-id-leq}{\leq} b(k)$ by Definition 55, Definition 75, Definition 160, Definition 294, Definition 296, Proposition 361.
Take $i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}$ such that $0 < b(i)$ by Lemma 566.
Hence $0 < \apply{\apply{p}{i}}{x}$ by Lemma 83.
Let $q = (i,m + 1)$.
Therefore $q\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ by Axiom 45, Definition 84, Proposition 115.
$h(q)\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}$ by Definition 1, Definition 56, Proposition 359, Proposition 361.
We have $\apply{\apply{F}{x}}{h(q)} = \apply{\apply{f}{h(q)}}{x}$ and $\apply{\apply{F}{y}}{h(q)} = \apply{\apply{f}{h(q)}}{y}$ by assumption.
Therefore $\apply{\apply{F}{x}}{h(q)} = \apply{\apply{F}{y}}{h(q)}$.
We have $\apply{\apply{f}{h(q)}}{x} = \apply{\apply{f}{h(q)}}{y}$ by Axiom 6.
Hence $\apply{f}{h(q)} = \apply{c}{q}$ by Definition 302.
Therefore $\apply{\apply{c}{q}}{x} = \apply{\apply{c}{q}}{y}$ by Axiom 6.
$(q,\apply{c}{q})\class{latex-symbol-tip latex-symbol-id-in}{\in} Q$ by Axiom 54.
Therefore $(q,\apply{c}{q})\class{latex-symbol-tip latex-symbol-id-in}{\in} Q_1$ or $(q,\apply{c}{q})\class{latex-symbol-tip latex-symbol-id-in}{\in} Q_2$ by Axiom 5.
$(q,\apply{c}{q})\class{latex-symbol-tip latex-symbol-id-notin}{\notin} Q_1$ by Axiom 6, Axiom 13, Axiom 39, Axiom 41, Axiom 42, Axiom 45, Definition 1, Definition 84, Lemma 25, Lemma 83, Lemma 231, Lemma 399.
Hence $(q,\apply{c}{q})\class{latex-symbol-tip latex-symbol-id-in}{\in} Q_2$ by Axiom 5.
Therefore there exist $i_0,j_2$ such that $q = (i_0,j_2)$ and $j_2 = m + 1$ and $\apply{c}{q} = j_0\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{p}{i_0}$ by Axiom 6.
$\apply{c}{q} = j_0\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{p}{i}$ by Axiom 6.
Therefore $j_0\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{p}{i}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{\reals}$ and $j_0\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{p}{i}$ is a function and $j_0\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{p}{i}$ is a relation and $\dom{j_0\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{p}{i}} = X$ by Definition 1, Definition 55, Definition 160, Proposition 355, Proposition 356.
$\apply{p}{i}$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$ by Definition 294, Definition 296.
$\apply{p}{i}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{I_0}$ and $\apply{p}{i}$ is a function and $\apply{p}{i}$ is a relation and $\dom{\apply{p}{i}} = X$ by Definition 55, Definition 160, Proposition 355, Proposition 356.
$j_0\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{p}{i}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and for all $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X$ we have $\apply{j_0\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{p}{i}}{z} = \apply{\apply{p}{i}}{z}$ by Definition 1.
Therefore $\apply{j_0\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{p}{i}}{x} = \apply{j_0\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{p}{i}}{y}$ by Axiom 6.
We have $\apply{j_0\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{p}{i}}{x} = \apply{\apply{p}{i}}{x}$ and $\apply{j_0\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \apply{p}{i}}{y} = \apply{\apply{p}{i}}{y}$ by Definition 1.
Hence $\apply{\apply{p}{i}}{x} = \apply{\apply{p}{i}}{y}$ by Axiom 6.
Therefore $0 < \apply{\apply{p}{i}}{y}$ by Lemma 83.
Let $A_i = \supp{\apply{p}{i}}{X}{T}$.
Therefore $x\class{latex-symbol-tip latex-symbol-id-in}{\in} A_i$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} A_i$ by Lemma 572.
$A_i\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \apply{U}{i}$ by Definition 294, Definition 296.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}$ and $y\class{latex-symbol-tip latex-symbol-id-in}{\in} \apply{U}{i}$ by Definition 1.
$\snd{\apply{a}{i}}$ is a homeomorphism between $\apply{U}{i}$ and $\fst{\apply{a}{i}}$ with respect to $\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{\fst{\apply{a}{i}}}$ by assumption.
Hence $\snd{\apply{a}{i}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\apply{U}{i}}{\fst{\apply{a}{i}}}$ and $\snd{\apply{a}{i}}$ is a function and $\dom{\snd{\apply{a}{i}}} = \apply{U}{i}$ and $\snd{\apply{a}{i}}$ is injective by Definition 55, Definition 58, Definition 162, Proposition 356, Proposition 386, Proposition 389.
$\fst{\apply{a}{i}}$ is open in $\productFamily{R_0}$ with respect to $P_0$ by assumption.
Therefore $\fst{\apply{a}{i}}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \productFamily{R_0}$ by Axiom 12, Definition 1, Definition 101, Definition 103.
We have $\apply{\snd{\apply{a}{i}}}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in} \productFamily{R_0}$ and $\apply{\snd{\apply{a}{i}}}{y}\class{latex-symbol-tip latex-symbol-id-in}{\in} \productFamily{R_0}$ by Definition 1, Proposition 361.
Claim: For all $j\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}$ we have $\apply{\apply{\snd{\apply{a}{i}}}{x}}{j} = \apply{\apply{\snd{\apply{a}{i}}}{y}}{j}$.
Fix $j\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}$.
Let $s = (i,j)$.
Therefore $s\class{latex-symbol-tip latex-symbol-id-in}{\in} J$ by Axiom 6, Definition 1, Lemma 121, Proposition 115.
We have $h(s)\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}$ by Definition 1, Definition 56, Proposition 359, Proposition 361.
We have $\apply{\apply{F}{x}}{h(s)} = \apply{\apply{f}{h(s)}}{x}$ and $\apply{\apply{F}{y}}{h(s)} = \apply{\apply{f}{h(s)}}{y}$ by assumption.
Therefore $\apply{\apply{F}{x}}{h(s)} = \apply{\apply{F}{y}}{h(s)}$.
We have $\apply{\apply{f}{h(s)}}{x} = \apply{\apply{f}{h(s)}}{y}$ by Axiom 6.
Hence $\apply{f}{h(s)} = \apply{c}{s}$ by Definition 302.
Therefore $\apply{\apply{c}{s}}{x} = \apply{\apply{c}{s}}{y}$ by Axiom 6.
We have $(s,\apply{c}{s})\class{latex-symbol-tip latex-symbol-id-in}{\in} Q$ by Axiom 54.
Therefore $(s,\apply{c}{s})\class{latex-symbol-tip latex-symbol-id-in}{\in} Q_1$ or $(s,\apply{c}{s})\class{latex-symbol-tip latex-symbol-id-in}{\in} Q_2$ by Axiom 5.
$(s,\apply{c}{s})\class{latex-symbol-tip latex-symbol-id-notin}{\notin} Q_2$ by Axiom 6, Axiom 13, Axiom 39, Axiom 41, Axiom 42, Axiom 45, Definition 1, Definition 84, Lemma 25, Lemma 83, Lemma 231, Lemma 399.
Hence $(s,\apply{c}{s})\class{latex-symbol-tip latex-symbol-id-in}{\in} Q_1$ by Axiom 5.
Therefore there exist $i_1,j_1$ such that $s = (i_1,j_1)$ and $j_1\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}$ and $\apply{c}{s}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and for all $z\class{latex-symbol-tip latex-symbol-id-in}{\in} \supp{\apply{p}{i_1}}{X}{T}$ we have $\apply{\apply{c}{s}}{z} = \apply{\apply{p}{i_1}}{z} \rmul \apply{\piIndex{R_0}{j_1}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \snd{\apply{a}{i_1}}}{z}$ and for all $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} \supp{\apply{p}{i_1}}{X}{T}$ we have $\apply{\apply{c}{s}}{z} = 0$ by Axiom 6.
We have $i_1 = i$ and $j_1 = j$ by Axiom 6.
Therefore $\apply{c}{s}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and for all $z\class{latex-symbol-tip latex-symbol-id-in}{\in} \supp{\apply{p}{i}}{X}{T}$ we have $\apply{\apply{c}{s}}{z} = \apply{\apply{p}{i}}{z} \rmul \apply{\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \snd{\apply{a}{i}}}{z}$ and for all $z\class{latex-symbol-tip latex-symbol-id-in}{\in} X\class{latex-symbol-tip latex-symbol-id-setminus}{\setminus} \supp{\apply{p}{i}}{X}{T}$ we have $\apply{\apply{c}{s}}{z} = 0$ by Axiom 6.
We have $\apply{\apply{c}{s}}{x} = \apply{\apply{p}{i}}{x} \rmul \apply{\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \snd{\apply{a}{i}}}{x}$ and $\apply{\apply{c}{s}}{y} = \apply{\apply{p}{i}}{y} \rmul \apply{\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \snd{\apply{a}{i}}}{y}$ by Definition 1.
$\apply{\apply{p}{i}}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in} I_0$ and $\apply{\apply{p}{i}}{y}\class{latex-symbol-tip latex-symbol-id-in}{\in} I_0$ by Definition 160, Proposition 361.
Hence $\apply{\apply{p}{i}}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\apply{\apply{p}{i}}{y}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 75.
$R_0$ is a relation by Definition 12.
For all $k,y_1,y_2$ such that $(k,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} R_0$ and $(k,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} R_0$ we have $y_1 = y_2$ by Axiom 6.
For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{R_0}$ we have $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}$ by Axiom 6, Proposition 199.
For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{m}$ we have $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{R_0}$ by Axiom 6, Proposition 200.
Therefore $j\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{R_0}$.
We have $R_0$ is right-unique by Definition 51.
Hence $\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\productFamily{R_0}}{\apply{R_0}{j}}$ by Lemma 191.
Therefore $\apply{R_0}{j} = \reals$ by Proposition 346.
We have $\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\productFamily{R_0}}{\reals}$ by Axiom 6.
$\snd{\apply{a}{i}}$ is a function and $\dom{\snd{\apply{a}{i}}} = \apply{U}{i}$ by Definition 55, Definition 58, Definition 162, Proposition 356, Proposition 389.
For all $z\class{latex-symbol-tip latex-symbol-id-in}{\in}\dom{\snd{\apply{a}{i}}}$ we have $\apply{\snd{\apply{a}{i}}}{z}\class{latex-symbol-tip latex-symbol-id-in}{\in}\productFamily{R_0}$ by Definition 1, Definition 58, Definition 162, Proposition 361, Proposition 389.
Therefore $\snd{\apply{a}{i}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\apply{U}{i}}{\productFamily{R_0}}$ by Proposition 358.
We have $\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \snd{\apply{a}{i}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\apply{U}{i}}{\reals}$ by Proposition 382.
Hence $\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \snd{\apply{a}{i}}$ is a function and $\dom{\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \snd{\apply{a}{i}}} = \apply{U}{i}$ by Definition 55, Proposition 356.
Therefore $\apply{\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \snd{\apply{a}{i}}}{x}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ and $\apply{\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \snd{\apply{a}{i}}}{y}\class{latex-symbol-tip latex-symbol-id-in}{\in}\reals$ by Definition 1, Proposition 361.
Hence $\apply{\apply{p}{i}}{x} = \apply{\apply{p}{i}}{y}$ by Axiom 6.
Therefore $\apply{\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \snd{\apply{a}{i}}}{x} = \apply{\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \snd{\apply{a}{i}}}{y}$ by Lemma 564.
$\snd{\apply{a}{i}}\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{\apply{U}{i}}{\fst{\apply{a}{i}}}$ by Definition 58, Definition 162, Proposition 389.
Therefore $(x,\apply{\snd{\apply{a}{i}}}{x})\class{latex-symbol-tip latex-symbol-id-in}{\in} \snd{\apply{a}{i}}$ and $(y,\apply{\snd{\apply{a}{i}}}{y})\class{latex-symbol-tip latex-symbol-id-in}{\in} \snd{\apply{a}{i}}$ by Proposition 348.
We have $(\apply{\snd{\apply{a}{i}}}{x},\apply{\apply{\snd{\apply{a}{i}}}{x}}{j})\class{latex-symbol-tip latex-symbol-id-in}{\in} \piIndex{R_0}{j}$ and $(\apply{\snd{\apply{a}{i}}}{y},\apply{\apply{\snd{\apply{a}{i}}}{y}}{j})\class{latex-symbol-tip latex-symbol-id-in}{\in} \piIndex{R_0}{j}$ by Definition 1, Definition 170, Proposition 348.
Hence $\apply{\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \snd{\apply{a}{i}}}{x} = \apply{\apply{\snd{\apply{a}{i}}}{x}}{j}$ and $\apply{\piIndex{R_0}{j}\class{latex-symbol-tip latex-symbol-id-circ}{\circ} \snd{\apply{a}{i}}}{y} = \apply{\apply{\snd{\apply{a}{i}}}{y}}{j}$ by Proposition 257, Proposition 346.
Therefore $\apply{\apply{\snd{\apply{a}{i}}}{x}}{j} = \apply{\apply{\snd{\apply{a}{i}}}{y}}{j}$ by Axiom 6.
Hence $\apply{\snd{\apply{a}{i}}}{x} = \apply{\snd{\apply{a}{i}}}{y}$ by Lemma 565.
Therefore $x = y$ by Proposition 386.
Hence $F$ is injective by Proposition 386.
$F$ is a function and $\dom{F} = X$ by Proposition 359.
$F\class{latex-symbol-tip latex-symbol-id-in}{\in}\funs{X}{\img{F}{X}}$ by Proposition 209, Proposition 238, Proposition 348, Proposition 358.
Hence $F\class{latex-symbol-tip latex-symbol-id-in}{\in}\surj{X}{\img{F}{X}}$ by Proposition 238, Corollary 8.
Therefore $F$ is a bijection from $X$ to $\img{F}{X}$ by Definition 58, Proposition 386.
For all $k,y_1,y_2$ such that $(k,y_1)\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ and $(k,y_2)\class{latex-symbol-tip latex-symbol-id-in}{\in} R$ we have $y_1 = y_2$ by Axiom 6.
Hence $R$ is a function on $\initialSegment{N}$ by Axiom 6, Definition 1, Definition 12, Definition 51, Definition 55, Proposition 3, Proposition 199, Proposition 200.
$\standardTopologyR\class{latex-symbol-tip latex-symbol-id-in}{\in} \{\standardTopologyR\}$ by Proposition 20.
Hence $S$ is a function from $\initialSegment{N}$ to $\{\standardTopologyR\}$ by Lemma 309.
Therefore $S$ is a function and $\dom{S} = \initialSegment{N}$ by Proposition 359.
For all $k\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{N}$ we have $R(k) = \reals$ and $S(k) = \standardTopologyR$ by Proposition 346.
We have $\reals$ is Hausdorff with respect to $\standardTopologyR$ by Lemma 198, Lemma 200, Lemma 395.
Hence $\productFamily{R}$ is Hausdorff with respect to $P$ by Axiom 42, Axiom 43, Definition 1, Definition 84, Lemma 188.
We have $\img{F}{X}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \productFamily{R}$ by Definition 1, Proposition 6, Proposition 237, Proposition 284, Proposition 357, Proposition 359.
$P$ is a topology on $\productFamily{R}$ by Definition 156.
Hence $\img{F}{X}$ is a subspace of $\productFamily{R}$ with respect to $P$ by Definition 147.
Therefore $\img{F}{X}$ is Hausdorff with respect to $\subspaceTopology{P}{\img{F}{X}}$ by Theorem 19.
We have $F$ is continuous from $X$ to $\img{F}{X}$ with respect to $T$ and $\subspaceTopology{P}{\img{F}{X}}$ by Lemma 167, Proposition 2.
Therefore $F$ is a homeomorphism between $X$ and $\img{F}{X}$ with respect to $T$ and $\subspaceTopology{P}{\img{F}{X}}$ by Theorem 62.
Hence $F$ is a topological embedding from $X$ to $\productFamily{R}$ with respect to $T$ and $P$ by Definition 164.
Take $n_1$ such that $n_1 = N$.
Take $R_1$ such that $R_1 = R$.
Take $S_1$ such that $S_1 = S$.
Take $f_1$ such that $f_1 = F$.
Follows by Axiom 6.
LaTeX source
\begin{proof}
We have $X$ is inhabited by \cref{nonempty_inhabited}.
Let $I_0 = \intervalclosed{0}{1}$.
Let $T_0 = \subspaceTopology{\standardTopologyR}{I_0}$.
Let $j_0 = \identity{I_0}$.
Let $R_0 = \{(j,\reals) \mid j\in\initialSegment{m}\}$.
Let $S_0 = \{(j,\standardTopologyR) \mid j\in\initialSegment{m}\}$.
Let $P_0 = \productTopologyIndexed{S_0}{R_0}$.
Take $n,U$ such that
$n\in\naturalsPlus$ and
$U$ is a function on $\initialSegment{n}$ and
for all $i\in\initialSegment{n}$ there exist $V,h$ such that
$\apply{U}{i}$ is open in $X$ with respect to $T$ and
$V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h$ is a homeomorphism between $\apply{U}{i}$ and $V$ with respect to
$\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V}$ and
$\img{U}{\initialSegment{n}}$ is a covering of $X$
by \cref{compact_manifold_finite_chart_cover}.
$X$ is Hausdorff with respect to $T$ by \cref{m_manifold}.
Hence $T$ is a topology on $X$ by \cref{hausdorff}.
Therefore $X$ is normal with respect to $T$ by \cref{compact_hausdorff_normal}.
Hence $\img{U}{\initialSegment{n}}$ is a covering of $X$ by \cref{chart_cover_witness_is_covering}.
Take $p$ such that
$p$ is a partition of unity on $X$ dominated by $U$ with respect to $T$ and $n$
by \cref{finite_partition_of_unity_existence}.
Let $B_0 = \pow{\productFamily{R_0}}\times\pow{X\times\productFamily{R_0}}$.
Let $A = \{w\in\initialSegment{n}\times B_0 \mid
\text{there exist $i,V,h$ such that
$w = (i,(V,h))$ and
$\apply{U}{i}$ is open in $X$ with respect to $T$ and
$V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h$ is a homeomorphism between $\apply{U}{i}$ and $V$ with respect to
$\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V}$}\}$.
Show that for all $i\in\initialSegment{n}$ there exists $q$ such that $i\mathrel{A} q$.
\begin{subproof}
Fix $i\in\initialSegment{n}$.
Take $V,h$ such that
$\apply{U}{i}$ is open in $X$ with respect to $T$ and
$V$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h$ is a homeomorphism between $\apply{U}{i}$ and $V$ with respect to
$\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V}$.
Hence $V\subseteq \productFamily{R_0}$ by \cref{open_in,topology_on,subseteq,pow_iff}.
$V\in\pow{\productFamily{R_0}}$ by \cref{powerset_intro}.
Therefore $h\subseteq \apply{U}{i}\times V$
by \cref{homeomorphism,bijections,bijections_to_funs,funs_subseteq_rels,subseteq,rels_elim}.
$\apply{U}{i}\subseteq X$ by \cref{open_in,topology_on,subseteq,pow_iff}.
Hence $\apply{U}{i}\times V\subseteq X\times V$ by \cref{times_subseteq_left}.
$X\times V\subseteq X\times \productFamily{R_0}$ by \cref{times_subseteq_right,subseteq}.
Hence $h\subseteq X\times \productFamily{R_0}$ by \cref{subseteq_transitive}.
Therefore $h\in\pow{X\times\productFamily{R_0}}$ by \cref{powerset_intro}.
Take $q$ such that $q = (V,h)$.
Hence $q\in B_0$ by \cref{times_tuple_intro,pair_eq_iff}.
$(i,q)\in \initialSegment{n}\times B_0$ by \cref{times_tuple_intro}.
Therefore $i\mathrel{A} q$ by \cref{pair_eq_iff}.
\end{subproof}
Take $a$ such that $a$ is a function on $\initialSegment{n}$ and
for all $i\in\initialSegment{n}$ we have $i\mathrel{A}\apply{a}{i}$
by \cref{relation,axiom_of_choice}.
Show that for all $i\in\initialSegment{n}$ we have
$\apply{U}{i}$ is open in $X$ with respect to $T$ and
$\fst{\apply{a}{i}}$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$\snd{\apply{a}{i}}$ is a homeomorphism between $\apply{U}{i}$ and $\fst{\apply{a}{i}}$ with respect to
$\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{\fst{\apply{a}{i}}}$.
\begin{subproof}
Follows by \cref{axiom_of_choice,pair_eq_iff,fst_eq,snd_eq}.
\end{subproof}
Show that for all $i\in\initialSegment{n}$ we have
$j_0\circ \apply{p}{i}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and
for all $x\in X$ we have $\apply{j_0\circ \apply{p}{i}}{x} = \apply{\apply{p}{i}}{x}$.
\begin{subproof}
Follows by \cref{finite_partition_of_unity,finite_partition_component_condition,continuous_interval_expand_range,continuous,funs_is_function,funs,function_rightunique,funs_is_relation,funs_subseteq_rels,subseteq,rels_ran_subseteq,id_dom,id_rightunique,id_is_relation,circ_apply,funs_type_apply,id_apply}.
\end{subproof}
$m + 1\in\naturalsPlus$ by \cref{real_naturals_closed_succ}.
Let $J = \initialSegment{n}\times\initialSegment{m + 1}$.
Let $C_0 = \pow{X\times\reals}$.
Let $Q_1 = \{w\in J\times C_0 \mid
\text{there exist $s,u,i,j$ such that
$w = (s,u)$ and
$s = (i,j)$ and
$j\in\initialSegment{m}$ and
$u$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and
for all $x\in \supp{\apply{p}{i}}{X}{T}$ we have
$u(x) = \apply{\apply{p}{i}}{x} \rmul \apply{\piIndex{R_0}{j}\circ \snd{\apply{a}{i}}}{x}$ and
for all $x\in X\setminus \supp{\apply{p}{i}}{X}{T}$ we have $u(x) = 0$}\}$.
Let $Q_2 = \{w\in J\times C_0 \mid
\text{there exist $s,u,i,j$ such that
$w = (s,u)$ and
$s = (i,j)$ and
$j = m + 1$ and
$u = j_0\circ \apply{p}{i}$}\}$.
Let $Q = Q_1\union Q_2$.
Show that for all $s\in J$ there exists $u$ such that $s\mathrel{Q} u$.
\begin{subproof}
Fix $s\in J$.
Take $i,j$ such that $i\in\initialSegment{n}$ and $j\in\initialSegment{m + 1}$ and $s = (i,j)$
by \cref{times_elem_is_tuple}.
$j \leq m$ or it is wrong that $j \leq m$.
\begin{byCase}
\caseOf{$j \leq m$.}
$j\in\naturalsPlus$ by \cref{initial_segment_naturalsplus}.
Hence $j\in\initialSegment{m}$ by \cref{initial_segment_naturalsplus}.
Let $V_i = \fst{\apply{a}{i}}$.
Let $h_i = \snd{\apply{a}{i}}$.
Let $A_i = \supp{\apply{p}{i}}{X}{T}$.
$\apply{U}{i}$ is open in $X$ with respect to $T$ and
$V_i$ is open in $\productFamily{R_0}$ with respect to $P_0$ and
$h_i$ is a homeomorphism between $\apply{U}{i}$ and $V_i$ with respect to
$\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{V_i}$ by assumption.
Take $u$ such that
$u$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and
for all $x\in A_i$ we have
$u(x) = \apply{\apply{p}{i}}{x} \rmul \apply{\piIndex{R_0}{j}\circ h_i}{x}$ and
for all $x\in X\setminus A_i$ we have $u(x) = 0$
by \cref{weighted_chart_coordinate_extension}.
Hence $u\subseteq X\times \reals$
by \cref{continuous,funs,funs_subseteq_rels,subseteq,rels_ran_subseteq,rels_elim}.
Therefore $u\in C_0$ by \cref{powerset_intro}.
$(s,u)\in J\times C_0$ by \cref{times_tuple_intro}.
Hence $(s,u)\in Q$ by \cref{pair_eq_iff,union_iff,union_intro_left}.
Therefore $s\mathrel{Q} u$ by \cref{pair_eq_iff}.
\caseOf{it is wrong that $j \leq m$.}
We have $j = m + 1$ by \cref{initial_segment_naturalsplus,real_naturals_leq_succ_elim}.
Take $u$ such that $u = j_0\circ \apply{p}{i}$.
Hence $u\subseteq X\times \reals$
by \cref{continuous,funs,subseteq,funs_subseteq_rels,rels_ran_subseteq,rels_elim}.
Therefore $u\in C_0$ by \cref{powerset_intro}.
$(s,u)\in J\times C_0$ by \cref{times_tuple_intro}.
Hence $(s,u)\in Q$ by \cref{pair_eq_iff,union_iff,union_intro_right}.
Therefore $s\mathrel{Q} u$ by \cref{pair_eq_iff}.
\end{byCase}
\end{subproof}
$Q$ is a relation by \cref{relation,union_iff}.
Take $c$ such that $c$ is a function on $J$ and for all $s\in J$ we have $s\mathrel{Q}\apply{c}{s}$
by \cref{axiom_of_choice}.
Show that for all $s\in J$ we have $\apply{c}{s}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$.
\begin{subproof}
Fix $s\in J$.
Hence $(s,\apply{c}{s})\in Q$ by \cref{axiom_of_choice}.
Therefore $(s,\apply{c}{s})\in Q_1$ or $(s,\apply{c}{s})\in Q_2$ by \cref{union_iff}.
\begin{byCase}
\caseOf{$(s,\apply{c}{s})\in Q_1$.}
$\apply{c}{s}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$
by \cref{pair_eq_iff}.
\caseOf{$(s,\apply{c}{s})\in Q_2$.}
There exist $i,j$ such that
$s = (i,j)$ and
$j = m + 1$ and
$\apply{c}{s} = j_0\circ \apply{p}{i}$
by \cref{pair_eq_iff}.
Hence $s\in\initialSegment{n}\times\initialSegment{m + 1}$ by \cref{pair_eq_iff}.
Therefore $i\in\initialSegment{n}$ and $j\in\initialSegment{m + 1}$ by \cref{pair_eq_iff,times_tuple_elim}.
$j_0\circ \apply{p}{i}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ by \cref{subseteq}.
Hence $\apply{c}{s}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$
by \cref{continuous_eq_subst}.
\end{byCase}
\end{subproof}
Take $N,h,f$ such that
$N\in\naturalsPlus$ and
$h\in\inj{J}{\initialSegment{N}}$ and
$f$ is a function on $\initialSegment{N}$ and
for all $k\in\initialSegment{N}$ we have $\apply{f}{k}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and
$\finiteReindexAgreement{f}{h}{c}{J}$
by \cref{finite_grid_continuous_reindex}.
Let $R = \{(k,\reals) \mid k\in\initialSegment{N}\}$.
Let $S = \{(k,\standardTopologyR) \mid k\in\initialSegment{N}\}$.
Let $P = \productTopologyIndexed{S}{R}$.
Let $F = \{(x,z) \mid x\in X, z\in\productFamily{R} \mid
\forall k\in\initialSegment{N}. z(k) = \apply{\apply{f}{k}}{x}\}$.
Show that $F$ is a function from $X$ to $\productFamily{R}$ and
$F$ is continuous from $X$ to $\productFamily{R}$ with respect to $T$ and $P$ and
for all $x\in X$ for all $k\in\initialSegment{N}$ we have $\apply{\apply{F}{x}}{k} = \apply{\apply{f}{k}}{x}$.
\begin{subproof}
Follows by \cref{finite_real_family_evaluation_map}.
\end{subproof}
$F$ is a function and $\dom{F} = X$ by \cref{funs_elim}.
Show that for all $x,y$ such that $x\in\dom{F}$ and $y\in\dom{F}$ and $F(x) = F(y)$ we have $x = y$.
\begin{subproof}
Fix $x$.
Fix $y$ such that $x\in\dom{F}$ and $y\in\dom{F}$ and $F(x) = F(y)$.
Hence $x\in X$ and $y\in X$.
Take $b$ such that
$b\in\funs{\initialSegment{n}}{\reals}$ and
for all $k\in\initialSegment{n}$ we have $b(k) = \apply{\apply{p}{k}}{x}$ and
$\sumFiniteSequence{b}{1}$
by \cref{finite_partition_of_unity_sum_witness}.
Hence $b(1) = \apply{\apply{p}{1}}{x}$ and $\sumFiniteSequence{b}{1}$
by \cref{real_one_in_naturals,real_one_leq_naturalsplus,initial_segment_naturalsplus}.
For all $k\in\initialSegment{n}$ we have $0 \leq b(k)$
by \cref{finite_partition_of_unity,finite_partition_component_condition,continuous,funs,funs_type_apply,intervalclosed}.
Take $i\in\initialSegment{n}$ such that $0 < b(i)$ by \cref{finite_real_sum_one_positive_term}.
Hence $0 < \apply{\apply{p}{i}}{x}$ by \cref{real_lt_subst_right}.
Let $q = (i,m + 1)$.
Therefore $q\in J$ by \cref{real_naturals_closed_succ,initial_segment_naturalsplus,times_tuple_intro}.
$h(q)\in\initialSegment{N}$ by \cref{inj,funs_elim,subseteq,funs_type_apply}.
We have $\apply{\apply{F}{x}}{h(q)} = \apply{\apply{f}{h(q)}}{x}$ and
$\apply{\apply{F}{y}}{h(q)} = \apply{\apply{f}{h(q)}}{y}$ by assumption.
Therefore $\apply{\apply{F}{x}}{h(q)} = \apply{\apply{F}{y}}{h(q)}$.
We have $\apply{\apply{f}{h(q)}}{x} = \apply{\apply{f}{h(q)}}{y}$ by \cref{pair_eq_iff}.
Hence $\apply{f}{h(q)} = \apply{c}{q}$ by \cref{finite_reindex_agreement}.
Therefore $\apply{\apply{c}{q}}{x} = \apply{\apply{c}{q}}{y}$ by \cref{pair_eq_iff}.
$(q,\apply{c}{q})\in Q$ by \cref{axiom_of_choice}.
Therefore $(q,\apply{c}{q})\in Q_1$ or $(q,\apply{c}{q})\in Q_2$ by \cref{union_iff}.
$(q,\apply{c}{q})\notin Q_1$
by \cref{pair_eq_iff,initial_segment_naturalsplus,real_naturals_subset_reals,subseteq,real_naturals_closed_succ,real_add_closed,real_one_in_naturals,real_naturals_lt_succ_local,real_lt_imp_leq,real_leq_antisym,real_lt_subst_right,real_lt_irreflexive}.
Hence $(q,\apply{c}{q})\in Q_2$ by \cref{union_iff}.
Therefore there exist $i_0,j_2$ such that
$q = (i_0,j_2)$ and
$j_2 = m + 1$ and
$\apply{c}{q} = j_0\circ \apply{p}{i_0}$
by \cref{pair_eq_iff}.
$\apply{c}{q} = j_0\circ \apply{p}{i}$ by \cref{pair_eq_iff}.
Therefore $j_0\circ \apply{p}{i}\in\funs{X}{\reals}$ and
$j_0\circ \apply{p}{i}$ is a function and
$j_0\circ \apply{p}{i}$ is a relation and
$\dom{j_0\circ \apply{p}{i}} = X$
by \cref{continuous,funs_is_function,funs_is_relation,funs,subseteq}.
$\apply{p}{i}$ is continuous from $X$ to $I_0$ with respect to $T$ and $T_0$
by \cref{finite_partition_of_unity,finite_partition_component_condition}.
$\apply{p}{i}\in\funs{X}{I_0}$ and
$\apply{p}{i}$ is a function and
$\apply{p}{i}$ is a relation and
$\dom{\apply{p}{i}} = X$
by \cref{continuous,funs_is_function,funs_is_relation,funs}.
$j_0\circ \apply{p}{i}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and
for all $z\in X$ we have $\apply{j_0\circ \apply{p}{i}}{z} = \apply{\apply{p}{i}}{z}$ by \cref{subseteq}.
Therefore $\apply{j_0\circ \apply{p}{i}}{x} = \apply{j_0\circ \apply{p}{i}}{y}$ by \cref{pair_eq_iff}.
We have $\apply{j_0\circ \apply{p}{i}}{x} = \apply{\apply{p}{i}}{x}$ and
$\apply{j_0\circ \apply{p}{i}}{y} = \apply{\apply{p}{i}}{y}$ by \cref{subseteq}.
Hence $\apply{\apply{p}{i}}{x} = \apply{\apply{p}{i}}{y}$ by \cref{pair_eq_iff}.
Therefore $0 < \apply{\apply{p}{i}}{y}$ by \cref{real_lt_subst_right}.
Let $A_i = \supp{\apply{p}{i}}{X}{T}$.
Therefore $x\in A_i$ and $y\in A_i$ by \cref{positive_partition_component_in_support}.
$A_i\subseteq \apply{U}{i}$ by \cref{finite_partition_of_unity,finite_partition_component_condition}.
Hence $x\in \apply{U}{i}$ and $y\in \apply{U}{i}$ by \cref{subseteq}.
$\snd{\apply{a}{i}}$ is a homeomorphism between $\apply{U}{i}$ and $\fst{\apply{a}{i}}$ with respect to
$\subspaceTopology{T}{\apply{U}{i}}$ and $\subspaceTopology{P_0}{\fst{\apply{a}{i}}}$ by assumption.
Hence $\snd{\apply{a}{i}}\in\funs{\apply{U}{i}}{\fst{\apply{a}{i}}}$ and
$\snd{\apply{a}{i}}$ is a function and
$\dom{\snd{\apply{a}{i}}} = \apply{U}{i}$ and
$\snd{\apply{a}{i}}$ is injective
by \cref{homeomorphism,bijections,bijections_to_funs,funs_is_function,funs,injective_function}.
$\fst{\apply{a}{i}}$ is open in $\productFamily{R_0}$ with respect to $P_0$ by assumption.
Therefore $\fst{\apply{a}{i}}\subseteq \productFamily{R_0}$ by \cref{open_in,topology_on,subseteq,pow_iff}.
We have $\apply{\snd{\apply{a}{i}}}{x}\in \productFamily{R_0}$ and $\apply{\snd{\apply{a}{i}}}{y}\in \productFamily{R_0}$
by \cref{funs_type_apply,subseteq}.
Show that for all $j\in\initialSegment{m}$ we have
$\apply{\apply{\snd{\apply{a}{i}}}{x}}{j} = \apply{\apply{\snd{\apply{a}{i}}}{y}}{j}$.
\begin{subproof}
Fix $j\in\initialSegment{m}$.
Let $s = (i,j)$.
Therefore $s\in J$ by \cref{initial_segment_subset_succ,subseteq,times_tuple_intro,pair_eq_iff}.
We have $h(s)\in\initialSegment{N}$ by \cref{inj,funs_elim,subseteq,funs_type_apply}.
We have $\apply{\apply{F}{x}}{h(s)} = \apply{\apply{f}{h(s)}}{x}$ and
$\apply{\apply{F}{y}}{h(s)} = \apply{\apply{f}{h(s)}}{y}$ by assumption.
Therefore $\apply{\apply{F}{x}}{h(s)} = \apply{\apply{F}{y}}{h(s)}$.
We have $\apply{\apply{f}{h(s)}}{x} = \apply{\apply{f}{h(s)}}{y}$ by \cref{pair_eq_iff}.
Hence $\apply{f}{h(s)} = \apply{c}{s}$ by \cref{finite_reindex_agreement}.
Therefore $\apply{\apply{c}{s}}{x} = \apply{\apply{c}{s}}{y}$ by \cref{pair_eq_iff}.
We have $(s,\apply{c}{s})\in Q$ by \cref{axiom_of_choice}.
Therefore $(s,\apply{c}{s})\in Q_1$ or $(s,\apply{c}{s})\in Q_2$ by \cref{union_iff}.
$(s,\apply{c}{s})\notin Q_2$
by \cref{pair_eq_iff,initial_segment_naturalsplus,real_naturals_subset_reals,subseteq,real_naturals_closed_succ,real_add_closed,real_one_in_naturals,real_naturals_lt_succ_local,real_lt_imp_leq,real_leq_antisym,real_lt_subst_right,real_lt_irreflexive}.
Hence $(s,\apply{c}{s})\in Q_1$ by \cref{union_iff}.
Therefore there exist $i_1,j_1$ such that
$s = (i_1,j_1)$ and
$j_1\in\initialSegment{m}$ and
$\apply{c}{s}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and
for all $z\in \supp{\apply{p}{i_1}}{X}{T}$ we have
$\apply{\apply{c}{s}}{z} = \apply{\apply{p}{i_1}}{z} \rmul \apply{\piIndex{R_0}{j_1}\circ \snd{\apply{a}{i_1}}}{z}$ and
for all $z\in X\setminus \supp{\apply{p}{i_1}}{X}{T}$ we have $\apply{\apply{c}{s}}{z} = 0$
by \cref{pair_eq_iff}.
We have $i_1 = i$ and $j_1 = j$ by \cref{pair_eq_iff}.
Therefore $\apply{c}{s}$ is continuous from $X$ to $\reals$ with respect to $T$ and $\standardTopologyR$ and
for all $z\in \supp{\apply{p}{i}}{X}{T}$ we have
$\apply{\apply{c}{s}}{z} = \apply{\apply{p}{i}}{z} \rmul \apply{\piIndex{R_0}{j}\circ \snd{\apply{a}{i}}}{z}$ and
for all $z\in X\setminus \supp{\apply{p}{i}}{X}{T}$ we have $\apply{\apply{c}{s}}{z} = 0$
by \cref{pair_eq_iff}.
We have $\apply{\apply{c}{s}}{x} = \apply{\apply{p}{i}}{x} \rmul \apply{\piIndex{R_0}{j}\circ \snd{\apply{a}{i}}}{x}$ and
$\apply{\apply{c}{s}}{y} = \apply{\apply{p}{i}}{y} \rmul \apply{\piIndex{R_0}{j}\circ \snd{\apply{a}{i}}}{y}$ by \cref{subseteq}.
$\apply{\apply{p}{i}}{x}\in I_0$ and $\apply{\apply{p}{i}}{y}\in I_0$ by \cref{continuous,funs_type_apply}.
Hence $\apply{\apply{p}{i}}{x}\in\reals$ and $\apply{\apply{p}{i}}{y}\in\reals$ by \cref{intervalclosed}.
$R_0$ is a relation by \cref{relation}.
For all $k,y_1,y_2$ such that $(k,y_1)\in R_0$ and $(k,y_2)\in R_0$ we have $y_1 = y_2$ by \cref{pair_eq_iff}.
For all $k\in\dom{R_0}$ we have $k\in\initialSegment{m}$ by \cref{dom_iff,pair_eq_iff}.
For all $k\in\initialSegment{m}$ we have $k\in\dom{R_0}$ by \cref{pair_eq_iff,dom_intro}.
Therefore $j\in\dom{R_0}$.
We have $R_0$ is right-unique by \cref{rightunique}.
Hence $\piIndex{R_0}{j}\in\funs{\productFamily{R_0}}{\apply{R_0}{j}}$ by \cref{projection_map_indexed_function}.
Therefore $\apply{R_0}{j} = \reals$ by \cref{function_apply_intro}.
We have $\piIndex{R_0}{j}\in\funs{\productFamily{R_0}}{\reals}$ by \cref{pair_eq_iff}.
$\snd{\apply{a}{i}}$ is a function and $\dom{\snd{\apply{a}{i}}} = \apply{U}{i}$ by \cref{homeomorphism,bijections,bijections_to_funs,funs_is_function,funs}.
For all $z\in\dom{\snd{\apply{a}{i}}}$ we have $\apply{\snd{\apply{a}{i}}}{z}\in\productFamily{R_0}$
by \cref{homeomorphism,bijections,bijections_to_funs,funs_type_apply,subseteq}.
Therefore $\snd{\apply{a}{i}}\in\funs{\apply{U}{i}}{\productFamily{R_0}}$ by \cref{funs_intro}.
We have $\piIndex{R_0}{j}\circ \snd{\apply{a}{i}}\in\funs{\apply{U}{i}}{\reals}$ by \cref{funs_circ}.
Hence $\piIndex{R_0}{j}\circ \snd{\apply{a}{i}}$ is a function and
$\dom{\piIndex{R_0}{j}\circ \snd{\apply{a}{i}}} = \apply{U}{i}$ by \cref{funs_is_function,funs}.
Therefore $\apply{\piIndex{R_0}{j}\circ \snd{\apply{a}{i}}}{x}\in\reals$ and
$\apply{\piIndex{R_0}{j}\circ \snd{\apply{a}{i}}}{y}\in\reals$
by \cref{funs_type_apply,subseteq}.
Hence $\apply{\apply{p}{i}}{x} = \apply{\apply{p}{i}}{y}$ by \cref{pair_eq_iff}.
Therefore $\apply{\piIndex{R_0}{j}\circ \snd{\apply{a}{i}}}{x} =
\apply{\piIndex{R_0}{j}\circ \snd{\apply{a}{i}}}{y}$
by \cref{positive_real_factor_cancel}.
$\snd{\apply{a}{i}}\in\funs{\apply{U}{i}}{\fst{\apply{a}{i}}}$ by \cref{homeomorphism,bijections,bijections_to_funs}.
Therefore $(x,\apply{\snd{\apply{a}{i}}}{x})\in \snd{\apply{a}{i}}$ and
$(y,\apply{\snd{\apply{a}{i}}}{y})\in \snd{\apply{a}{i}}$ by \cref{function_apply_elim}.
We have $(\apply{\snd{\apply{a}{i}}}{x},\apply{\apply{\snd{\apply{a}{i}}}{x}}{j})\in \piIndex{R_0}{j}$ and
$(\apply{\snd{\apply{a}{i}}}{y},\apply{\apply{\snd{\apply{a}{i}}}{y}}{j})\in \piIndex{R_0}{j}$
by \cref{projection_map_indexed,function_apply_elim,subseteq}.
Hence $\apply{\piIndex{R_0}{j}\circ \snd{\apply{a}{i}}}{x} = \apply{\apply{\snd{\apply{a}{i}}}{x}}{j}$ and
$\apply{\piIndex{R_0}{j}\circ \snd{\apply{a}{i}}}{y} = \apply{\apply{\snd{\apply{a}{i}}}{y}}{j}$
by \cref{circ_iff,function_apply_intro}.
Therefore $\apply{\apply{\snd{\apply{a}{i}}}{x}}{j} = \apply{\apply{\snd{\apply{a}{i}}}{y}}{j}$ by \cref{pair_eq_iff}.
\end{subproof}
Hence $\apply{\snd{\apply{a}{i}}}{x} = \apply{\snd{\apply{a}{i}}}{y}$ by \cref{finite_real_product_coordinate_extensionality}.
Therefore $x = y$ by \cref{injective_function}.
\end{subproof}
Hence $F$ is injective by \cref{injective_function}.
$F$ is a function and $\dom{F} = X$ by \cref{funs_elim}.
$F\in\funs{X}{\img{F}{X}}$ by \cref{funs_intro,function_apply_elim,ran_intro,img_dom}.
Hence $F\in\surj{X}{\img{F}{X}}$ by \cref{funs_surj_iff,img_dom}.
Therefore $F$ is a bijection from $X$ to $\img{F}{X}$ by \cref{bijections,injective_function}.
For all $k,y_1,y_2$ such that $(k,y_1)\in R$ and $(k,y_2)\in R$ we have $y_1 = y_2$ by \cref{pair_eq_iff}.
Hence $R$ is a function on $\initialSegment{N}$ by
\cref{relation,rightunique,dom_iff,pair_eq_iff,dom_intro,subseteq,subseteq_antisymmetric,funs}.
$\standardTopologyR\in \{\standardTopologyR\}$ by \cref{singleton_intro}.
Hence $S$ is a function from $\initialSegment{N}$ to $\{\standardTopologyR\}$ by \cref{constant_map_function}.
Therefore $S$ is a function and $\dom{S} = \initialSegment{N}$ by \cref{funs_elim}.
For all $k\in\initialSegment{N}$ we have $R(k) = \reals$ and $S(k) = \standardTopologyR$ by \cref{function_apply_intro}.
We have $\reals$ is Hausdorff with respect to $\standardTopologyR$ by \cref{standard_metric_is_metric,metric_space_hausdorff,standard_metric_topology}.
Hence $\productFamily{R}$ is Hausdorff with respect to $P$ by \cref{real_one_in_naturals,real_one_leq_naturalsplus,initial_segment_naturalsplus,subseteq,product_hausdorff_product}.
We have $\img{F}{X}\subseteq \productFamily{R}$ by \cref{funs_elim,funs_subseteq_rels,subseteq,rels_ran_subseteq,img_subseteq_ran,subseteq_transitive}.
$P$ is a topology on $\productFamily{R}$ by \cref{hausdorff}.
Hence $\img{F}{X}$ is a subspace of $\productFamily{R}$ with respect to $P$ by \cref{subspace_of}.
Therefore $\img{F}{X}$ is Hausdorff with respect to $\subspaceTopology{P}{\img{F}{X}}$ by \cref{subspace_hausdorff}.
We have $F$ is continuous from $X$ to $\img{F}{X}$ with respect to $T$ and $\subspaceTopology{P}{\img{F}{X}}$
by \cref{continuous_restrict_range,subseteq_refl}.
Therefore $F$ is a homeomorphism between $X$ and $\img{F}{X}$ with respect to
$T$ and $\subspaceTopology{P}{\img{F}{X}}$
by \cref{compact_hausdorff_bijection_homeomorphism}.
Hence $F$ is a topological embedding from $X$ to $\productFamily{R}$ with respect to $T$ and $P$
by \cref{topological_embedding}.
Take $n_1$ such that $n_1 = N$.
Take $R_1$ such that $R_1 = R$.
Take $S_1$ such that $S_1 = S$.
Take $f_1$ such that $f_1 = F$.
Follows by \cref{pair_eq_iff}.
\end{proof}
Assume $m\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$.
Assume $X$ is a manifold of dimension $m$ with respect to $T$.
Assume $X$ is compact with respect to $T$.
Then there exist $n, R, S, f$ such that $n\class{latex-symbol-tip latex-symbol-id-in}{\in}\naturalsPlus$ and $R = \{(i,\reals) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\}$ and $S = \{(i,\standardTopologyR) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\}$ and $f$ is a topological embedding from $X$ to $\productFamily{R}$ with respect to $T$ and $\productTopologyIndexed{S}{R}$.
LaTeX source
\begin{theorem}
\label{compact_manifold_embeds_in_euclidean_space}
Assume $m\in\naturalsPlus$.
Assume $X$ is a manifold of dimension $m$ with respect to $T$.
Assume $X$ is compact with respect to $T$.
Then there exist $n, R, S, f$ such that
$n\in\naturalsPlus$ and
$R = \{(i,\reals) \mid i\in\initialSegment{n}\}$ and
$S = \{(i,\standardTopologyR) \mid i\in\initialSegment{n}\}$ and
$f$ is a topological embedding from $X$ to $\productFamily{R}$ with respect to $T$ and $\productTopologyIndexed{S}{R}$.
\end{theorem}
Proof
Let $n = 1$.
Let $R = \{(i,\reals) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\}$.
Let $S = \{(i,\standardTopologyR) \mid i\class{latex-symbol-tip latex-symbol-id-in}{\in}\initialSegment{n}\}$.
Let $f = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
Follows by Lemma 569.
Follows by Lemma 573.
LaTeX source
\begin{byCase}
\caseOf{$X = \emptyset$.}
Let $n = 1$.
Let $R = \{(i,\reals) \mid i\in\initialSegment{n}\}$.
Let $S = \{(i,\standardTopologyR) \mid i\in\initialSegment{n}\}$.
Let $f = \emptyset$.
Follows by \cref{compact_manifold_empty_embeds_in_euclidean_space}.
\caseOf{$X\neq\emptyset$.}
Follows by \cref{compact_manifold_nonempty_embeds_in_euclidean_space}.
\end{byCase}
LaTeX source
\begin{proof}
\begin{byCase}
\caseOf{$X = \emptyset$.}
Let $n = 1$.
Let $R = \{(i,\reals) \mid i\in\initialSegment{n}\}$.
Let $S = \{(i,\standardTopologyR) \mid i\in\initialSegment{n}\}$.
Let $f = \emptyset$.
Follows by \cref{compact_manifold_empty_embeds_in_euclidean_space}.
\caseOf{$X\neq\emptyset$.}
Follows by \cref{compact_manifold_nonempty_embeds_in_euclidean_space}.
\end{byCase}
\end{proof}