Many books define the unitary linear map $U: (\mathbb{H}_1,\left<\right>_1) \rightarrow (\mathbb{H}_2,\left<\right>_2)$ as a bijective linear map such that $\left< x,y \right>_1=\left<Ux,Uy \right>_2$.
And I have been trying to disprove that if $U: (\mathbb{H}_1,\left<\right>_1) \rightarrow (\mathbb{H}_2,\left<\right>_2)$ is a linear map such that $\left< x,y \right>_1=\left<Ux,Uy \right>_2$ then $U$ is surjective.
I am pretty sure that the statement above is false since definition specify the bijectivity of unitary map and otherwise they don't need to do that. I hope someone can help me to come up with the counter example.
Let $H_1 = \ell^2(\mathbb{N})$ and $H_2 = \ell^2(\mathbb{N})$, with standard basis elements $e_0,e_1,e_2,\cdots$. Then $U : H_1 \rightarrow H_2$ defined by $Ue_n = e_{2n}$ satisfies $\langle Ux,Uy\rangle_2 = \langle x,y\rangle_1$, but $U$ is not surjective.