Hausdorff Distance
Definition
Let be a metric space and non-empty subsets. The Hausdorff distance between and is
An equivalent characterisation uses -thickenings :
Intuitively, means every point of has a partner in within , and vice versa.
Examples
Two points. — the Hausdorff distance reduces to the underlying metric on singletons.
Concentric circles. Let and be circles of radii centred at the origin in . Then .
A point and a set. — the diameter of as seen from .
Nested squares. A square of side centred in the unit square has — the distance from the centre of to a corner of minus the distance to a corner of .
Cantor approximations. Let be the -th iterate of the middle-thirds Cantor construction (so , , …). Then as , where is the Cantor set itself. This is the Hausdorff-metric statement that the IFSIterated Function SystemsConstructing fractals via contractive affine transformationsRead more → iteration converges.
The Space of Compact Sets
Let denote the set of non-empty compact subsets of . The fundamental result is:
Theorem (Hausdorff completeness). If is complete, then is a complete metric space. If is compact, so is .
This is the platform on which the Iterated Function SystemsIterated Function SystemsConstructing fractals via contractive affine transformationsRead more → attractor theorem is built: the Hutchinson operator acts on , and the contraction ratios of the transfer to a contraction ratio for in the Hausdorff metric.
Why Hausdorff Distance for Fractals
Pointwise convergence is too weak for fractal sets — the Cantor set has Lebesgue measure zero, so any "" sense of convergence collapses. The Hausdorff metric instead measures shape convergence: in iff every point of is approximated by points of and vice versa, uniformly. This is exactly the notion needed to make sense of "the attractor is the limit of for any starting compact ".
Connections
The Hausdorff metric makes the Iterated Function SystemsIterated Function SystemsConstructing fractals via contractive affine transformationsRead more → attractor a Banach fixed point. Beyond fractals, is the standard tool for shape comparison in image processing, computational geometry (e.g. mesh similarity), and optimal transport relaxations.
Lean4 Proof
import Mathlib.Topology.MetricSpace.HausdorffDistance
import Mathlib.Topology.MetricSpace.Closeds
open Metric Set TopologicalSpace
/-- Hausdorff distance between two non-empty bounded sets in a metric space. -/
noncomputable def hausdorffDist {X : Type*} [PseudoMetricSpace X] (A B : Set X) : ℝ :=
Metric.hausdorffDist A B
/-- Singleton case: d_H({p}, {q}) = d(p, q). -/
example {X : Type*} [MetricSpace X] (p q : X) :
Metric.hausdorffDist ({p} : Set X) {q} = dist p q := by
simp [hausdorffDist_singleton]
/-- The space of non-empty compact subsets of a complete metric space is complete
under the Hausdorff distance. (Mathlib: `NonemptyCompacts.completeSpace`.) -/
example {X : Type*} [MetricSpace X] [CompleteSpace X] :
CompleteSpace (NonemptyCompacts X) := inferInstanceReferenced by
- Cauchy CriterionAnalysis
- Sierpinski TriangleFractal Geometry
- Sierpinski TriangleFractal Geometry
- Koch SnowflakeFractal Geometry
- Iterated Function SystemsFractal Geometry
- Iterated Function SystemsFractal Geometry
- Liouville's TheoremComplex Analysis
- Brouwer Fixed-Point TheoremTopology
- Tychonoff's TheoremTopology
- Heine–Borel TheoremTopology
- Urysohn's LemmaTopology
- Bolzano–Weierstrass TheoremTopology
- Banach Fixed Point TheoremFunctional Analysis