Let $Y$ be a closed subspace of the Hilbert space $X$, and define $T:X\to Y$ as
$$Tx = Proj_Y x$$
Then I want to check that $T$ is continuous. So I did the following, I took a converging sequence $(x_n) \in X$ with limit $x$, then I want to prove that $(Tx_n) \to Tx$. To this end I considered that $Tx_i=y_i$ and $Tx=y$, therefore
$$||y_n-y||=||y_n-x_n+x_n-y|| <||y_n-x_n||+||x_n-y||<||y^{*}-x_n||+||x_n-y||$$
Now,since the last inequality holds for all $y^{*} \in Y$ we pick this point such that $||y^{*}-x_n||<\frac{\epsilon}{3}$, so we get
$$||y^{*}-x_n||+||x_n-y||<\frac{\epsilon}{3}+||x_n-x+x-y||<\frac{\epsilon}{3}+||x_n-x||+||x-y^{**}||$$
and by the same argument as above, but know with $x$ we finally get:
$$\frac{\epsilon}{3}+||x_n-x||+||x-y^{**}||<\frac{\epsilon}{3}+\frac{\epsilon}{3}+\frac{\epsilon}{3}=\epsilon$$
The thing is that I am not sure of my above proof, in the part of choosing those $y^{*}$ and $y^{**}$.
I was thinking to use the Pythagoras identity, but I don't know how.
Can someone help me to prove correctly the above result please?
Thanks a lot in advance.
Note
Thm. Let $Y$ a closed subspace of the Hilbert space $X$. then, for $x ∈ X$, there exists a unique $y_ 0 ∈ Y$ such that $$||x − y_ 0 || ≤ ||x − y||$$ for all $y ∈ Y$ . This is, $y _0$ is the nearest vector in $Y$ to $x$. We call $y_0$ the orthogonal projection of $x$ in $Y$