This question was on my exam but apparently my answer was wrong as I only got half of the point: Suppose $p:X \to Y$ is an open map, prove if $A$ is open in $X$ then $q:A \to p(A)$ obtained by restricting $p$ is also an open map.
My proof: Let $U$ be open in $A$. We have that $q(U) = p(U)$ is open in $Y$, hence it's open in $p(A)$. So q is an open map.
This sounded like a quick excercise but apparently my proof needs improvement. What's wrong about my proof?
You are assuming that $p(U)$ is open. Why is that? The set $U$ is an open subset of $A$, but you should deduce from this that therefore $U$ is an open subset of $X$ (and this is where the fact that $A$ is open is used; it is not true in general). Then, yes, you can deduce that $p(U)$ is indeed an open subset of $Y$.