{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "53TSQ57J0H"
    },
    {
      "field": "uses",
      "target": "CZWDNA1HA7"
    },
    {
      "field": "uses",
      "target": "DF5N0PK3ZS"
    },
    {
      "field": "uses",
      "target": "EZ21NHHAKG"
    },
    {
      "field": "uses",
      "target": "S47R8TG0T3"
    },
    {
      "field": "about",
      "target": "DF5N0PK3ZS"
    },
    {
      "field": "defines",
      "target": "F426Q5R0RY"
    }
  ],
  "body": "\n## Summary\n\nA monad on a category is an endofunctor $T$ with a unit $\\eta \\colon \\mathrm{Id} \\Rightarrow T$ and a multiplication $\\mu \\colon T T \\Rightarrow T$ that satisfy associativity and unit laws.\nIt is the categorical form of a monoid, with composition of [[functors|28NQ0KRHD3]] in place of multiplication.\nEvery pair of [[adjoint functors|TZHF6ZM92S]] gives a monad, and every monad comes from an adjunction.\nMonads describe algebraic structure: groups, monoids, rings and many other algebraic categories are the algebras of a monad on sets.\n\n## Explanations\n\n### L1 human\n\nThink of $T(X)$ as the set of formal expressions built from elements of $X$.\nThe unit turns an element into the simplest expression, the element itself.\nThe multiplication flattens an expression made of expressions into a single expression.\nFor example, let $T(X)$ be the set of finite lists of elements of $X$.\nThe unit sends $x$ to the one-element list $(x)$, and the multiplication concatenates a list of lists into one list.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "18C15"
    ],
    "name": "Monad",
    "same_as": {
      "wikidata": "Q1630568",
      "wikipedia": "Monad (category theory)"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Monad_(category_theory)"
      }
    ],
    "tag": "FF6XXA6D1A"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/FF6XXA6D1A/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/FF6XXA6D1A.md",
  "msc": [
    "18C15"
  ],
  "name": "Monad",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/FF6/FF6XXA6D1A.md",
  "status": null,
  "tag": "FF6XXA6D1A",
  "uri": "m2://FF6XXA6D1A",
  "url": "https://tamnd.github.io/math2/wiki/monad/",
  "writing": {
    "tag": "FF6XXA6D1A",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
