Inmathematical logic, asignature is a description of thenon-logical symbols of aformal language. Inuniversal algebra, a signature lists the operations that characterize analgebraic structure. Inmodel theory, signatures are used for both purposes. They are rarely made explicit in more philosophical treatments of logic.
Formally, a (single-sorted)signature can be defined as a 4-tuple where and are disjointsets not containing any other basic logical symbols, called respectively
and a function which assigns a natural number calledarity to every function or relation symbol. A function or relation symbol is called-ary if its arity is Some authors define a nullary (-ary) function symbol asconstant symbol, otherwise constant symbols are defined separately.
A signature with no function symbols is called arelational signature, and a signature with no relation symbols is called analgebraic signature.[1]Afinite signature is a signature such that and arefinite. More generally, thecardinality of a signature is defined as
Thelanguage of a signature is the set of all well formed sentences built from the symbols in that signature together with the symbols in the logical system.
In universal algebra the wordtype orsimilarity type is often used as a synonym for "signature". In model theory, a signature is often called avocabulary, or identified with the(first-order) language to which it provides thenon-logical symbols. However, thecardinality of the language will always be infinite; if is finite then will be.
As the formal definition is inconvenient for everyday use, the definition of a specific signature is often abbreviated in an informal way, as in:
Sometimes an algebraic signature is regarded as just a list of arities, as in:
Formally this would define the function symbols of the signature as something like (which is binary), (which is unary) and (which is nullary), but in reality the usual names are used even in connection with this convention.
Inmathematical logic, very often symbols are not allowed to be nullary,[citation needed] so that constant symbols must be treated separately rather than as nullary function symbols. They form a set disjoint from on which the arity function is not defined. However, this only serves to complicate matters, especially in proofs by induction over the structure of a formula, where an additional case must be considered. Any nullary relation symbol, which is also not allowed under such a definition, can be emulated by a unary relation symbol together with a sentence expressing that its value is the same for all elements. This translation fails only for empty structures (which are often excluded by convention). If nullary symbols are allowed, then every formula ofpropositional logic is also a formula offirst-order logic.
An example for an infinite signature uses and to formalize expressions and equations about avector space over an infinite scalar field where each denotes the unary operation of scalar multiplication by This way, the signature and the logic can be kept single-sorted, with vectors being the only sort.[2]
In the context offirst-order logic, the symbols in a signature are also known as thenon-logical symbols, because together with the logical symbols they form the underlying alphabet over which twoformal languages are inductively defined: The set ofterms over the signature and the set of (well-formed)formulas over the signature.
In astructure, aninterpretation ties the function and relation symbols to mathematical objects that justify their names: The interpretation of an-ary function symbol in a structure withdomain is a function and the interpretation of an-ary relation symbol is arelation Here denotes the-foldcartesian product of the domain with itself, and so is in fact an-ary function, and an-ary relation.
For many-sorted logic and formany-sorted structures, signatures must encode information about the sorts. The most straightforward way of doing this is viasymbol types that play the role of generalized arities.[3]
Let be a set (of sorts) not containing the symbols or
The symbol types over are certain words over the alphabet: the relational symbol types and the functional symbol types for non-negative integers and (For the expression denotes the empty word.)
A (many-sorted) signature is a triple consisting of