{
  "aliases": [
    "extreme-value-theorem"
  ],
  "backlinks": [
    {
      "field": "uses",
      "target": "03MC70ZRNR"
    }
  ],
  "body": "\n## Statement\n\nLet $X$ be a [[topological space|0CNQXVBHCX]], let $K \\subseteq X$ be a nonempty [[compact set|00R0X1WGPX]] and let $f \\colon X \\to \\mathbb{R}$ be a [[continuous map|0SY9ECQ19Q]].\nThen there are points $a, b \\in K$ with $f(a) \\le f(x) \\le f(b)$ for all $x \\in K$.\n\n## Remarks\n\nProof: the set $f(K)$ is compact in $\\mathbb{R}$, because the [[continuous image of a compact set is compact|0K9AAJ8G51]]. By the [[Heine–Borel theorem|07PFYV65MB]], it is closed and bounded. Thus it contains its [[supremum|0BTMQ04556]] and its infimum.\nFor $K = [a, b]$, this is the extreme value theorem of calculus.\nCompactness is needed: $f(x) = x$ on $(0, 1)$ has no maximum, and $f(x) = x$ on $\\mathbb{R}$ is not bounded.\n\n## Explanations\n\n### L1 human\n\nA continuous function on a compact set has a largest value and a smallest value, and it reaches them at some points.\nOn an open interval, the function can come closer and closer to a value without reaching it.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "aliases": [
      "extreme-value-theorem"
    ],
    "kind": "statement",
    "msc": [
      "54C30"
    ],
    "name": "Continuous real function on a compact set attains its bounds",
    "role": "theorem",
    "sources": [
      {
        "locator": "Generalization to metric and topological spaces",
        "url": "https://en.wikipedia.org/wiki/Extreme_value_theorem"
      }
    ],
    "tag": "0V4DET59NW",
    "uses": [
      "0K9AAJ8G51",
      "07PFYV65MB",
      "0BTMQ04556"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0V4DET59NW/",
  "links": [
    {
      "field": "uses",
      "target": "0K9AAJ8G51"
    },
    {
      "field": "uses",
      "target": "07PFYV65MB"
    },
    {
      "field": "uses",
      "target": "0BTMQ04556"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0V4DET59NW.md",
  "msc": [
    "54C30"
  ],
  "name": "Continuous real function on a compact set attains its bounds",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0V4/0V4DET59NW.md",
  "status": null,
  "tag": "0V4DET59NW",
  "uri": "m2://0V4DET59NW",
  "url": "https://math2.tamnd.com/wiki/continuous-real-function-on-a-compact-set-attains-its-bounds/",
  "writing": {
    "tag": "0V4DET59NW",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
