1. Introduction
Combinatorial species arose in the work of André Joyal (Reference Joyal1985, Reference Joyal1981) as categorification of the theory of generating functions (Wilf Reference Wilf1990). The idea is as simple as it is fruitful: a convenient way to study a sequence of positive integers
$\boldsymbol{b}=(b_0,b_1,b_2,\dots )$
equipped with some combinatorial meaning is to consider them as the coefficients of a formal power series
$F_{\boldsymbol{b}}(X)\in \mathbb{Q}[\![ X]\!]$
(the generating series or generating function of
$\boldsymbol{b}$
), most often in exponential form, that is,
$F_{\boldsymbol{b}}(X) := \sum _{n\ge 0}\frac {b_n}{n!}X^n$
. The properties of
$F_{\boldsymbol{b}}(X)$
as an algebraic object reflect onto the combinatorial properties of
$\boldsymbol{b}$
(species can be added, multiplied, functionally composed; each of these operations performed on
$F_{\boldsymbol{a}},F_{\boldsymbol{b}}$
has meaning in terms of the combinatorial object described by
$\boldsymbol{a},\boldsymbol{b}$
), and vice versa, the combinatorial properties of
$\boldsymbol{b}$
(e.g., the fact that its elements satisfy a certain recurrence relation) reflect on the algebraic properties of its generating series. ‘Generatingfunctionology’ is, among other things, the study of combinatorics inspired by the manipulations of formal power series whose coefficients have combinatorial meaning.
Indeed, crafting a bijective proof to grok numerical identities in terms of bijections between finite sets is acknowledged as the fundamental problem in enumerative combinatorics (cf. e.g., the introduction of Méndez and Yang Reference Méndez and Yang1991), and generating functionology is of great help in this respect: for Joyal, a ‘species of structure’ arises as a categorification of the notion of generating series.
A species of structure consists of a functor
$F : {\textsf{P}} \to \textsf{Set}$
having domain the category of finite sets and bijections: instead of a countable sequence of numbers
$\{b_n\mid n\ge 0\}$
, a countable sequence of sets
$\{F[n]\mid n\ge 0\}$
; properties of the category of all such functors can now be given combinatorial meaning, combinatorial identities acquire meaning as bijective proofs (=isomorphisms of functors), and operations performed on functors express a possibly complicated object as (monoidal) product of simpler bits (we mention some of these isomorphisms in Remark 2.11). Among Joyal’s first applications for the language of species, there was a particularly insightful proof of Cayley’s counting theorem for trees (Cayley Reference Cayley1889), a result which paved the way to a booming development of techniques (propelled by the support of an insider of enumerative combinatorics, and genius, as C.G. Rota) in domains such as representation theory of groups (Chen Reference Chen1993; Leroux and Viennot Reference Leroux and Viennot1988; Rajan Reference Rajan1993; Yeh Reference Yeh, Labellea and Leroux1986), the study of set partitions (Bonetti et al. Reference Bonetti, Rota, Senato and Venezia1992; Joni and Rota Reference Joni and Rota1979; Méndez and Nava Reference Méndez and Nava1993), Möbius functions (Méndez and Yang Reference Méndez and Yang1991; Rota Reference Rota1964; Senato et al. Reference Senato, Venezia and Yang1997) and graph theory (Méndez Reference Dixon and Mortimer1996), up to the exciting field of combinatorial differential equations (Bergeron and Reutenauer Reference Bergeron and Reutenauer1990; Leroux and Viennot Reference Leroux, Viennot, Labellea and Leroux1986, 1988; Menni Reference Menni2008).
This wealth of applications is by no means limited to the field of enumerative combinatorics; the operation of plethystic substitution (Bergeron Reference Bergeron1987; Nava Reference Nava1987; Nava and Rota Reference Nava and Rota1985) is recognised as the fundamental building block in the theory of operads envisioned by May (1972, 1997) and natural instances of operadic composition arise in algebraic topology and algebraic geometry (Fresse 1967; Getzler and Kapranov Reference Getzler and Kapranov1998; Loday and Vallette Reference Loday and Vallette2012; Obradović Reference Obradović2017), logic and computer science (Gambino and Joyal Reference Gambino and Joyal2017; Gambino et al. Reference Gambino, Garner and Vasilakopoulou2022; Yorgey Reference Yorgey2014) (especially due to their link with multicategory theory; Lambek Reference Lambek1969; Lambek et al. Reference Lambek1989), theoretical physics (Getzler Reference Getzler2009; Getzler and Jones Reference Getzler and Jones1994) and more.
At about the same time, another application of category theory gained momentum: the idea of interpreting abstract state machines inside general categories. The line of research initiated by Arbib–Manes (Arbib and Manes Reference Arbib and Manes1975; Pohl and Arbib Reference Pohl and Arbib1970), Goguen (Goguen Reference Goguen1975, 1973; Goguen et al. Reference Goguen1975), Naudé (Reference Naudé1977, 1979) and developed in recent times by van Glabbeek (Reference van Glabbeek1999), Hermida and Mateus (Reference Hermida and Mateus2004), Jacobs (Reference Jacobs2006) and Venema (Reference Venema2006) culminated into Ehrig’s monograph (Ehrig et al. Reference Ehrig, Kiermeier, Kreowski and Kühnel1974) on automata ‘valued’ in an abstract monoidal category
$\mathcal{K}$
.
The intuition the reader should have is that an automaton is a span

whose legs represent, respectively, a dynamical system (yielding a representation of
$A$
over a state space
$X$
), and a function
$s$
whose role is to give a final state (or output, or answer) to the computation performed by
$d$
.
The treatment made by Ehrig et al. (Reference Ehrig, Kiermeier, Kreowski and Kühnel1974) provides a systematic, category-theoretic insight into the transition from determinism to non-determinism that can be seen as the passage from automata in a monoidal category (Meseguer and Sols Reference Meseguer and Sols1975), to automata in the Kleisli category of an opmonoidal monad (Guitart Reference Guitart1980; Jacobs Reference Jacobs2016) (e.g., the probability distribution monads for convex spaces, Doberkat Reference Doberkat2007; Fritz Reference Fritz2015; Jacobs Reference Jacobs2018, 2010; Mateus et al. Reference Mateus, Sernadas and Sernadas2000) or one of its companions – the subdistribution or unnormalised distribution monad).
The category-theoretic content of such an approach to ‘machines’ goes a long way: a tentative chronology follows, but it can only scratch the surface of an immense, often submerged, body of research.
-
• Adámek (Reference Adámek1974) and Adámek and Trnková (Reference Adámek and Trnková1990) introduced the notion of an
$F$
-automaton in order to abstract even further from the monoidal case the ‘dynamics’ igniting the behaviour of an abstract machine; the progression in abstraction is as follows: from Cartesian machines in a category
$\mathcal{K}$
with finite products, that is, spans
$E \leftarrow A\times E \to B$
, one goes to monoidal ones, that is, spans
$E \leftarrow A\otimes E \to B$
valued in a monoidal category
$(\mathcal{K},\otimes )$
; these are the objects of categories
${\textsf{Mly}}_{\mathcal{K}}{(A, B)}$
. Subsequently, one abstracts the action of
$A\,\otimes \,\_\,$
on
$E$
even further, using a generic endofunctor
$F : \mathcal{K}\to \mathcal{K}$
, this is, the category
${\textsf{Mly}}_{\mathcal{K}}{(F, B)}$
. -
• Only few years prior, extensive work of Betti and Kasangian (Reference Betti and Kasangian1981, Reference Betti and Kasangian1982) and Kasangian and Rosebrugh (Reference Kasangian and Rosebrugh1990) pushed for the adoption of ‘profunctorial’ models for automata, capable to pinpoint their behaviour, and their minimisation, as a universal property (Goguen Reference Goguen1972; Goguen et al. Reference Goguen1975).
-
• An insightful idea of Katis et al. (Reference Katis, Sabadini and Walters1997, Reference Katis, Sabadini and Walters2010) recognised that categories
${\textsf{Mly}}_{\mathcal{K}}{(A, B)}$
in a Cartesian category give rise to a composition operation(2)
and thus organise as the hom-categories of a bicategory
$\textsf{KSW}(\mathcal{K})$
.Footnote
1
The bicategory so obtained can be concisely described as the bicategory of pseudofunctors, lax natural transformations and modifications
$\textbf {B}\mathbb{N} \to \mathcal{K}$
, where
$\textbf {B}\mathbb{N}$
is the monoid of natural numbers, regarded as a bicategory with a single object together with
$\mathcal{K}$
. This definition extends to monoidal automata in a straightforward way, but there one loses the description as spans, given that the monoidal product isn’t universal. -
• In Guitart (1974, 1980), René Guitart introduces the bicategory
$\textsf{Mac}$
as a refinement of a bicategory of spans.Footnote
2
In Guitart and Van den Bril (Reference Guitart and Van den Bril1977), Guitart proves that
$\textsf{Mac}$
is simply the Kleisli bicategory (Fiore et al. Reference Fiore, Gambino, Hyland and Winskel2016, Section 4; Gambino et al. Reference Gambino, Garner and Vasilakopoulou2022) of the 2-monad of cocompletion under lax colimits. This theme is reprised in Guitart (Reference Guitart1978) where Guitart introduces the notion of lax coend (Hirata Reference Hirata2022; Loregian Reference Loregian2021) as a technical preliminary to expand on the theme of Guitart and Van den Bril (Reference Guitart and Van den Bril1977). -
• Building on Ehrig et al. (Reference Ehrig, Kiermeier, Kreowski and Kühnel1974), but apparently unaware of Guitart (Reference Guitart1974), Paré proposed in (Reference Paré2010) the notion of a Mealy morphism as a proxy between strong functors and profunctors in any
$\mathcal{V}$
-enriched category
$\mathcal{C}$
. The paper culminates in the impressively general and elegantFootnote
3
result that the bicategory of
$\mathcal{V}$
-Mealy maps is simply the Kleisli bicategory of the lax idempotent 2-monad of
$\mathcal{V}$
-copower completion.Footnote
4
-
• In a joint work (Boccali et al. Reference Boccali, Femić, Laretto, Loregian and Luneia2023), the present author explores how KSW’s ‘circuits’ and Guitart’s
$\textsf{Mac}$
connect via a local adjunction (Jay Reference Jay1988; Kasangian et al. Reference Kasangian, Kelly and Rossi1983) and can be used to enhance categorical automata into widgets ‘typed’ over a bicategory with possibly more than one object; in short, it allows the passage from a bicategory of automata to automata in a bicategory, drawing some ideas from Bainbridge’s (Reference Bainbridge and Manes1975, Reference Bainbridge1972). Despite its relative obscurity, likely due to its cutting-edge nature, Bainbridge recognised and made clear the importance of bicategory theory as a foundational language for the theory of abstract automata and, in particular, proposed the idea of left/right Kan extensions along an ‘input scheme’ to analyse behaviour and minimisation.
Pushing further these ideas, building on all this work, intersects the most prolific branches of modern category theory. To sum up, we find ourselves in the following situation today: a forgotten school of category theorists hid an exciting claim behind a curtain of two-dimensional algebra:
A piece of formal category theory as envisioned by Gray (Reference Gray1974, 1975, 1982), Street and Walters (Reference Street and Walters1978), Weber (Reference Weber2007, Reference Weber2016), Wood (Reference Wood1982) serves as the mathematical foundation of abstract state machines.
This intriguing hypothesis is scattered across various sources, often unaware of each other; it has been hinted at multiple times and continues to leave traces of its presence for those willing to follow it. We are left with a conjecture and a clear work plan: can this fundamental guiding principle be taken seriously and formalised? Whoever is willing to take up the challenge of verifying this claim is now tasked with lifting the curtain and exploring a rich fauna of categorical widgets.
The present work grafts on top of the wide branches of this overarching project, studying categorical automata theory specialised to the differential 2-rig (a notion introduced by the author in Loregian and Trimble (Reference Loregian and Trimble2023) of Joyal’s combinatorial species. In order to do so, it develops further the basic theory of differential 2-rigs, expounded in Loregian and Trimble (Reference Boccali, Femić, Laretto, Loregian and Luneia2023): loosely speaking, a differential 2-rig (‘for the doctrine of coproducts’) consists of a monoidal category
$(\mathcal{R},\otimes ,\partial )$
satisfying the following assumptions:
-
• each functor
$A\,\otimes \,\_\,$
and
$\,\_\,\otimes B$
commutes with finite coproducts, to the effect that
$\mathcal{R}$
embodies the structure of a categorified semiring, realised qua category equipped with a ‘bilinear’ tensor product; -
• there exists a functor
$\partial : \mathcal{R}\to \mathcal{R}$
which commutes with coproducts, that is, there is a canonical natural isomorphismand ‘satisfies the Leibniz rule’, that is, there is a natural isomorphism
\begin{align*} \partial A + \partial B\cong \partial (A+B) \end{align*}
\begin{align*} \partial A\otimes B+A\otimes \partial B \cong \partial (A\otimes B). \end{align*}
Starting from this definition, one develops a categorification of differential algebra (intended, e.g., in the sense of Kaplansky Reference Kaplansky1976, Kolchin Reference Kolchin1973 and Marker Reference Marker, Haskell, Pillay and Steinhorn2000), recognising to the category of Joyal species the same role that in commutative algebra is covered by the ring of polynomials
$k[X]$
.
On one side, the desire to better understand the theory of differential 2-rigs forces to find examples that motivate general definitions; species constitute such an example: the category
${\textsf{Spc}}$
of species is a presheaf topos equipped with a plethora of tightly knit monoidal structures interacting with a differential structure; this richness implies that when used as an ambient category for monoidal/functorial automata, it gives rise to an interesting theory that, when stated at the correct level of abstraction, is ‘stable under small perturbations’, which means that similar results to the ones presented here export without much effort to presheaf categories equipped with a plethystic substitution operation, such as coloured species (Méndez and Nava 1993), linear species (both in the sense of Leroux and Viennot 1986 and in the sense of
$k\text{-}\textsf{Mod}$
-enriched, Aguiar and Mahajan Reference Aguiar and Mahajan2010; Getzler and Kapranov Reference Getzler and Kapranov1998), Möbius species (Méndez and Yang Reference Méndez and Yang1991) and nominal sets (Pitts Reference Pitts2013), and it allows to predict what happens when abstract automata are interpreted in a differential 2-rig other than
${\textsf{Spc}}$
, generalising Theorem 4.1.
On the other hand, the desire to understand better the theory of combinatorial species forces one to regard the category
${\textsf{Spc}}$
as an object of a larger universe of ‘2-rigs’ a fundamental feature of
${\textsf{Spc}}$
is that its derivative endofunctor
$\partial$
admits both a left and a right adjoint denoted
$L$
and
$R$
. The categories of automata
all constitute interesting examples of categories of automata, yielding a ‘dynamical system’ interpretation for diagrams of the form
$X\leftarrow \partial X\to B$
,
$X\leftarrow L\partial X\to B$
, etc., at the same time motivating a study of the categories of the endofunctor algebras for such functors (there is to date no reference for such a study).
The present work draws from both the desire to understand
${\textsf{Spc}}$
and
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}[{{\textsf{Spc}}}]$
as (differential) 2-rigs and the desire to understand (differential) 2-rigs through specific examples; let’s now outline more precisely the structure of the paper.
1.1 Outline of the paper
We start introducing the category of species and categories of automata in the sense of Adámek and Trnková (Reference Adámek and Trnková1990). The material on species that we need is classical, drawing upon various sources such as Bergeron et al. (Reference Bergeron, Labelle and Leroux1998), Gambino and Joyal (Reference Gambino and Joyal2017), Yorgey (Reference Yorgey2014) and Yeh (Reference Yeh1985); in Definition 3.1, we rework an equally ‘classical’ construction of the categories
${\textsf{Mly}}_{\mathcal{K}}{(F, B)}$
and
${\textsf{Mre}}_{\mathcal{K}}(F,B)$
, drawing from Ehrig et al. (Reference Ehrig, Kiermeier, Kreowski and Kühnel1974) and Guitart (Reference Guitart1980), without being afraid of defining objects via universal construction, wherever possible.Footnote
5
In Proposition 3.6, we introduce the concept of ‘
$\omega$
-differential limit’, as an intuition for what the terminal object in
${\textsf{Mly}}_{\mathcal{K}}{(F, B)}$
/
${\textsf{Mre}}_{\mathcal{K}}(F,B)$
should represent; the terminology is somewhat borrowed from ergodic theory (specifically, the notion of
$\omega$
-limit, see Glendinning Reference Glendinning1994, Def. 1.12). Later, in Section 3.1, we thoroughly explore the fibrational properties of the
${\textsf{Mly}}_{\mathcal{K}}$
construction, yielding the 2-fibration of the total Mealy 2-category
$\textbf {Mly}$
, along with two-sided fibrations (Street Reference Street1980)
$\mathcal{M\!l\!y}_{\mathcal{K}}$
/
${\mathcal{M\!r\!e}}_{\mathcal{K}}$
allowing to consider all dynamics and all outputs at the same time, coherently. In particular, we show that
${\mathcal{M\!l\!y}}_{\mathcal{K}}$
/
${\mathcal{M\!r\!e}}_{\mathcal{K}}$
are the total categories of a certain opfibration of endofunctor coalgebras, in the sense of Castelnovo et al. (in preparation), which has the universal property of a coalgebra object (an inserter, Kelly 1989, of the form
$\textsf {Ins}(1,R)$
for a certain endofunctor
$R$
, cf. Lemma 4.2). In Equation (31), we define the monoidal Mealy fibration as a particular instance of this construction. The fundamental result of Katis et al. (Reference Katis, Sabadini and Walters1997), defining the KSW category of a monoidal category
$(\mathcal{K},\otimes )$
, arises (Theorem 3.12) when the profunctor associated with the monoidal Mealy two-sided fibration carries the structure of a promonad, of which
$\text{KSW}(\mathcal{K},\otimes )$
is the Kleisli object. In Proposition 4.9, we address the issue of lifting accessibility from
$\mathcal{K}$
to
${\textsf{Mly}}_{\mathcal{K}}$
/
${\textsf{Mre}}_{\mathcal{K}}$
, consolidating the idea that nice properties of the ambient category lift easily to its category of automata.
The first central result of the paper is that assuming
$\mathcal{K}$
is a differential 2-rig in the sense of Loregian and Trimble (2023),
${\mathcal{M\!l\!y}}_{\mathcal{K}}$
and
${\mathcal{M\!r\!e}}_{\mathcal{K}}$
are differential 2-rigs as well: an upshot of Loregian and Trimble (Reference Boccali, Femić, Laretto, Loregian and Luneia2023) is that differential structures on a category are ‘difficult to create’, and yet categories of
$\mathcal{K}$
-valued automata constitute additional examples of differential 2-rigs, simply but not trivially related to
$\mathcal{K}$
. Moreover, the adjoints to
$\partial : \mathcal{K}\to \mathcal{K}$
lift to adjoints to
$\bar \partial$
. This paves the way for studying the theory of scopic 2-rigs in two directions: which properties of
$(\mathcal{K},\partial )$
are ensured by the fact that it is scopic, and which constructions on
$\mathcal{K}$
output scopic 2-rigs? We present some results in this direction in Propositions 2.23, 2.31.
The second central result of the paper (not unrelated to the first, given the centrality of endofunctor algebras for the construction of
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
) is Theroem 4.14, Remark 4.16, where we prove that given a differential 2-rig
$(\mathcal{K},\otimes ,\partial )$
the category of
$\partial$
-algebras is a differential 2-rig as well. But then, on the category of
$\partial$
-algebras, there is a derivation (acting essentially applying
$\partial$
to the carrier of an algebra), which in turn has a category of algebras, over which there is a derivation. This construction yields an opchain of forgetful functors, cf. Equation (61), the limit of which we dub
$\boldsymbol{J}et[\mathcal{K},\partial ]$
; this category stands to
$\mathcal{K}$
in a relation that, from a distance, seems vaguely analogous to the relation between a manifold
$M$
and its jet bundle (Kolář et al. Reference Kolář, Michor and Slovák1993, Chapter IV).
Then we turn to the task of studying (Mealy) automata in species, focusing on the particular case where
$\mathcal{K}$
is the category of Section 2; given its structure of differential 2-rig, we are particularly interested in studying differential dynamics, that is, in studying categories
${\textsf{Mly}}_{\textsf{Spc}}(F,B)$
where the generator
$F$
of dynamics is induced by the derivative functor. Given the results in Rajan (Reference Rajan1993), recalled in Theorem 2.20, there is plenty of choice for such
$F$
’s: the triple of adjoints
$L\dashv \partial \dashv R$
generates four functors, a comonad-monad adjunction
$L\partial \dashv R\partial$
and a monad-comonad adjunction
$\partial L \dashv \partial R$
(paying tribute to the ‘twelve-fold way’ of Stanley Reference Stanley2000, we dub the study of this quadruple of pairwise adjoint functors the ‘fourfold way’); each of these adjunctions generate monads or comonads
$R\partial L\partial$
,
$L\partial R\partial$
,
$\partial R\partial L$
and
$\partial L\partial R$
(and all these are finitely accessible functors because
$R$
is). Section 6 extends the results of the paper to other ‘species-like’ categories: coloured (=multisorted) species, linearly ordered species and nominal sets.
Remark 1.1. The paper in its present form is an extended version of the note published in the proceedings of cmcs2024 as Loregian (Reference Loregian2024); the following results are not present in that paper and should be considered new contributions.
-
• Section 4.1, where we study the properties of
$\partial$
-algebras, with particular interest in the possibility of making
$\textsf{Alg}(\partial )$
a differential 2-rig on its own (cf. Theroem 4.14) and the forgetful functor a (strict) differential 2-rig morphism. -
• Section 4.1.1, where the previous results are adapted to lifting
$\partial$
to the Eilenberg–Moore categories of
$R\partial ,\partial L$
(but the lifting is not to a monoidal category, cf. Remark 4.21). -
• Section 2.2, where we investigate more closely the formal consequences of assuming that the derivative functor
$\partial$
of a differential 2-rig
$\mathcal{R}$
admits a right adjoint, cf. Definition 2.22, and both a right and a left adjoint (respectively, we call such
$\mathcal{R}$
’s right-scopic, left-scopic and scopic, cf. Notation 2.21); we define the ‘Arbogast algebra’ of a differential 2-rig in Definition 2.29. -
• Section 6, where we sketch how to extend the major results proved so far for usual species to various ‘species-like’ categories such as coloured (=multisorted) species, linearly ordered species, nominal sets, etc.
2. Combinatorial Species
Although we define the category of species from first principles, we refrain from giving a really self-contained presentation of the theory (and more importantly, we cut most ties with combinatorics, relying solely on category theory). For this reason, we advise the reader to consult external resources; although Joyal’s original work (Joyal Reference Joyal1981, Reference Joyal1985) remains unparalleled in terms of insight, there are excellent introductory texts and surveys on the category of species in Bergeron et al. (Reference Bergeron, Labelle and Leroux1998), Gambino and Joyal (Reference Gambino and Joyal2017), Yorgey (Reference Yorgey2014) and Yeh (Reference Yeh1985).
The typical object of the category of species consists of a countable family
$\{X_n\mid n\ge 0\}$
of sets, each of which is a (left)
$S_n$
-set, where
$S_n$
denotes the group of permutations of the set with
$n$
elements. Choosing degree-wise equivariant maps as morphisms, this defines the category
${\textsf{Spc}}$
of combinatorial species.
After defining
${\textsf{Spc}}$
in Definition 2.1, we recall how its various monoidal structures interact with each other, with particular attention to the Day convolution monoidal structure, cf. Remark 2.9.
$\scriptstyle \mathrm{MS}_{\scriptstyle 2}$
, and to the differential 2-rig structure, in the sense of Loregian and Trimble (2023) that
${\textsf{Spc}}$
carries,Footnote
6
stressing in particular the fact that the derivative functor
$\partial : {{\textsf{Spc}}}\to {{\textsf{Spc}}}$
has both a left and a right adjoint; a number of formal consequences follow from this fact, which means that there is a ‘synthetic theory’ of categories that behave like species, categories that in Notation 2.21 we call scopic
Footnote
7
and that we study in Propositions 2.31, 2.23, Remark 2.30.
Definition 2.1 (Species and
$\mathcal{V}$
-species). Let
$S$
be a set and
$\mathcal{V}$
a Bénabou cosmos (=a symmetric monoidal closed category admitting all limits and colimits, cf. Street (Reference Street1974, p. 1). Let
${\textsf{P}}[S]$
denote the free symmetric monoidal category on
$S$
, regarded as a discrete category.
The category
$(S,\mathcal{V})\text{-}{{\textsf{Spc}}}$
of (
$S$
-coloured)
$\mathcal{V}$
-species is defined as the category of functors
$\mathfrak{F} : {\textsf{P}}[S] \to \mathcal{V}$
and natural transformations.
All along the paper we will particularly be interested in the category
$(1,\textsf{Set})\text{-}{{\textsf{Spc}}}$
(that we dub simply
${\textsf{Spc}}$
), where
$1$
is a singleton set.Footnote
8
See, however, Section 6 for a brief outline of how the results in this paper extend to coloured species (Section 6.1) and other ‘species-like’ categories (Sections 6.2, 6.3, 6.4).
The theory of combinatorial species can only be understood when one appreciates that
$\textsf{P}$
and
${\textsf{Spc}}$
enjoy multiple different universal properties at the same time:
Remark 2.2 (A number of universal properties for
$\textsf{P}$
).
-
$\scriptstyle \mathrm{UPS}_{\scriptstyle 1}$
)The category
${\textsf{P}}={\textsf{P}}[1]$
is the groupoid of natural numbers, having as objects the non-negative integers, and where the set of morphisms
$n\to m$
consists of the set of bijections between
$[n]$
and
$[m]$
, if
$[n] = \{1,\dots ,n\}$
is an
$n$
-set (so in particular
$[{0}]$
is the empty set, and each
${\textsf{P}}(n,m)$
is empty if
$n\ne m$
). By construction, composition is only defined between endomorphisms, and it coincides with the composition of permutations, as soon as
${\textsf{P}}(n,n)$
is recognised as the symmetric group
$S_n$
. -
$\scriptstyle \mathrm{UPS}_{\scriptstyle 2}$
) Again by construction, the category
$\textsf{P}$
is the skeleton of the groupoid of finite sets
$\textsf{Bij}$
, the category having objects the finite sets
$A,B,\dots$
and morphisms
$A\to B$
the set of all bijections between
$A$
and
$B$
(so, in particular, if
$A$
and
$B$
do not have the same cardinality,
$\textsf{Bij}(A,B)$
is empty). -
$\scriptstyle \mathrm{UPS}_{\scriptstyle 3}$
) Note that
$\textsf{Bij}$
is in turn the core (=the largest subcategory, i.e., a groupoid) of the category
$\textsf{Fin}$
of all finite sets and functions. -
$\scriptstyle \mathrm{UPS}_{\scriptstyle 4}$
) The (commutative, i.e., strictly symmetric) monoidal structure on
$\textsf{P}$
is given by sum of natural numbers, that is,
$[n]\oplus [m]=[n+m]$
, the unit is
$[{0}]$
and permutations act by juxtaposition. (In the non-skeletal model
$\textsf{Bij}$
of the previous point,
$A\oplus B$
is the disjoint union of
$A$
and
$B$
, but the monoidal structure is not coproducts.)
In the following, we denote a species in Gothic fraktur as
$\mathfrak{F},\mathfrak{G},\mathfrak{H},\dots : {\textsf{P}} \to \textsf{Set}$
and call an element
$s\in \mathfrak{F}[n]$
a species of
$\mathfrak{F}$
-structure.
Corollary 2.3.
Denote by ‘
$BG$
’ the group
$G$
regarded as a single-object category. The universal property of
$\textsf{P}$
entails that there is an isomorphism of categories
${\textsf{P}}\cong \sum _n BS_n$
where the right-hand side is the coproduct in the category of groupoids; as a consequence
${{\textsf{Spc}}}\cong \prod _n\textsf{Set}^{S_n}$
where each
$\textsf{Set}^{S_n}$
is the category of left
$S_n$
-set:
\begin{align} \textsf{Cat}({\textsf{P}},\textsf{Set})\cong \textsf{Cat}\left(\sum _{n\ge 0} BS_n,\textsf{Set}\right)\cong \prod _{n\ge 0}\textsf{Cat}\left(BS_n,\textsf{Set}\right). \end{align}
As a consequence, species can equivalently be presented as a symmetric sequence
$\{X_n\mid n\ge 0\}$
of sets, each of which is equipped with a (left)
$S_n$
-action
$S_n\times X_n \to X_n$
.
Definition 2.4 (Change of base for species). Let
$\mathcal{V}$
be a monoidal category monadic over
$\textsf{Set}$
via a functor
$U : \mathcal{V}\to \textsf{Set}$
which is lax monoidal (e.g., the forgetful functor
$U : \textsf{Mod}_R\to \textsf{Set}$
); then there is a base change adjunction
$F_* : {{\textsf{Spc}}} \rightleftarrows \mathcal{V}\text{-}{{\textsf{Spc}}} : U_*$
induced through the free-forgetful adjunction
$F\dashv U$
. For example, if
$F : \textsf{Set} \to \textsf{Mod}_k$
is the free
$k$
-vector space functor, we denote
$k\langle \mathfrak{H}\rangle$
the vector species
$F_*\mathfrak{H}$
induced by a
$\textsf{Set}$
-species
$\mathfrak{H}$
: we consider the vector space having the species of
$\mathfrak{H}$
-structure as basis vectors.
Example 2.5 (Some important species). In various parts of the present work, we will consider the following species. Many more examples can be found in Bergeron et al. (Reference Bergeron, Labelle and Leroux1998, Ch. 1).
-
$\scriptstyle \mathrm{ES}_{\scriptstyle 1}$
) Given an object
$V$
of
$\mathcal{V}$
, there is a unique symmetric monoidal
$\mathcal{V}$
-species
$c_V$
sending
$[n]$
to
$V^{\otimes n}$
. If
$V=I$
is the monoidal unit,
$c_I$
is called the ‘exponential species’
${\mathfrak{E}}$
. The exponential
$\textsf{Set}$
-species is just the constant functor at the terminal object.Footnote
9
-
$\scriptstyle \mathrm{ES}_{\scriptstyle 2}$
) The species
$\wp$
of subsets sends an
$n$
-set
$A$
to the
$2^n$
-set of all its subsets; a permutation acts in an obvious way, since a bijection
$\sigma : A\to A$
induces a bijection
$\sigma ^* : 2^A\to 2^A$
by functoriality. -
$\scriptstyle \mathrm{ES}_{\scriptstyle 3}$
) The species
${\mathfrak{L}}$
of total orders sends
$[n]$
to the set of total orders on
$[n]$
, identified with the set
$|S_n|$
of bijections of
$[n]$
, over which
$S_n$
acts by left multiplication. -
$\scriptstyle \mathrm{ES}_{\scriptstyle 4}$
) The species
$\mathfrak{S}$
of permutations sends each finite set
$[n]$
into the (carrier of the) symmetric group on
$n$
letters,
$S_n$
. The symmetric group acts on itself by conjugation: if
$\tau \in S_n$
,
$\sigma : S_n \to S_n$
is the map sending
$\tau \mapsto \sigma \tau \sigma ^{-1}$
. -
$\scriptstyle \mathrm{ES}_{\scriptstyle 5}$
) The species
$\mathfrak{C}\mathfrak{y}\mathfrak{c}$
of oriented cycles sends a finite set
$[n]$
to the set of inequivalent (i.e., not related by a cyclic permutation) ways to sit
$n$
people at a round table, or more formally, to the set of cyclic orderings of
$\{x_1,\dots ,x_n\}$
. As
${\mathfrak{C}\mathfrak{y}\mathfrak{c}}[n]$
identifies with the set of cosets
$S_n/C_n$
(
$C_n$
the cyclic group), one derived that
$|{\mathfrak{C}\mathfrak{y}\mathfrak{c}}[n]| = (n-1)!$
.
The category of species exhibits a fairly rich structure that we now schematically review.Footnote 10
Proposition 2.6.
${\textsf{Spc}}$
is the free cocompletion
$\widehat {{\textsf{P}}}$
under small colimits (Ulmer Reference Ulmer1968
, Remark 2.29) of
${\textsf{P}}^{\mathrm{op}}$
(which is isomorphic to
$\textsf{P}$
, being a groupoid); as such, for every cocomplete category
$\mathcal{D}$
, there is an equivalence of categories
given by ‘Yoneda extension’ (Loregian Reference Loregian2021 , Ch. 2).
Proposition 2.7.
Following Adámek and Velebil (Reference Adámek and Velebil2008), Hasegawa (Reference Hasegawa2002) and Joyal (Reference Joyal1985),
${\textsf{Spc}}$
is the (non-full) subcategory of analytic endofunctors of
$\textsf{Set}$
, that is, those endofunctors
$F : \textsf{Set}\to \textsf{Set}$
such that, if
$J : \textsf{Bij}\to \textsf{Set}$
is the tautological functor
$[n]\mapsto [n]$
, the left Kan extension of
$FJ$
along
$J$
coincides with
$F$
. The usual coend formula (Mac Lane Reference Mac Lane1998, X.5,6) to express
$\textsf{Lan}_JFJ$
entails that
$F$
is analytic if and only if it acts on a set
$X$
as
that is, if and only if
$F$
admits a ‘Taylor expansion’
$\sum _{n=0}^\infty F[n]\frac {X^n}{n!}$
; hence the name. The series
$g_F(X)=\sum _{n=0}^\infty |F[n]|\frac {X^n}{n!}\in \mathbb{Q}[\![ X]\!]$
, where
$|S|$
denotes the cardinality of a set
$S$
, is called the (exponential) generating series (Bergeron et al. Reference Bergeron, Labelle and Leroux1998
, Section 1.2) of the species
$F$
.
In the following statement, a (cocomplete) 2-rig consists of a monoidally cocomplete category
$(\mathcal{R},\otimes ,I)$
: each tensor functor
$A\,\otimes \,\_\,, \,\_\,\otimes B$
commutes with all small colimits. More generally (we will introduce the notion in Remark 2.17), a
$\textbf {D}$
-cocomplete 2-rig, or
$\textbf {D}$
-2-rig for short, is such that each
$A\,\otimes \,\_\,, \,\_\,\otimes B$
commutes with colimits of a certain shape
$\textbf {D}$
.
Proposition 2.8 (Loregian and Trimble 2023, Section 5).
${\textsf{Spc}}$
is the free cocomplete 2-rig (as in Loregian and Trimble Reference Boccali, Femić, Laretto, Loregian and Luneia2023
, Section 5) on a singleton; as such, given a cocomplete 2-rig
$\mathcal{R}$
there is an equivalence of categories
In Loregian and Trimble (Reference Loregian and Trimble2023, Section 5), we observe how to construct the free cocomplete (symmetric) 2-rig on a given category
$\mathcal{A}$
it suffices to take the free (symmetric) monoidal category on
$\mathcal{A}$
(call it
${\textsf{P}}[\mathcal{A}]$
, concordant with Definition
2.1
), and subsequently, its free cocompletion
$\widehat {{\textsf{P}}[\mathcal{A}]}$
. In [ibi], the notion of morphism of 2-rigs is given indirectly as pseudomorphism for the particular ‘doctrine of
$\textbf {D}$
-rigs’ in study.
This last characterisation requires a more fine-grained analysis of the various monoidal structures
${\textsf{Spc}}$
can be equipped with.
Remark 2.9. The category
${\textsf{Spc}}$
of species carries
-
$\scriptstyle \mathrm{MS}_{\scriptstyle 1}$
) the Cartesian (or Hadamard Aguiar and Mahajan Reference Aguiar and Mahajan2010, 8.1.2) monoidal structure, the product of species being taken pointwise; the monoidal unit for the Hadamard product is the species that is constant at the singleton. Dually, the coCartesian monoidal structure, the coproduct of species being taken pointwise (together with the structure above,
${\textsf{Spc}}$
is
$\times$
-distributive and forms a ‘biCartesian closed’ category in the sense of Szabo 1978); however, its biCartesian structure is not very interesting, compared to -
$\scriptstyle \mathrm{MS}_{\scriptstyle 2}$
) the Day convolution (or Cauchy Aguiar and Mahajan Reference Aguiar and Mahajan2010, 8.1.2) monoidal structure, given by the universal property of
${\textsf{Spc}}$
as the free monoidally cocomplete category on
$\textsf{P}$
(Im and Kelly Reference Im and Kelly1986) as the coend(8)(Note in passing that the
\begin{align} (F \mathbin {{\otimes _{\mathrm{Day}}}} G)[p] := \int ^{mn} F[m]\times G[n] \times {\textsf{P}}(m+n,p) \end{align}
$\mathbin {{\otimes _{\mathrm{Day}}}}$
-monoidal structure is symmetric and closed with an internal hom
$\{\_,\_\}_{\mathrm{Day}}$
.) In particular,
$\textsf{P}$
is monoidally equivalent to the subcategory of
${\textsf{Spc}}$
spanned by representables, and thus the
$\mathbin {{\otimes _{\mathrm{Day}}}}$
-monoidal unit is
$y[{0}]$
.
-
$\scriptstyle \mathrm{MS}_{\scriptstyle 3}$
) The substitution (or plethystic, cf. Méndez and Nava Reference Méndez and Nava1993; Nava and Rota Reference Nava and Rota1985) monoidal structure, defined for
$F,G : {\textsf{P}}\to \textsf{Set}$
as(9)where
\begin{align} (F\circ G)[p] = \int ^k Fk\times G^{\mathbin {{\otimes _{\mathrm{Day}}}} k}[p], \end{align}
$G^{\mathbin {{\otimes _{\mathrm{Day}}}} k}:=G\mathbin {{\otimes _{\mathrm{Day}}}} G\mathbin {{\otimes _{\mathrm{Day}}}}\dots \mathbin {{\otimes _{\mathrm{Day}}}} G$
is the Day convolution iterated
$k$
times. The
$\circ$
-monoidal unit is the representable
$y[{1}]$
. Note in passing that the
$\circ$
-monoidal structure is not symmetric, and only right closed, that is, only
$\,\_\,\circ G$
has a right adjoint.
All these monoidal structures are tightly related:
Remark 2.10. The Hadamard and Day convolution product give
${\textsf{Spc}}$
the structure of a duoidal category in the sense of Garner and Franco (Reference Garner and Franco2016):
$({{\textsf{Spc}}},\times ,\mathbin {{\otimes _{\mathrm{Day}}}})$
and
$({{\textsf{Spc}}},\mathbin {{\otimes _{\mathrm{Day}}}},\times )$
(Aguiar and Mahajan Reference Aguiar and Mahajan2010, 8.13.5) are both duoidal; positive species, that is, those for which
$F[\varnothing ]=\varnothing$
form a duoidal category under substitution and Hadamard product, [ibi, B.6.1]. All these results extend to
$\mathcal{V}$
-species using its monoidally cocomplete structure. The plethystic structure makes
${\textsf{Spc}}$
monoidally equivalent to the category of analytic functors under composition (Adámek and Velebil 2008; Joyal 1985).
Remark 2.11. As an additional demonstration of how tightly the Hadamard, Cauchy and plethystic structures are related, we record how these identifications between combinatorial species hold (Bergeron et al. Reference Bergeron, Labelle and Leroux1998): simple species tensored together can build quite sophisticated objects as
-
$\scriptstyle \mathrm{CI}_{\scriptstyle 1}$
) the species of subsets
$\wp : A\mapsto 2^A$
is isomorphic to
${{\mathfrak{E}}}\mathbin {{\otimes _{\mathrm{Day}}}} {{\mathfrak{E}}}$
; -
$\scriptstyle \mathrm{CI}_{\scriptstyle 2}$
) the species
$\mathfrak{S}$
$\scriptstyle \mathrm{ES}_{\scriptstyle 4}$
is isomorphic to the substitution
${{\mathfrak{E}}}\circ {\mathfrak{C}\mathfrak{y}\mathfrak{c}}$
; -
$\scriptstyle \mathrm{CI}_{\scriptstyle 3}$
) more generally, for every species
$\mathfrak{F}$
, the species of structure obtained by the substitution
${{\mathfrak{E}}}\circ \mathfrak{F}$
, applied to a finite set
$A$
, consist of an
$r$
-partition
$(U_1,\dots ,U_r)$
of
$A$
and a species
$s_i$
of
$\mathfrak{F}$
-structure on each
$U_i$
.
We record in the form of a definition/proposition some useful adjunctions involving the category of species.
Definition 2.12 (Levels of the topos of species). For every
$n\ge 0$
, we denote
$\iota _n : {\textsf{P}}_{\le n} \hookrightarrow {\textsf{P}}$
the inclusion of the full subcategory of
$\textsf{P}$
on the objects
$\{[{0}],[{1}],\dots , [n]\}$
.
Precomposition with
$\iota _n$
determines a truncation functor
and left and right Kan extensions along
$\iota _n$
put
$\tau _n$
in the middle of a triple of adjoint functors
$l_n \dashv \tau _n \dashv r_n$
.
Given
$\mathfrak{H} \in [{\textsf{P}}_{\le n}, \textsf{Set}]$
, the species
$l_n \mathfrak{H}$
(resp.,
$r_n \mathfrak{H}$
) can be characterised as the left (resp., right) Kan extension of
$\mathfrak{H}$
along
$\iota _n$
; one easily sees that these functors can be described explicitly as:
\begin{align} l_n\mathfrak{H} : m \mapsto \begin{cases} \mathfrak{H} [m] & m \le n \\ \varnothing & m \gt n \end{cases} \qquad \qquad r_n\mathfrak{F} : m \mapsto \begin{cases} \mathfrak{F}[m] & m \le n \\ * & m \gt n \end{cases} \end{align}
We will say that a species
$F$
has a contact of order
$n$
with a species
$G$
if
$\tau _n F = \tau _n G$
. We denote this relation as
$F \mathrel {\sim _n} G$
.
It is clear that
$F$
has contact of order
$n$
with
$G$
if and only if the associated series in the sense of Proposition
2.7
define the same element in the quotient
$\mathbb{Q}[\![ X]\!]/(X^{n+1})$
.
Definition 2.13 (Convergence). A sequence of species is an ordered family of species
$(F_0,F_1,\dots )$
. The sequence
$(F_0,F_1,\dots )$
is said to converge to the species
$F_\infty$
if the following ‘Cauchy’ condition is satisfied:
For every
$N\ge 0$
there exists an index
$\bar n$
such that for every
$n\ge \bar n$
,
$F_n \mathrel {\sim _N} F_\infty$
.
In simple terms,
$(F_0,F_1,\dots )$
converges to
$F_\infty$
if for every
$N\ge 0$
, all but a finite initial segment of terms of the sequence have contact of order
$N$
with
$F_\infty$
. If this is the case, we write
$F_n \overset {n\to \infty }\rightharpoondown F_\infty$
.
Definition 2.14 (Species as structured graded sets). Every symmetric group,
$S_n$
admits a terminal morphism into the trivial group; precomposition along this terminal map defines a functor
$j_n : \textsf{Set}^{S_n} \to \textsf{Set}$
yielding the carrier of a (left)
$S_n$
-set
$X$
; left and right Kan extension along
$j_n$
then define a triple of adjoints

and the 2-functoriality of the product
$\prod _{n\ge 0}$
, together with the chain of isomorphisms in Equation (4), yield that there is a triple of adjoints

(Note, in passing, that
$j$
is monadic: this yields a characterisation of
${\textsf{Spc}}$
as the category of
$jU$
-algebras, such an algebra being specified exactly equipping an object
$(X_n)\in \textsf{Set}^{\mathbb{N}}$
with the structure of a symmetric sequence.)
2.1 Species as a differential 2-rig
An important feature of
${\textsf{Spc}}$
that we will analyse in this paper is that it is a differential 2-rig: The notion was introduced by the author in Loregian and Trimble (Reference Boccali, Femić, Laretto, Loregian and Luneia2023) as a unifying language capturing instances of monoidal categories
$(\mathcal{R},\otimes ,I)$
where each endofunctor
$A\,\otimes \,\_\,,\,\_\,\otimes B$
of tensoring by a fixed object is cocontinuous and there is an endofunctor
$\partial : \mathcal{R} \to \mathcal{R}$
that is ‘linear and Leibniz’ in the sense specified by Loregian and Trimble (2023, Section 4) and Definition 2.16 right below.
Observe that, as it is true in all presheaf categories equipped with Day convolution, the tensor product
$\mathbin {{\otimes _{\mathrm{Day}}}}$
of Remark 2.9.
$\scriptstyle \mathrm{MS}_{\scriptstyle 2}$
preserves colimits separately in each variable (i.e., each
$A\mathbin {{\otimes _{\mathrm{Day}}}}\,\_\,$
and
$\,\_\,\mathbin {{\otimes _{\mathrm{Day}}}} B$
is cocontinuous); moreover,
Remark 2.15 (The differential structure of
${\textsf{Spc}}$
). The category
${\textsf{Spc}}$
of species is equipped with a ‘derivative’ endofunctor
$\partial : {{\textsf{Spc}}}\to {{\textsf{Spc}}}$
(cf. Bergeron et al. Reference Bergeron, Labelle and Leroux1998, Section 1.4 and passim) defined as
$\partial F : [n]\mapsto F[[n]\oplus [{1}]]$
, or in the non-skeletal model
$\textsf{Bij}$
sending a finite set
$A$
to the set
$\mathfrak{F}[A^+]$
, where
$A^+ := A\sqcup 1$
is the set
$A$
to which a distinguished point has been adjoined.
Such functor satisfies the following properties:
-
$\scriptstyle \mathrm{D}_{\scriptstyle 1}$
)
$\partial$
is ‘linear’, that is, it preserves all colimits (in particular, coproducts, hence the linearity of the derivative operator:
$\partial (\mathfrak{F}+\mathfrak{G})\cong \partial \mathfrak{F} + \partial \mathfrak{G}$
); -
$\scriptstyle \mathrm{D}_{\scriptstyle 2}$
)
$\partial$
is ‘Leibniz’, that is, it is equipped with tensorial strengths
$\tau ' : \partial A\otimes B \to \partial (A\otimes B)$
and
$\tau '' : A \otimes \partial B \to \partial (A\otimes B)$
such that the unique map induced by
$\tau ',\tau ''$
from the coproduct of their domains is invertible, to the effect that
$\partial$
‘satisfies the Leibniz rule’(14)
\begin{align} \partial A\otimes B + A \otimes \partial B\cong \partial (A\otimes B). \end{align}
We will from now on refer to the canonical map
induced by the two tensorial strengths as the ‘leibnizator’ of the differential structure.
Definition 2.16.
Every monoidal category
$(\mathcal{K},\otimes )$
equipped with an endofunctor
$\partial$
that satisfies the same two properties 1,
$\scriptstyle \mathrm{D}_{\scriptstyle 2}$
is called a differential 2-rig (for the doctrine of all colimits) in Loregian and Trimble (2023).
Remark 2.17. With reference to the use of the word ‘doctrine’ in the previous discussion, see Loregian and Trimble (Reference Boccali, Femić, Laretto, Loregian and Luneia2023, Section 2), where we adapt a concept of Adámek et al. (Reference Adámek, Borceux, Lack and Rosický2002), in which a doctrine
$\textbf {D}$
is just a subcategory of
$\textsf{Cat}$
(or by extension, the KZ-monad
$T_{\textbf {D}}$
(Zöberlein Reference Zöberlein1976) of free cocompletion under colimits of all shapes
$D\in \textbf {D}$
); in particular in Loregian and Trimble (Reference Boccali, Femić, Laretto, Loregian and Luneia2023, 2.2–2.5), we employ the following terminology:
-
• An additive doctrine is a 2-category
$\textbf {D}\subseteq \mathbf{Cat}$
(the 2-category of categories, strict functors, natural transformations) whose objects are categories that admit all colimits of diagrams belonging to a prescribed class, including at least finite discrete diagrams – whose colimits are finite coproducts, denoted with the infix +, and
$\varnothing$
for the empty coproduct. -
• A multiplicative doctrine is a 2-category, that is, monadic (in the 2-categorical sense, Blackwell Reference Blackwell1976, p. 36) over the 2-category
$\mathbf{MCat}_s$
of monoidal categories, strong monoidal functors and monoidal natural transformations.
Intuitively, a multiplicative doctrine consists of a 2-category of monoidal categories, possibly equipped with additional structure that arises as the category of (pseudo)algebras for a 2-monad
$M$
on
$\mathbf{Cat}$
. So, a multiplicative doctrine is given by a 2-monad
$M$
on
$\textsf{Cat}$
, modelled over the 2-monad whose algebras are monoidal categories, of which we consider the 2-category of (pseudo)algebras.
If by ‘category admitting
$\textbf {D}$
-colimits’ we understand a
$T_{\textbf {D}}$
-pseudoalgebra, a
$\textbf {D}$
-2-rig consists of a monoidal category
$(\mathcal{K},\otimes )$
admitting
$\textbf {D}$
-colimits, where all
$A\,\otimes \,\_\,$
and
$\,\_\,\otimes B$
are (strong)
$T_{\textbf {D}}$
-pseudoalgebra morphisms. This defines a 2-category
$\textsf{2Rig}_{\textbf {D}}$
of
$\textbf {D}$
-2-rigs, their morphisms
$F : \mathcal{R}\to \mathcal{S}$
and 2-cells (monoidal natural transformations); however, we will rarely invoke in the discussion, content to study 1-dimensional properties. Similarly, there is a 2-category
$\partial \textsf{2Rig}_{\textbf {D}}$
of differential 2-rigs, morphisms of the underlying 2-rigs equipped with an isomorphism
$F\partial \cong \partial F$
and monoidal natural transformations.
Given an additive doctrine
$T_{\textbf {D}}$
and a multiplicative doctrine
$M$
as above, then the doctrine of
$\textbf {D}$
-2-rigs is the (category of pseudoalgebras for the) 2-monad
$T = T_{\textbf {D}}\circ M$
that one obtains from a distributive law
$\lambda : M\circ T_{\textbf {D}}\Rightarrow T_{\textbf {D}}\circ M$
.
We will particularly be interested in two special cases of this construction, at minimum and maximum generality: on the one hand, the minimal assumption for a 2-rig is to be a monoidal category
$\mathcal{R}$
, with finite coproducts preserved by each
$A\otimes -$
(these are the 2-rigs for the doctrine of coproducts); on the other hand, the strongest requirement is that
$\mathcal{R}$
is cocomplete and each
$A\otimes -$
is cocontinuous (these are the 2-rigs for the doctrine of all colimits).
Remark 2.18. In the case of species, the proof that
$\partial (F\mathbin {{\otimes _{\mathrm{Day}}}} G)\cong \partial F\mathbin {{\otimes _{\mathrm{Day}}}} G + F \mathbin {{\otimes _{\mathrm{Day}}}} \partial G$
appears in Joyal’s original papers introducing combinatorial species. Moreover, it was known to Joyal that
$\partial$
satisfies the ‘chain rule’, which means that there is a canonical isomorphism
cf. Loregian and Trimble (Reference Boccali, Femić, Laretto, Loregian and Luneia2023, Theorem 5.18) for a conceptual proof of this latter result (extendable to other species-like categories). This doesn’t happen by accident: to a very large extent, the combinatorial differential calculus of species agrees with the differential calculus that can be done in the ring
$\mathbb{Q}[\![ X]\!]$
of formal power series (with rational coefficients), under the formal derivative operation
$\frac d{dX}(a_0 + a_1X + \frac {a_2}2 X^2+\dots ) := a_1 + a_2 X + \frac {a_3}2 X^2+\dots$
. In particular, observe that
$g_{\partial F}(X)$
is the formal derivative
$\frac d{dX}g_F(X)$
of the series in Proposition 2.7.
Remark 2.19. Part of the fairly rich structure enjoyed by the differential 2-rig
$({{\textsf{Spc}}},\otimes ,\partial )$
can be explained with the fact that
$\partial$
preserves all limits as well:
$\partial$
is precomposition with the functor
$\,\_\,\oplus [{1}]$
defined starting from the monoidal structure in Remark 2.2.
$\scriptstyle \mathrm{UPS}_{\scriptstyle 4}$
; but then, call
$\Delta =\,\_\,\oplus [{1}]$
, the left (resp., right) adjoint to
$\partial$
is the left (resp., right) Kan extension along
$\Delta$
, which exists since
${\textsf{Spc}}$
is a presheaf category.Footnote
11
We just proved the following result:
Theorem 2.20.
The derivative functor
$\partial : {{\textsf{Spc}}} \to {{\textsf{Spc}}}$
fits in a triple of adjoints
$L\dashv \partial \dashv R$
, and
$L,R$
are obtained as Kan extensions (
$L$
on the left,
$R$
on the right) along the functor
$\Delta =\,\_\,\oplus [{1}]$
.
This fact was first observed in Rajan (Reference Rajan1993), where the explicit descriptions
for how
$L,R$
act are given in terms of
$\mathfrak{F}$
as a functor
$\textsf{Bij}\to \textsf{Set}$
, and some useful combinatorial identities expressing
$L\partial , R\partial$
,
$\partial L, \partial R$
in simpler terms are also analysed (we recall them in Remark 5.2).
Notation 2.21 (Scopic 2-rig). We call scopic 2-rig a differential 2-rig
$(\mathcal{R},\otimes ,D)$
whose derivative functor
$D$
has both a left and a right adjoint, denoted respectively
$L$
and
$R$
.
2.2 Left- and right-scopic 2-rigs
Scopic differential 2-rigs can be understood as particularly well-behaved differential 2-rigs, since a fairly rich set of consequences can be derived from the existence of the string of adjoints
$L\dashv D\dashv R$
; a number of results can already be deduced for purely formal reasons from the fact that the derivative functor admits an adjoint on only one side. At a purely informal level, the situation should be thought in analogy with the wealth of global properties that follow from assuming that the terminal geometric morphism
$\Gamma : \mathcal{E}\to \textsf{Set} : s$
of a sheaf topos admits more and more adjoints, and more and more well behaved, in Lawvere’s ‘axiomatic cohesion’ framework, (Lawvere Reference Lawvere1994, Reference Lawvere2007; Menni Reference Menni2024; Schreiber Reference Schreiber2013).
Derivation functors for the doctrine of cocomplete 2-rigs are required to preserve colimits, so that an easy and already interesting intermediate notion of ‘smoothness’ for a 2-rig is found when
$\partial : \mathcal{R}\to \mathcal{R}$
satisfies the solution set condition; a sufficient condition so that this happens, often realised in practice (and realised in the category of species), is that
$\mathcal{R}$
is a presentable category.
Definition 2.22 (Left- and right-scopic differential 2-rig). We call a differential 2-rig
$(\mathcal{R},\otimes ,\partial )$
left (resp. right) scopic if the derivative functor
$\partial : \mathcal{R}\to \mathcal{R}$
has a left (resp., right) adjoint
$L$
(resp.,
$R$
).
In Propositions 2.23 and 2.31, we understand that a closed (differential) 2-rig is a (differential) 2-rig whose underlying monoidal category
$(\mathcal{R},\otimes )$
is closed; in this case, the internal hom is denoted as
$[-,-]$
. Then,
Proposition 2.23.
Let
$(\mathcal{R},\otimes ,\partial )$
be a closed, right-scopic differential 2-rig; then, the right adjoint
$R$
to the derivative functor satisfies a dual condition to the Leibniz property in the form of a canonical isomorphism

natural in both objects
$A,B\in \mathcal{R}$
.
Proof.
The proof consists of an application of Yoneda, in the same fashion of Gray (Reference Gray1980, 2.2.2): for a generic object
$X$
, we compute
On the other hand,
\begin{align*} \mathcal{R}(\partial (X\otimes A), B) & \cong \mathcal{R}(\partial X\otimes A + X \otimes \partial A, B) \\ & \cong \mathcal{R}(\partial X\otimes A, B) \times \mathcal{R}(X\otimes \partial A, B) \\ & \cong \mathcal{R}(X, R[A,B])\times \mathcal{R}(X, [\partial A,B]) \\ & \cong \mathcal{R}(X, R[A,B]\times [\partial A,B]) \end{align*}
and now given that the object
$X$
is generic, by Yoneda lemma, we conclude that there must be an isomorphism like Equation (18).
Left-scopic 2-rigs are an interesting object to study in relation to the possibility of defining a well-behaved category of differential operators, in analogy with a classical result of differential algebra: given a differential ring
$(R,d)$
, the set of derivations
$d : R\to R$
has the structure of an
$R$
-module as
We can easily find an analogue of such result and prove that the derivations of a differential 2-rig
$(\mathcal{R},\partial )$
form an
$\mathcal{R}$
-module.
Definition 2.24.
The 2-rig
$\textsf{Cat}_+(\mathcal{R},\mathcal{R})$
is defined as the category of endofunctors
$L$
of
$\mathcal{R}$
that commute with finite sums. This is a (strict) 2-rig, since the preservation of sums makes composition of elements bilinear (and not only left linear).
Definition 2.25.
The sub-2-rig
$\textsf{Cat}_{+,\tau }(\mathcal{R},\mathcal{R})$
is defined as the full subcategory of
$\textsf{Cat}_+(\mathcal{R},\mathcal{R})$
spanned by the objects
$L : \mathcal{R}\to \mathcal{R}$
that (commute with sums and) are equipped with an invertible natural transformation

natural in
$A,B\in \mathcal{R}_0$
.
Remark 2.26. Observe that
$\textsf{Cat}_{+,\tau }(\mathcal{R},\mathcal{R})$
is a sub-2-rig of
$\textsf{Cat}_+(\mathcal{R},\mathcal{R})$
, equivalent to
$\mathcal{R}$
as Equation (21) entails that
$LX\cong L(I\otimes X)\cong LI\otimes X$
, so that
$L$
is isomorphic to the tensor-by-
$LI$
functor
$LI\otimes \,\_\,$
. We call a left-scopic differential 2-rig
$(\mathcal{R},\partial )$
where
$L=LI\otimes \,\_\,$
(and thus
$\partial = [LI,\,\_\,]$
) ‘equipped with a tensor-hom derivative’.
Definition 2.27.
Let
$\mathcal{R}$
be a differential 2-rig; denote
$\textsf{Der}[\mathcal{R}]$
the category of differential operators on
$\mathcal{R}$
, that is, the category of endofunctors
$D : \mathcal{R}\to \mathcal{R}$
that are linear and Leibniz in the sense of Definition
2.16
; a morphism of derivations is then just a natural transformation of strong endofunctors.
Note that
$\textsf{Der}[\mathcal{R}]$
is a full subcategory of the 2-rig
$\textsf{Cat}_+(\mathcal{R},\mathcal{R})$
, and that
Proposition 2.28.
$\textsf{Der}[\mathcal{R}]$
is a left
$\mathcal{R}$
-module in the sense of Janelidze and Kelly (Reference Janelidze and Kelly2001); indeed, let
$\partial \in \textsf{Der}[\mathcal{R}]$
and
$L\in \mathcal{R}$
, one can easily see that
\begin{align*} L\partial (A\otimes B) & \cong L(\partial A\otimes B + A\otimes \partial B) \\ & \cong L(\partial A\otimes B) + L(A\otimes \partial B) \\ & \cong L\partial A\otimes B + A \otimes L\partial B \end{align*}
Thus, one can define differential operators out of the derivative symbol
$\partial$
and tensoring by objects of
$\textsf{Cat}_{+,\tau }(\mathcal{R},\mathcal{R})\cong \mathcal{R}$
by closing under arbitrary sums.
Definition 2.29 (Arbogast algebra of
$\mathcal{R}$
). The Arbogast algebra
Footnote
12
of
$\mathcal{R}$
, denoted
$\boldsymbol{A}\boldsymbol{r}\boldsymbol{b}[\mathcal{R},\partial ]$
, consists of the 2-rig generated by the element
$\partial$
in the 2-rig
$\textsf{Cat}_+(\mathcal{R},\mathcal{R})$
of Definition
2.24
.
Remark 2.30. It is in general quite difficult to determine the structure of
$\textsf{Der}[\mathcal{R}]$
. In the category of species, one finds as a corollary of Proposition 2.28 that the composite functor
$L\partial$
is itself a derivation (for the doctrine of cocomplete 2-rigs): for species
$\mathfrak{X},\mathfrak{Y}$
\begin{align*} L\partial (\mathfrak{X}\mathbin {{\otimes _{\mathrm{Day}}}}\mathfrak{Y}) & = y[{1}]\mathbin {{\otimes _{\mathrm{Day}}}}\partial (\mathfrak{X}\mathbin {{\otimes _{\mathrm{Day}}}}\mathfrak{Y}) \\ & \cong y[{1}]\mathbin {{\otimes _{\mathrm{Day}}}}(\partial \mathfrak{X}\mathbin {{\otimes _{\mathrm{Day}}}} \mathfrak{Y}) + y[{1}]\mathbin {{\otimes _{\mathrm{Day}}}}(\mathfrak{X}\mathbin {{\otimes _{\mathrm{Day}}}}\partial \mathfrak{Y}) \\ & \cong L\partial \mathfrak{X}\mathbin {{\otimes _{\mathrm{Day}}}}\mathfrak{Y} + \mathfrak{X}\mathbin {{\otimes _{\mathrm{Day}}}} LD\partial \mathfrak{Y} \end{align*}
In other words, we have
$L(\mathfrak{X}\mathbin {{\otimes _{\mathrm{Day}}}}\mathfrak{Y})\cong L\mathfrak{X}\mathbin {{\otimes _{\mathrm{Day}}}} \mathfrak{Y}$
or, which is equivalent,
$\left \{L\mathfrak{X}, \mathfrak{Y}\right \}_{\mathrm{Day}}\cong \left \{\mathfrak{X},\partial \mathfrak{Y}\right \}_{\mathrm{Day}}$
.
Coupled with the aforementioned Proposition 2.28, this suggests a sufficient condition, in a closed left-scopic 2-rig, to make
$L\partial$
a derivation: indeed, in a closed scopic differential 2-rig, one has that the following two conditions are equivalent:
-
$\scriptstyle \mathrm{LD}_{\scriptstyle 1}$
)
$L(\,\_\,\otimes \,\_\,)\cong L\,\_\,\otimes \,\_\,$
; -
$\scriptstyle \mathrm{LD}_{\scriptstyle 1}$
)
$\scriptstyle \mathrm{LD}_{\scriptstyle 2}$
$[L\,\_\,,\,\_\,]\cong [\,\_\,,\partial \,\_\,]$
(i.e., if the adjunction
$L\dashv \partial$
lifts to an enriched adjunction).
Proposition 2.31.
Let
$(\mathcal{R},\partial )$
be a closed left-scopic 2-rig; consider the adjunction
$L\dashv \partial$
and assume that either of the equivalent conditions
$\scriptstyle \mathrm{LD}_{\scriptstyle 1}$
or
$\scriptstyle \mathrm{LD}_{\scriptstyle 2}$
above is satisfied; then the composite comonad
$L\partial$
is itself a derivation.
Remark 2.18 and this paragraph pave the way to the possibility of studying ‘categorified differential algebra’, a starting question being, what good properties of
$(\mathcal{R},\partial )$
give nice properties to its Arbogast algebra?
In Section 7.2, we sketch a proposal for a notion of ‘differential polynomial’ that might be of interest, in mild analogy with Gambino and Kock (Reference Gambino and Kock2013)’s theory of polynomial functors. We postpone a comprehensive discussion of the matter, as this would led us astray from the current goals, but see Section 7.3 for some intuition on what we might focus on in the future.
2.2.1 Algebraic structures and co/algebras in
${\textsf{Spc}}$
We end the section reviewing the characterisation of monoids, comonoids and Hopf monoids in
${\textsf{Spc}}$
. This will be essential in Section 3, since monoidal automata theory in a category with countable sums forces us to understand the structure of the subcategory of
$\mathbin {{\otimes _{\mathrm{Day}}}}$
-co/monoids at a fundamental level. (Although it is just in the setting of vector species that the notion of bialgebra and Hopf object becomes of particular importance, as widely exposed in Aguiar and Mahajan (Reference Aguiar and Mahajan2010, Reference Aguiar and Mahajan2020, Reference Aguiar and Mahajan2022).
Among other examples, we will consider in Definition 2.36 categories arising as pullbacks of the forgetful functor
${{\textsf{Spc}}}^{{\mathfrak{L}}}\to {{\textsf{Spc}}}$
from the Eilenberg–Moore category of a monad
${{\mathfrak{L}}}\mathbin {{\otimes _{\mathrm{Day}}}}\,\_\,$
.
First of all, Hadamard co/monoids are simply co/monoid-valued species, that is, functors
$F : {\textsf{P}} \to \textsf{Mon}$
or
${\textsf{P}}\to \textsf{Comon}$
into the categories of monoids and comonoids in
$\textsf{Set}$
(more generally, a model in
${\textsf{Spc}}$
for a certain algebraic theory
$\mathbb{T}$
is just a species valued in
$\mathbb{T}$
-models, that is, a
$(1,\textsf{Set}^{\mathbb{T}})$
-species; with some care, this result extends to
$\mathcal{V}$
-species, a Hadamard monoid with respect to the monoidal product in
$\mathcal{V}$
being just a functor
${\textsf{P}} \to \textsf{Mon}(\mathcal{V})$
).
Cauchy co/monoids (i.e., co/monoids for the Day convolution, whence our preference for calling them Day co/monoids) are far more interesting, as well as substitution co/monoids (the latter are called co/operads and have an extremely long history, excellent surveys geared towards the different areas of Mathematics using them are Curien Reference Curien2012; Gambino and Joyal Reference Gambino and Joyal2017; Kelly Reference Kelly2005, Markl et al. Reference Markl, Shnider and Stasheff2002). The first remark on
$\mathbin {{\otimes _{\mathrm{Day}}}}$
-co/monoids is simply that there aren’t any among representables.
Remark 2.32. There are no nontrivial representable
$\mathbin {{\otimes _{\mathrm{Day}}}}$
-magmas, for the simple reason that the subcategory spanned by representables is monoidally equivalent to
$({\textsf{P}},\oplus )$
and in the latter a binary operation
$[n]\oplus [n]=[2n]\to [n]$
can exist only if
$2n=n$
. For a similar reason, there are no nontrivial ‘
$k$
-coary cooperations’
$[n] \to [n]^{\oplus k}$
.
Remark 2.33. It is worth to explicitly spell out what a
$\mathbin {{\otimes _{\mathrm{Day}}}}$
-monoid
$(M,\mu ,\eta )$
in
${\textsf{Spc}}$
must be made of:
-
• the unit consists of a species morphism
$\eta : y[{0}] \to M$
which by Yoneda is just an element
$e\in M[{0}]$
. -
• the multiplication splits into a cowedge
$\mu _{pq} : M[p]\times M[q] \to M[n]$
for each pair of integers
$p,q$
such that
$p+q=n$
, natural for the action of symmetric groups, under the shuffling maps
$S_p\times S_q\to S_{p+q}$
sending a pair of permutations
$(\sigma ,\tau )$
to the one acting as
$\sigma$
on
$\{1,\dots ,p\}$
and as
$\tau$
on
$\{p+1,\dots ,p+q\}$
.
Remark 2.34. Let
$(M,\mu ,\eta )$
be a
$\mathbin {{\otimes _{\mathrm{Day}}}}$
-monoid in
${\textsf{Spc}}$
, and then the slice category
${{\textsf{Spc}}}/M$
is monoidal closed, under a monoidal product
$\mathbin {{\otimes _{\mathrm{Day}}}}^M$
which makes the forgetful functor
$U : {{\textsf{Spc}}}/M\to {{\textsf{Spc}}}$
strong monoidal.
In fact, there is an indexed monoidal category (cf. Gouzou and Grunig Reference Gouzou and Grunig1976; Shulman Reference Shulman2008)
$\textsf{Mon}({{\textsf{Spc}}},\mathbin {{\otimes _{\mathrm{Day}}}})\to \textsf{Cat}$
sending
$M\mapsto {{\textsf{Spc}}}/M$
.
The following is implied joining (Adámek and Velebil Reference Adámek and Velebil2008, Example 2.3) and adapting (Aguiar and Mahajan Reference Aguiar and Mahajan2010, 8.16); in particular, the species
${\mathfrak{L}}$
of Example 2.5 has a convenient universal property.
Proposition 2.35 (Bergeron et al. Reference Bergeron, Labelle and Leroux1998, p. 7; Aguiar and Mahajan Reference Aguiar and Mahajan2010, Section 8.1). The species
${\mathfrak{L}}$
of total orders is the free monoid on
$y[{1}]$
. The species
${{\mathfrak{L}}}_+$
of nonempty linear orders is the free semigroup on
$y[{1}]$
. Thus,
(A terminological note. Aguiar and Mahajan Reference Aguiar and Mahajan2010 calls ‘positive’ what we tend to dub ‘nonempty’, considering species as monadic over graded vector spaces in a similar fashion of our Equation (13)). In fact, in a
$k$
-linear setting (
$k$
a field), the structure of
${\mathfrak{L}}$
is way richer:
$k\langle {{\mathfrak{L}}}\rangle$
(cf. Definition 2.4; it’s the species assigning to
$[n]$
the
$k$
-vector space having the set
${{\mathfrak{L}}}[n]$
as a basis) carries the structure of a Hopf monoid. Following Remark 2.33, the monoid structure of
${\mathfrak{L}}$
arises as a cowedge
${{\mathfrak{L}}}[p]\times {{\mathfrak{L}}}[q] \to {{\mathfrak{L}}}[n]$
for every
$p+q=n$
, defined as
$(l,l')\mapsto l\cdot l'$
where the later is the ordinal sum or concatenation of the linear orders
$l$
on
$[p]$
and
$l'$
on
$[q]$
; ordinal sum is an associative operation, equivariant under the shuffling maps of Remark 2.33. The unit is the only element of
${{\mathfrak{L}}}[{1}]$
.
The Hopf monoid structure of
$k\langle {{\mathfrak{L}}}\rangle$
is extensively studied and described in Aguiar and Mahajan (Reference Aguiar and Mahajan2010, Section 8.5).
2.2.2 Co/algebras for endofunctors of
$\mathrm{{\textsf{Spc}}}$
This subsection studies algebras and coalgebras for a few interesting endofunctors
$M$
defined over
${\textsf{Spc}}$
. Despite its naturality, this idea is seemingly unexplored thus far, and in particular, no one studied the category of
$\partial$
-algebras (cf. Definition 4.11) outlining the fact that it is a differential 2-rig on its own (cf. Theroem 4.14).
It becomes particularly intriguing to explore the interactions between
$M$
and the structures on
${\textsf{Spc}}$
mentioned in Remarks 2.9, 2.15; clearly, this is essential to study
$(M,B)$
-automata, defined in Definition 3.1 as a pullback along
$M$
-algebras.
Definition 2.36 (The category
${{\textsf{Spc}}}^{{\mathfrak{L}}}$
). The category
${{\textsf{Spc}}}^{{\mathfrak{L}}}$
is, up to equivalence, described as any of the following:
-
$\scriptstyle \mathrm{L}_{\scriptstyle 1}$
) the category of endofunctor algebras for
$y[{1}]\mathbin {{\otimes _{\mathrm{Day}}}}\,\_\,$
; -
$\scriptstyle \mathrm{L}_{\scriptstyle 2}$
) the category of endofunctor coalgebras for
$\partial$
; -
$\scriptstyle \mathrm{L}_{\scriptstyle 3}$
) the Eilenberg–Moore category of the monad
${{\mathfrak{L}}}\mathbin {{\otimes _{\mathrm{Day}}}}\,\_\,$
; -
$\scriptstyle \mathrm{L}_{\scriptstyle 4}$
) the coEilenberg–Moore category of the comonad
$\left \{{\mathfrak{L}},\_\right \}_{\mathrm{Day}}$
.
These identifications follow from the freeness of
${\mathfrak{L}}$
and the general fact that whenever
$F\dashv G$
is an adjunction between endofunctors,
$\textsf{Alg}(F)\cong \textsf{coAlg}(G)$
.
Representing objects of
${{\textsf{Spc}}}^{{\mathfrak{L}}}$
as Eilenberg–Moore algebras is particularly convenient, as a
${\mathfrak{L}}$
-module is the same thing as a
$\mathbin {{\otimes _{\mathrm{Day}}}}$
-monoid homomorphism
${{\mathfrak{L}}} \to \left \{F,F\right \}_{\mathrm{Day}}$
, which since
${\mathfrak{L}}$
is the free monoid generated on
$y[{1}]$
, amounts to a single element of
$\left \{F,F\right \}_{\mathrm{Day}}[{1}]$
; equivalently, if one uses characterisation
$\scriptstyle \mathrm{L}_{\scriptstyle 1}$
above, a structure of type
$y[{1}]\mathbin {{\otimes _{\mathrm{Day}}}}$
on
$[n]$
consists of a choice of point in
$[n]$
, together with an
$F$
-structure on the complement of that point.Footnote
13
Remark 2.37. Limits and colimits in
${{\textsf{Spc}}}^{{\mathfrak{L}}}$
are computed exactly as in
${\textsf{Spc}}$
, that is, pointwise (since
${\textsf{Spc}}$
is monadic over
$\textsf{Set}^{\mathbb{N}} = \prod _{n\ge 1}\textsf{Set}$
), given that
${{\textsf{Spc}}}^{{\mathfrak{L}}}$
is at the same time a category of algebras (for
${{\mathfrak{L}}}\mathbin {{\otimes _{\mathrm{Day}}}}\,\_\,$
, hence limits are created in
${\textsf{Spc}}$
) and of coalgebras (for the right adjoint comonad
$\left \{\mathfrak{L},\_\right \}_{\mathrm{Day}}$
, hence colimits are created in
${\textsf{Spc}}$
). We just proved that
Lemma 2.38.
The terminal object of
${{\textsf{Spc}}}^{{\mathfrak{L}}}$
is the exponential species of Example 2.5
, whence the isomorphism
$\partial {{\mathfrak{E}}}\cong {{\mathfrak{E}}}$
characterising
${\mathfrak{E}}$
as a ‘Napier object’ of the differential 2-rig of species.
Footnote
14
Armed with these explicit computations, we can attempt to unveil the structure of the category
${{\textsf{Spc}}}^{{\mathfrak{L}}}$
in any of the equivalent forms given in Definition 2.36 as a building block of
${\textsf{Mly}}_{\textsf{Spc}}({{\mathfrak{L}}},\,\_\,)$
.
We now collect some examples of a species that has only a few structures of
${\mathfrak{L}}$
-algebra (=structures of
$\partial$
-coalgebra), a species that has at least uncountably many and a species with no such structure as a
$\textsf{Set}$
-species, that however becomes interesting when ‘changing base’ (cf. Definition 2.4).
Example 2.39. Structures of
$\partial$
-coalgebra on the species of subsets of
$\scriptstyle \mathrm{ES}_{\scriptstyle 1}$
correspond to
$S_n$
-equivariant maps
$\theta : \wp \to \partial \wp$
and using the Leibniz rule over the isomorphism
$\wp \cong \mathfrak{E}\mathbin {{\otimes _{\mathrm{Day}}}} \mathfrak{E}$
of Bergeron et al. (Reference Bergeron, Labelle and Leroux1998, Section 1.3, Eq. (33)) one gets that
$\theta : \wp \to \wp +\wp$
. Using elementary group theory on the components
$\theta _A$
, one sees that there are only four such
$\theta$
: embedding a subset
$U\subseteq A$
in the first summand, embedding a subset
$U\subseteq A$
in the second summand, embedding
$U^c = A\smallsetminus U$
in the first summand and embedding
$U^c = A\smallsetminus U$
in the second summand.
Example 2.40. (Bergeron et al. Reference Bergeron, Labelle and Leroux1998, Example 9, (37)) yields
$\partial {{\mathfrak{L}}}\cong {{\mathfrak{L}}}\mathbin {{\otimes _{\mathrm{Day}}}}{{\mathfrak{L}}}$
, whence a natural choice for a coalgebra structure
$s : {{\mathfrak{L}}}\to \partial {{\mathfrak{L}}}$
, given a finite set
$A$
, is specified on components
$s_A$
in terms of a choice of decomposition
$A = I\sqcup J$
and a splitting of the total order on
$A$
as a total order on
$I$
and a total order on
$J$
. This choice is made independently for every finite set
$A$
, so this argument shows that there is an uncountable infinity of coalgebra structures on
${\mathfrak{L}}$
.
Example 2.41. Let
$\mathfrak{C}\mathfrak{y}\mathfrak{c}$
be the species of cyclic orders, Example 2.5.
$\scriptstyle \mathrm{ES}_{\scriptstyle 5}$
; then, we immediately get
$\partial {\mathfrak{C}\mathfrak{y}\mathfrak{c}}\cong {{\mathfrak{L}}}$
from manipulating generating series. A
$\partial$
-coalgebra structure on
$\mathfrak{C}\mathfrak{y}\mathfrak{c}$
now would be a natural transformation
$\vartheta : {\mathfrak{C}\mathfrak{y}\mathfrak{c}}\to {{\mathfrak{L}}}$
, and no such map can exist by cardinality reasons: since
${\mathfrak{C}\mathfrak{y}\mathfrak{c}}[n]$
identifies with the coset space
$S_n/\mathbb{Z}_n$
, over which
$S_n$
acts transitively, an
$S_n$
-equivariant map
$\vartheta _n : {\mathfrak{C}\mathfrak{y}\mathfrak{c}}[n] \to S_n$
must be surjective (the translation action
$S_n\times {\mathfrak{C}\mathfrak{y}\mathfrak{c}}[n]\to {\mathfrak{C}\mathfrak{y}\mathfrak{c}}[n] : (\sigma ,\tau )\mapsto \sigma \tau$
is also transitive). Yet,
$|S_n| = n! \gt (n-1)! = |{\mathfrak{C}\mathfrak{y}\mathfrak{c}}[n]|$
.
Example 2.42. Let
$\mathfrak{S}$
be the species of permutations of Example 2.5.
$\scriptstyle \mathrm{ES}_{\scriptstyle 4}$
; from Remark 2.11 it follows that
$\partial \mathfrak{S}\cong \mathfrak{S}\mathbin {{\otimes _{\mathrm{Day}}}} {{\mathfrak{L}}}$
, so that
$\partial$
-coalgebra structures (i.e., Eilenberg–Moore algebras for
${{\mathfrak{L}}}\mathbin {{\otimes _{\mathrm{Day}}}}\,\_\,$
) correspond under adjunction to monoid homomorphisms
${{\mathfrak{L}}} \to \left \{\mathfrak{S},\mathfrak{S}\right \}_{\mathrm{Day}}$
.
3. Categories of Automata
In this section, we define categories of automata, both in the generalised Adámek–Trnková sense, Definition 3.1, and in the monoidal sense, Equation (31), with particular care in outlining the fibrational properties of the correspondence
$(F,B)\mapsto {{\textsf{Mly}}_{\mathcal{K}}{(F, B)}}$
.
The typical object of such category depends parametrically on a pair
$F,B$
where
$F : \mathcal{K}\to \mathcal{K}$
is an endofunctor of a (in many instances, symmetric monoidal) category
$\mathcal{K}$
and
$B\in \mathcal{K}$
is an object; a Mealy automaton
$\left |\!\left |\!\frac {X}{d,s}\!\right |\!\right |$
is then a span of the following form:
These spans are the objects of a category with morphisms
$f : \left |\!\left |\!\frac {X}{d,s}\!\right |\!\right |\to \left |\!\left |\!\frac {Y}{d',s'}\!\right |\!\right |$
those
$f : X\to Y$
that are, at the same time, morphisms of
$F$
-algebras and ‘fibred’ over
$B$
, meaning that
A Moore automaton is defined similarly, just instead of being a span it’s a disconnected diagram

The endofunctor
$F : \mathcal{K} \to \mathcal{K}$
has to be understood as an abstraction of a dynamical system through iteration
$F,F^2,F^3,\dots : \mathcal{K}\to \mathcal{K}$
– this is, the point of view of Adámek and Trnková (Reference Adámek and Trnková1990).
We also fix an object
$B\in \mathcal{K}$
(an ‘output’ object, cf. Ehrig et al. Reference Ehrig, Kiermeier, Kreowski and Kühnel1974; Guitart Reference Guitart1980).
The explicit descriptions given in Equations (23), (24) and (25) make it evident that the categories in study have the following universal properties.
Definition 3.1.
We define the category
${\textsf{Mly}}_{\mathcal{K}}{(F, B)}$
of Mealy automata with input
$F$
and output
$B$
and
${\textsf{Mre}}_{\mathcal{K}}(F,B)$
of Moore automata with input
$F$
and output
$B$
as the following strict 2-pullbacks in
$\textsf{Cat}$
, respectively:

where
$\textsf{Alg}(F)$
is the category of endofunctor algebras of
$F$
,
$F/B$
the comma category of arrows
$FX\to B$
, and
$\mathcal{K}/B$
the comma category of arrows over
$B$
, that is,
$u : X\to B$
(and
$U,V,U',V'$
are the most obvious forgetful functors).
Remark 3.2 (Limits and colimits in categories of automata). If
$F$
admits a right adjoint
$R$
and
$\mathcal{K}$
is complete and cocomplete, so are
${\textsf{Mly}}_{\mathcal{K}}{(F, B)}$
and
${\textsf{Mre}}_{\mathcal{K}}(F,B)$
; this can be easily argued using an argument in Mac Lane (Reference Mac Lane1998, V.6, Ex. 3) and the fact that
$U,U'$
create colimits and connected limits, together with the fact that
$F/B\cong \mathcal{K}/RB$
; then, one easily verifies by inspection that the terminal object of
${\textsf{Mly}}_{\mathcal{K}}{(F, B)}$
is
$\prod _{n\ge 1} R^nB$
and the terminal object of
${\textsf{Mre}}_{\mathcal{K}}(F,B)$
is
$\prod _{n\ge 0}R^n B$
(note how they only differ by a shift of index).
Remark 3.3 (Accessibility of categories of automata). Repeatedly applying the completeness theorem of the 2-category
$\mathbf{Acc}$
of accessible categories (Makkai and Paré Reference Makkai and Paré1989, Ch. 5), one can prove that if
$\mathcal{K}$
is locally presentable (say for a regular cardinal
$\kappa$
) and
$F$
is
$\kappa$
-accessible (clearly an assumption subsumed by its being a left adjoint), then
${{\textsf{Mly}}_{\mathcal{K}}{(F, B)}},{\textsf{Mre}}_{\mathcal{K}}(F,B)$
are both locally presentable (but in general, for a much higher cardinal
$\kappa$
).
Remark 3.4. A particular instance of Remark 3.2 is when
$\mathcal{K}$
is monoidal and
$F:\mathcal{K}\to \mathcal{K}$
is the tensor product
$A\otimes -$
for a fixed object of
$\mathcal{K}$
. Then, we shorten
${\textsf{Mly}}_{\mathcal{K}}{(F, B)}$
and
${\textsf{Mre}}_{\mathcal{K}}(F,B)$
to
${\textsf{Mly}}_{\mathcal{K}}{(A, B)}$
and
${\textsf{Mre}}_{\mathcal{K}}(A,B)$
and we observe that
-
• if
$\mathcal{K}$
has countable sums,
$\textsf{Alg}(F)=\textsf{Alg}(A\,\otimes \,\_\,)$
is the Eilenberg–Moore category of the monad
$A^*\otimes -$
where
$A^*:=\sum _{n=0}^\infty A^{\otimes n}$
is the free monoid on
$A$
; -
• all the results stated so far specialise: if
$\mathcal{K}$
is monoidal closed, complete and cocomplete, then
${\textsf{Mly}}_{\mathcal{K}}{(A, B)}$
and
${\textsf{Mre}}_{\mathcal{K}}(A,B)$
are complete and cocomplete; if
$\mathcal{K}$
is locally
$\kappa$
-presentable, so are
${\textsf{Mly}}_{\mathcal{K}}{(A, B)}$
and
${\textsf{Mre}}_{\mathcal{K}}(A,B)$
(generally, for a larger cardinal
$\kappa '\gg \kappa$
). The terminal object in
${\textsf{Mly}}_{\mathcal{K}}{(A, B)}$
is
$[A^+,B]$
,
$A^+$
being the free semigroup on
$A$
(resp., in
${\textsf{Mre}}_{\mathcal{K}}(A,B)$
it’s
$[A^*,B]$
,
$A^*$
being the free monoid).
Unwinding Definition 3.1 in this particular case, the typical object
$\left |\!\left |\!\frac {E}{d,s}\right |\!\right |$
of
${\textsf{Mly}}_{\mathcal{K}}{(A, B)}$
is a span as in the left of the following diagram and the typical object
$\left |\!\left |\!\frac {E}{d,s}\!\!\right |\right .$
of
${\textsf{Mre}}_{\mathcal{K}}(A,B)$
a (disconnected) diagram as in the right

Such models of computation with the final state depending (on the left) or not depending (on the right) from the inputs
$A$
has a long history, cf. Mealy (Reference Mealy1955), Moore (Reference Moore1956) and Netherwood (Reference Netherwood1959). Its categorical axiomatisation also has a long tradition, cf. Goguen (Reference Goguen1972, Reference Goguen1973) and Arbib and Manes (Reference Arbib and Manes1975).
The general observations collected so far specialise to the category of Definition 2.1 as follows.
Remark 3.5. Remarks 3.2, 3.3 and 3.4 all apply to
$\mathcal{K}={{\textsf{Spc}}}$
considered with the Day convolution structure (and in fact to all
$\mathcal{V}\text{-}{{\textsf{Spc}}}$
when
$\mathcal{V}$
is complete, cocomplete and monoidal closed). In particular, for every fixed combinatorial species
$B : {\textsf{P}} \to \textsf{Set}$
, we can easily study
${\textsf{Mly}}_{\textsf{Spc}}(L,B)={\textsf{Mly}}_{\textsf{Spc}}(y[{1}],B)$
as the category having objects the diagrams
$E \xleftarrow {d} y[{1}]\mathbin {{\otimes _{\mathrm{Day}}}} E \xrightarrow s B$
, or more concisely as the category obtained as the pullback
${{\textsf{Spc}}}^{{\mathfrak{L}}}\times _{{\textsf{Spc}}} ({{\textsf{Spc}}}/B)$
where
${{\textsf{Spc}}}^{{\mathfrak{L}}}$
is as in Definition 2.36.
Note that this is equivalent to the category of coalgebras for the functor
$E\mapsto \partial B\times \partial E$
. From this coalgebraic characterisation, we deduce that
Proposition 3.6.
The terminal object of
$\{\textsf{Mly}_{\textsf{Spc}}(L,B)$
is the ‘
$\omega$
-differential limit’
Footnote
15
of
$B$
defined as
where again
$y[{1}]^+$
is the free semigroup on
$y[{1}]$
: given Proposition
2.35
,
$y[{1}]^+\cong {{\mathfrak{L}}}_+$
.
3.1 Fibrational properties of the
${\mathsf{Mly}}_{\mathcal{K}}$
construction
We can construct total categories where all dynamics and outputs can be considered simultaneously and coherently. This is a consequence of the well-known correspondence between indexed categories
$\mathcal{C}\to \mathbf{Cat}$
out of a domain
$\mathcal{C}$
and fibrations
$\mathcal{E}\to \mathcal{C}$
over
$\mathcal{C}$
.
Remark 3.7. Consider two endofunctors
$F : \mathcal{K}\to \mathcal{K}$
and
$G:\mathcal{H}\to \mathcal{H}$
. If
$P :\mathcal{K}\to \mathcal{H}$
is a functor intertwining
$F,G$
, that is, equipped with a natural transformation
$\pi : GP\Rightarrow PF$
, we can define a functor
$\pi ^*:\textsf{Alg}(F)\to \textsf{Alg}(G)$
by application of
$P$
and precomposition with
$\pi$
, a functor
$\mathcal{K}/B\to \mathcal{H}/PB$
in the obvious way, and in turn a unique functor
This simple observation paves the way to the fruitful consideration that the construction in Definition 3.1 is implicitly functorial in the pair
$F,B$
, and, in turn, motivates the interest in the properties of the pseudofunctor
$(F,B)\mapsto {{\textsf{Mly}}_{\mathcal{K}}{(F, B)}}$
.
Definition 3.8.
The total Mealy 2-category
$\mathbf{Mly}$
is defined as follows:
-
• the objects are triples
$(\mathcal{K};\,F,B)$
where
$F : \mathcal{K}\to \mathcal{K}$
is an endofunctor of a category
$\mathcal{K}$
and
$B$
an object of
$\mathcal{K}$
; -
• the morphisms
$(P,\pi ,u):(\mathcal{K};\,F,B)\to (\mathcal{H};\,G,B')$
are triples where
$P : \mathcal{K}\to \mathcal{H}$
is a functor,
$\pi : GP\Rightarrow PF$
is an intertwiner natural transformation between
$F$
and
$G$
and
$u : PB\to B'$
is a morphism;
-
• 2-cells
$\gamma : (P,\pi ,u)\Rightarrow (Q,\theta ,v)$
consist of natural transformations
$\gamma : P\Rightarrow Q$
compatible with the intertwiners
$\pi ,\theta$
in the obvious sense, and such that
$v\circ \gamma _B=u$
.
From such a domain
$\mathbf{Mly}$
, sending
$(\mathcal{K},F,B)$
to
${\textsf{Mly}}_{\mathcal{K}}{(F, B)}$
results in a strict 2-functor
$\mathbf{Mly} \to \mathbf{Cat}$
(
$\mathbf{Cat}$
is the 2-category of categories, strict functors, strict natural transformations).
It is, however, rarely needed to vary the domain
$\mathcal{K}$
of the automata in study (but cf. Remark 4.27 for an instance of when this ‘change of scalars’ might be required). A simpler (=lower-dimensional) approach is convenient if we are content with keeping
$\mathcal{K}$
fixed.
Definition 3.9 (The total categories of automata). Definition
3.1
entails at once that the correspondence
$(F,B)\mapsto {{\textsf{Mly}}_{\mathcal{K}}{(F, B)}}$
is a (pseudo)functor of type
${\textsf{Mly}}_{\mathcal{K}} : \textsf{Cat}(\mathcal{K},\mathcal{K})^{\mathrm{op}}\times \mathcal{K} \to \textsf{Cat}$
, that is, a pseudo-profunctor
$\textsf{Cat}(\mathcal{K},\mathcal{K})\,\,\,\,\shortmid \kern -10pt\longrightarrow \mathcal{K}$
from which we can extract a two-sided fibration, that is, a span

such that
$p$
is a fibration,
$q$
is an opfibration,
$p$
-Cartesian lifts are
$q$
-vertical and
$q$
-opCartesian lifts are
$p$
-vertical. The tip
${\mathcal{M\!l\!y}}_{\mathcal{K}}$
of the span we call the total Mealy category constructed from
$\mathcal{K}$
.
Similar considerations allow to construct the total Moore category
${\mathcal{M\!r\!e}}_{\mathcal{K}}$
from the pseudo-profunctor
$(F,B)\mapsto {\textsf{Mre}}_{\mathcal{K}}(F,B)$
and obtain a two-sided fibration
$\textsf{Cat}(\mathcal{K},\mathcal{K})\leftarrow \mathcal{M\!r\!e}_{\mathcal{K}}\to \mathcal{K}$
, the total Moore category.
Remark 3.10. Unwinding the definition, it is easy to establish how reindexings of the total Mealy and Moore fibration act. In the particular case where
$\alpha : F\Rightarrow G$
is a natural transformation between left adjoints
$F\dashv R$
and
$G\dashv Q$
and
$f : B\to B'$
a morphism, the reindexing functor
${\mathcal{M\!l\!y}}_{\mathcal{K}}(\alpha ,f) : {\mathcal{M\!l\!y}}_{\mathcal{K}}(G,B)\to {\mathcal{M\!l\!y}}_{\mathcal{K}}(F,B')$
preserves all colimits – and thus, assuming
$\mathcal{K}$
is a locally presentable category, is a left adjoint; however, it fails to preserve limits (it already fails to preserve terminal objects; such behaviour can be put in perspective, once the coalgebraic nature of
${\mathcal{M\!l\!y}}_{\mathcal{K}}$
is unravelled: cf. Lemma 4.2).Footnote
16
If
$\mathcal{K}$
is monoidal, its tensor functor
$\,\_\,\otimes -:\mathcal{K}\times \mathcal{K} \to \mathcal{K}$
now curries to the ‘left regular representation’
$\lambda :\mathcal{K} \to \textsf{Cat}(\mathcal{K},\mathcal{K}):A\mapsto A\otimes -$
of
$\mathcal{K}$
on itself, and as a consequence, we can pullback the total Mealy fibration and the total Moore fibration to obtain the left leg of the diagram

which gives rise to the monoidal Mealy (two-sided) fibration

(Similar considerations define
${\mathcal{M\!r\!e}}^\otimes _{\textsf{K}}$
, but we refrain from doing so for some technical reasons that make
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
a better-behaved object than
${\mathcal{M\!r\!e}}^\otimes _{\textsf{K}}$
, cf. Boccali et al. 2023). In fact, the terminology is chosen to inspire the fact that we have restricted the total Mealy category to the case where
$F$
-actions are monoidal and hint at the following result.
Proposition 3.11. The monoidal Mealy fibration is a monoidal two-sided fibration, in the sense of Yoneda (Reference Yoneda1960) and Street (Reference Street1974), and the monoidal product interfibre is given by component-wise tensor product,
Theorem 3.12 (Katis et al. Reference Katis, Sabadini and Walters2010; Rosebrugh et al. Reference Rosebrugh, Sabadini and Walters1998, Def. 1 rephrased). If
$\mathcal{K}$
is Cartesian monoidal, the profunctor
$\mathcal{K}^{\mathrm{op}}\times \mathcal{K} \to \textsf{Cat}$
obtained from Equation (32) carries the structure of a (pseudo)promonad, and it gives rise to a bicategory
${\textsf{Mly}}_{\mathcal{K}}$
whose hom-categories are precisely the
${\textsf{Mly}}_{\mathcal{K}}{(A, B)}$
.
4. The Differential Structure of
${\textsf{Mly}}_{\textsf{Spc}}$
The scope of this section is to study the differential 2-rig
$({{\textsf{Spc}}},\mathbin {{\otimes _{\mathrm{Day}}}},\partial )$
in more depth, by extending the general theory of differential 2-rigs. The terminology introduced so far gives us enough leeway to introduce the main theorem of the present section: categories of automata on a differential 2-rig
$(\mathcal{K},\otimes ,\partial )$
form themselves a differential 2-rig, such that the functor of Equation (32) is a fibration of differential 2-rigs (=a strong monoidal functor, preserving the differential, which moreover is a fibration).
Theorem 4.1.
Let
$(\mathcal{K},\otimes ,\partial )$
be a differential 2-rig; then the total category of the monoidal Mealy fibration is itself a differential 2-rig for a canonical choice of a derivative functor
$\bar {\partial } : {\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}} \to {\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
such that the projection functors
$p^\otimes , q^\otimes$
in Equation (32) are (strict) morphisms of differential 2-rigs.
A similar statement holds replacing
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
with the category
${\mathcal{M\!r\!e}}^\otimes _{\textsf{K}}$
.
We conduct the proof in full detail, in the case of
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
; the proof for
${\mathcal{M\!r\!e}}^\otimes _{\textsf{K}}$
is analogous, mutatis mutandis.
Lemma 4.2.
The monoidal Mealy fibration
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
of Equation (31) arises as the category of coalgebras for a endofunctor
$R$
of
$\mathcal{K}^{\mathrm{op}}\times \mathcal{K}\times \mathcal{K}$
, sliced over the projection
$\pi _{12} : (\mathcal{K}^{\mathrm{op}}\times \mathcal{K})\times \mathcal{K} \to \mathcal{K}^{\mathrm{op}}\times \mathcal{K}$
on the first two factors; this means
$R : (\mathcal{K}^{\mathrm{op}}\times \mathcal{K}\times \mathcal{K},\pi _{12}) \to (\mathcal{K}^{\mathrm{op}}\times \mathcal{K}\times \mathcal{K},\pi _{12})$
is a morphism in the slice
$\textsf{Cat}/(\mathcal{K}^{\mathrm{op}}\times \mathcal{K})$
, making the triangle

commute strictly.
Proof.
The functor
$R$
is defined as

where
$R_{AB}X = [A, X\times B]$
; it is well known that a Mealy automaton
$\left |\!\left |\!\frac {X}{d,s}\!\right |\!\right |$
in
${\textsf{Mly}}_{\mathcal{K}}{(A, B)}$
is a
$R_{AB}$
-coalgebra, cf. Jacobs (Reference Jacobs2016, Exercise 2.3.2), and then the result (i.e., the fact that
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
is the object of
$R$
-coalgebras in
$\textsf{Cat}/(\mathcal{K}^{\mathrm{op}}\times \mathcal{K})$
) follows from (the dual of) Castelnovo et al. (in preparation, Remark 3.3), if the category
$\mathcal{K}^{\mathrm{op}}\times \mathcal{K}$
is treated as a category of parameters.
An immediate consequence of Lemma 4.2 is that colimits in
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
can be computed as in the base
$\mathcal{K}$
(coalgebra objects are inserters of the form
$\textsf{Ins}(\text{id},R)$
, whose forgetful functor
$V : \textsf{Ins}(\text{id},R) \to \mathcal{K}$
create colimits):
Corollary 4.3.
Colimits in
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
are created by a canonical forgetful functor

presenting its domain
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
as the inserter
$\textsf{Ins}(\text{id},R)$
(Kelly Reference Kelly1989, (4.1)), that is, as a square

terminal among all such.
Remark 4.4. It is worth to unravel how colimits are indeed computed in
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
and in particular make the construction of coproducts explicit, as they will be needed to prove linearity and the Leibniz property of
$\bar \partial$
. Recall the compact notation in Equation (27): an object of
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
is denoted as
$\left |\!\left |\!\frac {E}{d,s}\!\right |\!\right |$
.
Given a diagram
$H : \mathcal{J} \to {\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}} : J\mapsto \left |\!\left |\!\frac {E}{d_J, s_J} \!\right |\!\right |_{A_JB_J}$
, let
$A:=\lim _J A_J$
(with terminal cone
$(\pi _J : A\to A_J\mid J\in \mathcal{J})$
) and
$B := \mathrm{colim}_J B_J$
(with initial cocone
$(\iota _J : B_J\to B\mid J\in \mathcal{J})$
): then, the diagram
obtained from the reindexing functor has shape
$\mathcal{J}$
and it lives entirely in the fibre over
$(A,B)$
. The colimit of Equation (38) can then be computed in this fibre, and it is a matter of elementary diagram-chasing to show that this is a colimit for the diagram
$H$
in the whole
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
.
In the specific case of (binary, and by induction, finite) coproducts, this construction starts with two objects
$\left |\!\left |\!\frac {X}{d,s}\!\right |\!\right |_{AB}$
and
$\left |\!\left |\!\frac {Y}{d',s'}\!\right |\!\right |_{A',B'}$
and builds the diagram

which is a colimit diagram in
$\mathcal{K}^{\mathrm{op}}\times \mathcal{K}$
and then pushes
$\left |\!\left |\!\frac {X}{d,s}\!\right |\!\right |,\left |\!\left |\!\frac {Y}{d',s'}\!\right |\!\right |$
forward into the fibre
${\textsf{Mly}}_{(A\times A', B+B')}$
using the reindexings

Then, one computes the coproduct in the fibre
${\textsf{Mly}}_{(A\times A', B+B')}$
, that is, the diagram

It is a lengthy but easy computation to see that this construction satisfies the universal property of coproducts in
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
.
If
$\mathcal{X}$
is any category and
$R$
an endofunctor of
$\mathcal{X}$
, it is well known that liftings of an endofunctor
$D : \mathcal{X}\to \mathcal{X}$
to the category of
$R$
-coalgebras correspond bijectively to distributive laws
$\lambda : D R\Rightarrow R D$
; we now want to deduce the existence of the former lifting from the existence of the latter distributive law, when the product category
$\mathcal{K}^{\mathrm{op}}\times \mathcal{K}$
becomes a differential 2-rig under the action
sending
$(A,B,X)\mapsto (A,\partial B,\partial X)$
(this corresponds to deriving the carrier and output objects, but not the input
$A$
).
Construction 4.5. In Equation (42), the distributive law is the natural transformation with components

where
$\lambda : \partial [A,X\times B]\to [A,\partial X\times \partial B]$
is obtained from the tensorial strength of
$\partial$

and the arrow
$\star$
is obtained as composition obtained from the tensorial strength of
$\partial$
and the monoidal closed adjunction
$-\otimes A\dashv [A,-]$
,

as in Kock (1972).
The arrow in Equation (44) now yields the lifting of
$\partial$
to a functor

defined sending
$\left |\!\left |\!\frac {X}{d,s}\!\right |\!\right |_{AB}$
to the span
$\left |\!\left |\!\frac {\partial X}{\partial d\circ i,\partial s\circ i}\!\right |\!\right |_{A,\partial B}$
,

(where
$i$
is the right tensorial strength of
$\partial$
) which is
-
• linear, because given two objects
$\left |\!\left |\!\frac {X}{d,s}\!\right |\!\right |$
and
$\left |\!\left |\!\frac {Y}{d',s'}\!\right |\!\right |$
, denoting(48)
and similarly for
$s\oplus s'$
, one has an isomorphism(the proof is an exercise in casting the universal property, made painstaking by the definition of morphism in the fibred category
\begin{align*} \bar \partial \left [(\pi ,\iota )_*\left |\!\left |\!\frac {X}{d,s}\!\right |\!\right | +_{\substack {A\times A' \\B+B'}} (\pi ',\iota ')_*\left |\!\left |\!\frac {Y}{d',s'}\!\right |\!\right | \right ] &\cong \bar \partial \left |\!\left |\!\frac {X+Y}{d\oplus d',s\oplus s'}\!\right |\!\right |\cong \left |\!\left |\!\frac {\partial (X+Y)}{\partial (d\oplus d')\circ i, \partial (s\oplus s')\circ i}\!\right |\!\right |\\ &\cong \left |\!\left |\!\frac {\partial X}{\partial d\circ i, \partial s\circ i}\!\right |\!\right |_{A,\partial B} + \left |\!\left |\!\frac {\partial Y}{\partial d'\circ i, \partial s'\circ i}\!\right |\!\right |_{A',\partial B'}\\ & \cong (\pi ,\iota )_*\left |\!\left |\frac {\partial X}{\partial d\circ i,\partial s\circ i}\!\right |\!\right |_{A,\partial B}\\ & \quad +_{\substack {A\times A'\\\partial B+\partial B'}} (\pi ',\iota ')_*\left |\!\left |\!\frac {\partial Y}{\partial d'\circ i, \partial s'\circ i}\!\right |\!\right |_{A',\partial B'} \end{align*}
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
implicitly given in Equation (32)).
-
• Leibniz, because once the monoidal structure on
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
is defined as in Proposition 3.11, one has a tensorial strength on
$\bar \partial$
given by(49)
The proof that these components are indeed morphisms in
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
relies on the naturality of
$\tau$
’s components, as well as their compatibility with themselves: for example, every part of diagram
commutes by the axioms of tensorial strength.
Using the left strength
$\tau ^{L}$
of
$\partial$
, one defines the left strength
$\bar \tau ^{L}$
of
$\bar \partial$
in a similar fashion, and thus a unique map which is a candidate leibnizator
$\bar {\mathfrak{l}}$
(obtained from the leibnizator of
$\partial$
, in the obvious way). The construction of coproducts in
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
, and the specific way in which the tensorial strength for
$\bar \partial$
is induced pushing forward with the tensorial strength components of
$\partial$
, now entails that the diagram(50)
is a coproduct in
${\mathcal{M\!l\!y}}^\otimes _{\textsf{Spc}}$
, thus proving the invertibility of
$\bar {\mathfrak{l}}$
.
In a completely analogous fashion, one proves similar results for the general opfibration associated with
$[\mathcal{K},\mathcal{K}]^{\mathrm{op}}\times \mathcal{K} \to \textsf{Cat}$
sending
$(F,B)\mapsto {{\textsf{Mly}}_{\mathcal{K}}{(F, B)}}$
(the result is probably too general to be of some use when
$F$
is free to vary over all
$[\mathcal{K},\mathcal{K}]$
, so it can be restated in terms of the opfibration
$B\mapsto {{\textsf{Mly}}_{\mathcal{K}}{(F, B)}}$
alone, obtained fixing the first argument of
${\textsf{Mly}}{(\,\_\,,\,\_\,)}$
):
Proposition 4.6.
Let
$\textsf{LAdj}[\mathcal{K},\mathcal{K}]$
be the full subcategory of left adjoint endofunctors of
$\mathcal{K}$
. Then the category
${\mathcal{M\!l\!y}}_{\mathcal{K}}$
of Definition
3.9
, appropriately restricted over
$\textsf{LAdj}[\mathcal{K},\mathcal{K}]$
, can be seen as the object of coalgebras for a parametric functor
$\Pi : \textsf{LAdj}[\mathcal{K},\mathcal{K}]^{\mathrm{op}}\times \mathcal{K} \times \mathcal{K} \to \mathcal{K}$
, precisely the parametric functor sending
$(F,B,X)\mapsto (F,B,R_F(X\times B))$
where
$F\dashv R_F$
.
Theorem 4.7.
Let
$(\mathcal{K},\otimes ,\partial )$
be a differential 2-rig; denote
$\textsf{LAdj}[\mathcal{K},\mathcal{K}]_{\otimes ,l}$
the subcategory of lax monoidal left adjoint functors
$\mathcal{K}\to \mathcal{K}$
; again suitably restricting
${\mathcal{M\!l\!y}}_{\mathcal{K}}$
to be fibred over
$\textsf{LAdj}[\mathcal{K},\mathcal{K}]_{\otimes ,l}$
, for every distributive law
$\lambda : F\partial \Rightarrow \partial F$
of
$F$
over
$\partial$
we find a lifting of the derivative
$\partial$
to a derivative
$\bar \partial : {\mathcal{M\!l\!y}}_{\mathcal{K}}\to {\mathcal{M\!l\!y}}_{\mathcal{K}}$
, defined on components as

by sending
$\left |\!\left |\!\frac {X}{d,s}\!\right |\!\right |$
to the ‘precomposition with
$\lambda$
’:

Let’s observe that linearity of
$\bar \partial$
can be extended to preservation of all colimits preserved by
$\partial$
in the base: the proof goes as for coproducts and uses the explicit description of colimits given in Remark 4.4. Thus, we obtain at once
Corollary 4.8.
The total category
${\mathcal{M\!l\!y}}_{\mathcal{K}}[{{\textsf{Spc}}}]^\otimes$
constructed in Definition
3.9
, Equation (31) (underlying category), and Proposition
3.11
(monoidal structure) is a differential 2-rig with respect to the functor
$\bar \partial$
defined as in Equation (46), and
$\bar \partial$
commutes with all colimits.
Proposition 4.9.
The category
${\mathcal{M\!l\!y}}_{\mathcal{K}}[{{\textsf{Spc}}}]^\otimes$
is locally presentable, so by the special adjoint functor theorem (cf. Borceux Reference Borceux1994
, Section 3.3)
$\bar \partial$
has a left adjoint; in fact, more is true:
-
• the fibration of Equation (32) is accessible (and cocomplete, hence locally presentable) in the sense of Makkai and Paré (Reference Makkai and Paré1989 , 5.3.1), that is, the total category
${\mathcal{M\!l\!y}}_{\mathcal{K}}[{{\textsf{Spc}}}]^\otimes$
is locally presentable, the projection
$\langle p,q\rangle$
, all reindexing functors are accessible and the pseudofunctor associated with the fibration preserves filtered colimits.
-
• the
$\bar \partial$
functor is also continuous; hence,
$({\mathcal{M\!l\!y}}_{\mathcal{K}}[{{\textsf{Spc}}}]^\otimes ,\mathbin {{\otimes _{\mathrm{Day}}}},\bar \partial )$
is a scopic differential 2-rig in the sense of Notation
2.21
.
Proof.
The only verification that is not completely immediate is that
$\bar \partial$
preserves all limits; this can be reduced to the verification that
$\bar \partial$
preserves the terminal object as described in Remark 3.2, because connected limits are created by the forgetful functor to
${\textsf{Spc}}$
. We then have to establish an isomorphism
Note that for every
$X,Y\in {{\textsf{Spc}}}$
, there is an isomorphism
$\theta : \partial \left \{X,Y\right \}_{\mathrm{Day}}\cong \left \{X,\partial Y\right \}_{\mathrm{Day}}$
, induced by the fact that these two objects are isomorphic if and only if for every
$X,Y$
one has
$L(X\mathbin {{\otimes _{\mathrm{Day}}}} Y)\cong LX\mathbin {{\otimes _{\mathrm{Day}}}} Y$
(which is obviously true considering that
$L\cong y[{1}]\mathbin {{\otimes _{\mathrm{Day}}}}\,\_\,$
, cf. Remarks 2.19 and 2.30). One can then verify that
$\theta$
is indeed an isomorphism in
${\mathcal{M\!l\!y}}_{\mathcal{K}}[{{\textsf{Spc}}}]^\otimes$
.
The following lemma splits the verification that
${\textsf{Mly}}_{\mathcal{K}}$
, defined in Definition 3.9, preserves filtered colimits in both components into two parts. As an immediate corollary (filtered categories are sifted),
${\textsf{Mly}}_{\mathcal{K}}$
preserves filtered colimits.
Verifying the first part is a straightforward consequence of the fact that
$\textsf{Alg}(\,\_\,)$
preserves filtered colimits, in the sense that if
$\mathcal{J}$
is a
$\lambda$
-filtered category,
$\textsf{Alg}(\mathrm{colim}_{\mathcal{J}} F_i)\cong \lim _{\mathcal{J}}\textsf{Alg}(F_i)$
. The key result allowing us to prove the second part is the fact that
$R$
as described in Equation (17) also preserves filtered colimits; hence, for every filtered diagram, one has an isomorphism of comma categories
$(F/\mathrm{colim}_{\mathcal{J}} B_i)\cong \mathrm{colim}_{\mathcal{J}} \big (F/B_i\big )$
.
Lemma 4.10.
For every fixed output object
$B\in \mathcal{K}$
, the functor
${\textsf{Mly}}_{\mathcal{K}}{(\,\_\,,B)}$
preserves filtered colimits. For every fixed dynamics
$F : \mathcal{K}\to \mathcal{K}$
, the functor
${\textsf{Mly}}_{(F,\,\_\,)}$
preserves filtered colimits.
4.1 The structure of
$\mathrm{\textsf{Alg}}(\partial )$
The scope of the present subsection is to study the category of
$\partial$
-algebras. Understandably, the term ‘differential algebra’ would be quite a misnomer; hence, our choice to refer to such objects as derivative algebras. More explicitly:
Definition 4.11 (
$\partial$
-algebras). Let
$(\mathcal{K},\otimes ,\partial )$
be a differential 2-rig. The category
$\textsf{Alg}(\partial )$
of derivative algebras is defined as the category of endofunctor algebras of the derivative
$\partial$
; explicitly, it’s the category having
-
• objects the pairs
$(X,\xi )$
where
$\xi : \partial X \to X$
is a morphism in
$\mathcal{K}$
; -
• morphisms
$(X,\xi )\to (Y,\theta )$
the morphisms
$f : X \to Y$
in
$\mathcal{K}$
such that
$\theta \circ \partial f = f\circ \xi$
, or in diagrammatic terms
(54)
where composition and identities are defined as in
$\mathcal{K}$
.
General facts about categories of endofunctor algebras entail that
Remark 4.12. The category
$\textsf{Alg}(\partial )$
admits all limits that
$\mathcal{K}$
admits, and such limits are created by the obvious forgetful functor
$U : \textsf{Alg}(\partial )\to \mathcal{K} : (X,\xi )\mapsto X,f\mapsto f$
.
Colimits in
$\textsf{Alg}(\partial )$
are also created by
$U$
, as long as they are preserved by
$\partial$
; so, if
$\partial$
preserves coproducts,
$U$
creates coproducts, and if
$\partial$
preserves all colimits,
$U$
creates all colimits.
Corollary 4.13.
If
$\mathcal{K}$
is a
$\textbf {D}$
-2-rig, the category
$\textsf{Alg}(\partial )$
of derivative algebras admits
$\textbf {D}$
-colimits.
Proof.
In the terminology of Remark 2.17 a
$\textbf {D}$
-2-rig is nothing but a
$T_{\textbf {D}} M$
-pseudoalgebra, from the characterisation of derivative algebras as the inserter of
$\partial$
and
$\text{id}[\mathcal{K}]$
one swiftly deduces that the forgetful functor from
$\textbf {D}$
-2-rigs to
$\textsf{Cat}$
creates inserters (as well as all other 2-limits), thus giving a slick proof of Corollary 4.13.
In particular, the main result of this section (Theroem 4.14 below) shows that, remarkably, the category
$\textsf{Alg}(\partial )$
is a differential 2-rig thanks to the fact that
$\partial$
satisfies the Leibniz property. Note that, in full generality, a sufficient (but, as this example shows, not necessary) condition ensuring that
$\textsf{Alg}(F)$
is monoidal, and the forgetful functor
$U : \textsf{Alg}(F)\to \mathcal{K}$
is strict monoidal, is that
$F$
is oplax monoidal, whereas
$\partial$
is instead very far from being oplax monoidal.
Theorem 4.14.
Let
$(\mathcal{R},\otimes ,\partial )$
be a differential 2-rig such that
$\partial I\cong \varnothing$
. Define a structure on
$\textsf{Alg}(\partial )$
as follows:
-
• a tensor bifunctor
(55)
sending two
$\partial$
-algebras
$(A,\alpha ),(B,\beta )$
to the object
$(A,\alpha )\boxtimes (B,\beta ):=(A\otimes B,\alpha \boxtimes \beta )$
where
(56)
is the candidate
$\partial$
-algebra map (and
$\ell$
the Leibniz isomorphism of Definition
2.16
.
$\scriptstyle \mathrm{D}_{\scriptstyle 2}$
).
-
• an algebra structure on
$I$
given by the initial map
$\boldsymbol{!}:\partial I \cong \varnothing \to I$
; -
• associators and unitors deduced from those in
$\mathcal{R}$
.
Then,
$(\textsf{Alg}(\partial ),\boxtimes , (I,\boldsymbol{!}))$
is a monoidal category. Furthermore, if
$(\mathcal{R},\otimes ,\partial )$
is a differential 2-rig for the doctrine of colimits
$\textbf {D}$
, then
$\textsf{Alg}(\partial )$
is a differential 2-rig as well (for the same doctrine of colimits) in such a way that the forgetful functor
$U : \textsf{Alg}(\partial ) \to \mathcal{R}$
is a differential 2-rig morphism.
Proof.
Clearly, the condition
$\partial I\cong \varnothing$
is needed to equip the monoidal unit with a (unique) algebra structure
$\partial I \cong \varnothing \to I$
and make
$(I,!)$
the monoidal unit. The associator and unitor diagrams proving that
$\,\_\,\boxtimes \,\_\,$
is a tensor functor on
$\textsf{Alg}(\partial )$
all boil down to the associator and unitor diagrams of the monoidal structure on
$\mathcal{R}$
.
Remark 4.15. The above construction relies on the identity 2-cell
$\partial \partial \Rightarrow \partial \partial$
as a fairly trivial choice of distributive law of
$\partial$
over itself; there can be other choices: in the category of species, only one is nontrivial: from Remark 2.19
$\partial = \left \{{1}],\,\_\,\right \}_{\mathrm{Day}}$
, so that with a Yoneda argument one gets that
Remark 4.16 (The Taylor expansion of an object). Note that this procedure for obtaining a differential 2-rig
$\textsf{Alg}(\partial )$
of derivative algebras can be iterated, constructing a tower

where each endofunctor action is essentially the one of
$\partial$
; more precisely,
$\partial '$
acts on a
$\partial$
-algebra sending
$(X,\xi : \partial X\to X)$
to
$(\partial X,\partial \xi )$
; and
$\partial ''$
acts on a
$\partial '$
-algebra
$((X,\xi ),\varsigma : \partial '(X,\xi )\to (X,\xi ))$
sending it to
$(\partial \partial X,\partial \varsigma )$
, where
$\varsigma$
is a homomorphism of
$\partial$
-algebras, such that

determining essentially by definition a ‘second-degree expansion’
$X\leftarrow \partial X \leftarrow \partial \partial X$
; inductively, then, one determines for every object
$X\in \mathcal{R}$
of a differential 2-rig
$(\mathcal{R},\partial )$
as in Theroem 4.14 a chain
called the Taylor chain of
$X$
. More precisely, one can build the following object inductively:
-
•
$\mathcal{R}^{(0)} := \mathcal{R}$
and
$\mathcal{R}^{(n+1)} := \textsf{Ins}(\partial ^{(n)}, \mathcal{R}^{(n)})$
(i.e., the inserter realising the category of endofunctor algebras for the functor
$\partial ^{(n)}$
); -
•
$\partial ^{(1)} := \partial$
and
$\partial ^{(n+1)} := \mathcal{R}^{(n+1)}\to \mathcal{R}^{(n+1)}$
defined lifting
$\partial ^{(n)}$
.
The categories
$\mathcal{R}^{(n)}$
and the functors
$U^{(n)} : \mathcal{R}^{(n+1)} \to \mathcal{R}^{(n)}$
arrange then as the tower in diagram Equation (58), and one can then consider the limit of such a chain,
Such a category is called the jet category of
$\mathcal{R}$
, and a typical object in
$\boldsymbol{J}et[\mathcal{R},\partial ]$
consists of a countable sequence
the
$n^{\text{th}}$
element of which equips the
$(n-1)^{\text{th}}$
with an algebra structure for
$\partial ^{(n)}$
. Morphisms are determined similarly.
In analogy with differential geometry, where the
$k$
-jet of a real-valued function
$f : \mathbb{R}\to \mathbb{R}$
is defined as:
\begin{align} (J^k_{x_0}\,f)(z) =\sum _{i=0}^k \frac {f^{(i)}(x_0)}{i!}z^i =f(x_0)+f'(x_0)z+\cdots +\frac {f^{(k)}(x_0)}{k!}z^k. \end{align}
We define the
$k$
-jet
$J^k(\vec X)$
of an object
$\vec X \in \boldsymbol{J}et[\mathcal{R},\partial ]$
as the image of
$\vec X$
under the functor
$J^k$
obtained from the limit projections
$\pi _k : \boldsymbol{J}et[\mathcal{R},\partial ] \to \mathcal{R}^{(k)}$
as:

The following result was suggested by C. Chanavat in conversation:
Theorem 4.17.
The category
$\boldsymbol{J}et[\mathcal{R},\partial ]$
is a 2-rig, and it inherits a differential structure from its universal property, defined as ‘taking the tail of the sequence
$\vec X$
’:
Proof.
The limit in Equation (61) acquires a natural structure of 2-rig (given the (2-)monadicity that defines a notion of 2-rig, limits are created from
$\textsf{MCat}$
, and subsequently from
$\textsf{Cat}$
); we just have to show that
$\partial _\infty$
as defined in Equation (65) is linear and Leibniz.
-
• each lifting
$\partial ^{(n)}$
preserves coproducts that are all computed as in the base
$\mathcal{R}^{(0)}=\mathcal{R}$
. As a consequence, the coproduct of
$\vec X=(X,(X;\,\xi ),{\dots})$
and
$\vec Y=(Y,(Y;\,\theta ),{\dots})$
defined as above is(66)
\begin{align} \left ( X+Y , \Big (X+Y; \substack {\partial (X+Y)\\ \downarrow \\X+Y}\Big ) , \Big ((X;\,\xi )+(Y,\theta );\substack {\partial '(X+Y;\#)\\ \downarrow \\(X+Y;\#)}\Big ) , \dots \right ). \end{align}
-
• Similarly, the tensor product
$\vec X\otimes \vec Y$
of
$\vec X$
and
$\vec Y$
in
$\boldsymbol{J}et[\mathcal{R},\partial ]$
is(67)The functor
\begin{align} \left ( X\otimes Y , (X\otimes Y;\,\xi \boxtimes \theta ) , \Big ((X;\,\xi )\boxtimes (Y,\theta );\substack {\partial '(X\otimes Y;\#)\\ \downarrow \\(X\otimes Y;\#)}\Big ) , \dots \right ). \end{align}
$\partial _\infty$
of Equation (65) acts on this object as follows:
\begin{align*} \partial _\infty (\vec X\otimes \vec Y) & = \big (\partial (X\otimes Y), (\partial (X\otimes Y);\,\partial (\xi \boxtimes \theta )),\dots \big ) \\ & \cong \left ( \partial X\otimes Y , (\partial X\otimes Y;\,\partial \xi \boxtimes \theta ), \dots \right ) + \left ( X\otimes \partial Y , (X\otimes \partial Y;\,\xi \boxtimes \partial \theta ), \dots \right ) \\ & \cong \partial \vec X\otimes \vec Y + \vec X\otimes \partial \vec Y. \end{align*}
4.1.1 Lifting to Eilenberg–Moore algebras
Obviously, there exists a (tautological) lifting of
$\partial$
to a category of Eilenberg–Moore algebras, as the endofunctor
$\partial$
admits a distributive law with the monads
$\partial L$
and
$R\partial$
: we expand on this idea in the present section.
To start, recall what it means to lift an endofunctor to an Eilenberg–Moore category of a monad
$T$
(dual conditions ensure the lifting to the coEilenberg–Moore category of a comonad): given
$F : \mathcal{K}\to \mathcal{K}$
an endofunctor, and
$T$
a monad on
$\mathcal{K}$
, the following conditions are equivalent:
-
$\scriptstyle \mathrm{LA}_{\scriptstyle 1}$
) there exists a lifting
$\hat F : \textsf{EM}(T)\to \textsf{EM}(T)$
of
$F$
to the Eilenberg–Moore category of
$T$
; -
$\scriptstyle \mathrm{LA}_{\scriptstyle 2}$
) there exists an endofunctor-to-monad distributive law
$\lambda : TF\Rightarrow FT$
, that is, a natural transformation
$\lambda$
suitably compatible with the multiplication and unit of
$T$
.
Now, let
$\mathcal{R}$
be a scopic 2-rig, equipped with a triple of adjoints
$L\dashv \partial \dashv R$
; then the following fact is a general statement about adjoint pairs, applied to
$L\dashv \partial , \partial \dashv R$
.
Lemma 4.18. The composite map

where
$L\frac {\varepsilon ^l}{\eta ^l} \partial$
is an intertwiner of the monad
$\partial L$
onto itself; similarly, the composite map
where
$\partial \frac {\varepsilon ^r}{\eta ^r} R$
is an intertwiner of the monad
$R\partial$
onto itself.
Lemma 4.19.
The monad
$\partial L$
on the category of species is commutative.
Proof.
Let’s start equipping
$T=\partial L$
with a tensorial strength of type

which considering the isomorphism
$T = \text{id} + L\partial$
can be obtained from the left strength of
$L\partial$
Similarly, the right strength of
$L\partial$
gives
One routinely checks that Equations (71) and (72) are compatible with the unit and multiplication of
$T$
, as determined in Remark 5.2.
$\scriptstyle \mathrm{FW}_{\scriptstyle 3}$
, and then commutativity of
$\partial L$
amounts to the commutativity of

which is a compatibility between the two strengths decomposing the leibnizator, induced by the fact that the two identifications
$X\otimes TY+L\partial X\otimes TY\cong TX\otimes TY\cong TX\otimes Y + TX\otimes L\partial Y$
are obtained from the distributivity isomorphisms and the symmetry of
$\mathbin {{\otimes _{\mathrm{Day}}}}$
, compatible with
$\ell ',\ell ''$
in the sense that

which boils down to the equations
The composite of the two isomorphisms at the top of Equation (73), using again the identification
$T\cong \text{id}+L\partial$
, is the morphism

obtained swapping and rebracketing the two central terms.
Remark 4.20. For a left-scopic differential 2-rig equipped with a tensor-hom derivative, as in Remark 2.26, the following generalisation of Lemma 4.19 holds: if
$LI$
is such that the monoid
$[LI,LI]$
is commutative, then the monad
$\partial L$
is commutative.Footnote
17
Remark 4.21. This seems to be as far as one can get: with Lemma 4.18, one lifts
$\partial$
to a endofunctor
$\hat \partial$
of
$\textsf{EM}(\partial L)$
, a category that however is not monoidal (a monoidal structure would come from an oplax monoidal structure on
$\partial L$
); on the other hand,
$\textsf{Kl}(\partial L)$
is (symmetric) monoidal thanks to the lax monoidal structure of Equations (71), (72) and Lemma 4.19, but a lift of
$\partial$
to
$\textsf{Kl}(\partial L)$
would come from a distributive law
$\partial \partial L \Rightarrow \partial L\partial$
, in the opposite direction of Equation (68).
4.2 Differential and co/monadic dynamics:
${\textsf{Mly}}_{\boldsymbol{\mathcal{K}}}{(\partial ,B)}$
Besides monoidal automata in the category
${\textsf{Mly}}_{\textsf{Spc}}(L,B) = {\textsf{Mly}}_{\textsf{Spc}}^\otimes (y[{1}],B)$
, one can exploit the other adjunction
$\partial \dashv R$
in which
$\partial$
sits, and this leads naturally to the study of categories
${\textsf{Mly}}_{\textsf{Spc}}(\partial ,B)$
of differential automata, where dynamics are induced by the subsequent derivatives of a state object
$E,\partial E,\dots ,\partial ^n E = E^{(n)},\dots$
Then, from the triple of adjoints
$L\dashv \partial \dashv R$
, a ‘monad-comonad’ and ‘comonad-monad’ adjunction
$L\partial \dashv R\partial$
and
$\partial L\dashv \partial R$
arises.
One can then put the categories
${\textsf{Mly}}_{\textsf{Spc}}(L\partial ,B)$
and
${\textsf{Mly}}_{\textsf{Spc}}(\partial L,B)$
under the spotlight using the language of Section 3. This is what we do in Section 5 below after we address the problem in more generality.
We want to study categories
${\textsf{Mly}}_{\mathcal{K}}{(T,B)}$
of
$(T\dashv S)$
-automata where
$T$
is a left adjoint monad, and dually, categories
${\textsf{Mly}}_{\mathcal{K}}{(Q,B)}$
of
$(Q\dashv R)$
-automata where
$Q$
is a left adjoint comonad.
In the case of a left adjoint monad, several technical results can be used to make the description of the categories
${\textsf{Mly}}_{\mathcal{K}}{(T,B)}$
easier:
-
• if
$T$
is a left adjoint monad, with
$S$
as right adjoint comonad, its Eilenberg–Moore category
$\mathcal{K}^T$
is cocomplete, with colimits preserved by the forgetful functor; in fact, more is true: -
• if
$T$
is a left adjoint monad, with
$S$
as right adjoint comonad, colimits in
$\mathcal{K}^T$
are created by
$U$
, which in fact is comonadic and
$\mathcal{K}^T$
identifies with the coEilenberg–Moore category of
$S$
.
The first general observation is completely elementary but already useful: considering that co/monads admit co/unit natural transformations to/from the identity functor, and given the functoriality of
${\textsf{Mly}}_{\mathcal{K}}{(\,\_\,,B)}$
, we get canonical choices of functors
One can immediately prove from the description of
${\textsf{Mly}}_{\mathcal{K}}{(\text{id}_{\mathcal{K}},B)}$
as a pullback in Equation (26) that
Remark 4.22. The category
${\textsf{Mly}}_{\mathcal{K}}{(\text{id}_{\mathcal{K}},B)}$
is the category of coalgebras for the functor
$\,\_\,\times B$
.
Definition 4.23 (Bar and cobar Mealy complexes). Arguing again by (contravariant) functoriality, the monad structure on the functor
$T$
specifying the dynamics yields an augmented cosimplicial object

obtained feeding the bar resolution of
$T$
to the functor
${\textsf{Mly}}_{\mathcal{K}}{(\,\_\,,B)}$
(Goerss and Jardine Reference Goerss and Jardine2009; Wilf Reference Wilf1990, 8.6).
Dually, the cobar resolution of a left adjoint comonad
$Q$
yields an augmented simplicial object

We refer to these as the bar complex of
$T$
-automata and the cobar complex of
$Q$
-automata.
Remark 4.24. Some intuition on Definition 4.23 is due. Let
$k$
be a field and
$A$
be a
$k$
-algebra, or more generally let
$A$
an internal monoid in a monoidal category
$(\mathcal{K},\otimes ,I)$
; the bar resolution of the monad
$T_A=A\otimes _k\,\_\,$
is then useful to compute the Hochschild cohomology of
$A$
, as the bar complex of
$T_A$
is its free resolution as
$A$
-
$A$
-bimodule. One generalises this to an arbitrary monad in the fashion of Duskin (Reference Duskin1975) and Barr and Beck (Reference Barr and Beck1969) and gets the bar resolution as a ‘thickening’ of
$T$
into a simplicial object.
Remark 4.25. Let
$\mathcal{K}$
be locally presentable. Given that
$\mu ^* : {\textsf{Mly}}_{\mathcal{K}}{(T,B)}\to {\textsf{Mly}}_{\mathcal{K}}{(T^2,B)}$
acts by precomposition with
$\mu$
, sending
$\left |\!\left |\!\frac {E}{d,s}\!\right |\!\right |$
to
$\left |\!\left |\!\frac {E}{d\mu _E,s\mu _E}\!\right |\!\right |$
a swift application of the adjoint functor theorem yields a right adjoint
$\mu _*$
to
$\mu ^*$
.
Remark 4.26 (On monadic automata). It is reasonable to describe Eilenberg–MooreFootnote
18
Mealy automata, refining the pullbacks in Definition 3.1 by using the forgetful from
$\mathcal{K}^T$
(the Eilenberg–Moore category of
$T$
) instead of
$\textsf{Alg}(T)$
and obtaining categories
$\mu {\textsf{Mly}}_{\mathcal{K}}{(T,B)}$
and
$\mu {\textsf{Mre}}_{\mathcal{K}}(T,B)$
of monadic Mealy and monadic Moore automata; in this case, some of the observations listed here carry over:
-
•
$\mu {\textsf{Mly}}_{\mathcal{K}}{(\text{id}_{\mathcal{K}},B)}$
is just the slice
$\mathcal{K}/B$
, so the free-forgetful adjunction
$F^T:\mathcal{K}\rightleftarrows \mathcal{K}^T : U^T$
induces a ‘pulled-back’ adjunction
$\mu {\textsf{Mly}}_{\mathcal{K}}{(T,B)}\rightleftarrows T/B$
. -
• Let
$S,T$
be monads on
$\mathcal{K}$
. Whenever a morphism of monads
$\lambda : T\Rightarrow S$
in the sense of Barr and Wells (Reference Barr and Wells1985, Section 6.1) is given, the induced (colimit-preserving) functor
$\mathcal{K}^S\to \mathcal{K}^T$
(cf. [ibi, Thm. 6.3]) induces in turn a (colimit-preserving) functor
$\mu {\textsf{Mly}}_{\mathcal{K}}{(S,B)}\to \mu {\textsf{Mly}}_{\mathcal{K}}{(T,B)}$
.
Remark 4.27. Working in the more restrictive case of Eilenberg–Moore automata is, however, rather unrewarding for a variety of reasons: first of all, there is the trivial remark that as soon as a carrier
$E$
has a structure
$a : TE\to E$
of
$T$
-algebra, its ‘dynamics’ is pretty trivial, as
$a$
must be a split epi with a privileged right inverse
$\eta _E$
; thus, the composition
$s\circ \eta _E$
‘knows everything’ about the evolution of
$\left |\!\left |\!\frac {E}{d,s}\!\right |\!\right |$
. Second, the conditions for a natural transformation to induce functors between Eilenberg–Moore categories are fairly more imposing, and third, the morphisms inducing an analogue of Equations (77), (78) are simply not available.
Something can be said, however, if we work ‘interfibre’ using Definition 3.8. A monad morphism in the sense of Street (Reference Street1972) induces a monad
$\hat S$
on
$\mathcal{K}^T$
so that the forgetful
$U^T : \mathcal{K}^T\to \mathcal{K}$
is an intertwiner; hence, leveraging on Definition 3.8, we can induce a functor

Dually, one can try to render the free functor
$F_T : \mathcal{K} \to \mathcal{K}_T$
into the Kleisli category of
$T$
strong monoidal for a monoidal structure on
$\mathcal{K}_T$
; this will yield functors
${\textsf{Mly}}_{\mathcal{K}}{(S,B)} \to {\textsf{Mly}}_{\mathcal{K}_T}(\check S,F_TB)$
. The matter is investigated in the second part of Guitart (1980) when
$F=A\,\otimes \,\_\,$
. For example, consider
$\mathcal{K}$
monoidal and with countable sums preserved by the tensor; then, every oplax monoidal monad
$T : \mathcal{K}\to \mathcal{K}$
lifts a monoidal structure on
$\mathcal{K}_T$
and one can then consider
$\mathcal{K}_T$
-valued
$F$
-machines, cf. Guitart (Reference Guitart1980, Prop. 30).
Remark 4.28 (On the proper choice of output objects). The construction of Definition 3.1 depends not only on
$F$
but also on an output object
$B$
, usually thought as a ‘space of responses’ the machine
$\left |\!\left |\!\frac {E}{d,s}\!\right |\!\right |$
can give as output. The choice of what
$B$
best models a given problem has to be made each time according to the nature of the problem itself. However, one is almost always led to consider choices of
$B$
that are ‘spaces of truth values’, like a Heyting or Boolean algebra, or spaces of probabilities, like the closed unit interval
$[0,1]$
. The co/completeness of
${\textsf{Mly}}_{\mathcal{K}}{(F, B)}$
and
${\textsf{Mre}}_{\mathcal{K}}(F,B)$
established in Remark 3.2 entails that all algebraic structures (=all essentially algebraic theories) can be interpreted in such categories, and the nature of
${\textsf{Spc}}$
as a presheaf topos entails that the construction of an object of internal real numbers is more or less straightforward. In particular,
-
• Hadamard Heyting/Boolean algebra objects are just species
$B : {\textsf{P}} \to \textsf{Set}$
which factor through the subcategory
$\textsf{Heyt}$
or
$\textsf{Bool}$
, the simplest case being the constant species
$\mathfrak{B}$
at the Booleans
$\textbf {B}=\{0\lt 1\}$
, with trivial action of each
$S_n$
(
$\mathfrak{B}$
is the subobject classifier of
${\textsf{Spc}}$
; another example of a Boolean algebra object in
${\textsf{Spc}}$
is the species
$\wp$
of subsets of Example 2.5.
$\scriptstyle \mathrm{ES}_{\scriptstyle 2}$
); -
• Regarding
${\textsf{Spc}}$
as a presheaf topos, it is easy to determine that the NNO, the object of integers, rationals and internal Dedekind reals (Mac Lane and Moerdijk Reference Mac Lane and Moerdijk1992, Section VI.1) can be constructed as constant functors
$c_{\mathbb{N}},c_{\mathbb{Z}},c_{\mathbb{Q}},c_{\mathbb{R}}$
at natural, integers, rationals and reals in
$\textsf{Set}$
.
5. The Fourfold Way
The ‘fourfold way’ is the study of the categories
${\textsf{Mly}}_{\mathcal{K}}{(L\partial ,B)}$
(in relation with the right adjoint
$R\partial$
of the dynamics) and
${\textsf{Mly}}_{\mathcal{K}}{(\partial L,B)}$
(in relation with the right adjoint
$\partial R$
). The four functors
$L\partial ,R\partial ,\partial L,\partial R$
relate to each other and admit explicit descriptions giving rise to a rich theory of
$\partial L$
- and
$L\partial$
-algebras serving to study the indexed categories
${\textsf{Mly}}_{\textsf{Spc}}(L\partial ),{\textsf{Mly}}_{\textsf{Spc}}(\partial L)$
.
Remark 5.1 (On the structure of
$L\partial$
and
$\partial L$
). Rajan (Reference Rajan1993) provides explicit formulas for the monads and comonads associated with
$L\dashv \partial \dashv R$
. Let
$\mathfrak{F} : {\textsf{P}} \to \textsf{Set}$
be a species. Then,
-
•
$L\partial \mathfrak{F}$
acts as
$y[{1}]\mathbin {{\otimes _{\mathrm{Day}}}} \partial \mathfrak{F}$
; a structure of type
$L\partial \mathfrak{F}$
on a finite set
$A$
chooses a point of
$A$
, and an
$\mathfrak{F}$
-structure on the complement of that point. -
•
$R\partial \mathfrak{F}$
acts as
$A\mapsto \prod _{a\in A}\mathfrak{F} [(A\smallsetminus \{a\})\sqcup \{\bullet \}]$
, that is, as
$A\mapsto (\mathfrak{F} A)^A$
; a structure of type
$R\partial \mathfrak{F}$
on a finite set
$A$
chooses an
$\mathfrak{F}$
-structure on
$A$
for every
$a\in A$
. With a similar reasoning, -
•
$\partial L\mathfrak{F} = \partial (y[{1}]\mathbin {{\otimes _{\mathrm{Day}}}} \mathfrak{F} )$
is the functor
$\mathfrak{F} + L\partial \mathfrak{F}$
.Footnote
19
-
•
$\partial R\mathfrak{F}$
acts as
$A\mapsto \mathfrak{F}[A]^A \times \mathfrak{F}[A]=R\partial \mathfrak{F}[A]\times \mathfrak{F}[A]$
.
Remark 5.2. The structures of each of these four functors intervene in defining the monad structures on
$\partial L$
and
$R\partial$
and the comonad structures on
$L\partial$
and
$\partial R$
:
-
$\scriptstyle \mathrm{FW}_{\scriptstyle 1}$
) The comultiplication of the comonad
$L\partial$
has a particularly simple form, being obtained from the coproduct injection(80)
\begin{align} L\partial \mathfrak{F} & \to L\partial \mathfrak{F} + LL\partial \partial \mathfrak{F} \notag \\ & \cong L(\partial \mathfrak{F}+L\partial \partial \mathfrak{F})\notag \\ & \cong L\partial L\partial \mathfrak{F}. \end{align}
-
$\scriptstyle \mathrm{FW}_{\scriptstyle 2}$
) the unit of the monad
$R\partial$
is a natural transformation with components
$\mathfrak{F} A\to (\mathfrak{F} A)^A$
; this can be taken to be the constant map, that is, the mate of the first projection
$\mathfrak{F} A\times A \to \mathfrak{F} A$
; the multiplication is instead obtained from the (mate of the) counit
$\varepsilon = \pi _2 : R\partial \mathfrak{F} A \times \mathfrak{F} A \to \mathfrak{F} A$
of
$\partial \dashv R$
. -
$\scriptstyle \mathrm{FW}_{\scriptstyle 3}$
) The unit of the monad
$\partial L$
is the first coproduct injection, and the multiplication is induced as:(81)
if
$\varepsilon$
is the counit of
$L\dashv \partial$
. We observed in Lemma 4.19 that this monad is commutative. -
$\scriptstyle \mathrm{FW}_{\scriptstyle 4}$
) To conclude, the comultiplication of the comonad
$\partial R$
is obtained from the unit of
$\partial \dashv R$
as the map with components(82)
denoting
$R\mathfrak{F}^{\text{id}}$
the functor
$A\mapsto (R\mathfrak{F} A)^A$
.
The discussion in Remark 2.30 yields restrictive assumptions on when a differential 2-rig
$(\mathcal{R},\partial )$
, such that
$\partial$
is a right adjoint with left adjoint
$L$
, gives rise to a derivation
$L\partial$
.
Recall that the differential operator
$\Upsilon = \sum _{i=1}^n x_i\frac {\partial }{\partial x_i}$
in
$\mathbb{R}^n$
is called ‘Euler homogeneity operator’, cf. Gel’fand and Shilov (Reference Gel’fand and Shilov1968, p. 296); another name for the same operation, ‘numbering derivation’, comes from Physics where if
$X^n$
represents something like a state of
$n$
bosons, like photons in a laser, then the differential operator
$X \cdot D$
takes
$X^n$
to
$n X^n$
, where the coefficient ‘counts’ or ‘numbers’ the bosons.
This leads to the following definition:
Remark 5.3 (The Euler derivation on
${\textsf{Spc}}$
). The functor
$L\partial = y[{1}]\mathbin {{\otimes _{\mathrm{Day}}}} \partial : {{\textsf{Spc}}}\to {{\textsf{Spc}}}$
of Remark 5.2.
$\scriptstyle \mathrm{FW}_{\scriptstyle 1}$
is a derivation, and furthermore a left adjoint (with right adjoint
$R\partial$
); hence,
$({{\textsf{Spc}}},\mathbin {{\otimes _{\mathrm{Day}}}},L\partial )$
is a differential 2-rig for the doctrine of all colimits.
Armed with the explicit descriptions in Remark 5.2, we can attempt to unveil the structure of the categories
$\textsf{Alg}(L\partial )$
and
$\textsf{Alg}(\partial L)$
, as building blocks for the category
${\textsf{Mly}}_{\textsf{Spc}}({L\partial },B)$
and
${\textsf{Mly}}_{\textsf{Spc}}({\partial L},B)$
. A thorough analysis of co/algebra structures for such interesting endofunctors of
${\textsf{Spc}}$
seems to be missing from the existing literature. Rajan (Reference Rajan1993) goes as close as determining in painstaking detail the monad and comonad structures on
$\partial L,\partial R,L\partial ,R\partial$
but doesn’t seem to provide a characterisation for their endofunctor or Eilenberg–Moore algebras, or even for the (much easier, and somewhat more inspiring) bare endofunctor algebras. As one would expect from the adjunction relations
$L\partial \dashv R\partial$
and
$\partial L\dashv \partial R$
, the structures of
$L\partial$
-algebras (=
$R\partial$
-coalgebras) and
$\partial L$
-algebras (=
$\partial R$
-coalgebras) are tightly related. The following computations all follow a general argument, given Remark 5.1 a
$\partial L$
-algebra structure on a species
$\mathfrak{F}$
consists of a pair
$\left [\substack {u\\[3pt] v}\right ] : \mathfrak{F} + L\partial \mathfrak{F} \to \mathfrak{F}$
of maps
$u : \mathfrak{F} \to \mathfrak{F}$
and
$v : \partial \mathfrak{F} \to \partial \mathfrak{F}$
of endomorphisms, one for
$\mathfrak{F}$
and one for
$\partial \mathfrak{F}$
.
Example 5.4. A
$\partial L$
-algebra structure on the exponential species
$\mathfrak{E}$
reduces to a pair
$u:\mathfrak{E}\to \mathfrak{E}$
and
$v:L\mathfrak{E}\to \mathfrak{E}$
, which in turn reduces to another endomap of
$\mathfrak{E}$
, given how
$\mathfrak{E}$
is a Napier object. Then,
$\partial L$
-algebra structures on
$\mathfrak{E}$
are representations of the free monoid
$\mathbb{N}\langle d,c\rangle$
(cf. Guitart Reference Guitart2014a, Reference Guitart2014b, Reference Guitart2017) on two generators
$d,c$
over the set
$\mathfrak{E}[{1}]$
(because endomaps of
$\mathfrak{E}$
are in bijection with elements of
$\mathfrak{E}[{1}]$
, by Yoneda). For set species, this must be trivial, for linear species this amounts to a ‘character’ for the monoid representation
$\mathbb{N}\langle d,c\rangle$
.
Example 5.5. For the species
${\mathfrak{L}}$
of linear orders, a
$\partial L$
-algebra map is a map
$\mathfrak{L}\otimes \mathfrak{L} \to \mathfrak{L}$
, since
but then
${{\mathfrak{L}}}+y[{1}] \mathbin {{\otimes _{\mathrm{Day}}}} {{\mathfrak{L}}} \mathbin {{\otimes _{\mathrm{Day}}}} {{\mathfrak{L}}}={{\mathfrak{L}}} \mathbin {{\otimes _{\mathrm{Day}}}}(1+y[{1}]\mathbin {{\otimes _{\mathrm{Day}}}}{{\mathfrak{L}}})$
, and the fact that
$1+y[{1}]\mathbin {{\otimes _{\mathrm{Day}}}}{{\mathfrak{L}}}\cong {{\mathfrak{L}}}$
is exactly the universal property satisfied by
${\mathfrak{L}}$
as initial algebra of
$1+y[{1}]\mathbin {{\otimes _{\mathrm{Day}}}}\,\_\,$
.
Example 5.6. A similar line of reasoning leads to the characterisation of
$\partial L$
-algebra structures on the species of cycles, Example 2.5.
$\scriptstyle \mathrm{ES}_{\scriptstyle 5}$
: since
$\partial {\mathfrak{C}\mathfrak{y}\mathfrak{c}}\cong {{\mathfrak{L}}}$
, structures of
$\partial L$
-algebras are pairs,
${\mathfrak{C}\mathfrak{y}\mathfrak{c}} \to {\mathfrak{C}\mathfrak{y}\mathfrak{c}}$
and
${{\mathfrak{L}}} \to {{\mathfrak{L}}}$
of endomorphisms.
Example 5.7. For the species
$\mathfrak{S}$
of permutations of Example 2.5, a
$\partial L$
-algebra structure consists of a pair
$\left [\substack {u\\[3pt] v}\right ] :\mathfrak{S}+L\partial \mathfrak{S}\to \mathfrak{S}$
, where
$v$
can in turn be simplified into
$\mathfrak{S}\mathbin {{\otimes _{\mathrm{Day}}}}(1+y[{1}]\mathbin {{\otimes _{\mathrm{Day}}}}{{\mathfrak{L}}})\cong \mathfrak{S}\mathbin {{\otimes _{\mathrm{Day}}}}{{\mathfrak{L}}}$
using Example 2.42.
6. Other Flavour of Species
The purpose of this section is to schematically extend the results of the paper (with particular attention to Theorem 4.1, Section 7.2), to categories that arise as generalisations of
${\textsf{Spc}}$
or that exhibit similar properties than the ones of
${\textsf{Spc}}$
.
For example, when the set
$S$
in Definition 2.1 has more than one element, we get coloured species (Joyal Reference Joyal1986, Section 1.1; Méndez Reference Dixon and Mortimer1996, 2.1.4, (6)); when instead of bijective functions of finite sets we take injective functions
$\textsf{Inj}$
, the presheaf category
$[\textsf{Inj}^{\mathrm{op}},\textsf{Set}]$
is species-like; it’s the category of nominal sets of Pitts (Reference Pitts2013), also known as the Schanuel topos; when, instead of finite sets and bijections, we consider finite ordinals and monotone bijections, we get a very rigid domain category for linearly ordered species (Leroux and Viennot Reference Leroux, Viennot, Labellea and Leroux1986).
6.1 Coloured species
The free symmetric monoidal category on a set
$S$
(regarded as a discrete category), as defined in Definition 2.1, admits an explicit description in the following terms.
Think of
$S$
as a set of colours (the terminology comes from operad theory, cf. Yau Reference Yau2016); the category
${\textsf{P}}[S]$
has objects the finite sets
$[n] := \{1,\dots ,n\}$
equipped with a function
$c : [n] \to S$
called a coloration or colouring function, and morphisms the bijections
$\sigma : [n]\to [n]$
‘compatible with the coloration’, in the sense that they induce an indexed family of bijection
$\sigma _s : [n]_s \to [n]_s$
among the fibres
$[n]_s = c^{-1}s$
. In other words,
${\textsf{P}}[S]$
is the comma category

Presented in this way,
${\textsf{P}}[S]$
is a coloured PROP: colourings can be tensored using the universal property of sums of finite sets:
where
$\left [\substack {c\\[3pt] d}\right ] : i\mapsto \texttt {if}\kern .4em [i\le n] \kern .4em\texttt {then}\kern .4em c(i) \kern .4em\texttt {else}\kern .4em d(i)$
.
As a consequence, the presheaf category of
$(S,\textsf{Set})$
-species (or
$S$
-coloured species, or
$S$
-species for short) of Definition 2.1 acquires a Day convolution monoidal structure.
An explicit description of the (binary and
$n$
-fold by induction) convolution of
$S$
-species
$M,N : {\textsf{P}}[S] \to \textsf{Set}$
is needed in order to equip
$S\text{-}{{\textsf{Spc}}}$
with a plethystic substitution structure; this is given in Méndez paper (Méndez Reference Dixon and Mortimer1996, 2.1), and the substitution product, together with the differential structure, has been extensively studied in Fiore et al. (Reference Fiore, Gambino, Hyland and Winskel2008) and Fiore (Reference Fiore2005): we address the reader there for further details. The coend that defines the Day convolution (=Cauchy product) splits, in this case, as the sum
where
$p,q\vdash n$
denotes the set of decompositions
$([p],c),([q],d) \in {\textsf{P}}[S]$
of
$[n]$
, that is, the pairs of objects of
${\textsf{P}}[S]$
such that
$([n],c)=\left [\substack {p\\[3pt] q}\right ] : [p+q] \to S$
.
Remark 6.1. Note how this decomposition is possible as a consequence of the fact that
$(S,\textsf{Set})\text{-}{{\textsf{Spc}}}$
splits as a product of groupoids
${\textsf{P}}[S]\equiv \prod _{s\in S}{\textsf{P}}$
(in a similar fashion
$\textsf{P}$
splits as a product of groups in Equation (4)).
Theorem 6.2.
The category of
$S$
-species admits an Hadamard product (given by the Cartesian structure on
$\textsf{Cat}({\textsf{P}}[S],\textsf{Set})$
) and a Cauchy product (Day convolution) given by Equation (86). Moreover, it admits partial derivative functors
$\frac \partial {\partial s}$
that ‘derive along a colour’
$s\in S$
and satisfy the commutation rule
$\frac \partial {\partial s}\circ \frac \partial {\partial t}\cong \frac \partial {\partial t}\circ \frac \partial {\partial s}$
for each
$s,t\in S$
.
Proof.
To fix ideas, let
$S=\{s,t\}$
have just two elements; extending the following argument to an arbitrary set
$S$
is obvious. Define
and
$\frac \partial {\partial t}$
similarly. With this definition, the square

can be decomposed into commutative sub-squares in a straightforward way.
From Equation (88), it is evident how each
$\frac \partial {\partial s}$
admits a left and a right adjoint, thus giving to
$S\text{-}{{\textsf{Spc}}}$
the structure of a scopic differential 2-rig
$(S\text{-}{{\textsf{Spc}}},\frac \partial {\partial s})$
for each choice of colour
$s\in S$
. As a consequence, all theorems that apply to a scopic differential 2-rig apply to
$S\text{-}{{\textsf{Spc}}}$
.
6.2
$k$
-Vector species
Definition 6.3 (Vector species). Let
$k$
be a field and
$S$
a set; the category of
$k$
-vector
$S$
-species is the category of
$(S,k\text{-}\textsf{Vect})$
-species in the sense of Definition
2.1
.
The category of
$(1,k\text{-}\textsf{Vect})$
-species is simply called the category of (
$k$
-)vector species. Similar definitions hold more generally for
$R$
-modules, but vector species are a more interesting subject for enumerative combinatorics due to a highly nontrivial theory of Hopf monoids under Day convolution, cf. Aguiar and Mahajan (Reference Aguiar and Mahajan2010), that has (evidently) relations to the linear representations of the symmetric groups. For the purposes of the present work, moving to vector species maintains all the core results and enriches some. In particular, vector species carry the same monoidal structures of Remark 2.9 (i.e., the basic building block for the interest of combinatorialists and algebraists/geometers in vector species, cf. Aguiar and Mahajan Reference Aguiar and Mahajan2010; Loday and Vallette Reference Loday and Vallette2012), they form a scopic differential 2-rig (with a similar argument of Footnote 11). As a consequence, all theorems that apply to a scopic differential 2-rig apply to
$(S,k\text{-}\textsf{Vect})\text{-}{{\textsf{Spc}}}$
.
6.3 Linearly ordered species
The category
$\textsf{Lin}$
is defined in Leroux and Viennot (Reference Leroux, Viennot, Labellea and Leroux1986) as the category of totally ordered finite sets
$\langle n\rangle := \{1\lt \dots \lt n\}$
and order-preserving bijections
$\sigma : \langle n\rangle \to \langle n\rangle$
. Let’s give a more intrinsic presentation for it.
Definition 6.4.
Let
$S_n$
be the symmetric group of an
$n$
-set
$[n]$
. Let
$r : BS_n \to \textsf{Set}$
be the (functor associated with the) left regular representation of
$S_n$
, that is, the action
$S_n\to S_n$
given by left multiplication; denote
$[S_n/\!\!/ S_n]$
the associated action groupoid (Higgins et al. Reference Higgins1971), that is, the strict pullback

Remark 6.5. Notice that since the action is strictly transitive,
$[S_n/\!\!/ S_n]$
consists of the maximally connected groupoid on the underlying set of
$S_n$
. As such, the unique functor
$[S_n/\!\!/ S_n]\to 1$
is an equivalence of categories.
Definition 6.6 (The
$\mathbb{L}$
category and
$\mathbb{L}$
-species). We define the category
$\mathbb{L}$
as the coproduct (in the category of groupoids)
$\sum _{n\ge 0} [S_n/\!\!/ S_n]$
; if
$\mathcal{V}$
is a Bénabou cosmos, the category of
$\mathcal{V}$
-valued
$\mathbb{L}$
-species is the category of functors
$\mathbb{L} \to \mathcal{V}$
.
In the following, we use the shorthand of denoting the category of
$\textsf{Set}$
-valued
$\mathbb{L}$
-species simply as
$\mathbb{L}{{\textsf{Spc}}}$
. As a consequence of the equivalence established in Remark 6.5, an
$\mathbb{L}$
-species is essentially a symmetric sequence:
However, the interest in
$\mathbb{L}$
-species arises as (contrary to what happens for
$(S,\textsf{Set})\text{-}{{\textsf{Spc}}}$
, cf. Bergeron et al. Reference Bergeron, Labelle and Leroux1998, Section 2.5) differential equations in
$\mathbb{L}{{\textsf{Spc}}}$
have unique solutions [ibi, Section 5.0], following more closely the properties of formal power series.
Usually, one compensates for the extreme rigidity of the domain category of an
$\mathbb{L}$
-species fixing a commutative ring
$A$
and ‘enriching’ the codomain of species in the category of
$A$
-weighted sets (cf. Bergeron et al. Reference Bergeron, Labelle and Leroux1998, Section 2.3).
Although
$\mathbb{L}{{\textsf{Spc}}}$
is not a category of the form
$(S,\mathcal{V})\text{-}{{\textsf{Spc}}}$
in the sense of Definition 2.1, it is a ‘species-like’ category, in the sense that it retains similar properties of the ones enjoyed by
${\textsf{Spc}}$
:
-
• Similarly to Remark 2.2.
$\scriptstyle \mathrm{UPS}_{\scriptstyle 2}$
,
$\mathbb{L}$
is the skeleton of the category
$\textsf{Lin}$
of finite totally ordered sets and order-preserving bijections (here, relabelling functions can exist between sets whose elements have different ‘names’); -
•
$\textsf{Lin}$
carries a monoidal structure given by ordinal sum, cf. Bergeron et al. (Reference Bergeron, Labelle and Leroux1998, Section 5.1), defined as
$\langle n\rangle \oplus \langle m\rangle := \{1\lt \dots \lt n\lt 1'\lt \dots \lt m\}$
; as a consequence,
$\mathbb{L}{{\textsf{Spc}}}$
has a Day convolution
$\mathbin {{\otimes _{\mathrm{Day}}}}^{\mathbb{L}}$
monoidal structure and a plethystic substitution operation, similarly to Remark 2.9.
$\scriptstyle \mathrm{MS}_{\scriptstyle 3}$
. -
•
$\mathbb{L}{{\textsf{Spc}}}$
is a differential 2-rig under the derivative functor
$\partial \mathfrak{F}\langle n\rangle := \mathfrak{F}\langle 1\oplus n\rangle$
(the new element
$1$
is adjoined to
$\langle n\rangle$
as a bottom element). -
•
$\mathbb{L}{{\textsf{Spc}}}$
is equipped with structures that are not present, or behave worse, in
${\textsf{Spc}}$
: for example, it carries a Heaviside product,Footnote
20
defined as:(91)and an antiderivative operation
\begin{align} F\bigcirc \kern -9.5pt{*}\, G := F\mathbin {{\otimes _{\mathrm{Day}}}}^{\mathbb{L}} y[{1}]\mathbin {{\otimes _{\mathrm{Day}}}}^{\mathbb{L}} G, \end{align}
$\int F$
, defined (on objects of
$\textsf{Lin}$
) as:(92)where
\begin{align} ({\smallint} F)\varnothing = \varnothing \qquad \qquad ({\smallint} F) U = F(U\setminus \{\min U\}) \end{align}
$\min U$
is the bottom element of
$U$
. Observe that
$\partial ({\smallint} F)=F$
.
Remark 6.7. Note that
$\partial$
defined above admits a left and a right adjoint, with a similar argument as the one given in Footnote 11; this makes
$\mathbb{L}{{\textsf{Spc}}}$
a scopic differential 2-rig.
As a consequence, all theorems that apply to a scopic differential 2-rig apply to
$\mathbb{L}{{\textsf{Spc}}}$
.
6.4 Möbius species
Definition 6.8.
Let
$\textsf{Set}$
be the category of sets, equipped with the tautological functor
$J:\textsf{Set}\to \textsf{Cat}$
regarding each set as a discrete category; let
$\textsf{Pos}^{\top \bot }$
be the category of posets with top and bottom, where morphisms are top- and bottom-preserving monotone maps; consider the comma category

Unwinding the definition,
$(J/\textsf{Pos}^{\top \bot })$
is the category having
-
• objects the pairs
$(X,P : X \to \textsf{Pos}^{\top \bot })$
where
$X$
is a set and
$P$
is a functor: note that this means
$P = \{P_x\mid x\in X\}$
is a
$X$
-parametric family of posets with top and bottom; -
• morphisms
$(X,P)\to (Y, Q)$
the functions
$h : X\to Y$
such that
$Q\circ h = P$
. Each such
$h$
splits into a family of monotone maps
$P_x \to Q_{hx}$
;
Remark 6.9. The category
$(J/\textsf{Pos}^{\top \bot })$
is a complete and cocomplete (in fact, locally presentable), monoidal closed category.
Proof.
Colimits are computed in
$(J/\textsf{Pos}^{\top \bot })$
as in
$\textsf{Set}$
(created by the vertical left functor in Equation (93)); the category is accessible, as it arises as a limit in accessible categories and accessible functors; thus, it is locally presentable, hence also complete (limits are, however, not straightforward to describe – even characterising a terminal object is a bit convoluted).
As for its monoidal closed structure, call a map
$P\times Q\to R$
in
$\textsf{Pos}^{\top \bot }$
balanced if all
$f(p,\,\_\,) : Q\to R$
and
$f(\,\_\,,q) : P\to R$
preserve top and bottom elements and call
$\textsf{BPos}(P\times Q,R)$
the set of all such balanced maps.
Then, the existence of a symmetric tensor product
$\hat \otimes$
such that
‘representing balanced maps’ follows from a standard argument on lifting monoidal structures to categories of algebras (
$\textsf{Pos}^{\top \bot }$
is the category of algebras for the simultaneous completion under initial and terminal object, regarding
$\textsf{Pos}\subset \textsf{Cat}$
).
This gives a monoidal (closed) structure to
$(J/\textsf{Pos}^{\top \bot })$
where tensor and exponential are defined as:
\begin{gather} X\times Y \xrightarrow {P\times Q} \textsf{Pos}^{\top \bot }\times \textsf{Pos}^{\top \bot } \xrightarrow {\hat \otimes } \textsf{Pos}^{\top \bot },\notag \\ X\times Y \xrightarrow {P\times Q} (\textsf{Pos}^{\top \bot })^{\mathrm{op}}\times \textsf{Pos}^{\top \bot } \xrightarrow {[\,\_\,,\,\_\,]} \textsf{Pos}^{\top \bot }. \end{gather}
Thus,
$((J/\textsf{Pos}^{\top \bot }), \hat \otimes )$
works as Bénabou cosmos, and we can define
Definition 6.10 (Möbius species). The category
$\textsf{M}{{\textsf{Spc}}}$
of Möbius species is the category of functors
${\textsf{P}} \to (J/\textsf{Pos}^{\top \bot })$
, that is, the category
$(1,(J/\textsf{Pos}^{\top \bot }))$
-species in the notation of Definitions
2.1
and
6.8
.
Since
$\textsf{P}$
is a groupoid, each functor
${\textsf{P}}\to (J/\textsf{Pos}^{\top \bot })$
must factor through the core of
$(J/\textsf{Pos}^{\top \bot })$
; calling ‘
$\textsf{Int}$
’ such core we obtain (Méndez and Yang Reference Méndez and Yang1991, Definition 2.1) where
$h$
is assumed to be a bijection (and the indexing sets are finite, hence
$h : [n] \to [n]$
is just a permutation), inducing order-isomorphisms
$P_i \cong Q_{\sigma i}$
for each
$i = 1,\dots ,n$
.
Now, the definition of Day convolution, plethystic substitution and derivative are as in Section 2, just changing base of enrichment for
$(J/\textsf{Pos}^{\top \bot })$
; the derivative endofunctor
$\partial : \textsf{M}{{\textsf{Spc}}} \to \textsf{M}{{\textsf{Spc}}}$
has a left and a right adjoint, thus making
$(\textsf{M}{{\textsf{Spc}}},\mathbin {{\otimes _{\mathrm{Day}}}},\partial )$
into a scopic differential 2-rig.
As a consequence, all theorems that apply to a scopic differential 2-rig apply to
$\textsf{M}{{\textsf{Spc}}}$
.
6.5 Nominal sets
Definition 6.11. Consider the chain of inclusions
each identifying a group
$S_n$
as the subgroup of
$S_{n+1}$
spanned by the elements fixing
$n+1$
; the colimit
$S_\infty$
of this chain in the category of groups is called the infinite symmetric group and consists of all bijections of
$\mathbb{N} = \{0,1,2,\dots \}$
that fix all but finitely many elements (call these finitely supported permutations).
The group-theoretic properties of
$S_\infty$
are the subject of intense study in connection with representation theory (Dixon and Mortimer Reference Dixon and Mortimer1996; Vershik Reference Vershik2012), the theory of Von Neumann algebras (Okounkov and Vershik Reference Okounkov and Vershik1996; Thoma Reference Thoma1964; Vershik and Kerov 199), ergodic theory, (Glasner Reference Glasner2003; Olshanski Reference Olshanski1991) and descriptive set theory (Kechris Reference Kechris1995) (due to the nature of Polish group of
$S_\infty$
). For us, the connection with computer science (Petrişan Reference Petrişan2010; Pitts Reference Pitts2013), set theory (Blass and Scedrov Reference Blass and Scedrov1992; Felgner Reference Felgner1971; Wraith Reference Wraith1978) and topos theory (Fiore et al. Reference Fiore, Plotkin and Turi1999; Fiore and Menni Reference Fiore and Menni2004) are an additional source of intuition: we define
Definition 6.12 (Nominal species). The category
$\textsf{Nom}$
of nominal sets is the category of (set-theoretic) left actions of
$S_\infty$
, or in other words the category of functors
$F : S_\infty \to \textsf{Set}$
.
So, the category of nominal sets is the topos of
$S_\infty$
-sets. There are equivalent descriptions for
$\textsf{Nom}$
: among them, what we refer to as the Schanuel model for nominal sets, we characterise
-
•
$\textsf{Nom}$
as the category of sheaves for the atomic topology on
$\textsf{Inj}^{\mathrm{op}}$
of finite sets and injections; -
•
$\textsf{Nom}$
as the category of pullback-preserving functors
$\textsf{Inj}\to \textsf{Set}$
.
The category of nominal sets is especially important in light of its relation to the category of species: Fiore and Menni observed that the obvious inclusion
$i:{\textsf{P}}\hookrightarrow \textsf{Inj}$
induces a left adjoint monad
$T_i=i^* \circ \textsf{Lan}_i : {{\textsf{Spc}}} \to {{\textsf{Spc}}}$
, and
$\textsf{Nom}$
identifies to
$\textsf{Kl}(T_i)$
.
Proposition 6.13.
The category
$\textsf{Nom}$
admits a Day convolution monoidal structure
$\mathbin {{\otimes _{\mathrm{Day}}}}$
(regarding it as presheaves over
$S_\infty$
its existence follows from general facts about convolution of
$G$
-sets; in the Schanuel model, one mimics the definition of Remark
2.2
.
$\scriptstyle \mathrm{UPS}_{\scriptstyle 4}$
for injective functions – given injections
$[n]\to [n'],[m]\to [m']$
there is an injection
$[n+n']\to [m+m']$
– and gets the same expression of Equation (8), just sheafified). As a consequence, the category
$(\textsf{Nom},\mathbin {{\otimes _{\mathrm{Day}}}})$
is a 2-rig for the doctrine of all colimits.
$\textsf{Nom}$
also admits a plethystic substitution operation induced by
$\mathbin {{\otimes _{\mathrm{Day}}}}$
and defined similar to Remark
2.9
.
$\scriptstyle \mathrm{MS}_{\scriptstyle 3}$
. Day convolution is a closed monoidal structure, and it can be shown (cf. Menni 2003) that
$\left \{y[{1}],F\right \}_{\mathrm{Day}}$
is a derivative with a left adjoint
$y[{1}]\mathbin {{\otimes _{\mathrm{Day}}}}\,\_\,$
(
$y[{1}]$
is the sheaf associated with the representable on
$[{1}]$
, which is not already a sheaf, cf. Barr and Diaconescu (Reference Barr and Diaconescu1980
, p. 1).
As a consequence, all theorems that apply to a left-scopic differential 2-rig apply to
$\textsf{Nom}$
; incidentally, note that
$\textsf{Nom}$
is an example of a left-scopic differential 2-rig which is not scopic, as
$\partial = \left \{y[{1}],\_\right \}_{\mathrm{Day}}$
can’t have a right adjoint (it doesn’t preserve all colimits).
7. Conclusions and Future Work
Here, we sketch directions of investigation for the future.
7.1 Formal theory of automata
Let
$\textbf {K}$
be a strict 2-category with all finite weighted limits. Consider objects
$X,B\in \textbf {K}$
in a diagram of the following form:

The Vaucanson limit (Heudin 2008)Footnote 21 obtained from Equation (97) consists of the limit obtained taking (cf. Fiore Reference Fiore2006; Kelly Reference Kelly1989):
-
• the inserter
$K \xleftarrow u \mathcal{I}(f,\text{id}[K])\xrightarrow u K$
of the left cospan; -
• the comma object
$K \xleftarrow v f/b \xrightarrow q B$
of the right cospan; -
• the strict pullback
$\mathcal{I}(f,\text{id}[K])\times _K (f/b)$
of
$u,v$
.
If
$\textbf {K}$
is the 2-category
$\mathbf{Cat}$
of categories, functors and natural transformations, Vaucanson limits recover the categories
${\textsf{Mly}}_{\mathcal{K}}{(A, B)}$
when
$B=1$
is the terminal category and
$b$
is an object therein.
Formal theory of Mealy automata is then the study of Vaucanson objects in
$\textbf {K}$
. One can define analogues for
${\textsf{Mly}}_{\mathcal{K}}{(A, B)}$
,
${\textsf{Mre}}_{\mathcal{K}}(A,B)$
enriched over a generic monoidal base
$\mathcal{W}$
in the sense of Borceux (Reference Borceux1994, Ch. 6), Kelly (Reference Kelly2005), for example, a quantale (Eklund et al. Reference Eklund, Garciá, Höhle and Kortelainen2018; Rosenthal Reference Rosenthal1990) like
$[0,\infty ]^{\mathrm{op}}$
, so that there is a metric space
${\textsf{Mly}}_{(X,d)}(f,b)$
(Clementino and Tholen Reference Clementino and Tholen2003; Hofmann et al. Reference Hofmann, Seal and Tholen2014; Lawvere Reference Lawvere1973] associated with every non-expansive map
$f : X\to X$
and point
$b\in X$
. This begs various questions: what is this theory (intended in the technical sense: Equation (97) can be pruned to become the simple diagram

and interpreted as a certain
$\textsf{Cat}$
-enriched limit sketch of which categories
${\textsf{Mly}}_{\mathcal{K}}{(f,b)}$
are models: this is suggestive, in light of Colcombet and Petrişan (Reference Colcombet and Petrişan2017)) and how can it profit from being studied via discrete dynamical methods? Can it be related with fixpoint theory as classically intended in Granas and Dugundji (Reference Granas and Dugundji2003)?
7.2 Differential equations in a differential 2-rig
Leveraging on the definition of Arbogast algebra given in Definition 2.29, one can devise a notion of differential equation in a differential 2-rig.
Let’s fix a 2-rig
$(\mathcal{R},\partial )$
for the doctrine of coproducts (generalising to another doctrine is straightforward). Then, a generic element
$D$
of
$\boldsymbol{A}\boldsymbol{r}\boldsymbol{b}[\mathcal{R},\partial ]$
is a finite sum
$D=\sum _{i\in I} A_i\otimes \partial ^{n_i}$
that can be considered as an endofunctor of
$\mathcal{R}$
, taking
$X$
to
$DX=\sum _{i\in I} A_i\otimes (\partial ^{n_i}X)$
.
The definition of differential equation we give is motivated by the fact that, in the absence of additive inverses, a reasonable way to attach an ‘equation to solve’ to an endofunctor
$F$
of a category
$\mathcal{C}$
is to look for its fixpoints, that is, for objects
$X\in \mathcal{C}$
equipped with an isomorphism
$FX\cong X$
. As for the (seemingly arbitrary) choice to consider only maximal fixpoints of
$F$
, that is, terminal
$F$
-coalgebras, the following remark (the proof of which is immediate) shows that initial algebras for elements
$D\in \boldsymbol{A}\boldsymbol{r}\boldsymbol{b}[\mathcal{R},\partial ]$
tend to be trivial.
Definition 7.1 (Differential equations in a 2-rig). Let
$(\mathcal{R},\partial )$
be a differential 2-rig; if the elements of
$\boldsymbol{A}\boldsymbol{r}\boldsymbol{b}[\mathcal{R},\partial ]$
are regarded as differential operators, a solution for a differential equation prescribed by
$D\in \boldsymbol{A}\boldsymbol{r}\boldsymbol{b}[\mathcal{R},\partial ]$
is a terminal
$D$
-coalgebra.
Remark 7.2. If
$(\mathcal{R},\partial )$
is a closed, right-scopic 2-rig, then the initial algebra of an element
$D\in \boldsymbol{A}\boldsymbol{r}\boldsymbol{b}[\mathcal{R},\partial ]$
is the initial object of
$\mathcal{R}$
. Indeed, the functor
$D = \sum _{i\in I} A_i\otimes \partial ^{n_i}$
is cocontinuous, having the functor
$\prod _{i\in I}R^{n_i}[A_i,\,\_\,]$
as right adjoint.
By contrast, the terminal
$D$
-coalgebra arises as the limit of the op-chain
prescribed by Adámek theorem (Adámek Reference Adámek1974), for which even for an ‘affine’ differential operator of the form
$A\otimes \partial (\,\_\,)+B$
the computation yields an object that depends on the iterated derivatives of the terminal object.
In the particular case of species, Lemma 2.38 yields that the terminal object is a fixpoint for
$\partial$
, whence the sequence above reduces to
With some patience and an inductive argument, each step of the limit can be reduced to an expression in the iterated derivatives of
$A,B$
.
7.3 A general theory of categorified differential operators
The canonical commutation
$[\partial ,L]=\partial L-L\partial =1$
valid in Joyal’s virtual species suggests how
$L$
acts as a ‘conjugate operator’ to
$\partial$
. Compare this with the analogue relation
$[x\cdot \,\_\,,\frac d{dx}]=1$
valid in the ring
$C^\omega (\mathbb{R})$
of analytic functions on, say, the real line (Eyges Reference Eyges1980, Ch. 5; Folland Reference Folland2009). Is it the case that there is a still undiscovered ‘categorified Greenfunctionology’ introducing a ‘Heaviside distribution’
$\Theta$
with the property that the colimit of
$F$
weighted by
$\Theta$
is a solution of the differential equation
$\partial G = F$
on species, that is,
$\partial \left (\int ^X\Theta (X,\,\_\,)\times F[X]\right ) \cong F$
? Compare this with the well-known integral equation
$\frac d{dx}\left (\int \Theta (x-t)f(t)dt\right )=f(x)$
for the Heaviside function, and cf. Day (Reference Day2011) where Day sketched a categorified theory of Fourier transforms (upper and lower transforms, Parseval relations, etc.) for categories enriched over a
$*$
-autonomous base
$\mathcal{V}$
(Barr Reference Barr1979), generalising Joyal’s categories of analytic functors. We intend to pursue the matter, captivated by its compelling aesthetic beauty.




















