Skip to main content
2 of 3
added 295 characters in body
Moishe Kohan
  • 12.3k
  • 1
  • 36
  • 58

The easiest argument I know (which works for path-metrics on topological manifolds $X$ and in even greater generality) is to consider the induced map $f^2: X^2\to Y^2$. This map also preserves the product measure. Set $$ \Delta_r(X)=\{(x,y)\in X^2: d(x,y)\le r\}. $$ By the assumption, $f^2(\Delta_r(X))\subset \Delta_r(Y)$.

If $f$ is not an isometry, there exists $r>0$ such that $f^2(\Delta_r)$ is a proper subset of $\Delta_r$, hence, by compactness, the interior of the complement $$ \Delta_r(Y) \setminus f^2(\Delta_r(X)) $$ is nonempty, hence, has positive measure. (This is the only place where I am using the manifold assumption.) A contradiction.

The right degree of generality for this proof is that we have two compact path-metric spaces $X, Y$ equipped with Borel measures, each satisfying the property that the measure of each open nonempty subset is positive. The example I gave in the comment shows that this is the right setting.

Moishe Kohan
  • 12.3k
  • 1
  • 36
  • 58