Let $(X,d)$ be a metric space and $(Y,d_Y)$ a subspace with $Y \subset X$
Prove that:
A subset $F$ of $Y$ is closed in $Y$ if and only if $F=Y\cap H$, for some closed subset $H$ of $X$
I'm having trouble proving the first implication (so assuming that $F$ is a closed subset in $Y$ and proving the latter).
The user egreg seems to answer this here (the second answer): Show that $F\subset Y$ is closed in $Y$ iff $F=Y\;\cap\;H$ where $H\subset X$ is closed in $X$.
But I'm not convinced by this statement:
Let $x\in F$; then $x\notin Y\setminus F$, so $x\notin Y\cap A$ and therefore $x\notin A$. So $x\in H$.
In the case that $A \subset Y$ we can simply conclude that $x \notin A$, otherwise it wouldn't necessarily hold.
How can I prove this?