{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $n \\ge 1$ and let $\\R[x_1, \\dots, x_n]$ be the ring of [[real polynomials|07GNX8GCYP]] in $n$ variables.\nA subset $S \\subseteq \\R^n$ is *semialgebraic* if it is a finite union of sets of the form\n$$\\set{x \\in \\R^n : f(x) = 0,\\ g_1(x) \u003e 0, \\dots, g_k(x) \u003e 0},$$\nwith $k \\ge 0$ and $f, g_1, \\dots, g_k \\in \\R[x_1, \\dots, x_n]$.\n\n## Remarks\n\nEquivalently, the semialgebraic subsets of $\\R^n$ form the smallest family of subsets that is closed under finite unions, finite intersections and complements.\nThis family must contain all sets $\\set{x : g(x) \u003e 0}$ with $g$ a polynomial.\nThe same definition works over any [[real closed field|DDY3Q3PJ6W]] in place of $\\R$.\n\nExample: the closed unit disc $D = \\set{(x, y) : x^2 + y^2 \\le 1}$ is semialgebraic.\nIt is the union of $\\set{1 - x^2 - y^2 = 0}$ (with $k = 0$) and $\\set{0 = 0,\\ 1 - x^2 - y^2 \u003e 0}$.\n\nNon-example: $\\Z \\subseteq \\R$ is not semialgebraic.\nA semialgebraic subset of $\\R$ is a finite union of points and open intervals.\nThis holds because a nonzero polynomial in one variable has finitely many roots and constant sign between them.\nBut $\\Z$ is infinite and discrete.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "BX5WSK8ZCT",
    "kind": "definition",
    "msc": [
      "14P10"
    ],
    "name": "Semialgebraic set",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Semialgebraic_set"
      }
    ],
    "tag": "KCEVPEV70X",
    "uses": [
      "08J2M1JYAG",
      "07GNX8GCYP",
      "DDY3Q3PJ6W"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/KCEVPEV70X/",
  "links": [
    {
      "field": "defines",
      "target": "BX5WSK8ZCT"
    },
    {
      "field": "uses",
      "target": "08J2M1JYAG"
    },
    {
      "field": "uses",
      "target": "07GNX8GCYP"
    },
    {
      "field": "uses",
      "target": "DDY3Q3PJ6W"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/KCEVPEV70X.md",
  "msc": [
    "14P10"
  ],
  "name": "Semialgebraic set",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/KCE/KCEVPEV70X.md",
  "status": null,
  "tag": "KCEVPEV70X",
  "uri": "m2://KCEVPEV70X",
  "url": "https://tamnd.github.io/math2/wiki/semialgebraic-set-definition/",
  "writing": {
    "tag": "KCEVPEV70X",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
