{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nA *groupoid* is a [[category|A2DE66937D]] $\\mathcal{G}$ in which every morphism is an isomorphism.\nThat is, for every morphism $f \\colon x \\to y$ of $\\mathcal{G}$ there is a morphism $g \\colon y \\to x$ with $g \\circ f = \\id_x$ and $f \\circ g = \\id_y$.\n\n## Remarks\n\nA groupoid is *small* if its objects form a set.\nFor each object $x$, the morphisms $x \\to x$ form a [[group|G5S1M9]], the vertex group at $x$.\n\nExample: let $\\sim$ be an [[equivalence relation|0G8VEZ3WTK]] on a set $X$.\nTake $X$ as the set of objects, with exactly one morphism $x \\to y$ when $x \\sim y$ and none otherwise.\nComposition exists by transitivity, identities by reflexivity, and the inverse of $x \\to y$ is the morphism $y \\to x$, which exists by symmetry.\n\nNon-example: the category with objects $0, 1$ and one non-identity arrow $0 \\to 1$, the poset $0 \\le 1$.\nThere is no morphism $1 \\to 0$, so the arrow $0 \\to 1$ has no inverse.\n\nA group $G$ gives a groupoid with one object whose morphisms are the elements of $G$, and every one-object groupoid arises in this way.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "FH3C0T643F",
    "kind": "definition",
    "msc": [
      "20L05",
      "18B40"
    ],
    "name": "Groupoid",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Groupoid"
      }
    ],
    "tag": "NX7WCTNYWT",
    "uses": [
      "A2DE66937D",
      "G5S1M9",
      "0G8VEZ3WTK"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/NX7WCTNYWT/",
  "links": [
    {
      "field": "defines",
      "target": "FH3C0T643F"
    },
    {
      "field": "uses",
      "target": "A2DE66937D"
    },
    {
      "field": "uses",
      "target": "G5S1M9"
    },
    {
      "field": "uses",
      "target": "0G8VEZ3WTK"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/NX7WCTNYWT.md",
  "msc": [
    "20L05",
    "18B40"
  ],
  "name": "Groupoid",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/NX7/NX7WCTNYWT.md",
  "status": null,
  "tag": "NX7WCTNYWT",
  "uri": "m2://NX7WCTNYWT",
  "url": "https://tamnd.github.io/math2/wiki/groupoid-definition/",
  "writing": {
    "tag": "NX7WCTNYWT",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
