nLab
essentially algebraic theory

Context

Higher algebra

Type theory

natural deduction metalanguage, practical foundations

  1. type formation rule
  2. term introduction rule
  3. term elimination rule
  4. computation rule

type theory (dependent, intensional, observational type theory, homotopy type theory)

syntax object language

computational trinitarianism = propositions as types +programs as proofs +relation type theory/category theory

logiccategory theorytype theory
trueterminal object/(-2)-truncated objecth-level 0-type/unit type
falseinitial objectempty type
proposition(-1)-truncated objecth-level 1-type/h-prop
proofgeneralized elementprogram
conjunctionproductproduct type
disjunctioncoproduct ((-1)-truncation of)sum type (bracket type of)
implicationinternal homfunction type
negationinternal hom into initial objectfunction type into empty type
universal quantificationdependent productdependent product type
existential quantificationdependent sum ((-1)-truncation of)dependent sum type (bracket type of)
equivalencepath space objectidentity type
equivalence classquotientquotient type
inductioncolimitinductive type, W-type, M-type
higher inductionhigher colimithigher inductive type
completely presented setdiscrete object/0-truncated objecth-level 2-type/preset/h-set
setinternal 0-groupoidBishop set/setoid
universeobject classifiertype of types
modalityclosure operator monadmodal type theory, monad (in computer science)

homotopy levels

semantics

Contents

Idea

A mathematical structure is essentially algebraic if its definition involves partially defined operations satisfying equational laws, where the domain of any given operation is a subset where various other operations happen to be equal. An actual algebraic theory is one where all operations are total functions.

The most familiar example may be the (strict) notion of category: a small category consists of a set C 0 of objects, a set C 1 of morphisms, source and target maps s,t:C 1C 0 and so on, but composition is only defined for pairs of morphisms where the source of one happens to equal the target of the other.

Essentially algebraic theories can be understood through category theory at least when they are finitary, so that all operations have only finitely many arguments. This gives a generalisation of Lawvere theories, which describe finitary algebraic theories.

As the domains of the operations are given by the solutions to equations, they may be understood using the notion of equalizer. So, just as a Lawvere theory is defined using a category with finite products, a finitary essentially algebraic theory is defined using a category with finite limits — or in other words, finite products and also equalizers (from which all other finite limits, including pullbacks, may be derived).

Definition

As alluded to above, the most concise and elegant definition is through category theory. The traditional definition is this:

Definition

An essentially algebraic theory or finite limits theory is a category that is finitely complete, i.e., has all finite limits. A model of an essentially algebraic theory T is a functor

F:TSetF: T \to Set

that is left exact, i.e., preserves all finite limits. A homomorphism of models is a natural transformation

α:FF\alpha : F \to F'

between left exact functors F,F:TSet. Models of an essentially algebraic theory T and the homomorphisms between them form a category Mod(T)=Lex(T,Set).

More generally, for any category with finite limits X, we can define the category of models of T in X, Lex(T,X), which has left exact functors F:TX as objects and natural transformations between these as morphisms.

However, the finiteness restriction on the limits above is not part of the core concept of an ‘essentially algebraic’ structure, so one may prefer to call a category with finite limits an finitary essentially algebraic theory. We do this in what follows.

A more traditional syntactic definition (following Adamek–Rosicky; see the references below) is as follows:

Definition

An essentially algebraic theory is a quadruple

Γ=(Σ,E,Σ t,Def)\Gamma = (\Sigma, E, \Sigma_t, Def)

where Σ is a many-sorted signature consisting only of operation symbols, E is a set of Σ-equations, Σ tΣ is a set of operation symbols called “total”, and Def is a function which assigns, to each operation σΣΣ t of type iIs is, a set Def(σ) of Σ t-equations involving only variables x iVar(s i).

A (set-theoretic) model M of a theory Γ assigns to each sort s a set M(s), to each operation symbol σ: iIs is of Σ a partial function

M(σ): iIM(s i)M(s)M(\sigma): \prod_{i \in I} M(s_i) \to M(s)

such that

  • For each σΣ t the function M(σ) is a total function;

  • For each σΣΣ t of type iIs is, and each I-tuple

    a=a i iI iIM(s i),a = \langle a_i \rangle_{i \in I} \in \prod_{i \in I} M(s_i),

    M(σ)(a) is defined if and only if all the equations in Def(σ) are satisfied at the argument a.

  • All the equations of E are satisfied (i.e., are interpreted as equations between partial functions).

Homomorphisms of models θ:MM are defined in the standard way: a collection of functions θ(s):M(s)M(s) for each sort of the signature Σ which are compatible with the M(σ),M(σ) in the evident way.

Properties

The point is that (in the finitary case) either notion of theory may be used to specify the same category of models, and that

Categories of models of finitary essentially algebraic theories are precisely equivalent to locally finitely presentable categories. These are equivalent to categories of models of finite limit sketches.

Examples

  • A (multisorted) Lawvere theory T is the same thing (has the same models) as a finitary essentially algebraic theory in which all operations are total. If C T is the opposite of the category of finitely presented T-algebras, then the category of models is equivalent to Lex(C,Set).

  • As mentioned above, categories are models of a finitary essentially algebraic theory.

  • An equational Horn theory is essentially algebraic, but not all essentially algebraic theories are equational Horn theories. Perhaps surprisingly, Cat is not the category of models of any equational Horn theory, nor is even the category Pos of posets. See this paper by Barr for a proof.

Revised on June 1, 2012 04:15:55 by Mike Shulman (71.136.228.203)