{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe use an open cover by small balls and take the smallest radius of a finite subcover.\n\n1. Write $d_X$ and $d_Y$ for the metrics of $X$ and $Y$. Fix a real $\\varepsilon \u003e 0$. We must find $\\delta \u003e 0$ with $d_Y(f(x), f(y)) \u003c \\varepsilon$ whenever $d_X(x, y) \u003c \\delta$.\n2. If $X$ is empty, every $\\delta \u003e 0$ works. From now on let $X$ be nonempty.\n3. Let $p \\in X$. The map $f$ is continuous, so preimages of open sets are open. By [[continuity via open sets|0YF82GBTND]], there is $\\delta_p \u003e 0$ with $d_Y(f(x), f(p)) \u003c \\varepsilon / 2$ for all $x$ with $d_X(x, p) \u003c \\delta_p$.\n4. The [[open balls|0DC3MPR7C9]] $B(p, \\delta_p / 2)$, for $p \\in X$, are [[open|0B2305GNAZ]]. Each $p$ lies in its own ball, so they form an [[open cover|0NVPNC12JY]] of $X$.\n5. Since $X$ is [[compact|0QPHW703PV]], finitely many of them cover $X$. Call their centres $p_1, \\ldots, p_n$, with $n \\ge 1$, and write $\\delta_k = \\delta_{p_k}$.\n6. Let $\\delta = \\min(\\delta_1 / 2, \\ldots, \\delta_n / 2)$. This is a minimum of finitely many positive reals, so $\\delta \u003e 0$.\n7. Let $x, y \\in X$ with $d_X(x, y) \u003c \\delta$. By step 5, $x \\in B(p_k, \\delta_k / 2)$ for some $k$. So $d_X(x, p_k) \u003c \\delta_k / 2 \u003c \\delta_k$.\n8. By the [[triangle inequality|01M6CW9VM6]], $d_X(y, p_k) \\le d_X(y, x) + d_X(x, p_k) \u003c \\delta + \\delta_k / 2 \\le \\delta_k$.\n9. By steps 7 and 8 and the choice of $\\delta_k$ in step 3, $d_Y(f(x), f(p_k)) \u003c \\varepsilon / 2$ and $d_Y(f(y), f(p_k)) \u003c \\varepsilon / 2$.\n10. By the triangle inequality in $Y$, $d_Y(f(x), f(y)) \u003c \\varepsilon / 2 + \\varepsilon / 2 = \\varepsilon$.\n11. The number $\\delta$ depends only on $\\varepsilon$. So condition 1 of [[uniform continuity|0FHSDCQACY]] holds, and $f$ is uniformly continuous.\n\n## Idea\n\nContinuity gives a good radius $\\delta_p$ at each point, but these radii may shrink from point to point. Compactness lets us keep only finitely many points, and the smallest of their radii works everywhere. Halving the radii makes room for the triangle inequality, so two close points both land near one centre.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "54E45"
    ],
    "name": "Proof of the Heine–Cantor theorem by a finite cover of balls",
    "proves": "06B8BNJCD6",
    "sources": [
      {
        "locator": "Proof of Heine–Cantor theorem",
        "url": "https://en.wikipedia.org/wiki/Heine%E2%80%93Cantor_theorem"
      }
    ],
    "tag": "FSNJAJXAPM",
    "uses": [
      "0QPHW703PV",
      "0NVPNC12JY",
      "0DC3MPR7C9",
      "0B2305GNAZ",
      "0YF82GBTND",
      "01M6CW9VM6",
      "0FHSDCQACY"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/FSNJAJXAPM/",
  "links": [
    {
      "field": "proves",
      "target": "06B8BNJCD6"
    },
    {
      "field": "uses",
      "target": "0QPHW703PV"
    },
    {
      "field": "uses",
      "target": "0NVPNC12JY"
    },
    {
      "field": "uses",
      "target": "0DC3MPR7C9"
    },
    {
      "field": "uses",
      "target": "0B2305GNAZ"
    },
    {
      "field": "uses",
      "target": "0YF82GBTND"
    },
    {
      "field": "uses",
      "target": "01M6CW9VM6"
    },
    {
      "field": "uses",
      "target": "0FHSDCQACY"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/FSNJAJXAPM.md",
  "msc": [
    "54E45"
  ],
  "name": "Proof of the Heine–Cantor theorem by a finite cover of balls",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/FSN/FSNJAJXAPM.md",
  "status": null,
  "tag": "FSNJAJXAPM",
  "uri": "m2://FSNJAJXAPM",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-heine-cantor-theorem-by-a-finite-cover-of-balls/",
  "writing": {
    "tag": "FSNJAJXAPM",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
