It is known that product topology and quotient space behave not as well as we wish. Nonetheless while I was reading some other posts on MSE, it seems that in some special cases the following claim does hold:
Claim: Let X be a topological space, and $\sim $ an equivalence relation on $X$. Then $(X\times I)/\sim'$ is homeomorphic to the space $(X/\sim)\times I$.
Here $I$ is the interval $[0,1]$ in $\mathbb {R}$ and $\sim'$ is the equivalence relation on $(X\times I)$ defined by $(x,t)\sim' (x',t')$ if $x\sim x'$ and $t=t'$.
I can see that the continuous map $p\times \textrm{id}:X\times I\rightarrow (X/\sim) \times I$ induces a continuous bijection from $(X\times I)/\sim'$ to $(X/\sim)\times I$ (,which is true in more general case). According to what I have found so far it seems that the (local) compactness of $I$ is essential in proving that the inverse of the induced map is continuous, but I am stuck here. So my question is
How can one prove the above claim? (And if local compactness is used in the proof, how is it used?)
Thanks in advance!