-Categorical Models of Linear Logic
Abstract
The notion of categorical model of linear logic is now well studied and established around the notion of linear-non-linear adjunction, which encompasses the earlier notions of Seely categories, Lafont categories and linear categories. These categorical structures have counterparts in the realm of -categories, which can thus be thought of as weak forms of models of linear logic. The goal of this article is to formally introduce them and study their relationships. We show that -linear-non-linear adjunctions still play the role of a unifying notion of model in this setting. Moreover, we provide a sufficient condition for a symmetric monoidal -category to be Lafont. Finally, we illustrate our constructions by providing models: we construct linear-non-linear adjunctions that generalize well-known models in relations (and variants based on profunctors or spans), domains and vector spaces. In particular, we introduce a model based on spectra, a homotopical variant of abelian groups.
Keywords and phrases:
linear logic, linear-non-linear adjunction, -category, spectrumCopyright and License:
2012 ACM Subject Classification:
Theory of computation Linear logicEditors:
Maribel FernándezSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
Introduction
Toward higher-dimensional models of linear logic.
The introduction of linear logic [20] was motivated by the study of semantics of -calculus [21] and many instances of such semantics have been considered for this logic (phase semantics, coherence spaces, domains, game semantics, etc.). In order to structure and unify their study, categorical axiomatizations of what a model of linear logic should be have been proposed: Lafont categories [34], Seely categories [45], linear categories [26] and linear-non-linear adjunctions [7], as well as -autonomous [45, 5] variants for the classical case, see [11, 41, 38] for surveys on the topic and the relationships between them. More recently, the study of several categorical structures has prompted higher-categorical generalizations of the notion of model: even though those do not form categories, but rather bicategories, we can recognize there variants of the familiar structures that are usually found in models of linear logic. We can for instance name generalized species of structures [16, 14], or polynomial functors [32, 18, 13]. Those have motivated the recent introduction of bicategorical models for (differential) linear logic [15]. More recently, higher-dimensional generalizations of those models, polynomial/analytic functors in particular, have been considered in the settings of -categories [19] and homotopy type theory [23]. Those are a motivation for the introduction of -categorical models of linear logic in this paper.
-categories.
The notion of -category originates in the study of homotopy theory, and it has recently garnered an interest from computer science because of its tight relationship with homotopy type theory [47]. It can be thought of as a generalization of the notion of category where we take higher-dimensional coherences into account: this means that, when introducing a structure, we should ask for isomorphisms instead of equalities, those isomorphisms should satisfy coherences, themselves satisfying further coherences, and so on. Because of this, usual structures (such as the very definition of -category) require specifying an infinite amount of data. There are various formalisms making this idea precise, we consider here the one of quasicategories developed by Joyal [29]. It was considerably expanded by Lurie [35, 36], up to the point that we can nowadays almost work as in the 1-categorical setting, justifying every step by preexisting -categorical results.
-categorical models of linear logic.
In this article, we introduce -categorical variants of the main categorical models of linear logic: linear-non-linear adjunctions, Lafont categories, Seely categories, and linear categories. We also show that, as advocated by Melliès in the 1-categorical setting [38], linear-non-linear adjunctions play a unifying role for those various structures. Although, there is no formal connection (yet) to the syntax of linear logic (in the usual sense of denotational semantics), we consider that those relationships are a good indication that we are considering the relevant structures. This has allowed us to come up with new models of linear logic, which generalize already known 1-categorical ones, but are of a quite different nature and exhibit interesting new phenomena: cocomplete -categories and cocontinuous functors (generalizing complete semilattices), -categories and profunctors (generalizing relations), spectra (generalizing abelian groups).
Plan of the paper.
After recalling basic notions of -categories (Section 1), we introduce and compare the various -categorical generalizations of models of linear logic: linear-non-linear adjunctions, among which Seely and linear categories (Section 2.1), Lafont categories (Section 2.2), and -autonomous categories (Section 2.3). We then recall 1-categorical models of linear logic: polynomials (Section 3.1), domains (Section 3.2) and modules (Section 3.3). We then construct -categorical generalizations of those models in cocomplete -categories (Section 4) and spectra (Section 5).
1 -categories
We very briefly recall the setting of -categories, in the formalism of quasi-categories [29]. Providing a complete introduction is out of the scope of this paper, and we refer to the foundational books of Lurie [35, 36] for a complete reference. Our main goal here is to provide reference to -categorical generalizations of well-known constructions and properties in the 1-categorical world, which we will use in the following.
Simplicial sets.
Given a natural number , we write for the partial order . We write for the category of simplices whose objects are natural numbers and morphisms are monotone functions . The category of presheaves over this category has simplicial sets as objects. Given an object , we write for the simplicial set obtained as the image of under the Yoneda embedding, and for the -th horn, which is the simplicial set obtained from by removing the -th face and its top-dimensional cell, with ; an inner horn being a horn with . Writing for the functor which to associates the totally ordered set , any category induces a simplicial set, called its nerve, defined by , which will allow considering a 1-category as an -category, which we sometimes leave implicit.
-categories.
An -category is a simplicial set such that every inner horn has a filler [35, Def 1.1.2.4] (and -groupoids are defined similarly by requiring that every horn has a filler). It can be thought of as a weak variant of the notion of category where the expected laws, such as associativity, hold only up to coherent higher cells (the 0-cells correspond to the objects and the 1-cell to the morphisms of the category). A functor is a morphism of simplicial sets. Any two -categories and induce an -category (also denoted ) given by the internal hom in , whose objects are the functors from to [35, Prop 1.2.7.3]. The morphisms in this -category are called natural transformations. A functor is an equivalence when there is a functor and two invertible natural transformations and [35, Prop 1.2.4.1]. We write for the -category of -categories [35, Def 3.0.0.1], and for the -category of -groupoids [35, Def 1.2.16.1], which we sometimes refer to as spaces. In the following, we use homotopical as synonymous for “-categorical”, because of the tight relationships with homotopy theory [44]. In particular, all (co)limits in -categories are homotopy (co)limits [35, Sec 1.2.13].
Adjunctions.
Any two objects and of an -category induce an -groupoid (also noted ) [35, Prop 1.2.2.3]. An adjunction between two -categories and consists of functors and , together with a natural transformation such that for every objects , the composite morphism is an equivalence of -groupoids [35, Def 5.2.2.7]. Such a natural transformation is called a unit for the adjunction. Adjunctions can equivalently be defined dually purely in terms of counits, or by asking for natural transformations and satisfying the usual zig-zag identities up to homotopy, in which case they are automatically the unit and counit for an adjunction between and [37, Tag 02EK].
The existence of adjoint functors is often obtained in the following situation. An -category is accessible when it is the completion under filtered colimits of a small -category [35, Def 5.4.2.1], and presentable when it moreover has small colimits [35, Def 5.5.0.1]. The adjoint functor theorem then states that a functor between presentable -categories is a left adjoint if and only if it preserves colimits [35, Cor 5.5.2.9].
Symmetric monoidal -categories.
We write for the 1-category where an object is a natural number and a morphism is a function such that . A symmetric monoidal -category is a functor (we simply write instead of ) such that the canonical map (given by the cartesian structure of ) is an equivalence [36, Ex 2.4.2.4]. We should mention that, technically, we use the equivalent formulation as a cocartesian fibration satisfying suitable properties [36, Def 2.0.0.7]. The notion of cocartesian fibration generalizes to -categories the traditional notion of Grothendieck opfibration [35, Sec 2.4] and is an -category constructed from , whose objects are tuples of objects in [36, Cons 2.1.1.7]. The opposite of a symmetric monoidal -category has a canonical structure of symmetric monoidal -category using the equivalence [36, Rem 2.4.2.7]. A symmetric monoidal -category is closed when the functor admits a right adjoint [36, Def 4.1.1.15], which we generally denote . Given a functor between symmetric monoidal -categories, a monoidal structure consists in natural isomorphisms exhibiting the fact that the functor preserves the monoidal structure, see [36, Def 2.1.3.7].
Monads.
A commutative monoid in a monoidal -category is a section satisfying a suitable condition [36, Def 2.1.3.1]. In particular, a commutative monoid in the -category is a symmetric monoidal -category [36, Rem 2.4.2.6]. The notion of cocommutative comonoid is defined dually as a commutative monoid in the opposite monoidal -category . The notion of (non-commutative) monoid can be defined similarly, by taking a variant of the -category [36, Def 4.1.1.6]. A monad on an -category is a monoid object in the monoidal -category [36, Def 4.7.0.1]. Any adjunction between -categories induces a monad in the expected way [36, Prop 4.7.3.3]. Moreover, any monad on an -category determines an -category of -algebras [36, Def 4.2.1.13]. The Kleisli -category associated to a monad can be described as the essential image of the free algebra functor (constructed in [36, Sec 4.2.4]), see [25, Def 4.1].
2 -categorical models of linear logic
The notion of categorical model for the multiplicative fragment of intuitionistic linear logic is clear: it consists of a category which is symmetric monoidal closed (to model the tensor and linear arrow of linear logic). In order to model additives, the category should be cartesian (independently of being monoidal). Finally, in order to model exponentials, the category should moreover be equipped with a comonad , the exponential modality, equipped with various coherence isomorphisms satisfying suitable coherence laws. Several axiomatizations of this modality have been proposed in the literature, among which Lafont categories [34], Seely categories [45] and linear categories [26], see [11, 38] for a survey. As for any comonad, an exponential comonad can be decomposed as an adjunction, which can be seen as a particular way of “presenting” the comonad. In particular, we have the two extremal ways of decomposing the comonad as the adjunction with the Kleisli category, and the category of coalgebras of the comonad. The properties that such adjunctions should satisfy can be axiomatized as the linear non-linear (lnl) adjunctions introduced by Benton [7], and those have been advocated as a unifying framework for the models of linear logic by Melliès [38]. Again, we insist on the fact that the adjunction is additional data, all that matters is the comonad it induces. We observe here that the various notions of categorical model are difficult to generalize to -categories, but it is much easier to do so with the associated reformulations as lnl adjunctions, which is the point of view we adopt here. Finally, we investigate -autonomous -categories, which allow modeling classical linear logic.
2.1 Linear-non-linear adjunctions
The notion of linear-non-linear (lnl) adjunction [7] straightforwardly adapts to the setting of -categories. It consists in a suitable adjunction between a category , corresponding to the “linear” formulas, and a category which provides the “multiple” structure. The model of linear logic actually lives in the linear category: the multiplicative one is here to ensure that it is equipped with an exponential modality, namely the comonad induced by the adjunction.
Definition 1.
An -categorical linear-non-linear adjunction is an adjunction
| (1) |
between a cartesian -category and a symmetric monoidal closed -category , together with a structure of symmetric monoidal functor on .
Remark 2.
The notion of lnl adjunction is a particular case of the one of resource modality [39] which, in our setting can be defined as an adjunction as in Equation 1 between monoidal -categories and , together with a monoidal structure on the functor (not supposing that is cartesian nor that is closed).
It might be surprising at first that no condition is required on . In fact, since is symmetric monoidal, is automatically lax symmetric monoidal [36, Cor 7.3.2.7]. The following formalizes the fact that objects in the image of the exponential modality can be copied and erased:
Proposition 3.
In an lnl adjunction, every object is equipped with a canonical structure of a commutative comonoid.
Proof.
By [36, Cor 2.4.3.10], because is cartesian, every object is a commutative comonoid, and the symmetric monoidal functor functor transports the commutative monoid structure to .
Seely categories.
One of the most widely used notions of categorical model of linear logic is given by the notion of a Seely category. The original definition [45] was missing an axiom which was identified later on [9]. It consists in a symmetric monoidal closed category with finite products equipped with a comonad , which is a symmetric monoidal functor satisfying a particular axiom. As is, this definition does not easily generalize to -categories, because there is no obvious way of generating the associated higher coherences. However, the alternative characterization of Seely categories as lnl adjunctions given in [38, Prop 24 and 25] does. The following definition is based on that.
Definition 4.
An lnl adjunction Equation 1 is Seely when is cartesian (independently of being monoidal) and the comparison functor from the Kleisli -category of the comonad on is an equivalence of -categories.
It can be shown that a right adjoint functor identifies to the Kleisli -category (where is the comonad induced by the adjunction) if and only if it is essentially surjective [25, Thm 7.2]. As a consequence, we have the following alternative characterization:
Proposition 5.
An lnl adjunction Equation 1 is Seely if and only if is cartesian and is essentially surjective.
In particular, any lnl adjunction Equation 1 with cartesian induces a Seely one by restricting to the essential image of .
Linear categories.
Instead of considering adjunctions with Kleisli categories, one can also consider the other extreme case of adjunctions with categories of coalgebras: those correspond to linear categories [38, Prop 29 and 30]. Below, the comparison functor is defined in [36, Def 4.7.3.4].
Definition 6.
An lnl adjunction Equation 1 is linear when the comparison functor to the -category of coalgebras is an equivalence.
2.2 Lafont categories
An important class of models is given by Lafont categories where the exponential modality is given by the cofree commutative comonoid construction (we have seen in Proposition 3 that always provides commutative comonoids). Given a symmetric monoidal -category , we write ) for the -category of commutative monoids in [36, Def 2.1.3.1] and the -category of commutative comonoids in (in this paper, all (co)monoids considered are commutative).
Definition 7.
A Lafont -category is a symmetric monoidal closed -category such that the forgetful functor is a left adjoint.
Proposition 8.
Any Lafont -category induces an lnl adjunction between and .
Proof.
The -category is cartesian, because the opposite -category is cocartesian [36, Prop 3.2.4.7]. Moreover, the forgetful functor has a canonical symmetric monoidal structure [36, Ex 3.2.4.4]. In situations where the monoidal structure on is compatible with some limits, the cofree commutative comonoid on an object can be computed explicitly using limits, see [40]. A similar construction holds in the setting of -categories.
Proposition 9.
Let be a symmetric monoidal -category with countable limits such that, for every object , the tensor product functor preserves countable limits. Then is Lafont, and the free commutative comonoid on an object is given by , where is the object of invariants by the group action of on (i.e. the limit of the diagram classifying this group action).
Proof.
This statement is exactly dual to [36, Ex 3.1.3.14]. The monoidal categories typically appearing in linear algebra are more often compatible with colimits than with limits (that is for instance the case of categories of -modules). In such situations, we can still construct a structure of Lafont category when is presentable, although the free commutative comonoid does not admit a nice formula as above.
Theorem 10.
Let be a symmetric monoidal presentable -category such that for every object , the tensor product functor preserves small colimits. Then is presentable and is Lafont.
Proof of Theorem 10.
Since is presentable and preserves small colimits, it admits a right adjoint, so is monoidal closed. If we suppose that is presentable, the forgetful functor preserves (and even creates) small limits by [36, Cor 3.2.2.5], so the forgetful functor preserves small colimits. By the adjoint functor theorem for presentable -categories [35, Cor 5.5.2.9], it must admit a right adjoint, and we have a structure of Lafont -category on .
We are left with showing that is presentable. Note that this does not immediately follow from a presentability criterion for -categories of monoids [36, Cor 3.2.4.5], since is defined as the opposite of an -category of monoids, and presentability is not a self-dual notion. Nevertheless, we can adapt the proof of [36, Cor 3.2.3.5]. We say an -category is copresentable if its opposite -category is presentable, and similarly for coaccessible. Our goal is to show that is copresentable, i.e. admits small limits and it is coaccessible. The -category admits small limits, once again by [36, Cor 3.2.2.5] (since admits small colimits by virtue of being presentable, admits small limits). It can be shown to be coaccessible by [35, Thm 5.4.7.11], see Lemma 37 for details. In the case of vector spaces, the construction of free commutative comonoids (often called coalgebras in this context) dates back to Sweedler [46], and Barr [4] for modules.
2.3 -autonomous categories
In this section, we consider a symmetric monoidal closed -category (with as tensor and as internal hom) equipped with a distinguished object . For an object , we write . The notion of model for classical linear logic is given by the following notion.
Definition 11 (-autonomous -category).
The object is dualizing if the internal hom functor is an equivalence of -categories. An -category equipped with a dualizing object is called -autonomous.
Note that the dualizing object is part of the data: a given -category might admit multiple non-isomorphic dualizing objects, see Remark 35. We have the following alternative definition:
Proposition 12.
The object is dualizing if and only if for every object , the canonical map is an isomorphism in .
Proof.
Since is symmetric monoidal, we have the following isomorphisms
natural in and , and the functor is thus left adjoint to . The canonical map is the unit of this adjunction (as a morphism in ) and also its counit (as a morphism in . An adjunction is an equivalence if and only if its unit and counit are isomorphisms, which gives the desired result.
Proposition 13.
Suppose is -autonomous. If the forgetful functor admits a left adjoint (i.e. admits free commutative monoids), then is Lafont (i.e. admits cofree commutative comonoids). Moreover, the underlying object of the free comonoid on is given by .
Proof.
Since is a left adjoint, is a right adjoint. Using the equivalence and passing to -categories of monoids, we get . Hence the composite
defines a right adjoint to the forgetful functor . Unfolding this composition, we also get the desired formula for the free comonoid on .
We conclude this section with a small lemma that will be useful in the proof of Theorem 23. For any pair of objects , write for the evaluation map, i.e. the counit of the adjunction evaluated at . Similarly, write for the unit of the same adjunction.
Lemma 14.
Let be objects of , and an isomorphism. If the following square commutes
where comes from the symmetry of the monoidal structure, then the canonical morphism is an isomorphism.
Proof.
We have the following commuting diagram:
The left square commutes by naturality of . The right square commutes by assumption and functoriality of . The composition of the bottom line is homotopic to the identity by the zig-zag identity for the adjunction , in particular it is an isomorphism. Since is also an isomorphism, the composite of the top line, i.e. the canonical map , must also be an isomorphism.
3 Models of linear logic in 1-categories
In this section, we briefly recall some traditional models of linear logic, that we generalize to the -categorical setting later on. We first provide two models based on the powerset monad on , and then one based on vector spaces (or, more generally, modules). As we have seen in previous section, there are two canonical ways to construct lnl adjunctions. Namely, starting from a “linear” category equipped with a suitable comonad, one can either consider the category of coalgebras, or the category of free coalgebras, as the corresponding “multiple” category: this is the idea behind the notions of linear and Seely lnl adjunctions. There are actually two other canonical ways to construct lnl adjunctions. We can, dually, start from a “multiple” category equipped with a suitable monad and construct the “linear” category as the category of algebras, or free algebras, of the monad. Moreover, we can alternatively perform those constructions in order to build richer models. Let us illustrate this on three examples.
3.1 Relational polynomials
We write for the category of sets and functions, and for the category of sets and relations: a morphism is a relation . This category is symmetric monoidal when equipped with the set-theoretic cartesian product on objects. It is easily checked to be self-dual compact closed, and thus closed as a monoidal category. This category is also cartesian, with product being given by set-theoretic disjoint union (this is in fact a biproduct). The canonical inclusion functor is symmetric monoidal, and admits a right adjoint which sends a set to the powerset and a relation to the function which to associates . The monad induced on is the powerset monad, whose Kleisli category is precisely . Namely, the isomorphism is given on hom-sets by where is the set with two elements. We have thus constructed an lnl adjunction between and .
Consider the free commutative monoid monad on . There is a distributive law between the two monads (given a set , sends a formal product of subsets to the subset of formal products ), and the monad thus lifts to the Kleisli category [6]. Since is self-dual this monad, that we denote , is also a comonad. We write for the co-Kleisli category: a morphism is a relation , which can be thought of as encoding a family of polynomials
which take variables typed in and returns polynomials typed in , and composition corresponds to the expected one for polynomials. Note that each polynomial contains at most once a monomial, i.e. we have “boolean coefficients”, but might consist of an infinite sum. This category is cartesian, with cartesian product given by set-theoretic disjoint union on objects. The resulting adjunction between and forms a Seely category lnl adjunction. It turns out that is also a Lafont category, and the comonad just described is isomorphic to the one given by the free commutative comonoid in . Higher-categorical variants of this model have been considered in the literature such as generalized species of structures [16], operads [10] or polynomial functors [33, 23].
3.2 Domains
As a variant of the previous construction, we can start from the category algebras of the powerset monad on (instead of the associated Kleisli category). This is equivalent to the category of complete (sup) semilattices and sup-preserving functions. Indeed, an algebra induces a partial order on given by whenever , and, given , its least upper bound is given by . As for any category of algebras, there is an adjunction where the right adjoint sends a complete semilattice to the underlying set, and the left adjoint sends a set to the power set semilattice, ordered by inclusion. The category is cartesian with the usual cartesian product of posets (or categories). It is also monoidal for the tensor representing functions from which preserve sups in each coordinate [17]: it can be constructed as the set of downward closed subsets of such that for and such that we have . This tensor product has an internal hom (given by equipped with the pointwise ordering), giving rise to a -autonomous category which is not compact closed [5].
The category of domains is the category of directed-complete (sup) semi-lattices and Scott continuous functions (preserving the sups of directed sets). This category is cartesian closed, and the forgetful functor admits a symmetric monoidal left adjoint, thus giving an lnl adjunction. This construction is hinted at in [1, Section 8.3.3].
3.3 Modules
We finally present a model based on vector spaces, which is arguably one of the reasons why linear logic is called so. For the sake of generality, we actually consider modules over a ring. Given a commutative ring , we recall that an -module is an abelian group together with a scalar multiplication operation satisfying , and . A morphism of -modules is a morphism of the underlying abelian groups which is compatible with the scalar multiplication. We write for the category of -modules and -module morphisms. In particular, when , is the category of abelian groups, and, when is a field, is the category of -vector spaces.
The category admits a symmetric monoidal structure given by the tensor product of -modules: the -module represent bilinear functions from . The ring , seen as an -module with multiplication as scalar multiplication, is a neutral element. The forgetful functor has a left adjoint , sending a set to the free -module , which is symmetric monoidal (with equipped with its cartesian monoidal structure), thus giving rise to the lnl adjunction on the left, which specializes to the two other lnl adjunctions when and :
Note that is also a Lafont category (see [27, Section 2.4], [4], or [46, Thm 6.4.3] for the case of vector spaces), which can be recovered as a consequence of Theorem 10, but the Lafont comonad is different from the one just described and in general hard to describe. This is however not a -autonomous category (and thus not a model of classical linear logic): since it is presentable, -autonomy would imply that its opposite is also presentable, and thus that it is a poset [2, Thm 1.64]. This limitation can be overcome by restricting to finite-dimensional vector spaces over fields which are finite [48] or in characteristic 2 [27, Sec 2.4] (in order to keep the exponential finite) or considering topological vector spaces [31].
4 Models in -categories with colimits
-categorical domains.
In this section, we construct an -categorical model by generalizing the model of domains recalled in Section 3.2. Basically, we replace (sup-complete) posets by (cocomplete) -categories, continuous functions by colimit-preserving functors, and Scott-continuous by filtered-colimit-preserving functors.
Given a class of (small) simplicial sets, we write for the -category of (possibly large) -categories that admit -colimits and functors that preserve such colimits. In the case where is the collection of filtered -categories, we write . When is the class of all (small) simplicial sets, we write for the -category of cocomplete -categories.
Proposition 15.
Given any two classes of simplicial sets we have an adjunction between symmetric monoidal -categories where is the forgetful functor and the left adjoint is symmetric monoidal.
Proof.
By [35, Cor 5.3.6.10], the forgetful functor admits a left adjoint. By [36, Cor 4.8.1.4], the -category (and similarly for ) admits a symmetric monoidal structure, where the tensor represent functors from which preserve -colimits in each variable, and this monoidal structure is closed [36, Rem 4.8.1.6]. Finally, the left adjoint admits a structure of symmetric monoidal functor [36, Rem 4.8.1.8].
Theorem 16.
There is a linear non-linear adjunction
Proof.
By Proposition 15, we only need to show that the monoidal structure on is cartesian. Every filtered -category is sifted [35, Ex 5.5.8.3], and we conclude with [36, Rem 4.8.1.5]. More explicitly, this comes from the fact that a functor preserves sifted colimits if and only if it preserves sifted colimits in both variables [35, Prop 5.5.8.6].
Remark 17.
With the model of Sections 3.2 and 15 in mind, we could have considered different generalizations of the notion of directed families. For instance, we could have taken sifted -categories instead of filtered ones and obtained another lnl adjunction. Finally, one could also replace by and obtain yet another lnl adjunction, and even by by taking the underlying core of an -category. To sum all of this up, there really is a chain of symmetric monoidal left adjoints
where the monoidal structures on , , and are all cartesian.
-categorical relations.
We now investigate an -categorical version of the model of relations presented in Section 3.1. The natural generalization of the powerset monad on is the free cocompletion monad on , which exists by general arguments (we can take as defined in Proposition 15). When is a small -category, coincides with the presheaf -category . We have seen in previous section that plays a analogous role to the category (the category of algebras of the powerset monad), and we should thus recover a -categorical counterpart to by restricting to “free algebras”, i.e. objects of the form for . It turns out to be convenient to consider the following variant of this construction:
Definition 18.
We write for the full subcategory of spanned by -categories of the form for some small -category .
Remark 19.
The notation is due to the fact that , the -category of profunctors from . Hence one might be tempted to see as an -category whose objects are small -categories and morphisms are profunctors. This intuition is almost right, up to a slight subtlety: two non-equivalent small -categories and may yield the same presheaf -category . It turns out that this happens precisely if and have the same idempotent completion [37, Tag 040X], so we can think of as the -category of small idempotent complete -categories and profunctors between them.
Proposition 20.
The symmetric monoidal structure on restricts to . Moreover, we have and .
Proof.
The free cocompletion functor is symmetric monoidal, and the monoidal structure on is cartesian by [36, Rem 4.8.1.5], in particular we get isomorphisms and . It remains to show that the monoidal structure on preserves smallness: the terminal -category is clearly small and the cartesian product of small -categories is still a small -category.
Theorem 21.
The -category admits small colimits, and the monoidal structure is compatible with small colimits.
Proof.
The proof can be done as the one of [36, Prop 4.8.4.2], but without the smallness assumption on the class of simplicial sets . See Section A.2 for details.
Lemma 22.
The forgetful functor has a left adjoint . The free monoid on a presheaf -category is given by where denotes the free symmetric monoidal -category construction (i.e. the left adjoint to ).
Proof.
That the forgetful functor admits a left adjoint follows from [36, Ex 3.1.3.14] and Theorem 21. Again invoking [36, Ex 3.1.3.14], the -category with its cartesian symmetric monoidal structure admits free monoids. In other words, we can form free symmetric monoidal -categories (and they can be computed using the usual formula , the disjoint union of the homotopy quotients of under the action of the symmetric group of degree ). Moreover, the left adjoint to the forgetful functor being symmetric monoidal, its right adjoint is lax symmetric monoidal [36, Cor 7.3.2.7], so they induce an adjunction
and the commutativity of the following square of forgetful right adjoint functors shown below on the right implies the commutativity of the square of their left adjoints (on the left below).
This means that the functor preserves the “freeness” of monoids. If is a small -category, so is , and , which gives the desired result.
Theorem 23.
is a Lafont -category. The free commutative comonoid on is .
Remark 24.
The authors of [16] have described a cartesian closed bicategory in which objects are small categories and morphisms are profunctors (called generalized species). In [15], they extend upon this result by explicitly building a “bicategorical model” of differential linear logic, based on the comonad on the bicategory of small categories and profunctors. As discussed at the beginning of this section, can thought of as the -category of small -categories and -profunctors. The formula given by the theorem for the free commutative monoid on shows that this model is an -categorical generalization of the one of [15]. Note however that their model is bicategorical in a full -categorical sense, while ours is -categorical. We expect our model to be generalizable to the -categorical setting and the results of [15] to hold there.
Remark 25.
Restricting to -categories of the form where is an -groupoid still yields a Lafont -category (in view of the formula for the comonad). Then, we have , the -category of spans between and . In view of this, this model restricted to -groupoids can be seen as a fully homotopy coherent version of the “wild” model of spans and polynomial functors described by the authors in [23].
Proof of Theorem 23.
In view of the formula for the left adjoint to the forgetful functor given for presheaf -categories in Lemma 22, we see that the free/forgetful adjunction restricts to one between and . To obtain a Lafont model, we are going to use Proposition 13 and we are left with showing that is -autonomous. Having done that, the formula for the free commutative comonoid will also follow from Proposition 13 and the observation that .
We now show that is a dualizing object in . For every small -category , we write for the yoneda embedding. We write for the internal hom in . Given a cocomplete -category , the restriction functor is an equivalence, with inverse given by left Kan extension along [35, Thm 5.1.5.6].
Let be a small -category. Write for the composite of the following sequence of equivalences of -categories
To show that the canonical morphism is an equivalence, it suffices to show that satisfies the commutativity condition of Lemma 14. Since the tensor product of -categories with colimits classifies functors that preserve colimits in both variables, this reduces to showing that the following diagram of -categories commute.
Simplifying furthermore through the equivalence , this amounts to showing that the two following maps are naturally isomorphic:
According to [24, Prop 4.8], those left Kan extensions can be computed as weighted colimits, which themselves can be defined as coends, so that the desired isomorphism becomes
This isomorphism itself follows from the symmetry of the cartesian product together with the self-duality of coends, which can be seen easily through the definition of coends as colimits indexed on the twisted arrow -category [24, Cor 3.8] together with the equivalence [37, Tag 03JL].
Remark 26.
The reader may recognize the formula as the definition of the tensor product of the copresheaf with the presheaf . This tensor product is characterized as being cocontinuous in both its arguments and being the functor when restricted to representable (co)presheaves. In a sense, we just proved that the evaluation functors simply reduce to extensions of the functor, which can be thought of as a generalization of the Yoneda lemma.
5 Spectra
Having generalized models of linear logic based on domains and relations in Section 4, we now turn to -categorical versions of linear algebraic models. Using the cartesian symmetric monoidal structure on , one can consider the -category (or simply ) of commutative monoids in . A commutative monoid is said to be a commutative group if for every , the multiplication map is an isomorphism of -groupoids. The full subcategory of spanned by the commutative groups is written (or simply ). To generalize the lnl adjunction between and to the -categorical setting, we could look for an lnl adjunction between and . The first step would thus be to find a symmetric monoidal structure on . We could do this directly, but we prefer to take a small detour to explore a bigger -category of interest in homotopy theory: the -category of spectra [36, Def 1.4.3.1].
We write for the -category of pointed -groupoids, i.e. -groupoids equipped with a distinguished object . Given , we write for its loop space, and where is the set of connected components of .
Definition 27.
A spectrum is a sequence of pointed -groupoids together with pointed isomorphisms for every . The -category of spectra is by definition the limit of the infinite tower of -categories . The forgetful functor , is called the infinite loopspace functor and is written .
Let be a spectrum. We have , so comes equipped with a group structure. But we also have , so this group structure is abelian. In a sense, the infinite sequence of deloopings of equip it with a commutative group structure, and indeed if all the are connected, then their data is precisely equivalent to the data of a commutative group structure on .
Definition 28.
A spectrum in which is connected when is said to be connective. The full subcategory of spanned by the connective spectra is written .
Spectra can be thought of as a generalization of the notion of commutative group, in the sense that we have an equivalence of -categories [36, Rmk 5.2.6.26]. The infinite loopspace functor has a left adjoint [36, proof of Prop 1.4.3.4], whose essential image is contained in . Under the previous equivalence, should be thought of as computing the “free homotopy commutative group” on a pointed space .
The -category of pointed -groupoids is monoidal [36, Rmk 4.8.2.14]:
Theorem 29.
There is a symmetric monoidal structure on , entirely characterized by its unit being the -sphere (i.e. the discrete -point space with a distinguished point) and by its tensor product preserving small colimits in both variables. This tensor product is the smash product of pointed spaces.
There is also a monoidal structure on spectra [36, Cor 4.8.2.19, Lem 7.1.1.7]:
Theorem 30.
There is a symmetric monoidal structure on : its unit is the object (the sphere spectrum) and its tensor product preserves small colimits in both variables. Moreover is connective and the tensor product preserves connective spectra, so this structure restricts to a symmetric monoidal structure on .
Theorem 31.
There is a chain of symmetric monoidal left adjoints
where the symmetric monoidal structure on is the cartesian one, the one on is given by the smash product of Theorem 29, and the ones on and are the ones in Theorem 30. In particular, there is an lnl adjunction between spaces and spectra.
Proof.
Using the machinery of [36, Section 4.8.2], writing for the symmetric monoidal -category of presentable -categories and cocontinuous functors (inheriting the monoidal structure from the one of Proposition 15) [36, Prop 4.8.1.15], we have that , and are idempotent objects of [36, Prop 4.8.2.11, Prop 4.8.2.18]. The concontinuous functors and respectively map to , and to , therefore, by [36, Prop 4.8.2.9], they lift to symmetric monoidal functors between the induced monoidal structures. The inclusion is symmetric monoidal by Theorem 30. The fact that this inclusion has a right adjoint can be seen in multiple ways, for instance we can invoke the adjoint functor theorem using the fact that the inclusion preserves colimits, and showing that is presentable by identifying as a strongly reflective subcategory of and using the equivalence .
Remark 32.
With more effort, this chain of adjunctions could be made to include the factorization . The -category is the -category of the -models of the Lawvere theory of commutative monoids [8], so one can show that for any presentable -category , . In particular, , which can be shown to be equivalent to . This means that is also an idempotent object of , which is enough to conclude. We could also do the same reasoning with to show that it is idempotent independently from it being a subcategory of . We conjecture this kind of argument to be a generalization to the -categorical setting of a standard reasoning giving closed symmetric monoidal structures on categories of models of commutative algebraic theories [42, 30].
Remark 33.
Following the preceding remark, if is a pointed connected space, i.e. satisfying , then the free commutative monoid on is already a group by the James construction [12]! This fact can be used to give a formula for the comonad when is a connected supension spectrum (i.e. lying in the image of ): under that assumption, we have [3, Ex 1.2.6], which looks like the formula for the free commutative algebra (with specified unit) on (note that the free commutative algebra is in general a monad, not a comonad). For that reason, the comonad has been conjectured to be an exponential comonad for a homotopical model of linear logic in the context of Goodwillie’s calculus of functors [43]. However, the monoidal structure on is not cartesian, so its adjunction with is not lnl. Instead, taking the comonad induced by the adjunction between and gives the formula
for a connected suspension spectrum. The added term makes the right handside equivalent to the free commutative algebra on .
This phenomenon is truly exclusive to the homotopical setting: if one wanted to obtain a similar result for abelian groups for instance, the result is still true but the assumption of being connected is only satisfied by the trivial group. In general there is no reason to expect the “free commutative group on a commutative group” comonad and the “free commutative algebra” monad to coincide.
Remark 34.
Note that the symmetric monoidal -category satisfies the hypotheses of Theorem 10, so in particular it is Lafont. However, similarly to the -categorical case of -modules (or vector spaces), the comonad induced by the cofree commutative comonoid and the one induced by the adjunction with are wildly different.
Remark 35.
The -category is not -autonomous, as it is presentable (see the discussion at the end of Section 3.3). However, it is known in stable homotopy theory that every finite spectrum is dualizable (with a finite dual), so the -category of finite spectra is compact closed. We do not elaborate further on finite spectra or compact closedness here, but note that this should imply -autonomy with the unit spectrum as a dualizing object. Moreover using the equivalence , this also implies that every , with , is a dualizing object. This gives an example of a -autonomous -category with multiple dualizing objects.
Remark 36.
Beyond the lnl adjunctions we described in this paper, the chains of adjunctions of Remark 17, Theorem 31 and Remark 32 all give examples of resource modalities [39]. In particular, the chain of adjunctions
decomposes the linear exponential comonad into an affine exponential on followed by a relevant exponential on . From the point of view of linear logic, this corresponds to considering separately the dynamics of weakening and contraction, see also [28].
6 Future work
In the proof of Theorem 23, we have shown that the symmetric monoidal -category is -autonomous. We actually expect it to be compact closed, i.e. that all objects admit duals in the sense of [36, Sec 4.6]. We should also prove that compact closedness implies -autonomy as in the -categorical case, but we do not expect any surprises there.
References
- [1] Samson Abramsky and Achim Jung. Handbook of Logic in Computer Science, volume 3, chapter Domain theory, pages 1–168. Clarendon Press, Oxford, 1994.
- [2] Jiří Adámek and Jiří Rosickỳ. Locally presentable and accessible categories, volume 189. Cambridge University Press, 1994.
- [3] Gregory Arone and Michael Ching. Goodwillie calculus. In Handbook of homotopy theory, pages 1–38. Chapman and Hall/CRC, 2020.
- [4] Michael Barr. Coalgebras over a commutative ring. Journal of Algebra, 32(3):600–610, 1974.
- [5] Michael Barr. -autonomous categories and linear logic. Mathematical Structures in Computer Science, 1(2):159–178, 1991. doi:10.1017/S0960129500001274.
- [6] Jon Beck. Distributive laws. In Seminar on Triples and Categorical Homology Theory, pages 119–140, Berlin, Heidelberg, 1969. Springer Berlin Heidelberg.
- [7] Nick Benton. A mixed linear and non-linear logic: Proofs, terms and models. In International Workshop on Computer Science Logic, pages 121–135. Springer, 1994.
- [8] John D. Berman. Higher lawvere theories. Journal of Pure and Applied Algebra, 224(9):106362, 2020.
- [9] Gavin M. Bierman. What is a categorical model of intuitionistic linear logic? In Typed Lambda Calculi and Applications, Second International Conference on Typed Lambda Calculi and Applications, TLCA, volume 902 of Lecture Notes in Computer Science, pages 78–93. Springer, 1995. doi:10.1007/BFB0014046.
- [10] Pierre-Louis Curien. Operads, clones, and distributive laws. In Operads and universal algebra, pages 25–49. World Scientific, 2012.
- [11] Valeria de Paiva. Categorical Semantics of Linear Logic for All, pages 181–192. Springer Netherlands, Dordrecht, 2014.
- [12] Sanath Devalapurkar and Peter Haine. On the James and Hilton-Milnor splittings, and the metastable EHP sequence. Documenta Mathematica, 26:1423–1464, 2021.
- [13] Eric Finster, Samuel Mimram, Maxime Lucas, and Thomas Seiller. A cartesian bicategory of polynomial functors in homotopy type theory. In Proceedings 37th Conference on Mathematical Foundations of Programming Semantics, MFPS 2021, volume 351 of EPTCS, pages 67–83, 2021. doi:10.4204/EPTCS.351.5.
- [14] Marcelo Fiore, Zeinab Galal, and Hugo Paquet. Stabilized profunctors and stable species of structures. Logical Methods in Computer Science, 20, 2024. doi:10.46298/LMCS-20(1:17)2024.
- [15] Marcelo Fiore, Nicola Gambino, and Martin Hyland. Monoidal bicategories, differential linear logic, and analytic functors. Preprint, 2024. arXiv:2405.05774.
- [16] Marcelo Fiore, Nicola Gambino, Martin Hyland, and Glynn Winskel. The cartesian closed bicategory of generalised species of structures. Journal of the London Mathematical Society, 77(1):203–220, 2008.
- [17] Grant A. Fraser. The semilattice tensor product of distributive lattices. Transactions of the American Mathematical Society, 217:183–194, 1976.
- [18] Nicola Gambino and Joachim Kock. Polynomial functors and polynomial monads. Mathematical proceedings of the cambridge philosophical society, 154(1):153–192, 2013.
- [19] David Gepner, Rune Haugseng, and Joachim Kock. -operads as analytic monads. International Mathematics Research Notices, 2022(16):12516–12624, 2022.
- [20] Jean-Yves Girard. Linear logic. Theoretical computer science, 50(1):1–101, 1987. doi:10.1016/0304-3975(87)90045-4.
- [21] Jean-Yves Girard. Normal functors, power series and -calculus. Annals of pure and applied logic, 37(2):129–177, 1988. doi:10.1016/0168-0072(88)90025-5.
- [22] Thomas G Goodwillie. Calculus III: Taylor series. Geometry & Topology, 7(2):645–711, 2003.
- [23] Elies Harington and Samuel Mimram. Polynomials in homotopy type theory as a Kleisli category. In Proceedings of MFPS XL, volume 4 of Electronic Notes in Theoretical Informatics and Computer Science, 2024.
- [24] Rune Haugseng. On (co) ends in -categories. Journal of Pure and Applied Algebra, 226(2):106819, 2022.
- [25] Simon Henry and Nicholas J. Meadows. Higher theories and monads. Preprint, 2021. arXiv:2106.02706.
- [26] Martin Hyland and Andrea Schalk. Abstract games for linear logic extended abstract. Electronic Notes in Theoretical Computer Science, 29:127–150, 1999.
- [27] Martin Hyland and Andrea Schalk. Glueing and orthogonality for models of linear logic. Theoretical computer science, 294(1-2):183–231, 2003. doi:10.1016/S0304-3975(01)00241-9.
- [28] Bart Jacobs. Semantics of weakening and contraction. Annals of Pure and Applied Logic, 69(1):73–106, 1994. doi:10.1016/0168-0072(94)90020-5.
- [29] André Joyal. Quasi-categories and Kan complexes. Journal of Pure and Applied Algebra, 175(1-3):207–222, 2002.
- [30] William F. Keigher. Symmetric monoidal closed categories generated by commutative adjoint monads. Cahiers de topologie et géométrie différentielle, 19(3):269–293, 1978.
- [31] Marie Kerjean. Weak topologies for linear logic. Logical Methods in Computer Science, 12, 2016. doi:10.2168/LMCS-12(1:3)2016.
- [32] Joachim Kock. Data types with symmetries and polynomial functors over groupoids. Electronic Notes in Theoretical Computer Science, 286:351–365, 2012.
- [33] Joachim Kock, André Joyal, Michael Batanin, and Jean-François Mascari. Polynomial functors and opetopes. Advances in Mathematics, 224(6):2690–2737, 2010.
- [34] Yves Lafont. Logiques, catégories et machines. PhD thesis, Université Paris 7, 1988.
- [35] Jacob Lurie. Higher topos theory. Princeton University Press, 2009.
- [36] Jacob Lurie. Higher algebra. Preprint, 2017. URL: https://people.math.harvard.edu/˜lurie/papers/HA.pdf.
- [37] Jacob Lurie. Kerodon. https://kerodon.net, 2018.
- [38] Paul-André Mellies. Categorical semantics of linear logic. Panoramas et syntheses, 27:15–215, 2009.
- [39] Paul-André Melliès and Nicolas Tabareau. Resource modalities in tensor logic. Annals of Pure and Applied Logic, 161(5):632–653, 2010. doi:10.1016/J.APAL.2009.07.018.
- [40] Paul-André Melliès, Nicolas Tabareau, and Christine Tasson. An explicit formula for the free exponential modality of linear logic. Mathematical Structures in Computer Science, 28(7):1253–1286, 2018. doi:10.1017/S0960129516000426.
- [41] Paul-André Melliès. Categorical models of linear logic revisited. Unpublished manuscript, 2003. URL: https://hal.science/hal-00154229.
- [42] nLab authors. commutative algebraic theory. https://ncatlab.org/nlab/show/commutative+algebraic+theory, February 2025. Revision 39.
- [43] nLab authors. Goodwillie calculus. https://ncatlab.org/nlab/show/Goodwillie+calculus#GoodwillieDerivativeOfExponentialModality, February 2025. Revision 68.
- [44] Emily Riehl. Categorical homotopy theory, volume 24. Cambridge University Press, 2014.
- [45] R. A. G. Seely. Linear logic, -autonomous categories and cofree coalgebras. In Categories in computer science and logic, Contemp. Math., pages 371–382. American Mathematical Society, 1989.
- [46] Moss E. Sweedler. Hopf algebras, volume 44 of Mathematics lecture note series. W. A. Benjamin, 1969.
- [47] The Univalent Foundations Program. Homotopy Type Theory: Univalent Foundations of Mathematics. https://homotopytypetheory.org/book, Institute for Advanced Study, 2013.
- [48] Benoît Valiron and Steve Zdancewic. Modeling simply-typed lambda calculi in the category of finite vector spaces. Scientific Annals of Computer Science, 24(2), 2014. doi:10.7561/SACS.2014.2.325.
Appendix A Appendix
A.1 Proof of Theorem 10
Lemma 37.
Given a symmetric monoidal presentable -category such that the functor preserves small colimits for every object , the -category is accessible.
Proof.
To show that is accessible, we use [35, Thm 5.4.7.11] which, given a well-behaved ambient large -subcategory of , provides sufficient conditions for the -category of sections of a (locally) cocartesian fibration sending some distinguished morphisms in to -cocartesian morphisms in to be in this class. Here, we will take the -category of coaccessible -categories and coaccessible functors as ambient -category and we will consider to be the monoidal structure of with inert morphisms as distinguished ones, so that the -category of sections is precisely . We first need to show that satisfies the hypothesis of the theorem.
-
(a)
By [35, Prop 5.4.7.3], admits small limits and the forgetful functor preserves small limits. By duality (the equivalence restricts to an equivalence ), also has small limits and the functor preserves them.
-
(b)
Given a coaccessible -category , we have (because ), which is accessible by [35, Prop 5.4.4.3], and is coaccessible.
-
(c)
Given coaccessible -categories and , a functor is coaccessible if and only if the two functors induced by restricting to the vertices of are coaccessible. This is because coaccessibility is a limit-preservation property, and limits in functor -categories are computed pointwise [35, Cor 5.1.2.3].
We now show that the map satisfies the hypotheses of the theorem.
-
(i)
By definition of being a symmetric monoidal -category, the functor is a cocartesian fibration, and thus a categorical fibration and a locally cocartesian fibration.
-
(ii)
The fiber of over is isomorphic to , which is coaccessible because is coaccessible and by ˜a.
-
(iii)
Given a pointed map , the induced functor induced by the monoidal structure on is opposite to the functor induced by the monoidal structure on . This latter functor is accessible by virtue of [36, Lem 3.2.3.4], so is coaccessible.
By [35, Thm 5.4.7.11], is thus coaccessible, so that is accessible.
A.2 Proof of Theorem 21
Proof of Theorem 21.
The proof follows the one of [36, Prop 4.8.4.2], but without the smallness assumption on the class of simplicial sets . To keep track precisely of size issues, fix Grothendieck universes . The -category is by definition the -category of -small -categories that admit -small colimits. Given a diagram , proposition 4.8.4.2 of [36] guarantees that there exists -small -category which is a colimit of this diagram, with an explicit description given in the proof of [35, Prop 5.3.6.2]. We need to show that it is actually (essentially) -small.
To construct the -category , first take a colimit of the composition . Let denote the -category of -small presheaves on , i.e. is the -small free cocompletion of under -small colimits. Then we need to “force” the cocones in coming from colimiting cocones in the -category of the diagram to become coliming cocones. This is done by taking -local objects in for a well-chosen class of morphisms , this defines a reflective subcategory The -category is finally obtained by considering the smallest full subcategory of containing the image of and closed under -small colimits.
The -category is locally -small since it is a -category of -small presheaves [35, Ex 5.4.1.8], so is also locally -small (as a full subcategory of a locally small -category). To show it is (essentially) -small, it suffices to show that the set of equivalence classes of its objects is -small. Write for the image of the functor . Since is -small, so is . By definition, is the smallest full subcategory of containing and closed under -small colimits. We describe more explicitly as the union of a monotonous sequence of subcategories of , where takes values in all -small ordinals. When , define to be the the full subcategory of on objects that are colimits of -small diagrams in . When , define to be the union of the . Write for the smallest ordinal of cardinality that of . We claim that . Clearly, every is a full subcategory of . It thus suffices to show that is closed under -small colimits. Let a -small diagram in . Since is -small, the colimit of belongs to for some , and hence also belongs to . This concludes the proof that admits -small colimits.
