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

Stone Duality for Monads

Published 26 Mar 2026 in cs.LO, cs.PL, and math.CT | (2603.25710v1)

Abstract: We introduce a contravariant idempotent adjunction between (i) the category of ranked monads on Set\mathsf{Set}; and (ii) the category of internal categories and internal retrofunctors in the category of locales. The left adjoint takes a monad TT-viewed as a notion of computation, following Moggi-to its localic behaviour category LBT\mathsf{LB}T. This behaviour category is understood as "the universal transition system" for interacting with TT: its "objects" are states and the "morphisms" are transitions. On the other hand, the right adjoint takes a localic category LC\mathsf{LC}-similarly understood as a transition system-to the monad ΓLCΓ\mathsf{LC} where (ΓLC)A(Γ\mathsf{LC})A is the set of AA-indexed families of local sections to the source map which jointly partition the locale of objects. The fixed points of this adjunction consist of (i) hyperaffine-unary monads, i.e., those monads where term tt admits a read-only operation tˉ\bar{t} predicting the output of tt; and (ii) ample localic categories, i.e., whose source maps are local homeomorphisms and whose locale of objects are strongly zero-dimensional. The hyperaffine-unary monads arise in earlier works by Johnstone and Garner as a syntactic characterization of those monads with Cartesian closed Eilenberg-Moore categories. This equivalence is the Stone duality for monads; so-called because it further restricts to the classical Stone duality by viewing a Boolean algebra BB as a monad of BB-partitions and the corresponding Stone space as a localic category with only identity morphisms.

Summary

  • The paper constructs a contravariant idempotent adjunction between ranked monads on Set and localic categories with retrofunctors, using localic behaviour categories as point-free interaction models.
  • The localic construction extends topological behaviour categories to infinitary effects, recovering monads in important cases such as uncountably indexed read-only state while exposing failures for nontermination and nondeterminism.
  • The fixed points are exactly hyperaffine-unary monads with cartesian closed Eilenberg–Moore categories and ample localic categories, with classical Stone duality recovered as a special case.

Overview

"Stone Duality for Monads" by Garner, Renata, and Wu establishes a contravariant idempotent adjunction between ranked monads on Set\mathsf{Set} and internal categories equipped with internal retrofunctors in the category of locales. The left adjoint sends a monad TT—understood as a Moggi-style notion of computation—to its localic behaviour category LBT\mathsf{LB}T, a point-free transition system whose objects are states and whose morphisms are transitions. The right adjoint Γ\Gamma recovers a monad from a localic category by taking AA-indexed families of local sections of the source map that jointly partition the locale of objects. The fixed points of this adjunction are precisely the hyperaffine-unary monads (those whose Eilenberg–Moore categories are cartesian closed) and the ample localic categories, yielding a duality that restricts to classical Stone duality between Boolean algebras and Stone spaces.

The paper's central conceptual move is to treat computation as interaction: rather than characterizing a notion of computation solely by its equational theory à la Plotkin–Power, it constructs a canonical "reality"—a terminal comodel—against which programs interact. This generalizes Power–Shkaravska comodels and Garner's earlier behaviour category by topologizing, and ultimately localizing, the construction.

From behaviour categories to topological behaviour categories

For a finitary monad TT, the objects of the behaviour category BT\mathsf{B}T are admissible behaviours β ⁣:T→idSet\beta \colon T \to \mathrm{id}_{\mathsf{Set}}, and morphisms are trace-equivalence classes [t]β[t]_\beta of computations t∈T1t \in T1. The category TT0 classifies set-based comodels: TT1. However, reconstructing TT2 from TT3 by taking all sections of the source map over-generates: for the state monad with countably many cells, unconstrained sections may inspect infinitely many memory locations, whereas syntactic terms query only finitely many. The remedy is the operational topology—generated by subbasic opens TT4—which restricts admissible reconstructions to continuous sections, giving the finitary adjunction TT5 between TT6 and TT7.

A key design choice is the use of retrofunctors rather than functors as morphisms between behaviour categories. A retrofunctor lifts arrows of the codomain along its object map, and is naturally read as a simulation of transition systems; retrofunctors previously arose in classifying morphisms of polynomial comonads.

The localic behaviour category

For infinitary (ranked) monads, topological spaces fail. The paper's sharpest example is read-only state indexed by TT8 with an axiom forcing distinct cells to hold distinct values: admissible behaviours would be injections TT9, of which there are none, so LBT\mathsf{LB}T0 is trivial even though LBT\mathsf{LB}T1 is not—no well-founded term can detect non-injectivity, since doing so requires querying uncountably many cells. Constructing the behaviour category point-free yields the locale of injective functions LBT\mathsf{LB}T2, a known non-trivial locale without points, and LBT\mathsf{LB}T3 then recovers LBT\mathsf{LB}T4 exactly. This is the strongest evidence in the paper that locales, not spaces, are the correct setting.

Concretely, the locale of objects LBT\mathsf{LB}T5 is presented by generators LBT\mathsf{LB}T6 subject to disjointness, unit, and bind axioms mirroring behavioural admissibility; it is proved to be the terminal localic LBT\mathsf{LB}T7-comodel and to be ultraparacompact (strongly zero-dimensional). The locale of transitions LBT\mathsf{LB}T8 is constructed indirectly: first as a quotient of the free LBT\mathsf{LB}T9-set on Γ\Gamma0 over the Grothendieck Boolean algebra of complemented opens, then via the equivalence between sheaves on ultraparacompact locales and Γ\Gamma1-sets, and finally as the poset of trace-equivalence-respecting functions Γ\Gamma2. Its source map is always a local homeomorphism. For finitary Γ\Gamma3, both locales are spatial, and Γ\Gamma4 coincides with the topological behaviour category; the proof exploits compactness of the Stone space Γ\Gamma5 to show every global section is piecewise constant on a finite clopen partition.

Two instructive failures show that Γ\Gamma6 only approximates Γ\Gamma7 in general: for the non-termination monad and any theory with a commutative binary operation (e.g., nondeterministic choice), both Γ\Gamma8 and Γ\Gamma9 collapse, though AA0 does not. These examples stem from Uustalu's work on runners and mark a genuine limitation of the stateful-deterministic comodel framework.

The Stone adjunction

Functoriality of AA1 against monad maps, acting contravariantly via retrofunctors, is established together with the adjunction

AA2

where AA3 consists of disjoint AA4-indexed jointly-covering families of partial sections of the source map. The counit is induced by evaluation; the unit embeds each term AA5 as the section AA6 selecting the transition AA7 at each behaviour AA8. A parallel finitary adjunction AA9 follows by composing with the right Kan extension along finite sets.

Fixed points: hyperaffine-unary monads and ample categories

The heart of the duality is the characterization of fixed points. On the monad side, TT0 always admits a factorization TT1 where TT2 performs the same output but only identity transitions—a "read-only prediction," or scrying, of the result of TT3. Monads admitting such a unique hyperaffine-unary decomposition were characterized by Garner as exactly those with cartesian closed Eilenberg–Moore categories (refining Johnstone's syntactic characterization). The paper proves:

  • TT4 is hyperaffine-unary iff the unit TT5 is an isomorphism;
  • a localic category is ample (source map a local homeomorphism, object locale ultraparacompact) iff the counit is an isomorphism.

Hence the adjunction is idempotent and restricts to an equivalence TT6, further restricting to TT7. The nomenclature "Stone duality" is earned concretely: each Boolean algebra TT8 induces a distributions monad TT9 of Grothendieck Boolean powers, dual to the localic category with object locale BT\mathsf{B}T0 and identity source map; when BT\mathsf{B}T1 contains only finite partitions, BT\mathsf{B}T2 and the classical Stone duality is recovered. Notably, the equivalence itself was already present in Garner's prior work; the contribution here is enveloping it in an idempotent adjunction, which supplies a hyperaffine-unary completion functor on monads and an amplification functor on localic categories.

Limitations and open questions

The paper is candid that the duality captures only the stateful, deterministic fragment of computation: comodels always return a value, so non-termination and commutative effects (nondeterminism) are annihilated by BT\mathsf{B}T3. The authors propose residual comodels over the lifting monad as the setting for a partial-section analogue, but this remains conjectural. The constructions also rely heavily on elements of monads on BT\mathsf{B}T4; a Kleisli-category reformulation via Cockett–Cruttwell's restriction-category adjunction is sketched but not developed. Finally, the proposed program logic—a PDL-style logic interpreting modalities BT\mathsf{B}T5 as inverse images along transitions, evaluated in the completed monad BT\mathsf{B}T6—remains future work, as does the suggested "scheme theory of monads" in which syntax varies continuously over a base space, with "local state" formalized as "locally a state monad."

Conclusion

The paper constructs the localic behaviour category of a ranked monad, proves it participates in a contravariant idempotent adjunction with the global-sections monad construction, and identifies the fixed points as hyperaffine-unary monads and ample localic categories, recovering classical Stone duality as a special case. The result reframes equational theories of computation as shadows of an interactive, point-free semantic reality, and provides the technical foundation—via Grothendieck Boolean algebras, BT\mathsf{B}T7-sets, and retrofunctors—for subsequent work on monadic program logics and effectful semantics beyond deterministic state.

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.