{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nA *magma* is a pair $(M, \\cdot)$, where $M$ is a [[set|0SJ3RX9TXA]] and $\\cdot \\colon M \\times M \\to M$ is a [[binary operation|0M418FE7BB]] on $M$.\nA *homomorphism* of magmas $(M, \\cdot)$ and $(N, *)$ is a map $h \\colon M \\to N$ with $h(x \\cdot y) = h(x) * h(y)$ for all $x, y \\in M$.\n\n## Remarks\n\nExample: $(\\Z, -)$ is a magma, since the difference of two integers is an integer.\nIt is not associative: $(1 - 1) - 1 = -1$ but $1 - (1 - 1) = 1$.\n\nNon-example: $(\\N, -)$ is not a magma, since $1 - 2 \\notin \\N$, so subtraction is not a binary operation on $\\N$.\n\nThe empty set with the empty operation is a magma.\nThe word *groupoid* is an older name for a magma.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "9689SFPVE9",
    "kind": "definition",
    "msc": [
      "20N02",
      "08A62"
    ],
    "name": "Magma",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Magma_(algebra)"
      }
    ],
    "tag": "K5G3VB3DEZ",
    "uses": [
      "0SJ3RX9TXA",
      "0M418FE7BB"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/K5G3VB3DEZ/",
  "links": [
    {
      "field": "defines",
      "target": "9689SFPVE9"
    },
    {
      "field": "uses",
      "target": "0SJ3RX9TXA"
    },
    {
      "field": "uses",
      "target": "0M418FE7BB"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/K5G3VB3DEZ.md",
  "msc": [
    "20N02",
    "08A62"
  ],
  "name": "Magma",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/K5G/K5G3VB3DEZ.md",
  "status": null,
  "tag": "K5G3VB3DEZ",
  "uri": "m2://K5G3VB3DEZ",
  "url": "https://tamnd.github.io/math2/wiki/magma-definition/",
  "writing": {
    "tag": "K5G3VB3DEZ",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
