{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "01M6CW9VM6"
    },
    {
      "field": "uses",
      "target": "044D4AQV8V"
    },
    {
      "field": "uses",
      "target": "05DSV40EB9"
    },
    {
      "field": "uses",
      "target": "0692CGQF00"
    },
    {
      "field": "uses",
      "target": "06JYPJ4WHH"
    },
    {
      "field": "uses",
      "target": "07TXYYVYZR"
    },
    {
      "field": "uses",
      "target": "0878DN3WCS"
    },
    {
      "field": "uses",
      "target": "08EWT7J0SC"
    },
    {
      "field": "uses",
      "target": "0A26X79RTB"
    },
    {
      "field": "uses",
      "target": "0A6YRNZB2R"
    },
    {
      "field": "uses",
      "target": "0DC3MPR7C9"
    },
    {
      "field": "uses",
      "target": "0FHSDCQACY"
    },
    {
      "field": "uses",
      "target": "0H3W614GEC"
    },
    {
      "field": "uses",
      "target": "0MCK8K2D7Z"
    },
    {
      "field": "uses",
      "target": "0MT2S0ZX4Y"
    },
    {
      "field": "uses",
      "target": "0MW2WXTHMC"
    },
    {
      "field": "uses",
      "target": "0P953MG05E"
    },
    {
      "field": "uses",
      "target": "0T2WYDTRP2"
    },
    {
      "field": "uses",
      "target": "0TMZ21WKCN"
    },
    {
      "field": "uses",
      "target": "0TWQ5PRKWS"
    },
    {
      "field": "uses",
      "target": "0WE5BBHGM6"
    },
    {
      "field": "uses",
      "target": "0WZTM0EFR6"
    }
  ],
  "body": "\n## Definition\n\nLet $X$ be a set.\nA metric on $X$ is a [[function|0XHDTE5YMZ]] $d \\colon X \\times X \\to \\mathbb{R}$ with these properties, for all $x, y, z \\in X$:\n\n1. $d(x, x) = 0$.\n2. If $x \\neq y$, then $d(x, y) \u003e 0$.\n3. $d(x, y) = d(y, x)$.\n4. $d(x, z) \\le d(x, y) + d(y, z)$.\n\nA metric space is a pair $(X, d)$, where $X$ is a set and $d$ is a metric on $X$.\nThe number $d(x, y)$ is the distance between $x$ and $y$.\n\n## Remarks\n\nProperty 4 is the [[triangle inequality for a metric|01M6CW9VM6]].\nThe properties give $d(x, y) \\ge 0$ for all $x, y$: take $z = x$ in property 4 and use property 3.\nThe set $\\mathbb{R}$ with $d(x, y) = |x - y|$ is a metric space: this is the [[usual metric on the real line|0KXJTZSW9B]].\nIf you remove property 2, you get a [[pseudometric space|0H3W614GEC]].\n\n## Explanations\n\n### L1 human\n\nA metric is a rule that gives a distance to each pair of points.\nThe four properties are the facts that you expect from distances on a map.\nFor example, the road distance between towns is not always a metric, because one-way roads can break symmetry.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0VKD1TP7F3",
    "kind": "definition",
    "msc": [
      "54E35"
    ],
    "name": "Metric space",
    "sources": [
      {
        "locator": "Definition",
        "url": "https://en.wikipedia.org/wiki/Metric_space"
      }
    ],
    "tag": "063W5JMY85",
    "uses": [
      "0XHDTE5YMZ",
      "08J2M1JYAG",
      "0C81YBVTWH"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/063W5JMY85/",
  "links": [
    {
      "field": "defines",
      "target": "0VKD1TP7F3"
    },
    {
      "field": "uses",
      "target": "0XHDTE5YMZ"
    },
    {
      "field": "uses",
      "target": "08J2M1JYAG"
    },
    {
      "field": "uses",
      "target": "0C81YBVTWH"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/063W5JMY85.md",
  "msc": [
    "54E35"
  ],
  "name": "Metric space",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/063/063W5JMY85.md",
  "status": null,
  "tag": "063W5JMY85",
  "uri": "m2://063W5JMY85",
  "url": "https://math2.tamnd.com/wiki/metric-space-definition/",
  "writing": {
    "tag": "063W5JMY85",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
