Let $M$ be a connected Riemannian manifold. Let $\alpha:[a,b]\to M$ be a piecewise smooth curve segment. Then the arc length of $\alpha$ is defined as \begin{equation} L(\alpha)=\int_a^b|\alpha'(t)|\,dt\text. \end{equation} The Riemannian distance function on $M$ is defined as \begin{equation} d(p,q)=\inf\{L(\gamma):\text{$\gamma$ is a piecewise smooth curve segment from $p$ to $q$}\}\text. \end{equation} In any metric space $X$, the arc length of a (continuous) curve $\alpha:[a,b]\to X$ is defined as \begin{equation} |\alpha|=\sup\left\{\sum_{i=1}^md(\alpha(s_{i-1}),\alpha(s_i)):a=s_0<\cdots<s_m=b\right\}\text. \end{equation}
Is $L(\alpha)=|\alpha|$? I proved that $L(\alpha)\geq|\alpha|$, but could not prove the opposite inequality.
To prove that $\alpha \le L(\alpha)$ it suffices to prove for each partition $0=s_0<s_1<\cdots<s_m=1$ that $$\sum_{i=1}^md(\alpha(s_{i-1}),\alpha(s_i)) \le L(\alpha) $$ because then the supremum of all of the left hand sides is also $\le L(\alpha)$.
Using the equation $$L(\alpha) = \sum_{i=1}^m \int_{s_{i-1}}^{s_i} |a'(t)| \, dt $$ and it therefore suffices to prove for each $i$ that $$d(\alpha(s_{i-1}),\alpha(s_i)) \le \int_{s_{i-1}}^{s_i} |a'(t)| \, dt $$
Finally, using the inequality $$\biggl| \int_{s_{i-1}}^{s_i} a'(t) \, dt \biggr| \le \int_{s_{i-1}}^{s_i} |a'(t)| \, dt $$ it suffices to prove that $$d(\alpha(s_{i-1}),\alpha(s_i)) \le \biggl| \int_{s_{i-1}}^{s_i} a'(t) \, dt \biggr| $$ which is true, in fact the two sides are equal, because both sides are equal to $|\alpha(s_{i}) - \alpha(s_{i-1})|$.