{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0AD0BZ49DW"
    }
  ],
  "body": "\n## Definition\n\nLet $(X, d)$ be a [[metric space|063W5JMY85]], let $A$ be a nonempty subset of $X$ and let $x \\in X$.\nThe distance from $x$ to $A$ is the real number\n$$d(x, A) = \\inf \\{ d(x, a) : a \\in A \\}.$$\n\n## Remarks\n\nThe [[infimum|04KFTA34C5]] exists, because the set is nonempty and bounded below by $0$.\nIf $x \\in A$, then $d(x, A) = 0$. The converse is false: in $\\mathbb{R}$, $d(0, (0, 1)) = 0$ but $0 \\notin (0, 1)$.\nIn general $d(x, A) = 0$ if and only if $x$ is in the [[closure|0DRKT1QJR7]] of $A$.\nFor all $x, y \\in X$, $|d(x, A) - d(y, A)| \\le d(x, y)$. Thus $x \\mapsto d(x, A)$ is [[Lipschitz|0TMZ21WKCN]] with constant $1$.\n\n## Explanations\n\n### L1 human\n\nThe distance from a point to a set is the shortest distance from the point to the set, when a shortest distance exists.\nFor example, the distance from $3$ to the interval $[0, 1]$ is $2$.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0WQ19TJV24",
    "kind": "definition",
    "msc": [
      "54E35"
    ],
    "name": "Distance from a point to a set",
    "sources": [
      {
        "locator": "Definition",
        "url": "https://en.wikipedia.org/wiki/Hausdorff_distance"
      }
    ],
    "tag": "07TXYYVYZR",
    "uses": [
      "063W5JMY85",
      "04KFTA34C5"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/07TXYYVYZR/",
  "links": [
    {
      "field": "defines",
      "target": "0WQ19TJV24"
    },
    {
      "field": "uses",
      "target": "063W5JMY85"
    },
    {
      "field": "uses",
      "target": "04KFTA34C5"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/07TXYYVYZR.md",
  "msc": [
    "54E35"
  ],
  "name": "Distance from a point to a set",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/07T/07TXYYVYZR.md",
  "status": null,
  "tag": "07TXYYVYZR",
  "uri": "m2://07TXYYVYZR",
  "url": "https://math2.tamnd.com/wiki/distance-from-a-point-to-a-set-definition/",
  "writing": {
    "tag": "07TXYYVYZR",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
