Heine-Cantor Theorem/Proof 2

Proof
Let $A_1 \times A_1$ and $A_2 \times A_2$ be considered with the product topology.

Let $F: A_1 \times A_1 \to A_2 \times A_2$ be the mapping defined as:
 * $F \left({x, y}\right) = \left({f \left({x}\right), f \left({y}\right)}\right)$

By Projection from Product Topology is Continuous, we have that the (first and second) projections on $A_1 \times A_1$ are continuous.

By Continuity of Composite Mapping and Continuous Mapping to Topological Product, it follows that $F$ is continuous.

By Metric is Continuous and Continuity of Composite Mapping, it follows that $d_2 \circ F: A_1 \times A_1 \to \R$ is continuous.

Let $\epsilon \in \R_{>0}$ be a strictly positive real number.

By Continuity Defined from Closed Sets, the set:
 * $C = \left({d_2 \circ F}\right)^{-1} \left({\left[{\epsilon \,.\,.\, {+\infty}}\right)}\right) = \left\{{\left({x, y}\right) \in A_1 \times A_1: d_2 \left({f \left({x}\right), f \left({y}\right)}\right) \ge \epsilon}\right\}$

is closed in $A_1 \times A_1$.

By Topological Product of Compact Spaces, $A_1 \times A_1$ is compact.

By Closed Subspace of Compact Space is Compact, $C$ is compact.

By Metric is Continuous and Continuous Image of Compact Space is Compact, $d_1 \left({C}\right)$ is compact.

Therefore, $d_1 \left({C}\right)$ has a smallest element $\delta$.

By metric space axioms $(M1)$ and $(M4)$, we have that $\delta > 0$.

By construction, it follows that:
 * $\forall x, y \in A_1: d_1 \left({x, y}\right) < \delta \implies d_2 \left({f \left({x}\right), f \left({y}\right)}\right) < \epsilon$

Hence, $f$ is uniformly continuous.