This page is a blog article in progress, written by David Tanzer. Here is the Forum editorial discussion for this article. Here are the Forum content notes for this article.
By David A. Tanzer
An operad is a nice mathematical gadget for describing systems built from interconnected, nested subsystems. It consists of a system of ‘objects’ connected by ‘morphisms’, which are thought of as abstract operations on objects. Each morphism has inputs and one output:
The morphisms may be connected into tree diagrams:
The composition of a tree diagram is a morphism that represents the combined operation:
An operad consists of:
The morphism is thought of as an abstract -ary operation:
Here is an example of a tree diagram:
The head of the tree is . The first child of is . That is because the output of is the first input to . Similarly, the second child of is .
The composite morphism will map .
In the technical construction of an operad, the composition rule is defined just for two-level trees, such as the one above. Then, in order to ensure that it can be uniquely extended to a rule for all trees, the associativity condition is imposed as a requirement on the composition rule.
Equivalently, one could start by defining a composition rule for all tree diagrams. Then, the following associativity constraint would be imposed on the rule. Suppose you had a tree of morphisms , with child trees . Let be the tree whose root is the same as , with children , where is the composite of . Then the composite of must equal the composite of .
In other words, the composite of a tree must equal composite obtained by first collapsing – through composition – each of the child subtrees.
The identity morphism for object is defined by the requirement that it is a ‘no-op’ with respect to composition.
This means the following. Suppose is a morphism tree, which contains as a subtree. Let be the result of ‘splicing’ out of the tree.
Then composite() = composite().
Then it follows that the identity morphism for must be unique. For suppose that there were two identity morphisms for . Consider the linear tree which chains into . The result of splicing out of the chain is , and the result of splicing out of the chain is . By the identity requirement, these must be equal.
We illustrate for , which gives the ‘little squares’ operad.
There is just a single object , which serves only as a placeholder.
The entire content of this operad consists of the morphisms from .
Note: the subscript on is only for counting purposes. They’re all the same object.
The morphisms are geometric arrangements.
Choose some fixed ‘outer square,’ which for concreteness we take to be the unit square.
Then a morphism is an arrangement of subsquares within the outer square.
Now, can you picture the natural rule for composing a connected tree of arrangements into a composite arrangement?
(For a drawing, see Spivak’s slide number 8, “The first operad.”)
Here is the picture, painted with words.
Let be an arrangement of subsquares within the unit square.
Let be the width of square .
Suppose that we are given arrangements which we wish to compose into the structure given by .
The interpretation of this will be to nest each as a sub-arrangement of , installing it at the site of .
will function as a frame for the installation of a scaled-down copies of the subsquares comprising .
In particular, the subsquares of will get scaled down by the factor before being installed into the frame .
So now, on our mental ‘workbench’ we have the unit square, subsquares , and sub-subsquares (which have been scaled down).
The final composite is defined by discarding the intermediate subsquares , and just retaining the outer unit square and the scaled down sub-subsquares.
For example, let be the arrangement consisting of the lower left and upper right quarters of the unit square.
The consider the morphism tree consisting of at the root, with two children that are also .
The composite of this tree will be the first iteration of recursively nesting within itself. It consists of four subsquares, each of length 0.25, arranged along the diagonal from the lower left to the upper right corners of the unit square.
Little n-cubes is a “primordial operad” that clearly illustrates the general spirit and intent of a wide range of applications of operads.
Objects conceived as interfaces, and a morphism is conceived as an arrangement of the sub-interfaces within the enclosing interface .
Composition of morphisms is the operation of nesting arrangements and removing the intermediate interfaces.
A tree of connected morphisms can represent a decomposition of a system using a hierarchy of abstractions.
Composition of the morphisms gives the opposite process: concretization, to give an arrangement that explicitly includes all of the most granular components in the system.
For instance, an abstract design for a complex machine may include components like Fast Fourier Transform, Convolution, and so on. Operad morphisms can describe the decomposition of the system into subcomponents, along with their detailed interconnections (wiring, or software ‘plumbing’). In a hardware interpretation, the composition of the hierarchy of morphisms can yield a detailed circuit diagram comprising a large number of elementary logic gates.
There is much more to be said on this subject, which is both elegant and applied.
David I. Spivak, A mathematical language for modular systems. (Slides)
David I. Spivak, The operad of wiring diagrams: formalizing a graphical language for databases, recursion, and plug-and-play circuits.
Azimuth Forum content notes for this blog series. Stop by to discuss!