{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nA *sketch* is a triple $\\mathcal{S} = (\\mathcal{A}, L, C)$ with these parts.\n\n1. $\\mathcal{A}$ is a small [[category|A2DE66937D]].\n2. $L$ is a set of [[cones|7TPBQPPN97]] in $\\mathcal{A}$, each over a small diagram in $\\mathcal{A}$.\n3. $C$ is a set of cocones in $\\mathcal{A}$, each under a small diagram in $\\mathcal{A}$.\n\nLet $\\mathcal{K}$ be a category.\nA *model* of $\\mathcal{S}$ in $\\mathcal{K}$ is a [[functor|28NQ0KRHD3]] $M \\colon \\mathcal{A} \\to \\mathcal{K}$ with two properties.\n$M$ sends each cone in $L$ to a [[limit|CHS5AFJGWE]] cone.\n$M$ sends each cocone in $C$ to a [[colimit|BJS1CGTKQ5]] cocone.\nA morphism of models is a natural transformation.\n\n## Remarks\n\nThe sketch is a *limit sketch* when $C$ is empty.\nSome authors use a directed graph with chosen diagrams instead of the category $\\mathcal{A}$; this gives the same models.\n\nExample: let $\\mathcal{A}$ be the free category on the graph with two objects $X, P$ and three arrows $p_1, p_2, m \\colon P \\to X$.\nLet $L$ contain the single cone $(P; p_1, p_2)$ over the discrete diagram $(X, X)$, and let $C$ be empty.\nA model in sets is a functor $M$ with $M(P) \\cong M(X) \\times M(X)$ through $M(p_1), M(p_2)$.\nThen $M(m)$ is a binary operation on $M(X)$, so models are sets with a binary operation.\n\nNon-example: let $M(X) = M(P) = \\set{0, 1}$ with $M(p_1) = M(p_2) = M(m) = \\id$.\nThis functor is not a model, since $\\set{0, 1}$ with two identity maps is not a product of $\\set{0, 1}$ with itself.\nIndeed, the pair of maps $(\\id, \\text{constant } 0)$ does not factor through it.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "K8P15XTH1M",
    "kind": "definition",
    "msc": [
      "18C30"
    ],
    "name": "Sketch",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Sketch_(mathematics)"
      }
    ],
    "tag": "G3TZAZ3XDR",
    "uses": [
      "A2DE66937D",
      "7TPBQPPN97",
      "CHS5AFJGWE",
      "BJS1CGTKQ5",
      "28NQ0KRHD3"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/G3TZAZ3XDR/",
  "links": [
    {
      "field": "defines",
      "target": "K8P15XTH1M"
    },
    {
      "field": "uses",
      "target": "A2DE66937D"
    },
    {
      "field": "uses",
      "target": "7TPBQPPN97"
    },
    {
      "field": "uses",
      "target": "CHS5AFJGWE"
    },
    {
      "field": "uses",
      "target": "BJS1CGTKQ5"
    },
    {
      "field": "uses",
      "target": "28NQ0KRHD3"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/G3TZAZ3XDR.md",
  "msc": [
    "18C30"
  ],
  "name": "Sketch",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/G3T/G3TZAZ3XDR.md",
  "status": null,
  "tag": "G3TZAZ3XDR",
  "uri": "m2://G3TZAZ3XDR",
  "url": "https://tamnd.github.io/math2/wiki/sketch-definition/",
  "writing": {
    "tag": "G3TZAZ3XDR",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
