{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $(M, \\cdot)$ be a [[magma|9689SFPVE9]].\nIt is a *unital magma* if there is an element $e \\in M$ with $e \\cdot x = x$ and $x \\cdot e = x$ for all $x \\in M$.\nSuch an $e$ is an [[identity element|07WYQPB8E3]] of $M$.\n\n## Remarks\n\nThe identity is unique: if $e$ and $e'$ are identities, then $e = e \\cdot e' = e'$.\n\nExample: the set $\\set{e, a, b}$ with $e \\cdot x = x \\cdot e = x$ for all $x$ and $u \\cdot v = e$ for $u, v \\in \\set{a, b}$.\nBoth identity equations hold by construction, so this is a unital magma.\nIt is not associative: $(a \\cdot a) \\cdot b = e \\cdot b = b$, but $a \\cdot (a \\cdot b) = a \\cdot e = a$.\n\nNon-example: $(\\Z, -)$ has no identity.\nIf $e$ were an identity, then $e - x = x$ for all $x \\in \\Z$, so $e = 2x$ for every $x$, which is impossible.\n\nIn Mathlib the class `MulOneClass` is a unital magma written multiplicatively.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "KNDSJAYMSY",
    "kind": "definition",
    "msc": [
      "20N02"
    ],
    "name": "Unital magma",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Magma_(algebra)"
      }
    ],
    "tag": "R7RDNEDQF2",
    "uses": [
      "9689SFPVE9",
      "07WYQPB8E3"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/R7RDNEDQF2/",
  "links": [
    {
      "field": "defines",
      "target": "KNDSJAYMSY"
    },
    {
      "field": "uses",
      "target": "9689SFPVE9"
    },
    {
      "field": "uses",
      "target": "07WYQPB8E3"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/R7RDNEDQF2.md",
  "msc": [
    "20N02"
  ],
  "name": "Unital magma",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/R7R/R7RDNEDQF2.md",
  "status": null,
  "tag": "R7RDNEDQF2",
  "uri": "m2://R7RDNEDQF2",
  "url": "https://tamnd.github.io/math2/wiki/unital-magma-definition/",
  "writing": {
    "tag": "R7RDNEDQF2",
    "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
      }
    ]
  }
}
