Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)
Papers
Topics
Authors
Recent
Search
2000 character limit reached

Comonads as spaces

Published 16 Jul 2026 in math.CT | (2607.15091v1)

Abstract: Comonads on Set generalize both categories and topological spaces. Expanding upon Garner's work on ionads, we develop aspects of the theory of topological spaces for arbitrary comonads on arbitrary categories. Our approach is centered around density comonads, which provide an abstraction of subbases. We study subbases as well as bases in terms of density comonads, and we study continuous maps of comonads in terms of functors between coalgebra categories, with definitions that recover the usual notions for topological spaces. Whereas Ahman and Uustalu characterized categories as precisely the polynomial comonads on Set, we characterize topological spaces as precisely the density comonads of diagrams of subsets of a set, which are familiar as topological subbases. We show that every comonad on Set has an underlying topological space, and that this construction is a reflection with respect to continuous maps; similarly, every comonad on Set has an underlying small category, and this construction is a coreflection. We also show that the category of all comonads on Set with continuous maps is complete, and that its full subcategory of accessible comonads is cocomplete. Continuous maps and ordinary comonad morphisms form a double category, which, in the case of the polynomial comonads on Set, recovers the double category of functors and retrofunctors of Clarke and Di Meglio. We find topological intuition for these concepts in terms of "halos", an abstraction of infinitesimal neighborhoods of points, defined as formal limits of neighborhood systems. We include a long appendix of counterexamples, many applicable to general (co)monad theory rather than the particular concerns of this text.

Citations (1)

Summary

  • The paper establishes that comonads on Set provide a unified theory of space, with density comonads recovering topological spaces and polynomial comonads recovering categories.
  • It proves that weak-pullback-preserving comonads are exactly those admitting concrete co-confluent bases, linking abstract coalgebraic structure to generalized topological bases.
  • The framework defines underlying spaces, points, sheaves, continuous maps, infinitesimal neighborhoods, and spatial taxonomies that encompass topology, ionads, preorders, and categories.

Overview and central thesis

The paper develops a program in which comonads on the category of sets serve as an abstract notion of space, dual to the familiar role of monads as an abstract notion of algebra. Its central technical device is the density comonad: for a functor P ⁣:B→SetP \colon B \to \mathit{Set}, the left Kan extension ⟨P⟩≔LanP(P)\langle P \rangle \coloneqq \mathrm{Lan}_P(P) plays the role of the topological space generated by a subbasis. The authors establish that topological spaces are precisely the density comonads of diagrams of subsets of a set, that categories (via the result of Ahman–Uustalu) are the polynomial comonads on Set\mathit{Set}, and that ionads are the pullback-preserving comonads on Set\mathit{Set}. Morphisms, bases, points, and even infinitesimal neighborhoods are then developed uniformly for arbitrary comonads, recovering the classical notions in the topological case.

Comonads on Set and their regularity

The paper begins with structural results explaining why comonads on Set\mathit{Set} interact well with topology. Using Trnková's observation that every endofunctor on Set\mathit{Set} preserves nonempty pairwise intersections (via an absoluteness argument for split pullbacks), the authors show that every comonad on Set\mathit{Set} preserves finite intersections — equivalently, coreflexive equalizers, recovering Linton–Paré's theorem that every comonad on Set\mathit{Set} is "crude." Consequently every category of coalgebras of a comonad on Set\mathit{Set} is coregular and complete, and the comonadic functor creates colimits and finite-intersection-type limits. This is the technical backbone justifying the topological vocabulary: comonadic functors into Set\mathit{Set} create exactly the colimits (analogues of unions) and finite intersections that topology requires.

The paper also treats weak-pullback-preserving comonads — the standard assumption of universal coalgebra — proving that the comonadic functor into ⟨P⟩≔LanP(P)\langle P \rangle \coloneqq \mathrm{Lan}_P(P)0 preserves weak pullbacks whenever the comonad does (repairing a gap in the argument of Johnstone–Power–Tsuishita–Watanabe–Worrell), and that such coalgebra categories are regular with subobject classifiers.

Topological spaces as density comonads of diagrams of subsets

The main characterization theorem states that for a comonad ⟨P⟩≔LanP(P)\langle P \rangle \coloneqq \mathrm{Lan}_P(P)1 on ⟨P⟩≔LanP(P)\langle P \rangle \coloneqq \mathrm{Lan}_P(P)2, the following are equivalent: ⟨P⟩≔LanP(P)\langle P \rangle \coloneqq \mathrm{Lan}_P(P)3 is the "germs comonad" of a topological space; ⟨P⟩≔LanP(P)\langle P \rangle \coloneqq \mathrm{Lan}_P(P)4 is the density comonad of a diagram ⟨P⟩≔LanP(P)\langle P \rangle \coloneqq \mathrm{Lan}_P(P)5 all of whose colimit inclusions are injective (a diagram of subsets, i.e. a subbasis); the opens of the terminal coalgebra are dense in the coalgebra category; every coalgebra is covered by open subsets of the terminal coalgebra; and the coalgebra category is a localic topos. This is a strong claim: the definition of topological space "falls out" of the comonad formalism without any mention of unions or finite intersections.

Conversely, every comonad on ⟨P⟩≔LanP(P)\langle P \rangle \coloneqq \mathrm{Lan}_P(P)6 has an underlying topological space, obtained by equipping the terminal coalgebra with the topology whose opens are the regular subobjects (coalgebra maps carried by injections). The construction of sheaves as fully faithful subcategories of coalgebras is shown via a componentwise-monic comonad map from the germs comonad of the underlying space to ⟨P⟩≔LanP(P)\langle P \rangle \coloneqq \mathrm{Lan}_P(P)7. The paper is candid that the topology-on-coalgebras result is essentially due to Gumm–Schröder for endofunctors, and notes the important caveat that for general density comonads the colimit inclusions ⟨P⟩≔LanP(P)\langle P \rangle \coloneqq \mathrm{Lan}_P(P)8 need not be injective, so "local points" (elements of some ⟨P⟩≔LanP(P)\langle P \rangle \coloneqq \mathrm{Lan}_P(P)9) are distinct from "global points" (elements of the colimit).

Bases, subbases, and weak pullbacks

The abstract definition of basis is: Set\mathit{Set}0 with density comonad Set\mathit{Set}1 is a basis if the canonical lift Set\mathit{Set}2 (sending Set\mathit{Set}3 to the coalgebra structure on Set\mathit{Set}4 given by the colimit inclusion) is dense. This is shown equivalent to the condition that the comonadic functor is the pointwise left Kan extension of Set\mathit{Set}5 — intuitively, that "sum of stalks" recovers the étale-space carrier. Bases are characterized as dense functors into the coalgebra category, and subbases as functors that are dense relative to cofree coalgebras only: the nerve restricted to the Kleisli category is fully faithful. This cleanly separates the two topological notions in the general setting.

A concrete criterion is then given: a functor whose category of elements is co-confluent (every cospan extends to a commutative square — the right Ore condition, directly generalizing the topological basis axiom) is a basis, and the comonads admitting such concrete bases are exactly the weak-pullback-preserving comonads on Set\mathit{Set}6. This is a notable result: it gives a topological justification for the ubiquitous coalgebraic weak-pullback assumption. Analogously, connectedly-flat bases (Garner's ionad bases) correspond to pullback-preserving comonads. Worked examples include "infinitesimal group actions" — coalgebras of the density comonad built from the translation-invariant interval basis of Set\mathit{Set}7 form the topos of sheaves on the action groupoid Set\mathit{Set}8 — and "infinitesimal categories," where coalgebras are functors whose actions are only defined on infinitesimal neighborhoods of objects.

Slices, ionads, and the taxonomy of spaces

The paper proves that the category of comonads on Set\mathit{Set}9 (with comonad maps) is equivalent to the category of comonads on slice categories Set\mathit{Set}0 preserving the terminal object and finite intersections, with colax comonad functors of reindexing form. Restricting to pullback-preserving comonads recovers Garner's ionads; restricting to wide-pullback-preserving (polynomial) comonads recovers the Ahman–Uustalu identification of categories with polynomial comonads. The resulting taxonomy places topological spaces (localic ionads), preorders (Alexandroff spaces = thin categories), categories, ionads, and general comonads on Set\mathit{Set}1 in a single hierarchy. Two caveats are stated explicitly: comonad maps do not correspond to continuous maps of ionads or functors (only an equivalence of groupoids holds), and the topological comonads cannot be characterized by a property of the underlying endofunctor alone, unlike the polynomial and pullback-preserving cases.

Continuous maps, reflections, and the double category

The paper defines continuous maps of comonads on Set\mathit{Set}2 as terminal-object-preserving functors between sliced coalgebra categories commuting over reindexing — equivalently, via a cartesian natural transformation into the germs comonad. Key consequences:

  • Universal property of subbases: continuous maps Set\mathit{Set}3 correspond to squares over Set\mathit{Set}4; for Set\mathit{Set}5 a space and Set\mathit{Set}6 a group, continuous maps Set\mathit{Set}7 are precisely principal Set\mathit{Set}8-bundles.
  • Reflection and coreflection: Set\mathit{Set}9 is a reflective sub-2-category (reflection = underlying space), and Set\mathit{Set}0 is a coreflective sub-2-category via the underlying category Set\mathit{Set}1, which is small by a density argument.
  • Fibration of points: the points functor is a fibration, inducing a factorization system generalizing (bijective-on-objects, fully faithful) on Set\mathit{Set}2.
  • Double categories Set\mathit{Set}3 (with specialization cells) and its thin sub-double-category Set\mathit{Set}4 (with identifications) combine comonad maps and continuous maps; restricting to polynomial comonads recovers the Clarke–Di Meglio double categories of categories, retrofunctors, and functors. Companions are exactly cartesian (equivalently, for pullback-preserving comonads, étale) comonad maps; conjoints are bijective-on-points maps. A corollary answers what a comonad map between topological spaces is: an étale map from a refinement of the domain.

On completeness: the category of comonads on Set\mathit{Set}5 with continuous maps is complete; its full subcategory of accessible comonads is complete and cocomplete. A monoidal product generalizing the product of spaces is sketched but not developed in depth.

Halos

The paper introduces halos — formal infinitesimal neighborhoods of points, defined as limits of neighborhood systems — and uses them to give spatial intuition for subbases, continuous maps, comonad maps, specializations, identifications, and the tabulator construction. For a category viewed as a space, the halo of an object is its outgoing arrows; for an ionad, a point may be near another in multiple ways. The halo perspective underlies the proof that the double category of ionads has strong tabulators of comonad maps, generalizing Clarke's result for categories.

Limitations and open questions

The paper is forthright about several restrictions. The concrete (co-confluence) basis condition is strictly stronger than the abstract definition of basis — not every comonad on Set\mathit{Set}6 admits such a basis, though every comonad admits a possibly large "big basis" given by its comonadic functor. The characterization of topological comonads via endofunctor properties fails (a counterexample is provided), so no intrinsic endofunctor-level description of spaces exists. The treatment of the monoidal product and of coalgebra-theoretic applications (coequations, covarieties) is programmatic rather than exhaustive. Several questions are posed in the text: whether the basis criterion via coreflexive-equalizer preservation can be weakened; whether a relative-density-comonad formalism would clarify subbases; and whether the co-confluence theory extends to general Set\mathit{Set}7 via a notion of weak-pullback-flatness. The authors also defer bicomodules between comonads to future work, and a substantial appendix of counterexamples documents that many results cannot be strengthened.

Conclusion

The paper substantiates the thesis that comonads on Set\mathit{Set}8 constitute a genuine generalization of space, in which subbases, bases, points, sheaves, continuous maps, and even infinitesimal neighborhoods admit uniform categorical definitions that specialize correctly to topology, category theory, and ionad theory. The identification of weak-pullback-preserving comonads with those admitting co-confluent bases, and of continuous-map structure with the retrofunctor double categories, ties the abstraction firmly to existing mathematics, while the counterexample appendix delineates precisely where the spatial analogy breaks down.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Tweets

Sign up for free to view the 1 tweet with 1 like about this paper.