{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $U \\colon \\mathcal{D} \\to \\mathcal{C}$ be a functor with a [[left adjoint|TZHF6ZM92S]] $F$ and counit $\\varepsilon \\colon F U \\Rightarrow \\mathrm{Id}_{\\mathcal{D}}$.\nLet $T = U F$ be the [[monad of the adjunction|DF5N0PK3ZS]], and let $\\mathcal{C}^T$ be its [[Eilenberg–Moore category|FEPRJR3MND]].\nThe *comparison functor* $K \\colon \\mathcal{D} \\to \\mathcal{C}^T$ sends an object $d$ to the algebra $(U(d), U(\\varepsilon_d))$ and a morphism $f$ to $U(f)$.\nThe functor $U$ is *monadic* if $K$ is an [[equivalence of categories|K7A04ZBD92]].\n\n## Remarks\n\nA functor without a left adjoint is never monadic.\nSome authors call $U$ strictly monadic when $K$ is an isomorphism of categories.\nThe comparison functor always satisfies $U^T \\circ K = U$, where $U^T$ is the forgetful functor of $\\mathcal{C}^T$.\n\nExample: the forgetful functor from groups to sets is monadic.\nIts left adjoint is the free group functor.\nAn algebra of the monad $T$ is a set $A$ with a map from the free group on $A$ to $A$ satisfying the algebra laws.\nSuch a map comes from a unique group structure on $A$, and algebra morphisms are group homomorphisms, so $K$ is an isomorphism.\n\nNon-example: the forgetful functor $U$ from topological spaces to sets has the discrete space functor as left adjoint.\nThe monad $U F$ is the identity monad, whose algebras are just sets, so $\\mathcal{C}^T$ is the category of sets.\nThe comparison functor sends a space to its underlying set, and it is not full, since not every function between spaces is continuous.\nSo $K$ is not an equivalence and $U$ is not monadic.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "DNTDCKZBKK",
    "kind": "definition",
    "msc": [
      "18C15",
      "18C20"
    ],
    "name": "Monadic functor",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Monad_(category_theory)"
      }
    ],
    "tag": "BWE0JG7FRF",
    "uses": [
      "TZHF6ZM92S",
      "DF5N0PK3ZS",
      "FEPRJR3MND",
      "K7A04ZBD92"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/BWE0JG7FRF/",
  "links": [
    {
      "field": "defines",
      "target": "DNTDCKZBKK"
    },
    {
      "field": "uses",
      "target": "TZHF6ZM92S"
    },
    {
      "field": "uses",
      "target": "DF5N0PK3ZS"
    },
    {
      "field": "uses",
      "target": "FEPRJR3MND"
    },
    {
      "field": "uses",
      "target": "K7A04ZBD92"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/BWE0JG7FRF.md",
  "msc": [
    "18C15",
    "18C20"
  ],
  "name": "Monadic functor",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/BWE/BWE0JG7FRF.md",
  "status": null,
  "tag": "BWE0JG7FRF",
  "uri": "m2://BWE0JG7FRF",
  "url": "https://tamnd.github.io/math2/wiki/monadic-functor-definition/",
  "writing": {
    "tag": "BWE0JG7FRF",
    "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
      }
    ]
  }
}
