I have not done math for a long time and I need a little help.
I need to know if it's true that if $X$ is not isomorphic to $Y$ then $ X \times X$ is not isomorphic to $Y \times Y$ being $X$ and $Y$ vector spaces. I tried trying that if $ X \times X$ is isomorphic to $Y \times Y$ then $X$ is isomorphic to $Y$ but I do not know how to continue.
If it is true can you help me with the proof? And if it is false can you give me an example of vector spaces $X$ and $Y$ such that $X$ is not isomorphic to $Y$ but however $ X \times X$ is isomorphic to $Y \times Y$.
Thank you to all.