{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "DAK6EJK20R"
    },
    {
      "field": "defines",
      "target": "K9XQKT69WF"
    }
  ],
  "body": "\n## Summary\n\nA heap is a set with a [[ternary operation|WC47MFR6GW]] $[x, y, z]$ that behaves like $x y^{-1} z$ in a [[group|G5S1M9]].\nIt is a group in which no element has been chosen as the identity.\nEvery nonempty heap becomes a group as soon as one element is chosen to play the identity, and the groups for different choices are isomorphic.\nHeaps describe structures without a natural identity, such as the set of bijections between two sets of the same size.\nThey are closely related to [[torsors|5CYEQY4SWR]].\n\n## Explanations\n\n### L1 human\n\nThink of the points of a plane, where nothing marks an origin.\nYou cannot add two points, but from three points $x$, $y$, $z$ you can form $x - y + z$: move $z$ by the arrow that goes from $y$ to $x$.\nA heap keeps exactly this three-point operation.\nFor example, the set of bijections from a set $A$ to a set $B$ is a heap with $[f, g, h] = f \\circ g^{-1} \\circ h$, though there is no natural \"identity bijection\" from $A$ to $B$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "20N10",
      "08A62"
    ],
    "name": "Heap",
    "same_as": {
      "wikidata": "Q5691503",
      "wikipedia": "Heap (mathematics)"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Heap_(mathematics)"
      }
    ],
    "tag": "V389A4WGH9"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/V389A4WGH9/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/V389A4WGH9.md",
  "msc": [
    "20N10",
    "08A62"
  ],
  "name": "Heap",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/V38/V389A4WGH9.md",
  "status": null,
  "tag": "V389A4WGH9",
  "uri": "m2://V389A4WGH9",
  "url": "https://tamnd.github.io/math2/wiki/heap/",
  "writing": {
    "tag": "V389A4WGH9",
    "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
      }
    ]
  }
}
