Proof (continuity on quotient space)

$f$ is continuous $\implies$ $f\circ q$ is continuous

$q$ is continuous, and composition preserves continuity.

$f\circ q$ is continuous $\implies$ $f$ is continuous

Let $V\in \rho$ be open in $Y$. $q\inv(f\inv(V)) = (f\circ q)\inv(V) \in \tau$ by continuity of $f\circ q$, so $f\inv(V) \in \tau_\sim$ is open by the definition of the quotient topology.