A sketch is one formalisation of the notion of a theory, going back to Charles Ehresmann. It is highly diagrammatic, and has the advantage of being very close to category theory, allowing it to very naturally express the category theoretic structure which is required to construct a model of the theory (finite products, say). On the other hand, it is not a very concise notion: as Example illustrates, writing down the full details of a sketch even in the simplest examples takes time!
There is a precise correspondence between categories of models of sketches and accessible categories and locally presentable categories, discussed below.
The notion of a sketch generalises that of a Lawvere theory. See Example .
A sketch is a small category $T$ equipped with a set $L$ of cones and a set $C$ of cocones. Alternatively, it is a directed graph equipped with a set $D$ of diagrams, a set $L$ of cones, and a set $C$ of cocones.
A realized sketch is one where all the cones in $L$ are limit cones and all the cocones in $C$ are colimit cocones.
A limit sketch is a sketch with $C = \emptyset$.
A colimit sketch is a sketch with $L = \emptyset$.
A finite product sketch is a limit sketch in which the only cones are those of finite product diagrams.
A finite limit sketch is a limit sketch in which the only cones are those of finite limit diagrams.
A model of a sketch in a category $\mathcal{C}$ is a functor $T\to \mathcal{C}$ taking each cone in $L$ to a limit cone and each cocone in $C$ to a colimit cocone.
In particular, $T$ is realized if and only if its identity functor is a model.
If one takes the definition of a sketch to be that involving directed graphs, a model of a sketch in a category $\mathcal{C}$ is a morphism of directed graphs from the directed graph of the sketch to the underlying directed graph of $\mathcal{C}$, so that diagrams are taken to commutative diagrams, cones are taken to limit cones, and co-cones are taken to colimit cones.
Frequently the notion of model is restricted to the case $\mathcal{C}=Set$.
A category is sketchable if it is the category of models (in $Set$) of a sketch.
A sketch, more precisely a finite product sketch, for the theory of pointed sets can be constructed as follows. The directed graph can be taken to be the following.
The set of diagrams can be taken to be empty. The set of cones can be taken to be the set with the single cone given by the vertex $v_{1}$, i.e. a cone of the empty diagram. The set of co-cones can be taken to be empty.
A model of this sketch necessarily sends the vertex $v_{1}$ to a product of the empty diagram, hence to a one element set $1$; sends the vertex $v_{2}$ to any set $X$; and sends the arrow from $v_{1}$ to $v_{2}$ to an arrow from $1$ to $X$, that is, to an element of $X$, as required.
A sketch, more precisely a finite product sketch, for the theory of unital magmas (sets with a binary operation which has a two sided unit) can be constructed as follows. The directed graph can be taken to be the following.
The set of diagrams can be taken to have six elements, the first consisting of
the second consisting of the following
the third consisting of the following
the fourth consisting of the following
the fifth consisting of the following
and the sixth consisting of the following.
The set of cones can be taken to have four elements, the first being the leftmost vertex (cone of the empty set), the second consisting of
the third consisting of
and the fourth consisting of the following.
The set of co-cones can be taken to be empty.
In a model of this sketch, the leftmost vertex is sent to a one element set $1$, the middle vertex is sent to an arbitrary set $X$, the top vertex is sent to the product $1 \times X$, the bottom vertex is sent to the product $X \times 1$, and the right vertex is sent to the product $X \times X$. The arrow $e$ picks out an element $e_{X}$ of $X$.
The arrow $e,-$ is sent to an arrow $e_{X} \times id: 1 \times X \rightarrow X \times X$, which is forced by the universal property of $X \times X$ and the fact that the diagrams
and
commute to really be the product of the arrows $e_{X}$ and $id$. Similarly, the arrow $-,e$ is sent to an arrow $id \times e_{X}: X \times 1 \rightarrow X \times X$, which is forced by the fact that the diagrams
and
commute to really be the product of the arrows $e_{X}$ and $id$.
The arrow $m$ is sent to a map $m: X \times X \rightarrow X$ which is arbitrary except that the diagrams
and
are forced to commute.
Putting all of this together, we see that we exactly have a unital magma.
A Lawvere theory is a special case of a (limit) sketch, where the category is one with a distinguished object $X$ such that all objects are (isomorphic to) powers of $X$, and $C = \emptyset$ and $L$ is the set of all product cones.
The categories of models of sketches are equivalently the accessible categories.
The categories of models of limit-sketches are the locally presentable categories.
From the discussion there we have that
an accessible category is equivalently:
a locally presentable category is equivalently:
We can “break in half” the difference between the two and define
and
The category of sketches is well behaved: it is complete, cocomplete, cartesian closed and has a second symmetric monoidal closed structure.
The category of sketches is topological over the category of directed pseudographs.
The above proposition gives the category of sketches Cartesian products - however these are often not the sketches one would expect when thinking of the product of two theories. Instead consider the tensor product:
Let $S,T$ be sketches. We define the sketch $S \otimes T$ to be:
The vertices of $S \otimes T$ are the product of the set of vertices from $S$, $T$. The set of arrows is given as
where the source of $(\alpha,b)$ is $(s_S(\alpha), b)$, and vice versa. $S$ is often called the horizontal structure and $T$ as the vertical structure. The set of diagrams is the union of the following three sets:
The horizontal diagrams are constant in the second parameter: $H = \{ (D, b) | D \in \mathsf{Diagrams}(S), b \in \mathsf{Vertex}(T) \}$
The vertical diagrams are constant in the first parameter: $V = \{ (a, D) | a \in \mathsf{Vertex}(S), D \in \mathsf{Diagrams}(T) \}$
Also add every square diagram: $C$ is the set of squares for each edge $\alpha$ in $S$, $\beta \in T$
This tensor product, along with the unit $(\ast, \emptyset, \emptyset, \emptyset)$, gives the category of sketches a second symmetric monoidal category.
This monoidal structure is useful for considering structures like double categories (i.e. categories in the category of categories).
Let $S,T$ be sketches, and $X$ some category. Then the category of models of $S$ in the category of models of $T$ in $X$ is equivalent to the category of models of $S \otimes T$ in $X$.
Original articles:
An overview of the theory is given in
An extensive treatment of the links between theories, sketches and models can be found in
Reprints in Theory and Applications of Categories, No. 12 (2005) pp. 1-287
That not only every sketchable category is accessible but that conversely every accessible category is sketchable is due to
The category of sketches itself was studied as a categorical semantics for type theory in:
Last revised on March 22, 2021 at 06:24:29. See the history of this page for a list of all contributions to it.