{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "71346N77AX"
    },
    {
      "field": "uses",
      "target": "W0KBNZBCRR"
    },
    {
      "field": "about",
      "target": "W0KBNZBCRR"
    },
    {
      "field": "defines",
      "target": "WVZ7F41S9Q"
    }
  ],
  "body": "\n## Summary\n\nA medial magma is a [[magma|9689SFPVE9]] that satisfies the medial law $(x y)(u v) = (x u)(y v)$: the two middle elements of a product of four may be swapped.\nEvery commutative semigroup is medial, and so is every operation of the form $x \\cdot y = \\varphi(x) + \\psi(y) + c$ on an abelian group with commuting endomorphisms $\\varphi, \\psi$.\nFor quasigroups, the [[Toyoda–Bruck theorem|W0KBNZBCRR]] says that these affine operations are the only medial ones.\nMediality is the binary case of the [[entropic property|9T2XVJNBBY]] of general algebras.\n\n## Explanations\n\n### L1 human\n\nWrite four elements in a square: $x$ and $y$ in the top row, $u$ and $v$ in the bottom row.\nYou can combine each row and then combine the two results, or combine each column and then combine the results.\nA magma is medial when both ways give the same answer.\nFor example, the average $x \\circ y = (x + y)/2$ on the rationals is medial: both ways give the average of all four numbers.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "20N02",
      "20N05"
    ],
    "name": "Medial magma",
    "same_as": {
      "wikidata": "Q6806018",
      "wikipedia": "Medial magma"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Medial_magma"
      }
    ],
    "specializes": [
      "9689SFPVE9"
    ],
    "tag": "VZHN6GA3TA"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/VZHN6GA3TA/",
  "links": [
    {
      "field": "specializes",
      "target": "9689SFPVE9"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/VZHN6GA3TA.md",
  "msc": [
    "20N02",
    "20N05"
  ],
  "name": "Medial magma",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/VZH/VZHN6GA3TA.md",
  "status": null,
  "tag": "VZHN6GA3TA",
  "uri": "m2://VZHN6GA3TA",
  "url": "https://tamnd.github.io/math2/wiki/medial-magma/",
  "writing": {
    "tag": "VZHN6GA3TA",
    "kind": "concept",
    "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
      }
    ]
  }
}
