{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $\\mathbf{A}$ be a [[structure|983GZBQYT4]] with domain $A$ for a signature $\\sigma$, and let $X \\subseteq A$.\nA subset $B \\subseteq A$ is *closed* if it contains $c^{\\mathbf{A}}$ for each constant symbol $c$ and $f^{\\mathbf{A}}(b_1, \\dots, b_n) \\in B$ for each $n$-ary function symbol $f$ and all $b_1, \\dots, b_n \\in B$.\nThe set generated by $X$ is\n$$\\operatorname{Sg}(X) = \\bigcap \\set{B \\subseteq A : X \\subseteq B \\text{ and } B \\text{ is closed}},$$\nthe [[intersection|0ZNMMA9TF5]] of all closed subsets that contain $X$.\nWhen $\\operatorname{Sg}(X)$ is nonempty, the *subalgebra generated by $X$* is the [[substructure|676H7EGTKJ]] of $\\mathbf{A}$ with domain $\\operatorname{Sg}(X)$.\n\n## Remarks\n\nThe set $A$ itself is closed and an intersection of closed sets is closed, so $\\operatorname{Sg}(X)$ is the smallest closed subset containing $X$.\nFor finitary operations, $\\operatorname{Sg}(X) = \\bigcup_{k \\ge 0} X_k$, where $X_0 = X$ and $X_{k+1}$ is $X_k$ together with the constants and all values $f^{\\mathbf{A}}(b_1, \\dots, b_n)$ with $b_1, \\dots, b_n \\in X_k$.\n\nExample: in $(\\Z, +, -, 0)$, $\\operatorname{Sg}(\\set{4, 6}) = 2\\Z$.\nThe set $2\\Z$ is closed and contains $4$ and $6$; and any closed set containing $4$ and $6$ contains $6 - 4 = 2$, hence all multiples of $2$.\n\nNon-example: the set $4\\Z \\cup 6\\Z$ contains $\\set{4, 6}$ and $0$ but is not $\\operatorname{Sg}(\\set{4, 6})$, because it is not closed: $4 + 6 = 10$ is not in it.\n\nWhen $\\sigma$ has no constants, $\\operatorname{Sg}(\\emptyset) = \\emptyset$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "2TQD8NMG9P",
    "kind": "definition",
    "msc": [
      "08A30",
      "03C07"
    ],
    "name": "Generated subalgebra",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Substructure_(mathematics)"
      }
    ],
    "tag": "J6X65C2W4P",
    "uses": [
      "983GZBQYT4",
      "676H7EGTKJ",
      "0ZNMMA9TF5"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/J6X65C2W4P/",
  "links": [
    {
      "field": "defines",
      "target": "2TQD8NMG9P"
    },
    {
      "field": "uses",
      "target": "983GZBQYT4"
    },
    {
      "field": "uses",
      "target": "676H7EGTKJ"
    },
    {
      "field": "uses",
      "target": "0ZNMMA9TF5"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/J6X65C2W4P.md",
  "msc": [
    "08A30",
    "03C07"
  ],
  "name": "Generated subalgebra",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/J6X/J6X65C2W4P.md",
  "status": null,
  "tag": "J6X65C2W4P",
  "uri": "m2://J6X65C2W4P",
  "url": "https://tamnd.github.io/math2/wiki/generated-subalgebra-definition/",
  "writing": {
    "tag": "J6X65C2W4P",
    "kind": "definition",
    "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
      }
    ]
  }
}
