{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $X$ be a set.\nAn *ultrametric* on $X$ is a [[metric|0VKD1TP7F3]] $d \\colon X \\times X \\to [0, \\infty)$ that satisfies the strong triangle inequality\n$$d(x, z) \\le \\max(d(x, y), d(y, z)) \\quad \\text{for all } x, y, z \\in X.$$\nAn *ultrametric space* is a set with an ultrametric.\n\n## Remarks\n\nThe strong triangle inequality implies the usual one, since $\\max(a, b) \\le a + b$ for $a, b \\ge 0$.\n\nExample: fix a prime $p$ and let $v_p$ be the [[p-adic valuation|03HDF50VN4]] on $\\Q$.\nPut $d(x, y) = p^{-v_p(x - y)}$ for $x \\ne y$ and $d(x, x) = 0$.\nSince $v_p(a + b) \\ge \\min(v_p(a), v_p(b))$, applying it to $a = x - y$ and $b = y - z$ gives the strong triangle inequality.\n\nNon-example: the usual metric $d(x, y) = \\abs{x - y}$ on $\\R$.\nHere $d(0, 2) = 2$, while $\\max(d(0, 1), d(1, 2)) = 1$.\n\nIn an ultrametric space, if $d(x, y) \\ne d(y, z)$, then $d(x, z) = \\max(d(x, y), d(y, z))$.\nEvery open ball $B(a, r)$ equals $B(b, r)$ for each $b \\in B(a, r)$.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "defines": "A6DPR620B5",
    "kind": "definition",
    "msc": [
      "54E35",
      "12J25"
    ],
    "name": "Ultrametric space",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Ultrametric_space"
      }
    ],
    "tag": "M4HM6A3J54",
    "uses": [
      "0VKD1TP7F3",
      "03HDF50VN4"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/M4HM6A3J54/",
  "links": [
    {
      "field": "defines",
      "target": "A6DPR620B5"
    },
    {
      "field": "uses",
      "target": "0VKD1TP7F3"
    },
    {
      "field": "uses",
      "target": "03HDF50VN4"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/M4HM6A3J54.md",
  "msc": [
    "54E35",
    "12J25"
  ],
  "name": "Ultrametric space",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/M4H/M4HM6A3J54.md",
  "status": null,
  "tag": "M4HM6A3J54",
  "uri": "m2://M4HM6A3J54",
  "url": "https://math2.tamnd.com/wiki/ultrametric-space-definition/",
  "writing": {
    "tag": "M4HM6A3J54",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
