Zulip Chat Archive

Stream: Is there code for X?

Topic: Distance from point in metric space to subset


Samuel Webb (Nov 06 2023 at 12:53):

Screenshot-2023-11-06-at-12.49.44.png

Let (X,d)(X, d) be a metric space, let xX,yXx \in X, y \in X and AXA \subset X, with AA non-empty. Then d(x,A)d(y,A)d(x,y) |d(x, A) - d(y, A)| \leq d(x,y)

Currently trying to construct a proof for this theorem but I am struggling to find anything regarding distance from points in a metric space to subset of said metric space. Any help would be very much appreciated. My apologies if this is the wrong place for this question.

Eric Wieser (Nov 06 2023 at 12:56):

Have you managed to construct a statement of this theorem? If so, you'd be able to ask it as a #mwe, and might get help faster :)

Samuel Webb (Nov 06 2023 at 12:57):

Sorry I wasn't clear. I haven't managed to construct a statement of the theorem. This is really what I am looking for help with.

Ruben Van de Velde (Nov 06 2023 at 12:58):

What is your definition of d(x,A)d(x, A)?

Samuel Webb (Nov 06 2023 at 12:59):

d(x,A):=inf{d(x,y):yA} d(x, A) := inf\{d(x,y) : y \in A\}

Eric Wieser (Nov 06 2023 at 12:59):

Perhaps docs#Metric.infDist ?

Samuel Webb (Nov 06 2023 at 13:01):

That looks very helpful I will check that out. Thank you.

Ruben Van de Velde (Nov 06 2023 at 13:03):

Thanks, Ericsearch :)

Kevin Buzzard (Nov 06 2023 at 13:04):

If you need any further help then by far the best way to ask for it here is to post fully working Lean code rather than LaTeX. See the #mwe link.

Samuel Webb (Nov 06 2023 at 13:06):

Thank you I will try to when I have any working code for this theorem.


Last updated: Dec 20 2023 at 11:08 UTC