We have seen some general conditions under which we can lift the powerset monad to categories of algebras, or equivalently distribute other monads over it. In this post we look at the concrete construction we have been using for the powerset, and generalise the key ideas to a broader class of monads.
The Powerset Case
For a binary operation
the extension to powersets
has some interesting properties.
Firstly, it commutes with units, in the following sense:
We can interpret this as saying extends the behaviour of
from individual elements to arbitrary sets.
Secondly, it commutes with unions in the following sense:
We can interpret this as requiring be a homomorphism with respect to unions in both its arguments. We say
is bilinear in this case, borrowing terminology from linear algebra for argument-wise preservation of vector space structure.
The construction we are using yields a bilinear extension of any binary operation. Such extensions are unique, as we shall soon see as a corollary of a more general result. You may wish to consider how to prove this directly.
The General Case
The properties of the concrete construction we have been using that were identified above are crucial to its good behaviour. We now generalise those properties to more general monads.
Abstract Definitions
We can generalise the notion of extension to any monad on a monoidal category
For morphism
we say that morphism
is an extension of if
To generalise bilinearity, we need to assume is a commutative monad. For Eilenberg-Moore algebras
we say
is bilinear if
where is the double strength natural transformation given by our assumption that
is commutative.
Finally, we say that a morphism
is a bilinear extension of if it is an extension that is bilinear with respect to the free algebras
Existence of Bilinear Extensions
With the terminology of the previous section, we can construct a bilinear extension of as
To confirm this is an extension:
For bilinearity
Uniqueness of Bilinear Extensions
Assume and
are bilinear, and they satisfy
This implies
Applying naturality, this is equivalent to
Using the bilinearity property
Finally, using bifunctoriality and the right unit monad axiom:
As a pair of bilinear extensions of the same morphism satisfy our initial assumption, bilinear extensions are unique.
Summary
In this post we have abstracted some properties of the powerset monad to any commutative monad. Although these definitions isolate some interesting algebraic structure, they are perhaps slightly ill-motivated at this stage.
As is common in category theory, we have established an existence property that allows us to construct a gadget with desirable properties, and a uniqueness property that gives us a proof principle with which to reason about such gadgets. This perspective will be important when we look at the preservation of linear equations.
To keep things simple, we have concentrated on bilinearity. It is fairly straightforward to generalise further to multilinearity, which we leave to the enthusiastic reader.
More background on the machinery in this section can be found in:
- Kock “Bilinearity and Cartesian Closed Monads”
- Manes “A Class of Fuzzy Theories”
- Jacobs “Semantics of weakening and contraction”
One thought on “Monads and Multilinear Extensions”