{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "CZYDQ96X2T"
    },
    {
      "field": "uses",
      "target": "KJ2NZCB7TH"
    }
  ],
  "body": "\n## Example\n\nThe *category of sets*, written $\\mathbf{Set}$, has these parts.\nIts objects are all [[sets|0BSJ7RQ9BW]].\nA morphism from $A$ to $B$ is a [[function|0EPAT51DXQ]] $f \\colon A \\to B$.\nComposition is the composition of functions, $(g \\circ f)(a) = g(f(a))$, and the identity of $A$ is the identity function $\\id_A$.\n\nThis is a [[category|A2DE66937D]].\nComposition of functions is associative, since both $(h \\circ g) \\circ f$ and $h \\circ (g \\circ f)$ send $a$ to $h(g(f(a)))$.\nThe identity laws hold, since $f \\circ \\id_A$ and $\\id_B \\circ f$ both send $a$ to $f(a)$.\nThe collection of all sets is not a set, so $\\mathbf{Set}$ is a large category.\nEach hom-set $\\mathbf{Set}(A, B)$ is a set, so $\\mathbf{Set}$ is locally small.\n\n## Remarks\n\nThe empty set is an initial object and every one-point set is a terminal object.\nThe monomorphisms are the [[injective functions|09NWETVTNY]] and the epimorphisms are the [[surjective functions|01RVCMSN5N]].\nProducts are cartesian products and coproducts are disjoint unions; in fact $\\mathbf{Set}$ has all small limits and colimits.\nIt is cartesian closed, with the set of functions $B^A$ as exponential object, and it is an elementary topos whose subobject classifier is a two-element set.\n\n## Explanations\n\n### L1 human\n\nThe category of sets is the most basic category: its objects are sets and its arrows are functions.\nMost other familiar categories, such as groups or topological spaces, are sets with extra structure and functions that respect it.\nMany notions of category theory are modelled on what happens in sets, such as products, unions, images and quotients.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "instance_of": [
      "A2DE66937D"
    ],
    "kind": "example",
    "msc": [
      "18B05"
    ],
    "name": "Category of sets",
    "same_as": {
      "wikidata": "Q2518298",
      "wikipedia": "Category of sets"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Category_of_sets"
      }
    ],
    "tag": "WP0YB7VC59",
    "uses": [
      "0BSJ7RQ9BW",
      "0EPAT51DXQ",
      "09NWETVTNY",
      "01RVCMSN5N"
    ]
  },
  "kind": "example",
  "link": "https://tamnd.github.io/math2/node/WP0YB7VC59/",
  "links": [
    {
      "field": "instance_of",
      "target": "A2DE66937D"
    },
    {
      "field": "uses",
      "target": "0BSJ7RQ9BW"
    },
    {
      "field": "uses",
      "target": "0EPAT51DXQ"
    },
    {
      "field": "uses",
      "target": "09NWETVTNY"
    },
    {
      "field": "uses",
      "target": "01RVCMSN5N"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/WP0YB7VC59.md",
  "msc": [
    "18B05"
  ],
  "name": "Category of sets",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/WP0/WP0YB7VC59.md",
  "status": null,
  "tag": "WP0YB7VC59",
  "uri": "m2://WP0YB7VC59",
  "url": "https://tamnd.github.io/math2/wiki/category-of-sets/",
  "writing": {
    "tag": "WP0YB7VC59",
    "kind": "example",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
