WIPIVERSE All articles

Lawvere theory

A Lawvere theory (also known as an algebraic theory in the categorical sense) is a category-theoretic formulation of the notion of an algebraic theory (such as the theory of groups, rings, or modules). It was introduced by F. William Lawvere in his 1963 PhD thesis, Functorial Semantics of Algebraic Theories.

Definition

Formally, a Lawvere theory is a small category $\mathbb{L}$ with the following properties:

  1. Objects: The objects are the natural numbers $0, 1, 2, \dots$ (interpreted as finite powers of a generic object).
  2. Finite Products: The category has all finite products, and the product of objects $n$ and $m$ is $n+m$. The object $0$ serves as a terminal object (empty product).
  3. Strictness (often assumed): The finite product structure is often taken to be strict, meaning the objects are literally the natural numbers and $n \times m = n+m$ on the nose.

Equivalently, a Lawvere theory is a category with finite products equipped with a strict identity-on-objects finite-product-preserving functor $F : \aleph_0^{\text{op}} \to \mathbb{L}$, where $\aleph_0$ is the category of finite sets and functions (or its skeleton, the category of natural numbers and functions).

Models and Algebras

A model (or algebra) of a Lawvere theory $\mathbb{L}$ in a category $\mathcal{C}$ with finite products is a finite-product-preserving functor $M : \mathbb{L} \to \mathcal{C}$.

  • The category of models of $\mathbb{L}$ in $\mathcal{C}$ is denoted $\text{Mod}(\mathbb{L}, \mathcal{C})$ or $\text{Alg}_{\mathbb{L}}(\mathcal{C})$.
  • When $\mathcal{C} = \mathbf{Set}$ (the category of sets), the models are precisely the algebras for the corresponding algebraic theory in the sense of universal algebra.

Morphisms of Theories

A morphism of Lawvere theories $\mathbb{L} \to \mathbb{L}'$ is a finite-product-preserving functor that is the identity on objects. Such a morphism induces a forgetful functor between the corresponding categories of models (e.g., the forgetful functor from rings to abelian groups arises from a morphism of Lawvere theories).

Relationship to Monads

There is a well-known equivalence (an adjoint equivalence of 2-categories) between:

  1. Lawvere theories.
  2. Finitary monads on $\mathbf{Set}$ (monads whose underlying endofunctor preserves filtered colimits).

Given a Lawvere theory $\mathbb{L}$, the corresponding monad $T$ on $\mathbf{Set}$ sends a set $X$ to the set of morphisms $\mathbb{L}(1, X)$ (or more formally, the coend $\int^n \mathbb{L}(n, 1) \times X^n$). The category of models of $\mathbb{L}$ in $\mathbf{Set}$ is isomorphic to the Eilenberg–Moore category of $T$-algebras.

Examples

  • The theory of sets / trivial theory: The category $\aleph_0^{\text{op}}$ itself (or the category of finite sets and functions). Models are just sets.
  • The theory of monoids: Objects are natural numbers; morphisms $n \to 1$ correspond to terms in $n$ variables modulo monoid axioms. Morphisms $n \to m$ are $m$-tuples of such terms.
  • The theory of groups: Similar to monoids, but with an inverse operation and axioms.
  • The theory of rings / $R$-modules: Operations include addition, multiplication, and scalar multiplication.
  • The theory of Boolean algebras: Operations $\land, \lor, \lnot, 0, 1$.

Significance

Lawvere theories provided the foundation for categorical universal algebra and functorial semantics. They allow algebraic structures to be studied internally in any category with finite products (e.g., topological groups, Lie groups, group objects in a topos) and facilitate the comparison of different algebraic theories via morphisms of theories. They are a special case of essentially algebraic theories (which allow partially defined operations) and sketches.

Browse

More topics to explore

    Browse all articles