{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $\\mathcal{V}$ be a [[variety|AJNZJD8442]] of algebras, regarded as a category with homomorphisms, and let $U \\colon \\mathcal{V} \\to \\mathbf{Set}$ be its [[forgetful functor|WV3BPYCHVG]].\nA *free functor* for $\\mathcal{V}$ is a functor $F \\colon \\mathbf{Set} \\to \\mathcal{V}$ that is [[left adjoint|TZHF6ZM92S]] to $U$.\nExplicitly, $F$ comes with maps $\\eta_X \\colon X \\to U F(X)$, natural in $X$, with the following property.\nFor every algebra $A \\in \\mathcal{V}$ and every map $g \\colon X \\to U(A)$, there is a unique homomorphism $\\bar g \\colon F(X) \\to A$ with $U(\\bar g) \\circ \\eta_X = g$.\n\n## Remarks\n\nSuch a functor exists for every variety: $F(X)$ is the [[free algebra|GTS4DRRMZR]] of $\\mathcal{V}$ on $X$, and $F$ sends a map $h \\colon X \\to Y$ to the unique homomorphism $F(X) \\to F(Y)$ that extends $\\eta_Y \\circ h$.\nIt is unique up to a unique natural isomorphism, as is any left adjoint.\nMore generally, a left adjoint of any forgetful functor $U \\colon \\mathcal{C} \\to \\mathcal{D}$ is called a free functor.\n\nExample: for the variety of monoids, $F(X)$ is the monoid $X^*$ of finite words in $X$ under concatenation, and $\\eta_X$ sends $x$ to the one-letter word $x$.\nA map $g \\colon X \\to M$ into a monoid extends to $\\bar g(x_1 \\cdots x_n) = g(x_1) \\cdots g(x_n)$, and this is the only homomorphism extending $g$.\n\nNon-example: the functor from sets to groups that sends every set to the trivial group is not a free functor.\nFor $X = \\set{x}$ and the map $x \\mapsto 1$ into $\\Z$, the only homomorphism from the trivial group to $\\Z$ sends everything to $0$, so it does not extend $g$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "N353JF8RBK",
    "kind": "definition",
    "msc": [
      "08C05",
      "18A40",
      "08B20"
    ],
    "name": "Free functor",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Free_object"
      }
    ],
    "tag": "KQ04KEFBE4",
    "uses": [
      "WV3BPYCHVG",
      "TZHF6ZM92S",
      "GTS4DRRMZR",
      "AJNZJD8442"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/KQ04KEFBE4/",
  "links": [
    {
      "field": "defines",
      "target": "N353JF8RBK"
    },
    {
      "field": "uses",
      "target": "WV3BPYCHVG"
    },
    {
      "field": "uses",
      "target": "TZHF6ZM92S"
    },
    {
      "field": "uses",
      "target": "GTS4DRRMZR"
    },
    {
      "field": "uses",
      "target": "AJNZJD8442"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/KQ04KEFBE4.md",
  "msc": [
    "08C05",
    "18A40",
    "08B20"
  ],
  "name": "Free functor",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/KQ0/KQ04KEFBE4.md",
  "status": null,
  "tag": "KQ04KEFBE4",
  "uri": "m2://KQ04KEFBE4",
  "url": "https://tamnd.github.io/math2/wiki/free-functor-definition/",
  "writing": {
    "tag": "KQ04KEFBE4",
    "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
      }
    ]
  }
}
