{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $\\sigma$ be a signature of function symbols, and let $\\Sigma$ be a set of [[identities|PKD440G2XW]] $s \\approx t$ in the language of $\\sigma$.\nAn algebra $A$ of signature $\\sigma$ *satisfies* $s \\approx t$ if $s$ and $t$ take the same value in $A$ for every assignment of the variables.\nThe class $\\operatorname{Mod}(\\Sigma)$ is the class of all algebras of signature $\\sigma$ that satisfy every identity in $\\Sigma$.\nA *variety* (or *equational class*) of signature $\\sigma$ is a class $\\mathcal{V}$ of algebras of signature $\\sigma$ with $\\mathcal{V} = \\operatorname{Mod}(\\Sigma)$ for some $\\Sigma$.\n\n## Remarks\n\nExample: abelian groups, in the signature $(+, -, 0)$, form a variety.\nIt is $\\operatorname{Mod}(\\Sigma)$ for $\\Sigma$ the identities $(x + y) + z \\approx x + (y + z)$, $x + 0 \\approx x$, $x + (-x) \\approx 0$ and $x + y \\approx y + x$.\nNon-example: fields do not form a variety of signature $(+, \\cdot, -, 0, 1)$.\nEvery variety is closed under direct products, but the product $\\F_2 \\times \\F_2$ of two fields is not a field, since $(1, 0) \\cdot (0, 1) = (0, 0)$.\nBy Birkhoff's theorem, a class is a variety if and only if it is closed under homomorphic images, subalgebras and direct products.\nSome authors write $\\operatorname{Mod}(\\Sigma)$ as $V(\\Sigma)$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "AJNZJD8442",
    "kind": "definition",
    "msc": [
      "08B99",
      "03C05"
    ],
    "name": "Variety of algebras",
    "sources": [
      {
        "locator": "Definition",
        "url": "https://en.wikipedia.org/wiki/Variety_(universal_algebra)"
      }
    ],
    "tag": "SARA216BGB",
    "uses": [
      "PKD440G2XW"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/SARA216BGB/",
  "links": [
    {
      "field": "defines",
      "target": "AJNZJD8442"
    },
    {
      "field": "uses",
      "target": "PKD440G2XW"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/SARA216BGB.md",
  "msc": [
    "08B99",
    "03C05"
  ],
  "name": "Variety of algebras",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/SAR/SARA216BGB.md",
  "status": null,
  "tag": "SARA216BGB",
  "uri": "m2://SARA216BGB",
  "url": "https://tamnd.github.io/math2/wiki/variety-of-algebras-definition/",
  "writing": {
    "tag": "SARA216BGB",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
