Let $(X,d)$ be a metric space. For $x,y\in X$, define $A_{xy}$ the set of curves (the domain is supposed to be $[0,1]$) joining $x$ with $y$. For $\sigma\in A_{xy}$, define its length as $$L(\sigma)=\sup\sum_{i=1}^n d(\sigma(y_{i-1}),\sigma(y_i)),$$ where the supremum is taken over all partitions ${t_0,\ldots,t_n}$ of $[0,1]$. Define $$d_L(x,y)=\inf_{\sigma\in A_{xy}} L(\sigma).$$ The metric $d$ is said to be intrinsic if $d=d_L$. For $r>0$, $z$ is said to be $r-$midpoint for $x$ and $y$ if $2d(x,z)-d(x,y)<r$ and $2d(z,y)-d(x,y)<r$.
Prove that if $X$ is complete and for $x,y\in X$ and $r>0$ there exists a $r-$midpoint, then $d$ is intrinsic.
Given $r>0$, I tried to create a "curve" over the diadics in the interval $[0,1]$, sending a mid$-$point to a $r-$midpoint. Then extend the curve by continuity to $[0,1]$. I hoped this curve approximates arbitrary to the distance between its extremes. Thanks for every hint or solution.