Definition. Distance between compact metric spaces [fdip-00CJ]

Let \(A\) and \(B\) be nonempty subsets of a metric space. The Hausdorff distance \(d_H(A,B)\) is the larger of the two numbers \(\sup _{a\in A}\operatorname {dist}(a,B)\) and \(\sup _{b\in B}\operatorname {dist}(b,A)\).

Let \(X\) and \(Y\) be nonempty compact metric spaces. Their Gromov–Hausdorff distance is the infimum of \(d_H(\Phi (X),\Psi (Y))\) over all metric spaces \(Z\) and all isometric embeddings \(\Phi :X\to Z\) and \(\Psi :Y\to Z\). The infimum is at most the Hausdorff distance coming from any one such pair.