{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $(M, \\cdot)$ be a [[magma|9689SFPVE9]].\nIt is a *commutative magma* if $x \\cdot y = y \\cdot x$ for all $x, y \\in M$, that is, if the operation has the [[commutativity|099E72KTF8]] property.\n\n## Remarks\n\nExample: $\\Q$ with $x \\circ y = (x + y)/2$.\nThe value is rational, and $(x + y)/2 = (y + x)/2$.\nThe magma is not associative: $(0 \\circ 4) \\circ 8 = 5$ but $0 \\circ (4 \\circ 8) = 3$.\n\nNon-example: $(\\Z, -)$, since $1 - 0 = 1$ but $0 - 1 = -1$.\n\nIn Mathlib this structure is the class `CommMagma`.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "XAC78GN2YJ",
    "kind": "definition",
    "msc": [
      "20N02"
    ],
    "name": "Commutative magma",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Commutative_magma"
      }
    ],
    "tag": "ME71ZQE49J",
    "uses": [
      "9689SFPVE9",
      "099E72KTF8"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/ME71ZQE49J/",
  "links": [
    {
      "field": "defines",
      "target": "XAC78GN2YJ"
    },
    {
      "field": "uses",
      "target": "9689SFPVE9"
    },
    {
      "field": "uses",
      "target": "099E72KTF8"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/ME71ZQE49J.md",
  "msc": [
    "20N02"
  ],
  "name": "Commutative magma",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/ME7/ME71ZQE49J.md",
  "status": null,
  "tag": "ME71ZQE49J",
  "uri": "m2://ME71ZQE49J",
  "url": "https://tamnd.github.io/math2/wiki/commutative-magma-definition/",
  "writing": {
    "tag": "ME71ZQE49J",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
