{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $F$ be a [[functor|28NQ0KRHD3]] from the category of [[sets|0BSJ7RQ9BW]] to itself.\nAn *$F$-coalgebra* is a pair $(X, \\alpha)$ where $X$ is a set and $\\alpha \\colon X \\to F(X)$ is a [[function|0EPAT51DXQ]].\nThe set $X$ is the carrier, or set of states, and $\\alpha$ is the structure map.\nA *homomorphism* of $F$-coalgebras from $(X, \\alpha)$ to $(Y, \\beta)$ is a function $h \\colon X \\to Y$ such that $\\beta \\circ h = F(h) \\circ \\alpha$.\n*Universal coalgebra* is the study of $F$-coalgebras and their homomorphisms, for an arbitrary functor $F$ of this kind.\n\n## Remarks\n\nExample: let $A$ be a set and $F(X) = A \\times X$, with $F(h)(a, x) = (a, h(x))$.\nAn $F$-coalgebra is a set $X$ with a map $\\alpha(x) = (o(x), n(x))$, an output $o(x) \\in A$ and a next state $n(x) \\in X$.\nThe set $A^{\\N}$ of streams with $\\beta(s) = (s_0, (s_1, s_2, \\dots))$ is such a coalgebra.\nFor every coalgebra $(X, \\alpha)$, the map $h(x) = (o(x), o(n(x)), o(n(n(x))), \\dots)$ satisfies $\\beta \\circ h = F(h) \\circ \\alpha$, and it is the only such map, so the streams form a final $F$-coalgebra.\n\nNon-example of a homomorphism: let $A = \\set{a, b}$, let $X = \\set{x}$ with $\\alpha(x) = (a, x)$, and let $Y = \\set{y_1, y_2}$ with $\\beta(y_1) = (a, y_2)$ and $\\beta(y_2) = (b, y_2)$.\nThe map $h(x) = y_1$ keeps the output of $x$, but $\\beta(h(x)) = (a, y_2)$ while $F(h)(\\alpha(x)) = (a, y_1)$, so the square does not commute.\n\nThe same definition, with any category in place of sets, gives the [[F-coalgebra|6BS0300CMV]].\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "2BG03EJT8D",
    "kind": "definition",
    "msc": [
      "08C05",
      "18C10",
      "68Q55"
    ],
    "name": "Universal coalgebra",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/F-coalgebra"
      }
    ],
    "tag": "Y77K0TEKN7",
    "uses": [
      "28NQ0KRHD3",
      "0BSJ7RQ9BW",
      "0EPAT51DXQ"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/Y77K0TEKN7/",
  "links": [
    {
      "field": "defines",
      "target": "2BG03EJT8D"
    },
    {
      "field": "uses",
      "target": "28NQ0KRHD3"
    },
    {
      "field": "uses",
      "target": "0BSJ7RQ9BW"
    },
    {
      "field": "uses",
      "target": "0EPAT51DXQ"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/Y77K0TEKN7.md",
  "msc": [
    "08C05",
    "18C10",
    "68Q55"
  ],
  "name": "Universal coalgebra",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/Y77/Y77K0TEKN7.md",
  "status": null,
  "tag": "Y77K0TEKN7",
  "uri": "m2://Y77K0TEKN7",
  "url": "https://tamnd.github.io/math2/wiki/universal-coalgebra-definition/",
  "writing": {
    "tag": "Y77K0TEKN7",
    "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
      }
    ]
  }
}
