nLab sketch

Redirected from "finite product sketch".

Context

Category theory

Limits and colimits

Contents

Idea

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 .

Details

Sketches

Definition

A sketch is a small category TT equipped with a set LL of cones and a set CC of cocones. Alternatively, it is a directed graph equipped with a set DD of diagrams, a set LL of cones, and a set CC of cocones.

Definition

A realized sketch is one where all the cones in LL are limit cones and all the cocones in CC are colimit cocones.

Definition

A limit sketch is a sketch with C=C = \emptyset.

Definition

A colimit sketch is a sketch with L=L = \emptyset.

Definition

A finite product sketch is a limit sketch in which the only cones are those of finite product diagrams.

Definition

A finite limit sketch is a limit sketch in which the only cones are those of finite limit diagrams.

Models of sketches

Definition

A model of a sketch in a category 𝒞\mathcal{C} is a functor T𝒞T\to \mathcal{C} taking each cone in LL to a limit cone and each cocone in CC to a colimit cocone.

In particular, TT is realized if and only if its identity functor is a model.

Definition

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 𝒞=Set\mathcal{C}=Set.

Definition

A category is sketchable if it is the category of models (in SetSet) of a sketch.

Examples

Example

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 1v_{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 1v_{1} to a product of the empty diagram, hence to a one element set 11; sends the vertex v 2v_{2} to any set XX; and sends the arrow from v 1v_{1} to v 2v_{2} to an arrow from 11 to XX, that is, to an element of XX, as required.

Example

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 11, the middle vertex is sent to an arbitrary set XX, the top vertex is sent to the product 1×X1 \times X, the bottom vertex is sent to the product X×1X \times 1, and the right vertex is sent to the product X×XX \times X. The arrow ee picks out an element e Xe_{X} of XX.

The arrow e,e,- is sent to an arrow e X×id:1×XX×Xe_{X} \times id: 1 \times X \rightarrow X \times X, which is forced by the universal property of X×XX \times X and the fact that the diagrams

and

commute to really be the product of the arrows e Xe_{X} and idid. Similarly, the arrow ,e-,e is sent to an arrow id×e X:X×1X×Xid \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 Xe_{X} and idid.

The arrow mm is sent to a map m:X×XXm: 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.

Example

A Lawvere theory is a special case of a (limit) sketch, where the category is one with a distinguished object XX such that all objects are (isomorphic to) powers of XX, and C=C = \emptyset and LL is the set of all product cones.

Properties

Relation to accessible and locally representable categories

Proposition

The categories of models of sketches are equivalently the accessible categories.

Proposition

The categories of models of limit-sketches are the locally presentable categories.

(Adámek & Rosický 1994, Cor. 1.52)

Remark

From the discussion there we have that

  • an accessible category is equivalently:

  • a locally presentable category is equivalently:

    • a reflective full subcategory of a presheaf category that’s closed under κ\kappa-filtered colimits for some κ\kappa
    • the category of models of a limit sketch
    • an accessible category with all small limits
    • an accessible category with all small colimits

We can “break in half” the difference between the two and define

  • a locally multipresentable category to be equivalently:
    • a multireflective full subcategory of a presheaf category that’s closed under κ\kappa-filtered colimits for some κ\kappa
    • the category of models of a limit and coproduct sketch
    • an accessible category with all small connected limits
    • an accessible category with all small multicolimits

and

  • a weakly locally presentable category to be equivalently:
    • a weakly reflective full subcategory of a presheaf category that’s closed under κ\kappa-filtered colimits for some κ\kappa
    • the category of models of a limit and epi sketch
    • an accessible category with all small products
    • an accessible category with all small weak colimits

Monoidal Structures on the Category of Sketches

The category of sketches is well behaved: it is complete, cocomplete, cartesian closed and has a second symmetric monoidal closed structure.

Proposition

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:

Proposition

Let S,TS,T be sketches. We define the sketch STS \otimes T to be:

The vertices of STS \otimes T are the product of the set of vertices from SS, TT. The set of arrows is given as

{(α,b)|αEdge(S),bVertex(T)}{(a,β)|aVertex(S),βEdge(T)} \{ (\alpha, b) | \alpha \in \mathsf{Edge}(S), b \in \mathsf{Vertex}(T)\} \cup \{ (a, \beta) | a \in \mathsf{Vertex}(S), \beta \in \mathsf{Edge}(T)\}

where the source of (α,b)(\alpha,b) is (s S(α),b)(s_S(\alpha), b), and vice versa. SS is often called the horizontal structure and TT 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)|DDiagrams(S),bVertex(T)}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)|aVertex(S),DDiagrams(T)}V = \{ (a, D) | a \in \mathsf{Vertex}(S), D \in \mathsf{Diagrams}(T) \}

  • Also add every square diagram: CC is the set of squares for each edge α\alpha in SS, βT\beta \in T

  • The set of cones and cocones are define analogously to the set of commuting diagrams, except only the vertical and horizontal cones are taken.

This tensor product, along with the unit (*,,,)(\ast, \emptyset, \emptyset, \emptyset), 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).

Proposition

Let S,TS,T be sketches, and XX some category. Then the category of models of SS in the category of models of TT in XX is equivalent to the category of models of STS \otimes T in XX.

One can ask when STS \otimes T has the same models as TST \otimes S, i.e. when SS-models in the category of TT-models are the same as TT-models in the category of SS-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 SS whose models are maps XX1X \to X \coprod 1 and the finite product sketch MM whose models are monoids. Look at models of these in SetSet: 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 SS-models in MM-Mod are monoids with an endomorphism. On the other hand MM-models in SS-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.

References

General

Original articles:

Overview in:

See also:

  • Michael Barr, Notes on Sketches, Technical report of the Electrotechnical Laboratory (computer language section), Tsukuba, Japan (1997) [pdf, pdf]

Textbook accounts:

and with emphasis on the relation to locally presentable and accessible categories:

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:

  • John W. Gray, The Category of Sketches as a Model for Algebraic Semantics, Categories in Computer Science and Logic: Proceedings of the AMS-IMS-SIAM Joint Summer Research Conference Held June 14-20, 1987 with Support from the National Science Foundation. Vol. 92. American Mathematical Soc., 1989.

See also

In enriched category theory

Discussion of sketches the generality of enriched category theory:

Generalisations

Discussion in the generality of internalization into 2-categories:

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.