Log in

From Gs-monoidal to Oplax Cartesian Categories: Constructions and Functorial Completeness

  • Published:
Applied Categorical Structures Aims and scope Submit manuscript

Abstract

Originally introduced in the context of the algebraic approach to term graph rewriting, the notion of gs-monoidal category has surfaced a few times under different monikers in the last decades. They can be thought of as symmetric monoidal categories whose arrows are generalised relations, with enough structure to talk about domains and partial functions, but less structure than cartesian bicategories. The aim of this paper is threefold. The first goal is to extend the original definition of gs-monoidality by enriching it with a preorder on arrows, giving rise to what we call oplax cartesian categories. Second, we show that (preorder-enriched) gs-monoidal categories naturally arise both as Kleisli categories and as span categories, and the relation between the resulting formalisms is explored. Finally, we present two theorems concerning Yoneda embeddings on the one hand and functorial completeness on the other, the latter inducing a completeness result also for lax functors from oplax cartesian categories to \(\textbf{Rel}\).

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Data Availability

Not applicable.

Notes

  1. Viewing a preorder-enriched category as a 2-category, the inequalities state that the families of arrows \(\nabla _A\) and \(!_A\) are the components of an oplax natural transformation. The connection between these inequalities and rewriting is explored in [18].

  2. The use of “colax” here refers to the direction of the 2-cell, namely from \(F(\nabla _A)\) to \(\psi _{A,A}\circ \nabla _{FA}\).

  3. See [26, Corollary 3.2] where this was previously used for Markov categories.

  4. We expect this to be known, but we have not found a precise reference. The closest that we know of is [33, Proposition 28] which shows the analogous statement for the forgetful functor from the Eilenberg-Moore category \(\mathcal {A}^T\), but under additional assumptions on T needed to make \(\mathcal {A}^T\) monoidal in the first place.

  5. Even if that reference just considers spans in \(\textbf{Set}\), the proofs work for any category with finite limits.

  6. See e.g. [22, Example 3.2.2] or [45, Proposition 22.1] for a version of the statement for presheaves with values in topological spaces.

  7. Strict unitality could also be assumed, but that choice would make some diagrams potentially confusing.

References

  1. Aguiar, M., Mahajan, S.: Monoidal Functors, Species and Hopf Algebras CRM Monograph Series, p. 784. American Mathematical Society, Providence, RI (2010)

    MATH  Google Scholar 

  2. Alvarez-Picallo, M., Ghica, D., Sprunger, D., Zanasi, F.: Rewriting for monoidal closed categories. In: Felty, A. (ed.) FSCD 2022. LIPIcs, vol. 228, pp. 29–12920. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, Wadern (2022)

    Google Scholar 

  3. Bonchi, F., Pavlovic, D., Sobociński, P.: Functorial semantics for relational theories. CoRR abs/1711.08699 (2017)

  4. Bonchi, F., Seeber, J., Sobociński, P.: Graphical conjunctive queries. In: Ghica, D., Jung, A. (eds.) CSL 2018. LIPIcs, pp. 13–11323. Schloss Dagstuhl-Leibniz-Zentrum für Informatik, Wadern (2018)

    Google Scholar 

  5. Bonchi, F., Sobociński, P., Zanasi, F.: A survey of compositional signal flow theory. In: Goedicke, M., Neuhold, E.J., Rannenberg, K. (eds.) Advancing Research in Information and Communication Technology. IFIP AICT, vol. 600, pp. 29–56. Springer, Cham (2021)

    Google Scholar 

  6. Bonchi, F., Gadducci, F., Kissinger, A., Sobociński, P., Zanasi, F.: String diagram rewrite theory I: rewriting with Frobenius structure. J. ACM 69(2), 14–11458 (2022)

    MathSciNet  MATH  Google Scholar 

  7. Borceux, F.: Handbook of categorical algebra 2: categories and structures. In: Encyclopedia of Mathematics and its Applications. Cambridge University Press, Cambridge (1994)

    Google Scholar 

  8. Bruni, R., Gadducci, F.: Some algebraic laws for spans (and their connections with multirelations). In: Kahl, W., Parnas, D.L., Schmidt, G. (eds.) RelMiS 2001. ENTCS, pp. 175–193. Elsevier, Amsterdam (2003)

    Google Scholar 

  9. Carboni, A.: Bicategories of partial maps. Cah. Topol. Géométr. Différ. Catég. 28(2), 111–126 (1987)

    MathSciNet  MATH  Google Scholar 

  10. Carboni, A., Walters, R.F.C.: Cartesian bicategories I. J. Pure Appl. Algebra 49(1), 11–32 (1987)

    MathSciNet  MATH  Google Scholar 

  11. Carboni, A., Kelly, G.M., Walters, R.F.C., Wood, R.J.: Cartesian bicategories II. Theory Appl. Categ. 19(6), 93–124 (2008)

    MathSciNet  MATH  Google Scholar 

  12. Cho, K., Jacobs, B.: Disintegration and Bayesian inversion via string diagrams. Math. Struct. Comput. Sci. 29(7), 938–971 (2019)

    MathSciNet  MATH  Google Scholar 

  13. Cockett, J.R.B., Lack, S.: Restriction categories I: categories of partial maps. Theor. Comput. Sci. 270(1), 223–259 (2002)

    MathSciNet  MATH  Google Scholar 

  14. Cockett, J.R.B., Lack, S.: Restriction categories II: partial map classification. Theor. Comput. Sci. 294(1), 61–102 (2003)

    MathSciNet  MATH  Google Scholar 

  15. Cockett, J.R.B., Lack, S.: Restriction categories III: colimits, partial limits and extensivity. Math. Struct. Comput. Sci. 17(4), 775–817 (2007)

    MathSciNet  MATH  Google Scholar 

  16. Corradini, A., Gadducci, F.: A 2-categorical presentation of term graph rewriting. In: Moggi, E., Rosolini, G. (eds.) CTCS 1997. LNCS, pp. 87–105. Springer, Berlin (1997)

    Google Scholar 

  17. Corradini, A., Gadducci, F.: An algebraic presentation of term graphs, via gs-monoidal categories. Appl. Categ. Struct. 7, 299–331 (1999)

    MathSciNet  MATH  Google Scholar 

  18. Corradini, A., Gadducci, F.: Rewriting on cyclic structures: equivalence between the operational and the categorical description. RAIRO Theor. Inform. Appl. Inform. Théor. Appl. 33(4–5), 467–493 (1999)

    MathSciNet  MATH  Google Scholar 

  19. Corradini, A., Gadducci, F.: A functorial semantics for multi-algebras and partial algebras, with applications to syntax. Theor. Comput. Sci. 286, 293–322 (2002)

    MathSciNet  MATH  Google Scholar 

  20. Corradini, A., Gadducci, F., Kahl, W., König, B.: In equational deduction as term graph rewriting. In: Mackie, I., Plump, D. (eds.) TERMGRAPH 2002. ENTCS, vol. 72, pp. 31–44. Elsevier, Amsterdam (2007)

    Google Scholar 

  21. Day, B.: On closed categories of functors. In: Reports of the Midwest Category Seminar, IV. Lecture Notes in Mathematics, vol. 137, pp. 1–38. Springer, Berlin (1970)

    Google Scholar 

  22. Day, B.J.: Construction of Biclosed Categories. University of New South Wales, Sydney (1970)

    MATH  Google Scholar 

  23. Fong, B., Spivak, D.: Regular and relational categories: revisiting ‘cartesian bicategories I’. CoRR abs/1909.00069 (2019)

  24. Fong, B., Spivak, D.: Supplying bells and whistles in symmetric monoidal categories. CoRR abs/1908.02633 (2019)

  25. Fox, T.: Coalgebras and cartesian categories. Commun. Algebra 4, 665–667 (1976)

    MathSciNet  MATH  Google Scholar 

  26. Fritz, T.: A synthetic approach to Markov kernels, conditional independence and theorems on sufficient statistics. Adv. Math. 370, 107239 (2020)

    MathSciNet  MATH  Google Scholar 

  27. Fritz, T., Perrone, P., Rezagholi, S.: Probability, valuations, hyperspace: three monads on top and the support as a morphism. Math. Struct. Comput. Sci. 31(8), 850–897 (2021)

    MathSciNet  MATH  Google Scholar 

  28. Fritz, T., Gonda, T., Perrone, P., Rischel, E.F.: Representable Markov categories and comparison of statistical experiments in categorical probability. Theor. Comput. Sci. 961, 113896 (2023)

    MathSciNet  MATH  Google Scholar 

  29. Gadducci, F.: On the Algebraic Approach to Concurrent Term Rewriting. University of Pisa, Pisa (1996)

    Google Scholar 

  30. Gadducci, F.: A term-graph syntax for algebras over multisets. In: Corradini, A., Montanari, U. (eds.) WADT 2008. LNCS, vol. 5486, pp. 152–165. Springer, Berlin, Heidelberg (2008)

    Google Scholar 

  31. Giry, M.: A categorical approach to probability theory. In: Banaschewski, B. (ed.) Categorical Aspects of Topology and Analysis Lecture Notes in Mathematics, vol. 915, pp. 68–85. Springer, Berlin-New York (1982)

    Google Scholar 

  32. Golubtsov, P.V.: Axiomatic description of categories of information transformers. Probl. Inf. Transm. 35(3), 259–274 (1999)

    MathSciNet  MATH  Google Scholar 

  33. Guitart, R.: Tenseurs et machines. Cah. Topol. Géométr. Différ. 21(1), 5–62 (1980)

    MathSciNet  MATH  Google Scholar 

  34. Heunen, C., Kammar, O., Staton, S., Yang, H.: A convenient category for higher-order probability theory. In: LICS 2017, p. 12. IEEE Press, Piscataway, NJ (2017)

    Google Scholar 

  35. Jacobs, B.: Semantics of weakening and contraction. Ann. Pure Appl. Log. 69(1), 73–106 (1994)

    MathSciNet  MATH  Google Scholar 

  36. Jacobs, B.: From probability monads to commutative effectuses. J. Log. Algebr. Methods Program. 94, 200–237 (2018)

    MathSciNet  MATH  Google Scholar 

  37. Kelly, G.M.: Basic concepts of enriched category theory. Repr. Theory Appl. Categ. 10, 1–136 (2005)

    MathSciNet  MATH  Google Scholar 

  38. Kock, A.: Monads on symmetric monoidal closed categories. Arch. Math. 21, 1–10 (1970)

    MathSciNet  MATH  Google Scholar 

  39. Kock, A.: Bilinearity and cartesian closed monads. Math. Scand. 29(2), 161–174 (1971)

    MathSciNet  MATH  Google Scholar 

  40. Kock, A.: Strong functors and monoidal monads. Arch. Math. 23, 113–120 (1972)

    MathSciNet  MATH  Google Scholar 

  41. Lambek, J., Scott, P.J.: Introduction to Higher Order Categorical Logic. Cambridge University Press, Cambridge (1986)

    MATH  Google Scholar 

  42. Lawvere, F.W.: Functorial semantics of algebraic theories. Proc. Natl. Acad. Sci. 50(5), 869–872 (1963)

    MathSciNet  MATH  Google Scholar 

  43. MacLane, S., Moerdijk, I.: Sheaves in Geometry and Logic. A First Introduction to Topos Theory. Springer, New York (1992)

    Google Scholar 

  44. Makkai, M., Reyes, G.: First Order Categorical Logic. Lecture Notes in Mathematics, vol. 611. Springer, Berlin-New York (1977)

    MATH  Google Scholar 

  45. Mandell, M.A., May, J.P., Schwede, S., Shipley, B.: Model categories of diagram spectra. Proc. Lond. Math. Soc. 82(2), 441–512 (2001)

    MathSciNet  MATH  Google Scholar 

  46. Moggi, E.: Computational lambda-calculus and monads. In: LICS 1989, pp. 14–23. IEEE Press, Piscataway, NJ, USA (1989)

    Google Scholar 

  47. Moggi, E.: Notions of computation and monads. Inf. Comput. 93(1), 55–92 (1991)

    MathSciNet  MATH  Google Scholar 

  48. Robinson, E., Rosolini, G.: Categories of partial maps. Inf. Comput. 79(2), 95–130 (1988)

    MathSciNet  MATH  Google Scholar 

  49. Selinger, P.: A survey of graphical languages for monoidal categories. In: Coecke, B. (ed.) New Structures for Physics. Lecture Notes in Physics, pp. 289–355. Springer, Heidelberg (2011)

    MATH  Google Scholar 

  50. Tanaka, M.: Pseudo-distributive laws and a unified framework for variable binding. The University of Edinburgh, Edinburgh (2004)

    Google Scholar 

Download references

Funding

Tobias Fritz acknowledges funding by the Austrian Science Fund (FWF) through the project “P 35,992-N”. Andrea Corradini, Fabio Gadducci and Davide Trotta acknowledge funding by the Italian Ministry of Education, University and Research (MIUR) through the project PRIN 20228KXFN2 “STENDHAL”.

Author information

Authors and Affiliations

Authors

Contributions

TF, FG, DT and AC contributed equally to this work.

Corresponding author

Correspondence to Davide Trotta.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Additional information

Communicated by Ross Street.

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendices

Appendix A Lax/oplax/bilax Monoidal Functors

This section recalls the definitions of lax, colax, and bilax monoidal functors, see e.g. [1]. Throughout, \(\mathcal {C}\) and \(\mathcal {D}\) are symmetric monoidal categories with tensor functor \(\otimes \) and monoidal unit I, and we assume that \(\otimes \) strictly associates without loss of generality in order to keep the diagrams simple. Left and right unitors are denoted by \(\lambda \) and \(\rho \), respectively,Footnote 7 and braidings by \(\gamma \).

Definition A1

A functor \(F :\mathcal {C} \rightarrow \mathcal {D}\) is lax monoidal if it is equipped with a natural transformation

$$\begin{aligned}\psi :\otimes \circ \, (F\times F) \rightarrow F\circ \otimes \end{aligned}$$

and an arrow \(\psi _0 :I \rightarrow F(I)\) such that the associativity diagrams

figure as

and the unitality diagrams commute

figure at

F is said to be lax symmetric monoidal if also the following diagram commutes

figure au

For example, if \(\mathcal {C}\) is the terminal monoidal category with only one object I and \({\text {id}}_I\) as the only arrow, then F is simply a monoid in \(\mathcal {D}\). We do not spell out the following dual version in full detail.

Definition A2

A functor \(F :\mathcal {C} \rightarrow \mathcal {D}\) is oplax monoidal if it is equipped with a natural transformation

$$\begin{aligned}\phi :F\circ \otimes \rightarrow \otimes \circ (F\otimes F)\end{aligned}$$

and a map \(\phi _0 :F(I) \rightarrow I\) satisfying axioms dual to those in Definition A1. Similarly, an oplax symmetric monoidal functor is an oplax monoidal functor such that \(\phi \) commutes with the braiding \(\gamma \).

We also have the notion of strong symmetric monoidal functor, which is a lax symmetric monoidal functor with invertible structure arrows, or equivalently an oplax monoidal functor with invertible structure arrows; and that of strict symmetric monoidal functor, in which the structure arrows are identities.

A monoid and comonoid structure on an object in a symmetric monoidal category often interact in a nice way, either such that they form a bimonoid or a Frobenius monoid (and sometimes both). The following definition (see [1]) generalises the former notion to functors.

Definition A3

A functor \(F :\mathcal {C} \rightarrow \mathcal {D}\) is bilax monoidal if it is equipped with a lax monoidal structure \(\psi ,\psi _0\) and an oplax monoidal structure \(\phi ,\phi _0\) such that the following compatibility conditions hold

  • Braiding. The following diagram commutes

    figure av
  • Unitality. The following diagrams commute

    figure aw

We also say that F is bilax symmetric monoidal if in addition both the lax and oplax structures are symmetric.

Appendix B Commutative Monads

A strength and a costrength for a monad on a monoidal category are structures relating the monad with the tensor product of the category at least in one direction. A monad equipped with a strength is called a strong monad. This notion was introduced by Kock in [40] as an alternative description of enriched monads. Strong monads have been successfully used in computer science, playing a fundamental role in Moggi’s theory of computation [46, 47].

We recall these concepts in the following definitions.

Definition B.1

A strong monad \((T,\mu ,\eta ,t)\) on a symmetric monoidal category \(\mathcal {C}\) is a monad \((T,\mu ,\eta )\) on \(\mathcal {C}\) together with a natural transformation

$$\begin{aligned} t_{X,Y} :X\otimes T(Y) \rightarrow T(X\otimes Y), \end{aligned}$$

called strength, such that the following diagrams commute for all objects X, Y, Z of \(\mathcal {C}\)

figure ax

Example B.2

The list monad \(T_{\textrm{list}} :\textbf{Set} \rightarrow \textbf{Set}\) is strong. Given two sets X and Y, the strength component

$$\begin{aligned} t_{X,Y} :X \times T_{\textrm{list}}(Y) \rightarrow T_{\textrm{list}}(X \times Y) \end{aligned}$$

is given by the function assigning to an element \((x,[y_1,\dots ,y_m])) \) of \( X\times T_{\textrm{list}}(Y)\) the element \([(x,y_1),\dots ,(x,y_m)]\) of \( T_{\textrm{list}}(X\times Y)\).

In fact, any monad on the cartesian category \(\textbf{Set}\) is strong in a unique way, where the strength can be defined similarly to the strength of the list monad. We refer to [40] for more details.

Remark B.3

The braiding \(\gamma \) of \(\mathcal {C}\) let us define a costrength with components

$$\begin{aligned}t_{X,Y}' :T(X)\otimes Y \rightarrow T(X\otimes Y)\end{aligned}$$

given by

$$\begin{aligned}t_{X,Y}':=T(\gamma _{Y,X}) \circ t_{Y,X} \circ \gamma _{T(X),Y}.\end{aligned}$$

It satisfies axioms that are analogous to those of strength.

Definition B.4

A strong monad \((T,\mu ,\eta ,t)\) on a symmetric monoidal category \(\mathcal {C}\) is said to be commutative if the following diagram commutes for every object X and Y

figure ay

Remark B.5

It is well-known that on a symmetric monoidal category, commutative monads are equivalent to symmetric monoidal monads [40, Theorem 2.3]. Indeed, the diagonal of (B2) equips the functor T with a lax symmetric monoidal structure, whose components we denote by \(c_{X,Y}: T(X) \otimes T(Y) \rightarrow T(X \otimes Y)\).

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Fritz, T., Gadducci, F., Trotta, D. et al. From Gs-monoidal to Oplax Cartesian Categories: Constructions and Functorial Completeness. Appl Categor Struct 31, 42 (2023). https://doi.org/10.1007/s10485-023-09750-z

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s10485-023-09750-z

Keywords

Navigation