{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0381S8Z5P0"
    }
  ],
  "body": "\n## Statement\n\nLet $(X, d)$ be a [[metric space|063W5JMY85]] and let $K \\subseteq X$.\nThen $K$ is [[compact|00R0X1WGPX]] if and only if $K$, with the [[subspace metric|0T2WYDTRP2]], is [[complete|08EWT7J0SC]] and $K$ is [[totally bounded|0WE5BBHGM6]].\n\n## Remarks\n\nProof idea of the converse: in a totally bounded set, a diagonal argument gives a Cauchy subsequence of each sequence. Completeness gives a limit. Thus $K$ is sequentially compact, and so [[compact|0K8SGQSV7G]].\nIn a complete space $X$, a subset is compact if and only if it is closed and totally bounded.\nThe [[Heine–Borel theorem|07PFYV65MB]] follows, because bounded subsets of $\\mathbb{R}^n$ are totally bounded.\n\n## Explanations\n\n### L1 human\n\nCompactness in a metric space splits into two parts: no holes, and finitely many small pieces for each size.\nThe interval $(0, 1)$ is totally bounded but has holes at its ends. The real line has no holes but is not totally bounded.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "statement",
    "msc": [
      "54E45"
    ],
    "name": "Compact iff complete and totally bounded",
    "role": "theorem",
    "sources": [
      {
        "locator": "Comparison with compact sets",
        "url": "https://en.wikipedia.org/wiki/Totally_bounded_space"
      },
      {
        "locator": "Metric spaces",
        "url": "https://en.wikipedia.org/wiki/Compact_space"
      }
    ],
    "tag": "054Q5PW5GX",
    "uses": [
      "0K8SGQSV7G",
      "08EWT7J0SC",
      "0WE5BBHGM6",
      "0T2WYDTRP2"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/054Q5PW5GX/",
  "links": [
    {
      "field": "uses",
      "target": "0K8SGQSV7G"
    },
    {
      "field": "uses",
      "target": "08EWT7J0SC"
    },
    {
      "field": "uses",
      "target": "0WE5BBHGM6"
    },
    {
      "field": "uses",
      "target": "0T2WYDTRP2"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/054Q5PW5GX.md",
  "msc": [
    "54E45"
  ],
  "name": "Compact iff complete and totally bounded",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/054/054Q5PW5GX.md",
  "status": null,
  "tag": "054Q5PW5GX",
  "uri": "m2://054Q5PW5GX",
  "url": "https://math2.tamnd.com/wiki/compact-iff-complete-and-totally-bounded/",
  "writing": {
    "tag": "054Q5PW5GX",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
