[step:Extend $I$ past $T$ via the sphere-minimisation claim at $\gamma(T)$ to derive a contradiction with $T < d(m, q)$]Suppose for contradiction that $T < d(m, q)$. We apply the sphere-minimisation claim with $p := \gamma(T)$, using some radius $\varepsilon$ satisfying $0 < \varepsilon < \min(\delta_0(\gamma(T)), d(\gamma(T), q))$, where $\delta_0(\gamma(T))$ is a normal-neighbourhood radius at $\gamma(T)$ (which exists by the [existence of normal neighbourhoods](/theorems/???) at every point of a Riemannian manifold). The claim produces $p_0 \in \partial B^{(g)}_\varepsilon(\gamma(T))$ with
\begin{align*}
d(\gamma(T), p_0) = \varepsilon, \qquad d(p_0, q) = d(\gamma(T), q) - \varepsilon.
\end{align*}
Using the defining property $d(q, \gamma(T)) + T = d(q, m)$, we have $d(\gamma(T), q) = d(q, m) - T$. Substituting:
\begin{align*}
d(p_0, q) = d(q, m) - T - \varepsilon.
\end{align*}
On the other hand, the triangle inequality gives
\begin{align*}
d(m, p_0) \geq d(m, q) - d(p_0, q) = d(m, q) - (d(q, m) - T - \varepsilon) = T + \varepsilon.
\end{align*}
Now consider the concatenation $\alpha$ of two curves:
- $\gamma|_{[0, T]}$: a unit-speed geodesic from $m$ to $\gamma(T)$, of length $T$.
- A length-minimising path from $\gamma(T)$ to $p_0$: this exists because $p_0 \in \partial B^{(g)}_\varepsilon(\gamma(T))$ and $\varepsilon$ is within a normal neighbourhood of $\gamma(T)$, so the unique radial geodesic from $\gamma(T)$ to $p_0$ in that chart realises the distance $\varepsilon$ (again by [normal neighbourhoods and radial minimisation](/theorems/???)).
The total length of $\alpha$ is $T + \varepsilon$. Thus
\begin{align*}
d(m, p_0) \leq L(\alpha) = T + \varepsilon.
\end{align*}
Combining with the previous inequality $d(m, p_0) \geq T + \varepsilon$, we get $d(m, p_0) = T + \varepsilon$, and $\alpha$ is a length-minimising path from $m$ to $p_0$.
A length-minimising path between two points in a Riemannian manifold is a geodesic ([minimisers are geodesics](/theorems/???)), and concatenations of geodesics are geodesics only if they connect smoothly, i.e., the outgoing velocity of the first piece equals the incoming velocity of the second. Therefore the radial geodesic from $\gamma(T)$ to $p_0$ must be the continuation of $\gamma|_{[0, T]}$, i.e., $p_0 = \gamma(T + \varepsilon)$.
Substituting $p_0 = \gamma(T + \varepsilon)$ into $d(p_0, q) = d(q, m) - T - \varepsilon$:
\begin{align*}
d(q, \gamma(T + \varepsilon)) + (T + \varepsilon) = d(q, m),
\end{align*}
so $T + \varepsilon \in I$. Since $T + \varepsilon \leq d(m, q)$ (from $d(q, \gamma(T + \varepsilon)) \geq 0$ and the identity above: $d(q, m) - T - \varepsilon \geq 0$ iff $T + \varepsilon \leq d(q, m) = d(m, q)$), we have found a point of $I$ strictly greater than $T$. This contradicts $T = \sup I$.
Therefore $T = d(m, q)$. Since $T \in I$,
\begin{align*}
d(q, \gamma(d(m, q))) + d(m, q) = d(q, m), \qquad \text{hence } d(q, \gamma(d(m, q))) = 0,
\end{align*}
i.e., $\gamma(d(m, q)) = q$. The unit-speed geodesic $\gamma|_{[0, d(m, q)]}$ has length $d(m, q)$ and connects $m$ to $q$, so it is length-minimising.[/step]