There is plenty of material online where it is shown that "A Cartesian product of a finite number of compact spaces is itself compact". I am wondering if the converse is true as well. That is
Let $\mathcal{X}\times\mathcal{Y}$ be a compact subspace. Does that imply that $\mathcal{X}$ and $\mathcal{Y}$ are compact as well?
I found a similar question here, but I am still not sure about it.
Hint: Let $\pi:X\times Y\to X$ be the projection onto the first coordinate. Then $\pi$ is continuous and $\pi[X\times Y]=X$.