Signature (logic) explained

In logic, especially mathematical logic, a signature lists and describes the non-logical symbols of a formal language. In universal algebra, a signature lists the operations that characterize an algebraic structure. In model theory, signatures are used for both purposes. They are rarely made explicit in more philosophical treatments of logic.

Definition

Formally, a (single-sorted) signature can be defined as a 4-tuple

\sigma=\left(S\operatorname{func

}, S_, S_, \operatorname\right), where

S\operatorname{func

} and

S\operatorname{rel

} are disjoint sets not containing any other basic logical symbols, called respectively

+, x

),

\leq,\in

),

0,1

),and a function

\operatorname{ar}:S\operatorname{func

} \cup S_ \to \N which assigns a natural number called arity to every function or relation symbol. A function or relation symbol is called

n

-ary if its arity is

n.

Some authors define a nullary (

0

-ary) function symbol as constant symbol, otherwise constant symbols are defined separately.

A signature with no function symbols is called a , and a signature with no relation symbols is called an .[1] A is a signature such that

S\operatorname{func

} and

S\operatorname{rel

} are finite. More generally, the cardinality of a signature

\sigma=\left(S\operatorname{func

}, S_, S_, \operatorname\right) is defined as

|\sigma|=\left|S\operatorname{func

}\right| + \left|S_\right| + \left|S_\right|.

The is the set of all well formed sentences built from the symbols in that signature together with the symbols in the logical system.

Other conventions

In universal algebra the word or is often used as a synonym for "signature". In model theory, a signature

\sigma

is often called a , or identified with the (first-order) language

L

to which it provides the non-logical symbols. However, the cardinality of the language

L

will always be infinite; if

\sigma

is finite then

|L|

will be

\aleph0

.

As the formal definition is inconvenient for everyday use, the definition of a specific signature is often abbreviated in an informal way, as in:

"The standard signature for abelian groups is

\sigma=(+,-,0),

where

-

is a unary operator."

Sometimes an algebraic signature is regarded as just a list of arities, as in:

"The similarity type for abelian groups is

\sigma=(2,1,0).

"

Formally this would define the function symbols of the signature as something like

f0

(which is binary),

f1

(which is unary) and

f2

(which is nullary), but in reality the usual names are used even in connection with this convention.

In mathematical logic, very often symbols are not allowed to be nullary, so that constant symbols must be treated separately rather than as nullary function symbols. They form a set

S\operatorname{const

} disjoint from

S\operatorname{func

}, on which the arity function

\operatorname{ar}

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 of propositional logic is also a formula of first-order logic.

An example for an infinite signature uses

S\operatorname{func

} = \ \cup \left\ and

S\operatorname{rel

} = \ to formalize expressions and equations about a vector space over an infinite scalar field

F,

where each

fa

denotes the unary operation of scalar multiplication by

a.

This way, the signature and the logic can be kept single-sorted, with vectors being the only sort.[2]

Use of signatures in logic and algebra

In the context of first-order logic, the symbols in a signature are also known as the non-logical symbols, because together with the logical symbols they form the underlying alphabet over which two formal languages are inductively defined: The set of terms over the signature and the set of (well-formed) formulas over the signature.

In a structure, an interpretation ties the function and relation symbols to mathematical objects that justify their names: The interpretation of an

n

-ary function symbol

f

in a structure

A

with domain

A

is a function

fA:An\toA,

and the interpretation of an

n

-ary relation symbol is a relation

RA\subseteqAn.

Here

An=A x A x x A

denotes the

n

-fold cartesian product of the domain

A

with itself, and so

f

is in fact an

n

-ary function, and

R

an

n

-ary relation.

Many-sorted signatures

For many-sorted logic and for many-sorted structures, signatures must encode information about the sorts. The most straightforward way of doing this is via that play the role of generalized arities.[3]

Symbol types

Let

S

be a set (of sorts) not containing the symbols

x

or

\to.

The symbol types over

S

are certain words over the alphabet

S\cup\{ x ,\to\}

: the relational symbol types

s1 x x sn,

and the functional symbol types

s1 x x sn\tos\prime,

for non-negative integers

n

and

s1,s2,\ldots,sn,s\prime\inS.

(For

n=0,

the expression

s1 x x sn

denotes the empty word.)

Signature

A (many-sorted) signature is a triple

(S,P,\operatorname{type})

consisting of

S

of sorts,

P

of symbols, and

\operatorname{type}

which associates to every symbol in

P

a symbol type over

S.

References

External links

Notes and References

  1. Web site: Mokadem . Riad . Litwin, Witold . Rigaux, Philippe . Schwarz, Thomas . Fast nGram-Based String Search Over Data Encoded Using Algebraic Signatures . 33rd International Conference on Very Large Data Bases (VLDB) . 27 February 2019 . PDF . September 2007.
  2. Book: George Grätzer

    . James C. Abbot . Trends in Lattice Theory . Princeton/NJ . Van Nostrand . 1967 . George Grätzer . George Grätzer . IV. Universal Algebra . 173 - 210. Here: p.173.

  3. https://web.archive.org/web/20070929131504/http://react.cs.uni-sb.de/%7Ezarba/snow/ch01.pdf Many-Sorted Logic