Let $X$ be a Polish space and $Y$ a metrizable space. Assume that there exists a continuous mapping $f \colon X \to Y$ such that $f(X)=Y$ and $f(G)$ is open in $Y$ for every open set $G \subseteq X$.
Under these conditions I'm trying to prove that $Y$ is actually a Polish space. Since $X$ is Polish (and thus separable), it is clear that $Y$ is separable (being a continuous image of a separable space). Unfortunately, I am not able to prove that $Y$ is completely metrizable. I tried the following:
Since $Y$ is assumed to be metrizable, there is a metric $d$ on $Y$ which is compatible with the topology of $Y$. Let $(\hat{Y}, \hat{d})$ be the completion of $(Y,d)$. Then $(\hat{Y}, \hat{d})$ is a separable complete metric space. Therefore, it suffices to show that $Y$ is $G_{\delta}$ in $(\hat{Y}, \hat{d})$. But I don't know how to show this and how to use the openness of $f$.
I will appreciate any help.
I actually needed this fact earlier today to show an unrelated result (namely that the quotient of a Polish group by a closed subgroup is Polish) and I remembered this question since I spent some time thinking about it when it was posted. The answer by Henno Brandsma is quite nice, but I had a feeling there had to be an elementary approach, so I did some digging and I found a proof in Hjorth's book Classification and Orbit Equivalence Relations which I reproduce below with minimal changes. This is theorem 7.5 in the book, where it is attributed to Hausdorff.
Theorem: Let $X$ be Polish and $Y$ metrizable. If $\pi\colon X\to Y$ is open, continuous and onto, then $Y$ is Polish.
Proof: Let $\widehat{Y}$ be the completion of $Y$, which is Polish since $Y$ is separable, so we only need to show that $Y$ is $G_\delta$ in $\widehat{Y}$.
We build a Lusin scheme on $X$, that is a set of open subset of $X$ indexed over $\Bbb N^{<\Bbb N}$ with the following properties:
Now for every $s\in\Bbb N^{<\Bbb N}$ pick $W_s$ open in $\widehat{Y}$ such that $W_s\cap Y=\pi(N_s)$ (here we are using that $\pi$ is an open map). Using that open sets are $F_\sigma$, since we are in a metric space, we can now build open $V_s\subseteq\widehat{Y}$ indexed over $\Bbb N^{<\Bbb N}$ with the following properties:
$4$ is the only difficult condition, and it is where we use that open sets are $F_\sigma$. Namely write each $W_t$ as $\bigcup_n C_{n,t}$ for closed sets $C_{n,t}$ with $C_{n,t}\subseteq C_{n+1,t}$ for all $n\in\Bbb N$. Then we can demand that for $t_0,t_1\in\Bbb N^{k+1}$,$s\in\Bbb N^k$ with $s\subset t_0,t_1$, if $$t_0(k)<t_1(k),$$ then $$W_{t_1}\cap C_{n,t_0}=\varnothing$$ for $n<t_1(k)$. As a consequence for every $y\in\widehat{Y}$ and $k\in\Bbb N$ there are only finitely many $s\in\Bbb N^k$ with $y\in V_s$. After this is all done it's clear that $$Y\subseteq\bigcap_{k\in\Bbb N}\bigcup_{s\in\Bbb N^k}V_s,$$ so showing the revere inclusion is enough to conclude that $Y$ is $G_\delta$ in $\widehat{Y}$. To show the reverse inclusion fix $y$ in the RHS and consider $$T_y=\{s\in\Bbb N^{<\Bbb N}\mid \text{ there exist infinitely many $t\supset s$ with $y\in V_t$}\},$$ which is a tree in the sense that $s\subset t\in T_y\implies s\in T_y$. By 3 if $s\in T_y$, then $y\in V_s$ and by 4 for each $s\in T_y$ there is a proper extension $s'\supset s$ also in $T_y$, thus we have infinite branches in the tree and we can find $f\in\Bbb N^{\Bbb N}$ such that
And since $X$ is complete we can also find an $x\in\bigcap_{k\in\Bbb N}N_{f\upharpoonright k}$. Since $\{N_{f\upharpoonright k}\mid k\in\Bbb N\}$ is a neighbourhood basis for $x$ and $\pi$ is open and continuous, it follows that $y$ is contained in every open set containing $\pi(x)$, thus $y=\pi(x)$ and we obtain the reverse inclusion, which concludes the proof.