Module docstring
{"# Hausdorff distance
The Hausdorff distance on subsets of a metric (or emetric) space.
Given two subsets s and t of a metric space, their Hausdorff distance is the smallest d
such that any point s is within d of a point in t, and conversely. This quantity
is often infinite (think of s bounded and t unbounded), and therefore better
expressed in the setting of emetric spaces.
Main definitions
This files introduces:
* EMetric.infEdist x s, the infimum edistance of a point x to a set s in an emetric space
* EMetric.hausdorffEdist s t, the Hausdorff edistance of two sets in an emetric space
* Versions of these notions on metric spaces, called respectively Metric.infDist
and Metric.hausdorffDist
Main results
infEdist_closure: the edistance to a set and its closure coincideEMetric.mem_closure_iff_infEdist_zero: a pointxbelongs to the closure ofsiffinfEdist x s = 0IsCompact.exists_infEdist_eq_edist: ifsis compact and non-empty, there exists a pointywhich attains this edistanceIsOpen.exists_iUnion_isClosed: every open setUcan be written as the increasing union of countably many closed subsets ofUhausdorffEdist_closure: replacing a set by its closure does not change the Hausdorff edistancehausdorffEdist_zero_iff_closure_eq_closure: two sets have Hausdorff edistance zero iff their closures coincide- the Hausdorff edistance is symmetric and satisfies the triangle inequality
in particular, closed sets in an emetric space are an emetric space (this is shown in
EMetricSpace.closeds.emetricspace)versions of these notions on metric spaces
hausdorffEdist_ne_top_of_nonempty_of_bounded: if two sets in a metric space are nonempty and bounded in a metric space, they are at finite Hausdorff edistance.
Tags
metric space, Hausdorff distance
","### Distance of a point to a set as a function into ℝ≥0∞. ","### The Hausdorff distance as a function into ℝ≥0∞. ","Now, we turn to the same notions in metric spaces. To avoid the difficulties related to
sInf and sSup on ℝ (which is only conditionally complete), we use the notions in ℝ≥0∞
formulated in terms of the edistance, and coerce them to ℝ.
Then their properties follow readily from the corresponding properties in ℝ≥0∞,
modulo some tedious rewriting of inequalities from one to the other. ","### Distance of a point to a set as a function into ℝ. ","### Distance of a point to a set as a function into ℝ≥0. ","### The Hausdorff distance as a function into ℝ. "}