一句话:证明有向容器等余单子不能对幂集/分布单子等统一选择单子形成分配律,给出一类 no-go 定理。
单子与余单子的分配律使两种构造可组合交互,但其存在性无保证且难以判定。本文受近期单子—单子 no-go 结果启发,研究余单子对单子的分配律何时不存在。作者先在集合范畴证明每个容器对非空幂集单子有唯一 Kleisli 律,且该律仅当余单子为 coreader 余单子时才能扩张为分配律,故其他有向容器均不能分配到幂集单子上;随后推广到统一选择单子,涵盖以合适半环参数化的多重集与分布单子。最后在关系结构范畴中证明若干博弈余单子不能分配到刻画约束满足松弛的幂集/分布单子变体。这些 no-go 结果涉及概率论、程序语言与有限模型论。
Monads and comonads are important constructions from category theory which find widespread application in computer science and other related disciplines. Distributive laws allow these constructions to interact compositionally. Such laws are not guaranteed to exist, and even when they do, finding them can be a difficult task. Inspired by recent results which establish conditions under which no distributive laws can exist between pairs of monads, we present a family of no-go theorems for the existence of distributive laws of a comonad over a monad. We begin by showing that in the category of sets every container has a unique Kleisli law over the non-empty powerset monad. We then show that this Kleisli law only extends to a comonad-monad distributive law if the comonad is a coreader comonad. Consequently, every other directed container does not distribute over the powerset monad. Next, we generalise our results to a large class of monads, which we call uniform choice monads. Examples of monads in this class include any multiset or distribution monad parameterised by a suitable semiring. Finally, we extend our results to the category of relational structures where we show that several game comonads, recently introduced in the context of finite model theory, fail to distribute over variants of the powerset and distribution monads, which are used to capture relaxations of the constraint satisfaction problem. Overall, our no-go results cover a diverse range of (co)monads that are of interest in many areas of mathematics and computer science, such as probability theory, programming languages, and finite model theory.