Let $X,Y$ be length spaces. A map $f:X \to Y$ is called an arcwise isometry if $L(f(\gamma))=L(\gamma)$ for every path $\gamma$.
In the book "A course in metric geometry" (Burago & Burago & Ivanov) it is claimed that an arcwise isometry that is a local homeomorphism is a local isometry.
A map $f : X \to Y$ is called a local isometry at $x ∈ X$ if $x$ has a neighborhood $U$ such that the restriction $\left.f\right|_U$ maps $U$ isometrically onto an open set $V$ in $Y$. In other words the map $\left.f\right|_U:(U,\left.d^X\right|_U) \to (V,\left.d^Y\right|_V)$ is an isometry. (Note that we are using the restrictions of the metrics on $X,Y$, not the induced intrinsic distances which only allow for paths that stay inside $U,V$).
A map which is a local isometry at every point is called a local isometry.
I do not see why this is needs to be true. I think there is a problem if points in $Y$ don't have convex neighbourhoods.
Indeed, let $p \in X$. There exists open sets $p \in U \subseteq X,f(p) \in V \subseteq Y$ such that $f:U \to V$ is a homeomorphism. Since $f$ is an arcwise isometry, it is $1$-Lipschitz, so
$$ (1)\, \, d^Y(f(p),f(q)) \le d^X(p,q)$$
Even if we knew $f^{-1}:V \to U$ also preserves lengths the only thing we could conclude is that
$$ (2)\, \, d^X(p,q) \le d^U(p,q) \le d^V(f(p),f(q))$$
(where $d^U,d^V$ are the intrinsic metrics induced on $U$,$V$)
However, if $V$ is not convex then it's possible that $ d^V(f(p),f(q)) > d^Y(f(p),f(q))$ so we don't have a way to combine inequalities $(1)$ and $(2)$.
So, is the assertion true? Or do we indeed need some local-convexity assumptions on $Y$?