FRI · JUL 17 · 15:00 · KRIEGER 205

Comonads as Spaces

Aaron David Fairbanks

Joint work with: Kevin Carlson, David I. Spivak

Monads on the category 𝐒𝐞𝐭 provide a simple and unifying notion of algebra: groups, rings, and vector spaces are all examples of algebraic structures corresponding to monads. In the upcoming work [3] we explore the dual idea that comonads provide a simple and unifying notion of space.

First, topological spaces are identified with certain comonads on 𝐒𝐞𝐭. We characterize these as precisely the density comonads of diagrams of subsets of a set (determining topological spaces as subbases). Thus the concept of topological space falls out of the theory of comonads, without mention of unions or finite intersections.

More general than topological spaces — but still not as general as arbitrary comonads on 𝐒𝐞𝐭 — are toposes equipped with a set of enough points [6, C2.2], or equivalently ionads as introduced by Garner [7]. Ionads at once generalize both topological spaces and small categories. An ionad amounts to a set X and a finite-limit-preserving comonad on 𝐒𝐞𝐭X. They may also be identified with pullback-preserving comonads on 𝐒𝐞𝐭 itself. In particular, this recovers Ahman and Uustalu’s result [2] that small categories are identified with certain comonads on 𝐒𝐞𝐭, namely those with polynomial carrier.

Following Garner’s insightful work, we generalize aspects of the theory of topological spaces to arbitrary comonads, not only on 𝐒𝐞𝐭, but on arbitrary categories. We give categorical definitions of basis, subbasis, and continuous map. We also define a double category of comonads on a fixed category, in which the two types of arrows are such continuous maps and ordinary comonad morphisms. Restricting to those comonads on 𝐒𝐞𝐭 corresponding to categories recovers the double category of functors and retrofunctors of Clarke and Di Meglio [4].

In the field of coalgebra [9], coalgebras are used to model transition systems, dynamical systems, automata, and various infinite data types [5]. Whereas monads correspond to varieties of algebras specified by equations as in universal algebra, comonads correspond to covarieties of coalgebras specified by coequations [1]. A potential application of the theory we develop is to approach universal coalgebra using tools from topology. As a start in this direction, we are able to recover a foundational assumption in coalgebra, namely the preservation of weak pullbacks [8], from a topological perspective. More precisely, we characterize weak-pullback-preserving comonads on 𝐒𝐞𝐭 as the density comonads of diagrams with co-confluent category of elements, a generalization of the ordinary definition of basis from topology, and we show that all such diagrams are bases according to our more abstract definition.

  • [1] J. Adamek, H.E. Porst, On varieties and covarieties in a category, MSCS 13(2) (2003), 201–232.
  • [2] D. Ahman, T. Uustalu, Directed containers as categories, EPTCS 207 (2016), 89–98.
  • [3] K. Carlson, A.D. Fairbanks, D.I. Spivak, Comonads as spaces, to appear.
  • [4] B. Clarke, M. Di Meglio, An introduction to enriched cofunctors, arXiv preprint arXiv:2209.01144 (2022).
  • [5] B. Jacobs, Introduction to coalgebra, Cambridge University Press, Cambridge (2016).
  • [6] P.T. Johnstone, Sketches of an elephant, Oxford University Press, New York (2002).
  • [7] R. Garner, Ionads, J. Pure Appl. Algebra 216(8) (2012), 1734–1747.
  • [8] H.P. Gumm, T. Schröder, Coalgebraic structure from weak limit preserving functors, Electron. Notes Theor. Comput. Sci. 33 (2000), 111–131.
  • [9] J.M.M. Rutten, Universal coalgebra: a theory of systems, Theor. Comput. Sci. 249(1) (2000), 3–80.

← Back to program