Let $p:X\rightarrow Y$ be a closed continuous surjective map such that $p^{-1}(\{y\})$ is compact for each $y\in Y$. Show that if $X$ is Hasudorff then $Y$ is Hausdorff..
Let $a\neq b\in Y$. Fix $x\in X$ such that $p(x)=a$. Let $y_i\in X$ such that $p(y_i)=b$
As $X$ is Hasudorff there exists $U_i$ containing $x$ and $V_i$ containing $y_i$ such that $U_i\cap V_i=\emptyset$
See that $\{V_i\}$ is an open cover for $p^{-1}(\{b\})$. As this is finite there exists a finite subcover $\{V_i\}_{i=1}^n$
Fix $y\in X$ such that $p(y)=b$.. Let $x_i\in X$ such that $p(x_i)=a$
As $X$ is Hasudorff there exists $M_j$ containing $x_j$ and $N_j$ containing $y$ such that $M_j\cap N_j=\emptyset$
See that $\{M_j\}$ is an open cover for $p^{-1}(\{a\})$
As this is finite there exists a finite subcover $\{M_j\}_{i=1}^m$
Consider $\bigcup_{i=1}^n V_i$ and $\bigcup _{j=1}^m M_j$ open sets in $X$
Their complement $\bigcap_{i=1}^n V_i^c$ and $\bigcap _{j=1}^m M_j^c$ are closed in $X$
As $p$ is a closed map we have $p\left(\bigcap_{i=1}^n V_i^c\right)$ and $p\left(\bigcap_{j=1}^m M_j^c\right)$ are closed
So, $\left(p\left(\bigcap_{i=1}^n V_i^c\right)\right)^c$ and $\left(p\left(\bigcap_{j=1}^m M_j^c\right)\right)^c$ are open
I expect to have $a\in\left(p\left(\bigcap_{j=1}^m M_j^c\right)\right)^c$ and $b\in \left(p\left(\bigcap_{i=1}^n V_i^c\right)\right)^c$ but could not prove
Suppose $a\in p\left(\bigcap_{j=1}^m M_j^c\right)$ i.e., $a=p(x)$ for some $x\in \bigcap_{j=1}^m M_j^c$ i.e., $x\notin M_j$ for all $j$
We have $p^{-1}(a)\subset \bigcup_{j=1}^n M_j$ in particular, we must have $x\in \bigcup_{j=1}^n M_j$ but then $x\notin M_j$ for any $j$, contradiction
Similarly for $b$ also we have same thing
Is this justification sufficient enough?
EDIT : I do not see why should $\bigcup_{i=1}^n V_i$ and $\bigcup _{j=1}^m M_j$ in $X$.. Accepted answer below assume that they are disjoint.. It is my mistake.. User asked me to check if it is disjoint and i said yes..