{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe prove each implication. The key step shows that a Cauchy sequence follows its convergent subsequences.\n\n1. Let $(X, d)$ be a [[metric space|063W5JMY85]].\n2. Assume $X$ is [[complete|08EWT7J0SC]]. Let $(x_n)$ be a [[Cauchy sequence|0MCK8K2D7Z]] in $X$. By completeness, it [[converges|06JYPJ4WHH]] to some $x \\in X$.\n3. With $n_k = k$, the sequence $(x_{n_k})$ is a [[subsequence|0R8J3ZQMJS]] of $(x_n)$, namely $(x_n)$ itself. So $(x_n)$ has a convergent subsequence.\n4. Now assume that each Cauchy sequence in $X$ has a convergent subsequence. Let $(x_n)_{n \\ge 1}$ be a Cauchy sequence in $X$.\n5. By assumption, there are integers $1 \\le n_1 \u003c n_2 \u003c \\cdots$ and a point $x \\in X$ with $x_{n_k} \\to x$ as $k \\to \\infty$.\n6. The $n_k$ are strictly increasing integers with $n_1 \\ge 1$. By induction on $k$, we get $n_k \\ge k$ for all $k \\ge 1$.\n7. Let $\\varepsilon \u003e 0$ be real. Since $(x_n)$ is Cauchy, there is an integer $N$ with $d(x_m, x_n) \u003c \\varepsilon / 2$ for all $m, n \\ge N$.\n8. Since $x_{n_k} \\to x$, there is an integer $L$ with $d(x_{n_k}, x) \u003c \\varepsilon / 2$ for all $k \\ge L$.\n9. Let $k = \\max(N, L)$. Then $k \\ge L$, and $n_k \\ge k \\ge N$ by step 6.\n10. Let $n \\ge N$. By the [[triangle inequality|01M6CW9VM6]] and steps 7 to 9, $d(x_n, x) \\le d(x_n, x_{n_k}) + d(x_{n_k}, x) \u003c \\varepsilon / 2 + \\varepsilon / 2 = \\varepsilon$.\n11. Since $\\varepsilon$ was arbitrary, $x_n \\to x$. So each Cauchy sequence in $X$ converges, and $X$ is complete.\n\n## Idea\n\nIn a complete space, the whole sequence converges, so it is its own convergent subsequence.\nConversely, late terms of a Cauchy sequence are close to each other, and some late term of the subsequence is close to the limit. The triangle inequality joins the two estimates.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "54E50"
    ],
    "name": "Proof that a metric space is complete if and only if each Cauchy sequence has a convergent subsequence",
    "proves": "0N1ZWFJDN5",
    "sources": [
      {
        "url": "https://proofwiki.org/wiki/Convergent_Subsequence_of_Cauchy_Sequence"
      }
    ],
    "tag": "DRH0F7968Y",
    "uses": [
      "063W5JMY85",
      "08EWT7J0SC",
      "0MCK8K2D7Z",
      "06JYPJ4WHH",
      "0R8J3ZQMJS",
      "01M6CW9VM6"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/DRH0F7968Y/",
  "links": [
    {
      "field": "proves",
      "target": "0N1ZWFJDN5"
    },
    {
      "field": "uses",
      "target": "063W5JMY85"
    },
    {
      "field": "uses",
      "target": "08EWT7J0SC"
    },
    {
      "field": "uses",
      "target": "0MCK8K2D7Z"
    },
    {
      "field": "uses",
      "target": "06JYPJ4WHH"
    },
    {
      "field": "uses",
      "target": "0R8J3ZQMJS"
    },
    {
      "field": "uses",
      "target": "01M6CW9VM6"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/DRH0F7968Y.md",
  "msc": [
    "54E50"
  ],
  "name": "Proof that a metric space is complete if and only if each Cauchy sequence has a convergent subsequence",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/DRH/DRH0F7968Y.md",
  "status": null,
  "tag": "DRH0F7968Y",
  "uri": "m2://DRH0F7968Y",
  "url": "https://math2.tamnd.com/wiki/proof-that-a-metric-space-is-complete-if-and-only-if-each-cauchy-sequence-has-a-convergent-subsequence/",
  "writing": {
    "tag": "DRH0F7968Y",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
