I want to prove that if $f: M \to N$ is a local homeomorphism, then for all $y \in N$ we have $f^{-1}(\{y\}) \subset M$ closed and discrete.
Here's the catch: this is from an exercise sheet from over a year ago, so it was written sloppily and it is not clear if we can assume $M$ and $N$ to be metric spaces, or if they are topological spaces in general.
I had solved it, but reading again I think that there are some things off in my solution, so I would like some input and to know how to fix it, if needed.
What I had done: Let $y \in N$ be arbitrary. Take $x \in f^{-1}(\{y\})$. Since $f$ is a local homeomorphism, exists $U \subset M$ open containing $x$ such that $f\big|_U : U \to f(U)$ is a homeomorphism. In particular, $f$ is bijective. I claim that $\{x\} = U \cap f^{-1}(\{y\})$. If $x' \in U \cap f^{-1}(\{y\})$, we have that $f(x) = f(x') = y$, and since $x,x' \in U$ and $f$ is injective in $U$, we have that $x = x'$. So $x$ is an isolated point of $f^{-1}(\{y\})$ (more precisely, $\{x\} = U \cap f^{-1}(\{y\})$ is the intersection of an open set with $f^{-1}(\{y\})$, hence closed in $f^{-1}(\{y\})$). Since $x$ was arbitrary, every point of $f^{-1}(\{y\})$ is isolated, so $f^{-1}(\{y\})$ is discrete. And for closedness, it suffices to note that $f^{-1}(\{y\})' = \varnothing \subset f^{-1}(\{y\})$, and every set containing all of its limit points is closed.
Issues:
It seems I didn't actually prove that $f^{-1}(\{y\})' = \varnothing$, but only that $x \in f^{-1}(\{y\}) \implies x \not\in f^{-1}(\{y\})'$, so I would have to make an argument for the points $x \not\in f^{-1}(\{y\})$. Maybe it is trivial, but I'm not seeing it.
I didn't used continuity of $f\big|_U$. This bothers me. Proving continuity of $f$ is the following exercise, which I managed to do (and I'm happy with my work there).
"$f^{-1}(\{y\})'\subset f^{-1}(\{y\}) \implies f^{-1}(\{y\})$ closed" assumes at least $T_1$, no?
Do we need to assume $M$ and $N$ to be metric spaces for this to work?
Thanks.