{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $\\mathcal{C}$ be a [[category|A2DE66937D]] and let $X$ be an object of $\\mathcal{C}$.\nThe *slice category* $\\mathcal{C}/X$ is defined as follows:\n\n1. its objects are the pairs $(A, h)$ with $h \\colon A \\to X$ a [[morphism|859F0TFVA3]] of $\\mathcal{C}$;\n2. a morphism $(A, h) \\to (A', h')$ is a morphism $f \\colon A \\to A'$ of $\\mathcal{C}$ with $h' \\circ f = h$;\n3. composition and identities are those of $\\mathcal{C}$.\n\n## Remarks\n\nIt is the [[comma category|PC6HG1JEGM]] $(1_{\\mathcal{C}} \\downarrow X)$, where $X$ also denotes the functor from the one-morphism category that picks $X$.\nDually, the *coslice category* $X/\\mathcal{C}$ has as objects the morphisms $X \\to A$, and morphisms $f$ with $f \\circ h = h'$.\nExample: in the category of sets, an object of $\\mathbf{Set}/\\set{0, 1}$ is a set $A$ with a map $h \\colon A \\to \\set{0, 1}$, that is, a set split into two labelled parts.\nWrite $e$ for the identity map of $\\set{0, 1}$; then $e$ is a morphism from $(\\set{0, 1}, e)$ to itself, since $e \\circ e = e$.\nNon-example: let $s \\colon \\set{0, 1} \\to \\set{0, 1}$ swap $0$ and $1$.\nThe identity map $e$ is not a morphism from $(\\set{0, 1}, e)$ to $(\\set{0, 1}, s)$, since $s \\circ e = s \\ne e$.\nThe object $(X, 1_X)$ is a terminal object of $\\mathcal{C}/X$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "1TC7W7BQT3",
    "kind": "definition",
    "msc": [
      "18A25"
    ],
    "name": "Slice category",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Comma_category"
      }
    ],
    "tag": "YZXV7CHF5R",
    "uses": [
      "A2DE66937D",
      "859F0TFVA3",
      "PC6HG1JEGM"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/YZXV7CHF5R/",
  "links": [
    {
      "field": "defines",
      "target": "1TC7W7BQT3"
    },
    {
      "field": "uses",
      "target": "A2DE66937D"
    },
    {
      "field": "uses",
      "target": "859F0TFVA3"
    },
    {
      "field": "uses",
      "target": "PC6HG1JEGM"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/YZXV7CHF5R.md",
  "msc": [
    "18A25"
  ],
  "name": "Slice category",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/YZX/YZXV7CHF5R.md",
  "status": null,
  "tag": "YZXV7CHF5R",
  "uri": "m2://YZXV7CHF5R",
  "url": "https://tamnd.github.io/math2/wiki/slice-category-definition/",
  "writing": {
    "tag": "YZXV7CHF5R",
    "kind": "definition",
    "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
      }
    ]
  }
}
