{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0KDJD249DT"
    }
  ],
  "body": "\n## Statement\n\nLet $(a_n)$ be a real sequence.\nThen $(a_n)$ has a [[subsequence|0R8J3ZQMJS]] that is [[monotone|0KN22AAW5R]].\n\n## Remarks\n\nThe usual proof uses peaks. An index $n$ is a peak if $a_m \\le a_n$ for all $m \u003e n$.\nIf there are infinitely many peaks, the terms at the peaks form a decreasing subsequence.\nIf there are finitely many peaks, start after the last one. Each index then has a later index with a larger term, and this gives a strictly increasing subsequence.\nWith the [[monotone convergence theorem|0FM6N4R0VB]], the lemma gives the [[Bolzano–Weierstrass theorem|0KDJD249DT]].\n\n## Explanations\n\n### L1 human\n\nThink of the terms as heights of hills seen from left to right.\nEither infinitely many hills have no higher hill to their right, or from some point on you can always find a higher hill further right.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "statement",
    "msc": [
      "40A05"
    ],
    "name": "Every sequence has a monotone subsequence",
    "role": "lemma",
    "sources": [
      {
        "locator": "Proof",
        "url": "https://en.wikipedia.org/wiki/Bolzano–Weierstrass_theorem"
      }
    ],
    "tag": "0MHGJRZMTM",
    "uses": [
      "0R8J3ZQMJS",
      "0KN22AAW5R"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0MHGJRZMTM/",
  "links": [
    {
      "field": "uses",
      "target": "0R8J3ZQMJS"
    },
    {
      "field": "uses",
      "target": "0KN22AAW5R"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0MHGJRZMTM.md",
  "msc": [
    "40A05"
  ],
  "name": "Every sequence has a monotone subsequence",
  "prov": null,
  "role": "lemma",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0MH/0MHGJRZMTM.md",
  "status": null,
  "tag": "0MHGJRZMTM",
  "uri": "m2://0MHGJRZMTM",
  "url": "https://math2.tamnd.com/wiki/every-sequence-has-a-monotone-subsequence/",
  "writing": {
    "tag": "0MHGJRZMTM",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
