nLab
signature (in logic)

Context

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

In logic, a signature is a collection of data which prescribes the ‘alphabet’ of non-logical symbols of a logical theory, saying which operations and predicates are taken to be primitive.

Definition

Types

Formally, a signature Σ consists of

  • A set S whose elements are called sorts or types of Σ,

  • A set Rel(Σ) whose elements are called relation symbols, equipped with a function ar:Rel(Σ)S * to the free monoid on S which prescribes an arity for each relation symbol,

  • A set Func(Σ) whose elements are called function symbols, equipped with a function

    dom,cod:Func(Σ)S *×S\langle dom, cod \rangle: Func(\Sigma) \to S^* \times S

    which prescribes an arity or type for each function symbol. A function symbol f is usually written as dom(f)cod(f) to indicate its arity.

The majority of (but far from all) mathematical concepts are described by means of a single-sorted signature, where S consists of a single element X. Examples where multisorted signatures are used is the theory of categories (with an object sort and a morphism sort) and (multi)directed graphs (with a vertex sort and an edge sort). But in the single-sorted or one-sorted case, the free monoid on the one-sort set is isomorphic to , and the arity of a relation is a number n. Hence we speak of an n-ary relation (unary, binary, etc.). Similarly, the arity of a function symbol or operation f is the number n which indexes dom(f) (hence we speak of unary operations, binary operations, etc.) In either the single-sorted or multisorted case, a 0-ary operation (where the domain empty) is usually called a constant.

A relational signature is where Func(Σ) is empty, and an equational or algebraic signature is where Rel(Σ) is empty. (In the latter case, the only relation symbol is the equality symbol, but this is typically considered a logical symbol.) Occasionally one allows a relational signature to have constants.

Models

A (set-theoretic) model or interpretation M of a signature consists of functions which assign

  • To each sort s a set M(s),

  • To each relation symbol R of arity s 1,,s n a subset M(R)M(s 1)××M(s n),

  • To each function symbol f of type s 1,,s ns a function M(f):M(s 1)××M(s n)M(s). In the case of constants of type s, the empty product on the left is taken to be a terminal or 1-element set 1, whose element needs no name but is often given a generic name like ’*’.

More generally a signature may be interpreted in other categories C besides Set; for this it is reasonable to suppose that C is at least a regular category. See also

Theories

In terms of a signature one may formulate propositions, sequents and then theories. See there for more details.

Examples

An important point to bear in mind is that essentially the same theories (where ‘same’ means that the categories of models are equivalent or even isomorphic) may have very different signatures. For example,

  • The theory of groups is usually described as a single-sorted theory whose signature has one binary operation (called ‘multiplication’) m, one constant e (called ‘identity’), and one unary operation (called ‘inversion’) i. But it can also be described using a signature with just one (binary) operation m; there one adds in extra axioms which posit the existence of an identity and of inverse elements. Or, it can be described using a signature with a single (binary) operation d (for ‘division’). All these are examples of equational signatures.

  • A Boolean ring is usually described as a commutative ring with identity in which multiplication is idempotent, hence the theory of Boolean rings is usually presented using the signature normally reserved for rings (with identity). A Boolean algebra may be described using a variety of signatures, for example non-equationally, involving a binary relation and function symbols , ¬, .

  • The theory ZFC is usually described using a single-sorted relational signature with one binary relation . However, other approaches are possible: one can also describe ZFC with a relational symbol together with a unary function symbol sing (to be interpreted as taking a ‘set’ S, i.e., an element of a ZFC structure, to a singleton ‘set’ {S}).

Remarks

The multiplicity of ways in which one can describe essentially the same class of objects is a phenomenon which in higher category theory is often referred to as bias?. Often one desires to use an ‘unbiased’ approach which includes different signatures under one roof and on the same footing. In the case of algebraic (equational) theories, this can be done using the device of clones or Lawvere theories, which does not single out certain non-logical operations as ‘privileged’.

There are several reasons though why one might prefer to retain some bias, for example:

  • Tradition, familiarity, thus ease of reference. For example, a group is a set equipped with a binary m, an unary i, and a constant e, rather than a set equipped with a single division operation, or a finite product-preserving functor for that matter.

  • Mathematical intuition. That is, different signatures may invoke different intuitions or attitudes toward a subject; for example, “Boolean rings” may invoke a more algebraic or algebro-geometric attitude (as in Stone duality) whereas “Boolean algebras” may invoke a more logical attitude (propositional logic).

  • Differences in logical strength. That is, first-order logic should be thought of as coming in layers, ranging from equational logic up to pretopos logic, and different signatures may need differing levels of logical strength for them to be interpreted as intended. Equational logic may be preferred on occasion because it is a very weak logic, whereas relational signatures often require at least the strength of regular categories for them to be interpreted correctly.

The language of a signature

Each signature Σ generates a language whose elements are predicates formed by using Σ as alphabet. In traditional logical syntax, this runs as follows: (to be filled in).

This can be recast in categorical terms as follows: the operational part of a signature Σ is a span

S *Func ΣSS^* \leftarrow Func_\Sigma \to S

which generates a multisorted Lawvere theory, Law(Func Σ).

Define

i:S *Set:s{RRel(Σ):ar(R)=s}i: S^* \to Set: \vec{s} \mapsto \{R \in Rel(\Sigma): ar(R) = \vec{s}\}

where S * is treated as a discrete category. Define an interpretation of Σ to be an ordered pair

(M:Law(Func Σ) opBool,ρ:iUMj)(M: Law(Func_\Sigma)^{op} \to Bool, \rho: i \to U M j)

where U:BoolSet is the underlying-set functor, j:S *Law(Func Σ) op is the obvious inclusion functor, M is a functor whose values M(f) on morphisms have left adjoints f such that the Beck-Chevalley conditions are satisfied, and ρ is a natural transformation. A morphism of interpretations (M,ρ)(M,ρ) is a natural transformation ϕ:MM commuting with the left adjoints, such that ρ=(U(ϕ)j)ρ.

The language of Σ is the initial interpretation.

(To be expanded upon and cleaned up…)

Revised on August 25, 2012 21:30:51 by Urs Schreiber (82.113.106.150)