The notion of a sketch (Bastiani & Ehresmann 1972) is one formalisation of the notion of a theory. It is 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 equipped with a set of cones and a set of cocones. Alternatively, it is a directed graph equipped with a set of diagrams, a set of cones, and a set of cocones.
A realized sketch is one where all the cones in are limit cones and all the cocones in are colimit cocones.
A limit sketch is a sketch with .
A colimit sketch is a sketch with .
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 is a functor taking each cone in to a limit cone and each cocone in to a colimit cocone.
In particular, 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 is a morphism of directed graphs from the directed graph of the sketch to the underlying directed graph of , 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 .
A category is sketchable if it is the category of models (in ) 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 , 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 to a product of the empty diagram, hence to a one element set ; sends the vertex to any set ; and sends the arrow from to to an arrow from to , that is, to an element of , as required.
A sketch, more precisely a finite product sketch, for the theory of unital magmas (sets equipped with a binary operation which has a two sided neutral element) 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 , the middle vertex is sent to an arbitrary set , the top vertex is sent to the product , the bottom vertex is sent to the product , and the right vertex is sent to the product . The arrow picks out an element of .
The arrow is sent to an arrow , which is forced by the universal property of and the fact that the diagrams
and
commute to really be the product of the arrows and . Similarly, the arrow is sent to an arrow , which is forced by the fact that the diagrams
and
commute to really be the product of the arrows and .
The arrow is sent to a map 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 such that all objects are (isomorphic to) powers of , and and 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 be sketches. We define the sketch to be:
The vertices of are the product of the set of vertices from , . The set of arrows is given as
where the source of is , and vice versa. is often called the horizontal structure and 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:
The vertical diagrams are constant in the first parameter:
Also add every square diagram: is the set of squares for each edge in ,
This tensor product, along with the unit , gives the category of sketches a monoidal structure.
This monoidal structure is useful for considering structures like double categories (i.e. categories in the category of categories).
Let be sketches, and some category. Then the category of models of in the category of models of in is equivalent to the category of models of in .
One can ask when has the same models as , i.e. when -models in the category of -models are the same as -models in the category of -models. This is the case, roughly, when the colimits and limits specified in the sketches commute. For example, since limits always commute, you can swap the sketches if both are limit sketches. And you can swap a finite product sketch with a sifted colimit sketch etc. For more precise statements see David Bensons article and the references therein.
In general one can not swap the order in the monoidal product. For example take the (terminal object + coproduct)-sketch whose models are maps and the finite product sketch whose models are monoids. Look at models of these in : Since in the category of monoids the terminal object is also initial, the coproduct of a monoid with the terminal object is isomorphic to that monoid again. Therefore -models in -Mod are monoids with an endomorphism. On the other hand -models in -Mod are pairs of monoids one of which has one element more, plus a homomorphism between them. These categories do not seem to be equivalent.
Original articles:
Charles Ehresmann, Esquisses et types de structures algébriques, Bul. Inst. Polit. Iasi 14 1–2 (1968) 1-14 [pdf]
Andrée Bastiani, Charles Ehresmann, Categories of sketched structures, Cahiers de Topologie et Géométrie Différentielle Catégoriques, Tome 13 no 2 (1972) 104-214 (numdam:CTGDC_1972__13_2_104_0)
Overview in:
See also:
Textbook accounts:
Reprints in Theory and Applications of Categories, No. 12 (2005) pp. 1-287
and with emphasis on the relation to locally presentable and accessible categories:
Michael Makkai, Robert Paré, Chapter 3 onwards in: Accessible categories: The foundations of categorical model theory, Contemporary Mathematics 104. American Mathematical Society, Rhode Island, 1989 (ISBN:978-0-8218-7692-3)
Jiří Adámek, Jiří Rosický, Def. 1.49 onwards in: Locally presentable and accessible categories, Cambridge University Press (1994)
Proof that not only every sketchable category is accessible but that conversely every accessible category is sketchable:
The tensor product of sketches is investigated here:
The category of sketches itself was studied as a categorical semantics for type theory in:
See also
Discussion of sketches the generality of enriched category theory:
G. Max Kelly, Structures defined by finite limits in the enriched context, I, Cahiers de topologie et géométrie différentielle 23 1 (1982) 3-42 [numdam:CTGDC_1982__23_1_3_0]
Francis Borceux, Carmen Quinteriro, Jiří Rosický, A theory of enriched sketches, Theory and Applications of Categories, 4 3 (1998) 47-72 [tac:4-03, pdf]
Discussion in the generality of internalization into 2-categories:
Ross Street, Complete objects relative to a theory (1976) [pdf, pdf]
Yoshiki Kinoshita, John Power, Makoto Takeyama, Sketches, Journal of Pure and Applied Algebra 143 1-3 (1999) 275-291 [doi:10.1016/S0022-4049(98)00114-5]
Ross Street, Pointwise extensions and sketches in bicategories [arXiv:1409.6427]
Generalising the approach of Kinoshita, Power & Takeyama 1999, a notion of sketch relative to an algebraic weak factorisation system is defined in:
Last revised on June 2, 2024 at 06:11:41. See the history of this page for a list of all contributions to it.