In his 1963 doctoral dissertation, Bill Lawvere introduced a new categorical method for doing universal algebra, alternative to the usual way of presenting an algebraic concept by means of its logical signature (with generating operations satisfying equational axioms). The rough idea is to define an algebraic theory as a category with finite products and possessing a “generic algebra” (e.g., a generic group), and then define a model? of that theory (e.g., a group) as a product-preserving functor out of that category. This type of category is what is nowadays called a Lawvere algebraic theory, or just Lawvere theory.
A Lawvere theory or finite-product theory is a category with finite cartesian products in which every object is isomorphic to a finite cartesian power of a distinguished object (called the generic object for the theory ). It is common to adopt the (slightly evil) convention that every object of is equal to a chosen power of . Thus, if is the category of finite cardinals and functions between them, then the unique (up to isomorphism) product-preserving functor
that takes the 1-element cardinal to is commonly supposed to be surjective on objects (rather than, less evilly, essentially surjective).
A model of is a product-preserving functor , and homomorphism of models is a natural transformation between such functors. A morphism of theories is again a product-preserving functor. Thus, (the “theory of equality”) is initial in the category of Lawvere theories.
As a running example, let us consider the theory of groups (defined however you like). To get the corresponding Lawvere theory , let (for any natural number ) be a free group on generators, and define the Lawvere theory to be the category opposite to the category of free groups and group homomorphisms. The generic object of is taken to be .
The category of free groups has finite coproducts since (in other words, the inclusion
creates coproducts in ), so has finite products, and we have in . Any group defines a product-preserving functor
since contravariant hom-functors take coproducts to products. Thus any group gives a model of .
The other direction is more interesting. Let
be a model of , i.e., a product-preserving functor. We will define a group structure on , the underlying set of the group.
To understand this, let’s consider how group multiplication would be defined. The idea is that in is a “generic group”, so we first need to understand how multiplication works there. The idea is that the product in the generic group
corresponds to a homomorphism
which by freeness corresponds to an element , and the element we are after should the product of the generators of the free group . The generators themselves correspond to the two coproduct inclusions
Then, since is assumed to preserve products, we obtain a map
and this defines the group multiplication on . The group identity and group inversion on are defined by following similar recipes.
It may be checked that the notion of homomorphism of -models (as defined above) coincides with the usual notion of group homomorphism. In summary, the category of groups is equivalent to the category of models of .
In particular, any hom-functor
preserves products, and so defines a group. This group is precisely the free group on generators, and a little thought shows that the generators correspond to the natural transformations
induced by the projection maps .
All of the discussion above for the case of groups generalizes to any finitary algebraic theory (i.e., any single-sorted theory whose signature consists of function symbols of finite arity, subject to universally quantified equational axioms). In summary:
The Lawvere theory is the category opposite to the category of free algebras on finitely many generators,
The category of algebras is in turn equivalent to the category of product-preserving functors , and
The free algebras are retrieved as the representable functors .
As discussed in the article on operads, the notion of Lawvere theory may also be formulated in terms of operads relative to the theory of cartesian monoidal categories.
If is a category with finite products, then a group (object) in may be defined as a product-preserving functor . For example, a topological group may be identified with a functor , and a Lie group with a product-preserving functor into the category of smooth manifolds. An analogous statement holds for any finitary algebraic theory, when formulated in terms of its Lawvere theory .
As finite-product theories, Lawvere theories are at one end of a spectrum of theories of differing logical strengths. For example, there are left exact theories, regular theories, geometric theories, and so on, which require for their interpretation categories of differing degrees of strength in their internal logic. See also classifying topos.
Some people use ‘finite-product theory’ to mean a category with finite products, not necessarily with the property that every object is isomorphic to a product of copies of a given object , reserving ‘Lawvere theory’ to refer to finite product theories with this special property. Some, but not all, the above discussion generalizes to this case. There is, for example, a finite products theory for ring-module pairs.