nLab
theory

Contents

Idea

A theory is a collection of axioms in some logic.

Definition

There are several different viewpoint on theories:

  • The

    syntactic view

    is that the theory itself consists of the set of formulas in the first order language Lang(Σ) of a signature Σ together with the set of logical consequences (aka theorems) of the axioms in A, relative to (some specified) fragment of first-order logic.

  • The

    semantic view

    is that the theory is given by the class of its models appropriate to that fragment of logic. Gödel’s completeness theorem is that a sentence in 𝒯 is a theorem iff it is satisfied in every model.

  • The

    categorical view

    is that the logical formalism of a theory 𝒯 can frequently be embodied in a syntactic category of terms C 𝒯, so that models of a theory 𝒯 are identified with functors

    C 𝒯SetC_{\mathcal{T}} \to Set

    that preserve some (typically property-like) structures on C 𝒯, such as certain classes of colimits or of limits, pertinent to the fragment of logic at hand. Then a completeness theorem would be the statement that the canonical map

    C 𝒯 modelsFinSetSetC_{\mathcal{T}} \to \prod_{models F in Set} Set

    is a full faithful embedding (one that preserves all relevant logical structure). For this reason, completeness theorems are also known as embedding theorems.

Hm, is that the way it should be said?

In fact, the notion of model can be generalized away from Set to more general categories, namely those that have enough structure to “internalize” the fragment of logic at hand. From this very general point of view on model, the syntactic category C 𝒯 is the generic or universal model for 𝒯, and if we simply call C 𝒯 the theory, then models and theories are placed on the same footing.

In this article we mostly consider the categorical view on “theory”.

Syntactic view

Definition

In first-order logic, a theory 𝒯 is presented by

  1. a signature Σ, specifying the allowed types of variables and the functions and relations between these;

  2. a set A of sequents of formula?s in this signature, called the axioms of the theory: expressed in the first-order language Lang(Σ) with equality generated by Σ

For instance (Johnstone, def. D1.1.6).

Semantic view

(…)

Categorical view

(…)

(…)

Examples

Classes of theories

There are many different kinds of “theory” depending on the strength of the “logic”: a by-no-means complete list includes

and corresponding theories for these logics.

Hierarchy of theories: cartesian, regular, coherent, geometric

There is a hierarchy of theories that can be interpreted in the internal logic of a hierarchy of types of categories. Since predicates in the internal logic are represented by subobjects, in order to interpret any connective or quantifier in the internal logic, one needs a corresponding operation on subobjects to exist in the category in question, and be well-behaved. For instance:

Note that the axioms of one of these theories are actually of the form

φ xψ\varphi \vdash_{\vec{x}} \psi

where φ and ψ are formulas involving only the specified connectives and quantifiers, means entailment, and x is a context. Such an axiom can also be written as

x.(φψ)\forall \vec{x}. (\varphi \Rightarrow \psi)

so that although and are not strictly part of any of the above logics, they can be applied “once at top level.” In an axiom of this form for geometric logic, the formulas φ and ψ which must be built out of , , , , and are sometimes called positive formulas.

Abelian theories

Interestingly, one form of logic which made an early appearance but is not ordinarily thought of as logic at all is the logic of abelian categories, which is characterized by certain exactness properties. Here a small abelian category A can be thought of as a syntactic site for some “abelian theory”; models of the theory are exact additive functors with domain A. The classical models would in fact be exact additive functors AAb, or exact additive functors to a category of modules. A “Freyd-Heron-Lubkin-Mitchell” embedding theorem is then a completeness theorem with respect to the classical models, and assures us that a statement in the language of abelian category theory is provable if and only if it is true when interpreted in any module category.

Specific examples

The simplest nontrivial theory is the

Models for a theory

From the categorical point of view, for every theory T there exists a category C T – the syntactic category C T – such that a model for T is a functor C T𝒯 into some topos T, satisfying certain conditions.

For instance the syntactic categories of Lawvere theories are precisely those categories that have finite cartesian products and in which every object is isomorphic to a finite cartesian power x n of a distinguished object x. A model for a Lawvere theory is precisely a finite product preserving functor C T𝒯.

We say a functor 𝒯 1𝒯 2 of toposes (for instance a logical morphism or a geometric morphism) preserves a theory T if for every model C T𝒯 1 of T in 𝒯 1, the composite C T𝒯 1𝒯 2 is a model of T in 𝒯 2.

For instance, every geometric morphism preserves every Lawvere theory since, being a right adjoint, it preserves limits, hence finite products.

A standard textbook reference is section D of

A discussion of the relation between theories and their syntactic categories is at

Other references include

In Coq theories are specified with the