Zulip Chat Archive
Stream: maths
Topic: Nontrivial example of emetric space
Artie Khovanov (Jan 25 2025 at 19:02):
What are some nontrivial, concrete examples of an emetric space (that's not a metric space)? Mathlib doesn't appear to have any such instances.
Edward van de Meent (Jan 25 2025 at 19:09):
a nontrivial example might be Nat -> ZMod 2
with the hamming distance/metric
Edward van de Meent (Jan 25 2025 at 19:10):
here the distance is the size of the set of indices where two elements are different.
Jireh Loreaux (Jan 26 2025 at 22:51):
Hausdorff distance on closed sets is another.
Antoine Chambert-Loir (Jan 28 2025 at 18:04):
docs#EReal is yet another one, more trivial than the two examples already given.
Yury G. Kudryashov (Jan 29 2025 at 05:22):
We use a different topology on EReal
though.
Yury G. Kudryashov (Jan 29 2025 at 05:23):
Any example of an EMetricSpace
can be described as "the disjoint union of two or more MetricSpace
s, with infinite extended distance between points in different components".
Yury G. Kudryashov (Jan 29 2025 at 05:25):
One more example: if you consider Lp
norm as a distance on the space of all measurable functions without restricting to the L^p
space, then you get an EMetricSpace
.
Yury G. Kudryashov (Jan 29 2025 at 05:25):
The L^p
space is the "finite distance" component of zero in this EMetricSpace
.
Junyan Xu (Jan 29 2025 at 17:03):
We don't have the facts that ENat, ENNReal and EReal are CompactSpace?
(Edit: Oh I guess they follow from compactSpace_of_completeLinearOrder; indeed #synth finds them.)
Eric Wieser (Jan 30 2025 at 00:41):
Yury G. Kudryashov said:
Any example of an
EMetricSpace
can be described as "the disjoint union of two or moreMetricSpace
s, with infinite extended distance between points in different components".
Should we have this instance on Sum
and Sigma
and Option
?
Yury G. Kudryashov (Jan 30 2025 at 01:10):
At least in some cases, we introduce a different metric on Sum
and Sigma
by setting the distance between two arbitrary points to be one. CC: @Sébastien Gouëzel
Last updated: May 02 2025 at 03:31 UTC