Duoidal Structures for Compositional Dependence
Brandon T. Shapiro, David I. Spivak
TL;DR
The paper develops a two-layer categorical framework for combining independent and dependent compositions, via physical duoidal categories with shared units and a symmetric tensor. It shows that free physical duoidal structure on one generator is captured by sum-join expressible posets, and establishes an operadic equivalence between expressible posets and the duoidal structure, then extends to dependence categories by permitting arbitrary posets and limits-based constructions. Concrete instantiations include tropical reals for program runtimes and polynomial endofunctors for spacetime-like aggregation; Minkowski space provides a physically motivated subcategory supporting the structure. The framework culminates in a decoration principle for processing networks: morphisms in partial monoidal categories can be coherently labeled by objects in a dependence category, enabling analysis of parallel runtimes, dependencies, and networked processes with rigorous categorical control. The results offer a unifying language for modeling complex dependencies across physics, computation, and category theory, with explicit operadic and limit-based constructions enabling broad applicability.
Abstract
We provide a categorical framework for mathematical objects for which there is both a sort of "independent" and "dependent" composition. Namely we model them as duoidal categories in which both monoidal structures share a unit and the first is symmetric. We construct the free such category and observe that it is a full subcategory of the category of finite posets. Indeed each algebraic expression in the two monoidal operators corresponds to the poset built by taking disjoint unions and joins of the singleton poset. We characterize these "expressible" posets as precisely those which contain no "zig-zags." We then move on to describe categories equipped with $n$-ary operations for each $n$-element finite poset; we refer to them as "dependence categories" since they allow for combinations of objects based on any network of dependencies between them. These structures model various sorts of dependence including the space-like and time-like juxtaposition of weighted probability distributions in relativistic spacetime, which we model using polynomial endofunctors on the category of sets, as well as the runtimes for multiple computer programs run in parallel and series, which we model using the tropical semiring structure on nonnegative real numbers. With these examples in mind, we conclude by describing ways in which morphisms in a partial monoidal category can be "decorated" in a coherent manner by objects in a dependence category, such as labeling a network of parallel programs with their runtimes.
