I'm trying to understand the proof of the following theorem on Page 17 of Guillemin and Pollack's Differential Topology:
Theorem: An embedding $f : X \rightarrow Y$ maps $X$ diffeomorphically onto a submanifold of $Y$.
The proof proceeds with two main steps:
Showing that the image of any open set in $X$ is an open set in $f(X)$ (this apparently proves that $f(X)$ is a manifold), and then
Checking that $f : X \rightarrow f(X)$ is a diffeomorphism.
I understand the the argument that $f$ maps open sets to open sets (which is argued by contradiction considering a sequence), but I don't understand why this guarantees that $f(X)$ is a manifold.
Any hints/explanations would be greatly appreciated!