distributive law in nLab
Context
Categorical algebra
2-Category theory
Definitions
Transfors between 2-categories
Morphisms in 2-categories
Structures in 2-categories
Limits in 2-categories
Structures on 2-categories
Contents
Idea
Sometimes in mathematics one considers objects equipped with two different types of extra structure which interact in a suitable way. For instance, a ring is a set equipped with both (1) the structure of an (additive) abelian group and (2) the structure of a (multiplicative) monoid, which satisfy the distributive laws a⋅(b+c)=a⋅b+a⋅ca\cdot (b+c) = a\cdot b + a\cdot c and a⋅0=0a\cdot 0 = 0.
Abstractly, there are two monads on the category Set, one (call it TT) whose algebras are abelian groups, and one (call it SS) whose algebras are monoids, and so we might ask “can we construct, from these two monads, a third monad whose algebras are rings?” Such a monad would assign to each set XX the free ring on that set, which consists of formal sums of formal products of elements of XX—in other words, it can be identified with T(S(X))T(S(X)). Thus the question becomes “given two monads TT and SS, what further structure is required to make the composite TST S into a monad?”
It is easy to give TST S a unit, as the composite Id→η SS→η TSTSId \xrightarrow{\eta^S} S \xrightarrow{\eta^T S} T S, but to give it a multiplication we need a transformation from TSTST S T S to TST S. We naturally want to use the multiplications μ T:TT→T\mu^T\colon T T \to T and μ S:SS→S\mu^S\colon S S \to S, but in order to do this we first need to switch the order of TT and SS. However, if we have a transformation λ:ST→TS\lambda\colon S T \to T S, then we can define μ TS\mu^{T S} to be the composite TSTS→λTTSS→μ Tμ STST S T S \xrightarrow{\lambda} T T S S \xrightarrow{\mu^T\mu^S} T S.
Such a transformation λ:ST→TS\lambda\colon S T \to T S, satisfying suitable axioms to make TST S into a monad, is called a distributive law, because of the motivating example relating addition to multiplication in a ring. In that case, STXS T X is a formal product of formal sums such as (x 1+x 2+x 3)⋅(x 4+x 5)(x_1 + x_2 + x_3)\cdot (x_4 + x_5), and the distributive law λ\lambda is given by multiplying out such an expression formally, resulting in a formal sum of formal products such as x 1⋅x 4+x 1⋅x 5+x 2⋅x 4+x 2⋅x 5+x 3⋅x 4+x 3⋅x 5x_1\cdot x_4 + x_1 \cdot x_5 + x_2 \cdot x_4 + x_2 \cdot x_5 + x_3\cdot x_4 + x_3 \cdot x_5.
Given two monads S,TS, T on a category CC, a distributive law T∘S⟶S∘T T \circ S \longrightarrow S \circ T gives a way of lifting the monad SS on CC to a monad on the category of TT-algebras, namely the Eilenberg-Moore category C TC^T. In the example above, the distributive law gives a way to lift the monad for monoids (which is a monad on C=SetC = Set) to the monad for rings (which is a monad on C T=AbGpC^T = AbGp). This is a way of making rigorous the intuition that “rings are to abelian groups as monoids are to sets”.
Big picture
Monads in any 2-category CC make themselves a 2-category Mnd\mathrm{Mnd} in which 1-morphisms are either lax or colax homomorphisms of monads (cf. monad transformations). By formal duality the analogue is true for comonads.
Distributivity laws may be understood as monads internal to this 2-category of monads.
In particular, distributive laws themselves make a 2-category.
There are other variants like distributive laws between a monad and an endofunctor, mixed distributive laws between a monad and a comonad (the variants for algebras and coalgebras called entwining structures), distributive laws between actions of two different monoidal categories on the same category, for PROPs and so on.
Having a distributive law ll from one monad to another enables to define the composite monad T∘ lP\mathbf T\circ_l\mathbf P. This correspondence extends to a 2-functor comp:Mnd(Mnd(C))→Mnd(C)\mathrm{comp} \,\colon\, \mathrm{Mnd}(\mathrm{Mnd}(C))\to\mathrm{Mnd}(C). An analogue of this 2-functor in the mixed setup is a 2-functor from the bicategory of entwinings to a bicategory of corings.
Explicit definition
Monad distributing over monad
Definition
A distributive law for a monad T=(T,μ T,η T)\mathbf{T} = (T, \mu^T, \eta^T) in AA over an endofunctor PP is a 2-morphism l:TP⇒PTl : T P \Rightarrow P T such that l∘(η T) P=P(η T)l \circ (\eta^T)_P = P(\eta^T) and l∘(μ T) P=P(μ T)∘l T∘T(l)l \circ (\mu^T)_P = P(\mu^T) \circ l_T \circ T(l). In diagrams:
Distributive laws for the monad T\mathbf{T} over the endofunctor PP are in a canonical bijection with lifts of PP to an endofunctor P TP^{\mathbf T} in the Eilenberg-Moore category A TA^{\mathbf T}, satisfying U TP T=PU TU^{\mathbf T} P^{\mathbf T} = P U^{\mathbf T}. Indeed, the endofunctor P TP^{\mathbf T} is given by (M,ν)↦(PM,P(ν)∘l M)(M,\nu) \mapsto (P M,P(\nu)\circ l_M).
Definition
A distributive law for a monad T=(T,μ T,η T)\mathbf{T} = (T, \mu^T, \eta^T) over a monad P=(P,μ P,η P)\mathbf{P} = (P, \mu^P, \eta^P) in AA is a distributive law for T\mathbf T over the endofunctor PP, compatible with μ P,η P\mu^P,\eta^P in the sense that l∘T(η P)=(η P) Tl \circ T(\eta^P) = (\eta^P)_T and l∘T(μ P)=(μ P) T∘P(l)∘l Pl \circ T(\mu^P) = (\mu^P)_T \circ P(l) \circ l_P. In diagrams:
The correspondence between distributive laws and endofunctor liftings extends to a correspondence between distributive laws and monad liftings. That is, distributive laws l:TP⇒PTl \colon T P \Rightarrow P T from the monad T\mathbf{T} to the monad P\mathbf{P} are in a canonical bijection with lifts of the monad P\mathbf{P} to a monad P T\mathbf{P}^{\mathbf T} in the Eilenberg-Moore category A TA^{\mathbf T}, such that U T:A T→AU^{\mathbf T} \colon A^{\mathbf T}\to A preserves the monad structure.
Thus all together a distributive law for a monad over a monad is a 2-cell for which 2 triangles and 2 pentagons commute. In the entwining case, Brzeziński and Majid combined the 4 diagrams into one picture which they call the bow-tie diagram.
Monad distributing over a comonad
(…)
Comonad distributing over monad
The distributivity law of
-
a comonad 𝒞\mathcal{C} over
-
a monad ℰ\mathcal{E}
on the same category C\mathbf{C}
is as follows (Brookes & Van Stone 1993 Def. 3, Power & Watanabe 2002):
distr (-) 𝒞,ℰ:𝒞(ℰ(−))⟶ℰ(𝒞(−)) distr^{\mathcal{C}, \mathcal{E}}_{(\text{-})} \;\;\colon\;\; \mathcal{C} \big( \mathcal{E}(-) \big) \longrightarrow \mathcal{E} \big( \mathcal{C}(-) \big)
such that the following diagrams commute for all objects DD:
Given this distributivity structure, there is a two-sided (“double”) Kleisli category (Brookes & Van Stone 1993 Thm. 2, Power & Watanabe 2002, Prop. 7.4) whose objects are those of C\mathbf{C}, and whose morphisms D 1→D 2D_1 \to D_2 are morphisms in C\mathbf{C} of the form
prog 12:𝒞(D 1)⟶ℰ(D 2) prog_{12} \;\colon\; \mathcal{C}(D_1) \longrightarrow \mathcal{E}(D_2)
with two-sided Kleisli composition
prog 12>=>prog 23:𝒞(D 1)⟶ℰ(D 3) prog_{12} \text{>=>} prog_{23} \;\; \colon \;\; \mathcal{C}(D_1) \longrightarrow \mathcal{E}(D_3)
given by the (co-)bind-operation on the factors connected by the distributivity transformation:
Examples
Products distributing over coproducts
In a distributive category products distribute over coproducts.
In Cat
- There is a distributive law of the monad (on Set) for monoids over the monad for abelian groups, whose composite is the monad for rings. This is the canonical example which gives the name to the whole concept.
Tensor products distributing over direct sums
For many standard choices of tensor products in the presence of direct sums the former distribute over the latter. See at tensor product of abelian groups and tensor product of modules.
In other 2-categories
-
strict factorization systems can be identified with distributive laws between categories regarded as monads in Span(Set).
-
More generally, factorization systems over a subcategory can be identified with distributive laws in Prof. Ordinary orthogonal factorization systems are a special case. The latter can also be obtained by other weakenings; see for instance this discussion.
Literature
-
Jon Beck, Distributive Laws, in: Seminar on Triples and Categorical Homology Theory, ETH 1966/67, Lecture Notes in Mathemativs, Springer (1969), Reprints in Theory and Applications of Categories 18 (2008) 1-303 [TAC:18, pdf]
-
Donovan van Osdol, Bicohomology Theory, Transactions of the American Mathematical Society 183 (1973) 449-476 [jstor:1996479]
-
Ross Street, §6 of: The formal theory of monads, Journal of Pure and Applied Algebra 2 2 (1972) 149-168 [doi:10.1016/0022-4049(72)90019-9]
-
Michael Barr, Charles Wells, Toposes, Triples, and Theories, Springer (1985) republished in: Reprints in Theory and Applications of Categories, 12 (2005) 1-287 [tac:tr12, tac:tr12]
-
Stephen Brookes, Kathryn Van Stone, Monads and Comonads in Intensional Semantics (1993) [dtic:ADA266522, pdf, pdf]
-
Martin Markl, Distributive laws and Koszulness, Ann. Inst. Fourier (Grenoble) 46 (1996), no. 2, 307–323 (numdam)
-
T. F. Fox, Martin Markl, Distributive laws, bialgebras, and cohomology, Operads: Proceedings of Renaissance Conferences (Hartford, CT/Luminy, 1995), Contemp. Math. 202 AMS (1997) 167-205
-
T. Brzeziński, S. Majid, Coalgebra bundles, Comm. Math. Phys. 191 2 (1998) 467–492 [arXiv:q-alg/9602022]
For a study of distributive laws between monads and (pointed) endofunctors, see:
- Marina Lenisa, John Power, and Hiroshi Watanabe, Distributivity for endofunctors, pointed and co-pointed endofunctors, monads and comonads, Electronic Notes in Theoretical Computer Science 33 (2000): 230-260.
For a thorough study of mixed distributive laws, see:
-
John Power, Hiroshi Watanabe, Distributivity for a monad and a comonad, Electronic Notes in Theoretical Computer Science 19 (1999) 102 [doi:10.1016/S1571-0661(05)80271-3, pdf]
-
Steve Lack, Composing PROPS, Theory Appl. Categ. 13 (2004), No. 9, 147–163.
-
Steve Lack, Ross Street, The formal theory of monads II, Special volume celebrating the 70th birthday of Professor Max Kelly, J. Pure Appl. Algebra 175 1-3 (2002) 243-265
-
John Power, Hiroshi Watanabe, Combining a monad and a comonad, Theoretical Computer Science 280 1–2 (2002) 137-162 [doi:10.1016/S0304-3975(01)00024-X]
-
T. Brzeziński, Robert Wisbauer, Corings and comodules, London Math. Soc. Lec. Note Series 309, Cambridge (2003)
-
Gabi Böhm, Internal bialgebroids, entwining structures and corings, AMS Contemp. Math. 376 (2005) 207-226 [arXiv:math.QA/0311244]
-
Ernie Manes, Philip Mulry: Monad compositions I: general constructions and recursive distributive laws, Theory and Applications of Categories 18 7 (2007) 172-208 [tac:18-07, pdf]
-
Zoran Škoda, Distributive laws for monoidal categories (arXiv:0406310); Equivariant monads and equivariant lifts versus a 2-category of distributive laws (arXiv:0707.1609); Bicategory of entwinings (arXiv:0805.4611)
-
R. Wisbauer, Algebras versus coalgebras, Appl. Categ. Structures 16 1-2 (2008) 255–295 [doi:10.1007/s10485-007-9076-5]
-
Zoran Škoda, Some equivariant constructions in noncommutative geometry, Georgian Math. J. 16 (2009) 1; 183–202 (arXiv:0811.4770)
-
Bachuki Mesablishvili, Robert Wisbauer, Bimonads and Hopf monads on categories, Journal of K-Theory 7 2 (2011) 349-388 [arXiv:0710.1163, doi:10.1017/is010001014jkt105]
-
Francisco Marmolejo, Adrian Vazquez-Marquez, No-iteration mixed distributive laws, Mathematical Structures in Computer Science 27 1 (2017) 1-16 [doi:10.1017/S0960129514000656]
-
Liang Ze Wong, Distributive laws, post at nn-cafe, Feb 2017
-
Enrique Ruiz Hernández, Another characterization of no-iteration distributive laws, arxiv
-
Werner Struckmann and Dietmar Wätjen, A note on the number of distributive laws, Algebra universalis 21 (1985): 305-306.
On distributive laws for relative monads:
- Gabriele Lobbia, Distributive Laws for Relative Monads, Applied Categorical Structures 31 19 (2023) [doi:10.1007/s10485-023-09716-1, arXiv:2007.12982]
Invertible distributive laws are considered in Lemma 4.12 of:
-
Bob Rosebrugh, Richard J. Wood, Distributive Adjoint Strings, Theory and Applications of Categories, 1 6 (1995) 119-145 [tac:1-06]
-
Stefano Kasangian, Stephen Lack, and Enrico Vitale. Coalgebras, braidings, and distributive laws, Theory and Applications of Categories 13.8 (2004): 129-146. (html)
-
Alain Bruguieres and Alexis Virelizier, Quantum double of Hopf monads and categorical centers, Transactions of the American Mathematical Society 364.3 (2012): 1225-1279.
Last revised on November 2, 2024 at 16:31:41. See the history of this page for a list of all contributions to it.