Let $X$ be a topological space and let $\sim$ be an equivalence relation on $X$.
Call a subset $A \subset X$ $\mathit{full}$ if every equivalence class intersects $A$.
If A is compact and $A/{\sim}$ is Hausdorff, then $X/{\sim}$ and $A/{\sim}$ are homeomorphic.
I came across this Lemma on the web, and I can't see why it is true.
The basic idea of the proof is to use the well-known fact: A continuous bijection from a compact space to a Hausdorff space is a homeomorphism.
So the proof goes as follows: First, it shows that there exists a continuous bijection $f$ from $A/{\sim}$ to $X/{\sim}$.
And it is easy to show that $A/{\sim}$ is compact.
But I couldn't show that $X/{\sim}$ is Hausdorff.
Why it is Hausdorff? and why the assumption that $A/{\sim}$ is Hausdorff is needed?
The result is false without some restriction on the equivalence relation. Let $X=[0,1]$ with the usual topology, let $A=\{0,1\}$, and let $\sim$ be the equivalence relation on $X$ whose equivalence classes are $\{0\}$ and $(0,1]$. Then $A/\!\sim$ is homeomorphic to $A$, the discrete two-point space, but $X/\!\sim$ is homeomorphic to the Sierpiński space, which is not even $T_1$.