Algebraic Theory
Categorical Definition
Following Algebraic Theories: A Categorical Introduction to General Algebra, an algebraic theory is simply a Category that has Finite Products. This rather general definition aims to capture the calculus of Simultaneous Substitutions that arise from the syntactic definition of algebraic theories. Moreover, algebraic functors are functors that preserve finite products; this gives rise to a Bicategory (or 2-Category, depending on the strictness involved).
Note that an algebraic theory may carry additional structure, but this structure is not guaranteed to be preserved by algebraic functors.
As noted in by Adamek et al, this bicategory looks a lot like the Category of Modules over a Commutative Semiring:
It has Biproducts: the product of categories with finite products is also a coproduct, with inclusions given by and . Moreover, for each pair of algebraic functors and , there is a unique algebraic functor with and given by:
To see that is product preserving, recall that finite products in are given componentwise; EG:
This means that by definition
To show that is product preserving, we need to show that the diagram formed by
is a product diagram in .
Let be an object in equipped with maps . By the universal property of products in , to construct a map
it suffices to give a pair of maps
However, and are both product preserving, so it further suffices to give families of maps
which we can get from .
Note that biproducts take an -sorted theory and an -sorted theory to an -sorted theory.
It is Symmetric Monoidal: much like we can consider Bilinear (and more generally, Multilinear Maps) between (bi)modules, we can consider bilinear and multilinear maps of algebraic theories. These are bifunctors that preserve products "separately" in each variable; EG, for each , the functor is algebraic and for each , is algebraic.
It's worth pausing to unfold exactly what this is saying. For the sake of concreteness, consider the theories and , and a bifunctor . If preserved products in , then we could -expand it to by the previous section. This means that is forced to send a pair of contexts to the product ; EG: a pair of sets. Moreover, will equip the set with the structure of a group, and with the structure of a monoid.
Now, consider the case where only preserves products separately. Let's unfold what exactly that condition means:
For all , the diagram formed by is a product diagram in .
For all , the diagram formed by is a product diagram in .
According to a remark by Lawvere there is a classifying object for these bilinear algebraic functors, but the details on this are scarce.
It is Symmetric Closed: the Functor Category of finite product-preserving functors is itself a finite-product category, with the product of functors given by taking pointwise products in . Recall that models of algebraic theories are product preserving functors, so the functor category describes the algebraic theory of models of in .