Let $f$ be a continuous mapping of a compact metric space $(X, d)$ onto a Hausdorff space $(Y, \tau_1)$. Then $(Y, \tau_1)$ is compact and metrizable.
In one proof the following metric is constructed:
$d_1(y_1, y_2) = inf\{d(a, b) : a \in f^{-1}\{y_1\},\ b \in f^{-1}\{y_2\}\}$, for all $y_1$ and $y_2$ in $Y$.
I'm thinking about how to prove that triangle inequality holds for $d_1$, s.t. $d_1(x, z) \leq d_1(x, y) + d_1(y, z)$
And how about the case when triangle inequality does not hold?
Update: @daniel-schepler suggested to use metric $d_1(x, y) = inf\{d(x^*, x_1) + d(y_1, x_2) + \cdots + d(y_{n-1}, x_n) + d(y_n, y^*)\}$ where $f(x^*) = x$, $f(y^*) = y$, and $f(x_i) = f(y_i)$ for each $i$.
Now we need to prove 3 property of metric: positivity, symmetry and triangle inequality. This is my sketch:
Positivity. Chose two points $x,y \in Y$ s.t. $x \neq y$. Singleton sets $\{x\}$ and $\{y\}$ are disjoint closed sets by Hausdorfness of $Y$ and their preimages are also disjoint closed in $X$ by continuity of $f$. $X$ is compact metric space by hypothesis and therefore a normal space. In normal space every two disjoint closed sets have disjoint open neighborhoods. Let $f^{-1}(x) \subseteq U$ and $f^{-1}(y) \subseteq V$ s.t. $U,V$ are open and $U \cap V = \varnothing$. Therefore there exists an $\varepsilon > 0$, s.t. $x^* \in B_\varepsilon(x^*) \subseteq U$ and $y^* \in B_\varepsilon(y^*) \subseteq U$ and distance between any two closed sets is strictly positive and $d_1$ is positive and zero iff $x = y$.
Symmetry. Clearly $d_1$ is symmetric.
Triangle inequality. For triangle inequality we can show that in the "worst" case $d_1(x, z) = d_1(x,y) + d_1(y, z)$.