Let $(X,\varrho)$ be a metric space, and define $d:X\times X\to \mathbb{R}$ by
$$d(x,y)=\inf\lbrace\varrho(x,z)+\varrho(z,y):z\in X\rbrace$$
Show that $d$ is a metric on $X$.
I have all the axioms but the triangle inequality, and just need to find the way to actually leverege that $\varrho$ obeys the triangle inequality in order to finish, but that infimum is stopping me.
$$d(a,c)\le\rho(a,b)+\rho(b,c)$$$$\le d(a,b)+d(b,c),$$ where both $\le$ are by definition of $d,$ and the second one ($\rho\le d$) also uses that $\rho$ satisfies the triangular inequality.