{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "DF5N0PK3ZS"
    },
    {
      "field": "defines",
      "target": "S47R8TG0T3"
    }
  ],
  "body": "\n## Summary\n\nA comonad on a category is the dual of a [[monad|FF6XXA6D1A]].\nIt is an endofunctor $G$ with a counit $\\varepsilon \\colon G \\Rightarrow \\mathrm{Id}$ and a comultiplication $\\delta \\colon G \\Rightarrow G G$ that satisfy coassociativity and counit laws.\nEvery adjunction $F \\dashv U$ gives a comonad $F U$ on the domain of $U$.\nComonads govern coalgebraic structure, descent theory and comonadic resolutions in homological algebra.\n\n## Explanations\n\n### L1 human\n\nA monad builds things up, while a comonad unfolds things.\nThe counit extracts a value, and the comultiplication duplicates the context around it.\nFor a fixed set $A$, the functor $X \\mapsto A \\times X$ on sets is a comonad.\nThe counit forgets the label $a$ in $(a, x)$, and the comultiplication copies the label, giving $(a, (a, x))$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "18C15"
    ],
    "name": "Comonad",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Monad_(category_theory)"
      }
    ],
    "tag": "97NPWM3S6E"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/97NPWM3S6E/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/97NPWM3S6E.md",
  "msc": [
    "18C15"
  ],
  "name": "Comonad",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/97N/97NPWM3S6E.md",
  "status": null,
  "tag": "97NPWM3S6E",
  "uri": "m2://97NPWM3S6E",
  "url": "https://tamnd.github.io/math2/wiki/comonad/",
  "writing": {
    "tag": "97NPWM3S6E",
    "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
      }
    ]
  }
}
