The comparison triangle must have third side : the printed contains an undefined . Use , and .
First extend the midpoint inequality along any constant-speed geodesic from to . If , the function is midpoint-convex by (a). Iteration proves its convexity bound for dyadic , and continuity then gives the Hadamard squared-distance inequality
Apply this first to with , and then to with :
Simplification gives
In a Euclidean comparison triangle, the cosine rule gives the scalar product of the two vectors from the common vertex as . The squared distance between their multiples and is exactly the right side displayed above. Taking nonnegative square roots proves the required triangle comparison, including degenerate Euclidean triangles.
Let lie in the closed ball of center and radius . On their unique geodesic, the Hadamard squared-distance inequality gives
Thus every point of that geodesic lies in the ball. By uniqueness there are no other geodesics to consider, so every closed ball is geodesically convex.