Papers
Topics
Authors
Recent
Search
2000 character limit reached

Walking Distributive Law

Updated 12 July 2026
  • Walking Distributive Law is the universal 2-categorical construct that encodes two monads on a common object along with a compatible distributive law.
  • It is constructed via the Gray tensor product of two walking monads, ensuring the enforcement of Beck coherence and enabling algebraic presentations.
  • The framework extends to iterated and parametric variants, offering insights into composite theories, term rewriting systems, and higher coherence via Yang–Baxter equations.

Searching arXiv for the cited papers and closely related work on walking distributive laws and distributive laws of monads. The walking distributive law is the universal strict 2-categorical object encoding two monads on a common object together with a distributive law between them. In the semi-strict formulation, it is defined by

Dist:=BΔ+lBΔ+,\mathrm{Dist} := B\Delta_+ \otimes_l B\Delta_+,

where BΔ+B\Delta_+ is the walking monad and l\otimes_l is the lax Gray tensor product; strict 2-functors out of Dist\mathrm{Dist} are equivalently distributive laws in the target 2-category (Perticone, 26 Sep 2025). A parallel presentation describes a single-object 2-category W\mathbb W generated by two endo-1-cells, their monad structures, and a 2-cell λ:STTS\lambda: S\circ T \Rightarrow T\circ S, subject to the monad axioms and Beck coherences, thereby exhibiting the same universal role in a more explicitly algebraic form (Rosset et al., 2024).

1. Monad-theoretic precursor: the walking monad

The construction begins with the observation that a monad in a 2-category B\mathcal B is a lax 2-functor

M:1BM:\mathbf 1 \to \mathcal B

from the terminal strict 2-category 1\mathbf 1. Such a lax 2-functor sends the unique object to an object XBX\in\mathcal B, the unique 1-cell to an endo-1-cell BΔ+B\Delta_+0, and carries structure 2-cells

BΔ+B\Delta_+1

satisfying the usual unit and associativity axioms (Perticone, 26 Sep 2025).

This factorization yields a fully faithful embedding

BΔ+B\Delta_+2

Concretely, the strict 2-category BΔ+B\Delta_+3, described as the delooping of the monoidal category BΔ+B\Delta_+4, is the free 2-category on one object BΔ+B\Delta_+5 with one 1-cell BΔ+B\Delta_+6 and unary operations BΔ+B\Delta_+7. Its universal property is that strict 2-functors

BΔ+B\Delta_+8

correspond to monads in BΔ+B\Delta_+9. For this reason l\otimes_l0 is called the walking monad (Perticone, 26 Sep 2025).

The walking monad is the basic “free” carrier of monad structure. This suggests that any universal object encoding interactions between monads should arise by combining copies of l\otimes_l1 in a monoidal structure on l\otimes_l2-Cat.

2. Gray tensor as the mechanism of interaction

The relevant monoidal structure is the lax Gray tensor product l\otimes_l3 on l\otimes_l4-Cat, characterized by the adjunction

l\otimes_l5

For strict 2-categories l\otimes_l6, the tensor l\otimes_l7 has 0-cells given by pairs l\otimes_l8, 1-cells generated under composition by horizontal steps l\otimes_l9 and Dist\mathrm{Dist}0, and 2-cells generated by Dist\mathrm{Dist}1, Dist\mathrm{Dist}2, and the interchanger

Dist\mathrm{Dist}3

subject to coherence relations expressing compatibility with vertical and horizontal composition, functoriality in Dist\mathrm{Dist}4 and Dist\mathrm{Dist}5, and the pentagon–triangle axioms making Dist\mathrm{Dist}6 into a strength (Perticone, 26 Sep 2025).

In the summary formulation, the interchanger additionally satisfies identities such as

Dist\mathrm{Dist}7

together with composition laws including

Dist\mathrm{Dist}8

and analogous relations (Perticone, 26 Sep 2025).

The Gray tensor is therefore not merely a product of 2-categories. Its interchanger generates exactly the kind of nontrivial comparison 2-cell needed to express a distributive law between two endo-1-cells.

3. The semi-strict walking distributive law

The walking distributive law is defined by Gray-tensoring the walking monad with itself:

Dist\mathrm{Dist}9

Concretely, W\mathbb W0 has one object W\mathbb W1 and two generating 1-cells

W\mathbb W2

Each of W\mathbb W3 and W\mathbb W4 inherits a monad structure, written W\mathbb W5 and W\mathbb W6, from the respective copies of W\mathbb W7. In addition, there is a distinguished 2-cell

W\mathbb W8

coming from the interchanger W\mathbb W9 (Perticone, 26 Sep 2025).

The defining relations are exactly the usual four Beck distributive-law axioms. In the ordinary categorical notation of two monads λ:STTS\lambda: S\circ T \Rightarrow T\circ S0 and λ:STTS\lambda: S\circ T \Rightarrow T\circ S1 on the same category λ:STTS\lambda: S\circ T \Rightarrow T\circ S2, a natural transformation

λ:STTS\lambda: S\circ T \Rightarrow T\circ S3

is a distributive law precisely when the following equations hold:

λ:STTS\lambda: S\circ T \Rightarrow T\circ S4

λ:STTS\lambda: S\circ T \Rightarrow T\circ S5

λ:STTS\lambda: S\circ T \Rightarrow T\circ S6

These are the unit and multiplication coherences that the interchanger-generated 2-cell must satisfy (Rosset et al., 2024).

A common misconception is that a walking distributive law must already include higher braid-like coherence. In the two-monad case, no higher coherence is needed because there are only two monads (Perticone, 26 Sep 2025). The nontrivial higher coherence appears only in iterated variants.

4. Universal property and algebraic presentation

The universal property of λ:STTS\lambda: S\circ T \Rightarrow T\circ S7 states that a strict 2-functor

λ:STTS\lambda: S\circ T \Rightarrow T\circ S8

is equivalently the datum of an object λ:STTS\lambda: S\circ T \Rightarrow T\circ S9, two monads B\mathcal B0 and B\mathcal B1 on B\mathcal B2, and a 2-cell B\mathcal B3 satisfying the Beck axioms. Equivalently,

B\mathcal B4

where the right-hand side is the ordinary category of distributive laws in B\mathcal B5 (Perticone, 26 Sep 2025).

An explicitly presented version of the same idea is the strictly presented 2-category B\mathcal B6. It has a single object B\mathcal B7, generating 1-cells B\mathcal B8 and B\mathcal B9, generating 2-cells M:1BM:\mathbf 1 \to \mathcal B0, M:1BM:\mathbf 1 \to \mathcal B1, M:1BM:\mathbf 1 \to \mathcal B2, M:1BM:\mathbf 1 \to \mathcal B3, and M:1BM:\mathbf 1 \to \mathcal B4, and relations given by the usual monad axioms for M:1BM:\mathbf 1 \to \mathcal B5 and M:1BM:\mathbf 1 \to \mathcal B6 together with the Beck coherence diagrams for M:1BM:\mathbf 1 \to \mathcal B7 (Rosset et al., 2024). Given any 2-category M:1BM:\mathbf 1 \to \mathcal B8 and such data in M:1BM:\mathbf 1 \to \mathcal B9, there is a unique strict 2-functor

1\mathbf 10

sending the generators to the chosen monads and distributive law (Rosset et al., 2024).

This universal property explains the adjective “walking.” The object walks exactly the structure of a distributive law into any target 2-category, and nothing beyond that structure.

5. Relation to composite theories and rewriting

Distributive laws admit an algebraic interpretation through composite theories. If 1\mathbf 11 and 1\mathbf 12 are algebraic theories with signatures 1\mathbf 13 and equational axioms 1\mathbf 14 presenting finitary monads 1\mathbf 15, then from a distributive law 1\mathbf 16 one forms a new theory

1\mathbf 17

where 1\mathbf 18 consists of exactly the mixed equations forced by 1\mathbf 19 (Rosset et al., 2024).

The paper states two structural properties. First, every XBX\in\mathcal B0-term can be rewritten, using XBX\in\mathcal B1, to a normal form in XBX\in\mathcal B2, that is, a XBX\in\mathcal B3-term whose variables are XBX\in\mathcal B4-terms. Second, any two such separations represent the same element of XBX\in\mathcal B5, so they coincide modulo the XBX\in\mathcal B6- and XBX\in\mathcal B7-axioms. Hence XBX\in\mathcal B8 is precisely the composite theory of XBX\in\mathcal B9 after BΔ+B\Delta_+00 (Rosset et al., 2024).

A term-rewriting system BΔ+B\Delta_+01 is obtained by orienting each distribution equation as a left-to-right rewrite rule

BΔ+B\Delta_+02

under the assumption that each left-hand side has layer BΔ+B\Delta_+03. If BΔ+B\Delta_+04 is terminating, for example by a suitable multiset path order or a polynomial interpretation sending BΔ+B\Delta_+05-symbols to large polynomials and BΔ+B\Delta_+06-symbols to smaller ones, then the smaller subset BΔ+B\Delta_+07 of all BΔ+B\Delta_+08-layer equations suffices to derive all of BΔ+B\Delta_+09 (Rosset et al., 2024).

The prototypical “ring” example takes BΔ+B\Delta_+10 monoids and BΔ+B\Delta_+11 Abelian groups, with key rewrite rules

BΔ+B\Delta_+12

By polynomial interpretation these rules terminate, and Prover9 or similar tools quickly show that the monoid and Abelian-group axioms plus these two rules derive other mixed equations such as BΔ+B\Delta_+13, BΔ+B\Delta_+14, and BΔ+B\Delta_+15 (Rosset et al., 2024).

This correspondence situates the walking distributive law simultaneously in 2-category theory and in algebraic syntax. A plausible implication is that the universal 2-categorical presentation and the composite-theory presentation should be viewed as equivalent organizational perspectives on the same coherence data.

6. Parametric and iterated variants

The parametric walking distributive law is obtained by adjoining an additional Gray factor. If one wishes to parameterize by a 2-category BΔ+B\Delta_+16, the definition is

BΔ+B\Delta_+17

In particular, when BΔ+B\Delta_+18 for a monoidal category BΔ+B\Delta_+19, parameters enter by an extra Gray factor BΔ+B\Delta_+20 (Perticone, 26 Sep 2025). The same source demonstrates applicability by providing two concrete examples involving the Writer and Either monads, explicitly describing morphisms of such parametric distributive laws (Perticone, 26 Sep 2025).

Iterated variants are formed by repeated Gray tensoring. The 3-fold semi-strict distributive law is

BΔ+B\Delta_+21

with three monads BΔ+B\Delta_+22 and three interchangers BΔ+B\Delta_+23 for BΔ+B\Delta_+24. The defining new coherence is the Yang–Baxter equation

BΔ+B\Delta_+25

More generally, the BΔ+B\Delta_+26-fold walking distributive law is

BΔ+B\Delta_+27

and one recovers all higher Yang–Baxter constraints among the various BΔ+B\Delta_+28 (Perticone, 26 Sep 2025).

These iterated constructions clarify the boundary between ordinary distributive-law coherence and genuinely higher compatibility. With two monads, the Beck axioms suffice; with three or more, Yang–Baxter constraints become part of the universal structure.

7. Conceptual role and scope

Within strict 2-category theory, the walking distributive law packages the minimum data required to speak universally about monad composition: two monads on one object together with a comparison 2-cell satisfying Beck coherence. Its semi-strict form is produced canonically from the walking monad via the Gray tensor, and its universal property identifies strict 2-functors out of it with distributive laws in an arbitrary target (Perticone, 26 Sep 2025).

The algebraic presentation complements this by showing that distributive laws are equivalent to composite theories, with mixed equations generated exactly by the distributive law and analyzable by term rewriting (Rosset et al., 2024). This suggests a division of labor between viewpoints: the 2-categorical formulation isolates universal coherence, while the algebraic formulation exposes the induced equations and normalization behavior.

The parametric and iterated extensions enlarge the scope of the construction without changing its basic logic. Parameterization is handled by precomposition and an extra Gray factor; iteration replaces the two-monad setting by a family of monads linked by interchangers, with Yang–Baxter equations governing triple overlaps (Perticone, 26 Sep 2025). In that sense, the walking distributive law is both a basic universal gadget and the first stage of a hierarchy of higher distributive-law objects.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

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

Follow Topic

Get notified by email when new papers are published related to Walking Distributive Law.