Lemma (continuity relative to subspace topology)
Let $(X,\tau)$ and $(Y,\rho)$ be topological spaces, and $A\subseteq X$ with the subspace topology.
If $f:X\to Y$ is continuous, then so is $f|_A$.
Let $(X,\tau)$ and $(Y,\rho)$ be topological spaces, and $A\subseteq X$ with the subspace topology.
If $f:X\to Y$ is continuous, then so is $f|_A$.