Philosophy:Signature (logic)
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 [math]\displaystyle{ \sigma = \left(S_{\operatorname{func}}, S_{\operatorname{rel}}, S_{\operatorname{const}}, \operatorname{ar}\right), }[/math] where [math]\displaystyle{ S_{\operatorname{func}} }[/math] and [math]\displaystyle{ S_{\operatorname{rel}} }[/math] are disjoint sets not containing any other basic logical symbols, called respectively
- function symbols (examples: [math]\displaystyle{ +, \times }[/math]),
- relation symbols or predicates (examples: [math]\displaystyle{ \,\leq, \, \in }[/math]),
- constant symbols (examples: [math]\displaystyle{ 0, 1 }[/math]),
and a function [math]\displaystyle{ \operatorname{ar} : S_{\operatorname{func}} \cup S_{\operatorname{rel}} \to \N }[/math] which assigns a natural number called arity to every function or relation symbol. A function or relation symbol is called [math]\displaystyle{ n }[/math]-ary if its arity is [math]\displaystyle{ n. }[/math] Some authors define a nullary ([math]\displaystyle{ 0 }[/math]-ary) function symbol as constant symbol, otherwise constant symbols are defined separately.
A signature with no function symbols is called a relational signature, and a signature with no relation symbols is called an algebraic signature.[1] A finite signature is a signature such that [math]\displaystyle{ S_{\operatorname{func}} }[/math] and [math]\displaystyle{ S_{\operatorname{rel}} }[/math] are finite. More generally, the cardinality of a signature [math]\displaystyle{ \sigma = \left(S_{\operatorname{func}}, S_{\operatorname{rel}}, S_{\operatorname{const}}, \operatorname{ar}\right) }[/math] is defined as [math]\displaystyle{ |\sigma| = \left|S_{\operatorname{func}}\right| + \left|S_{\operatorname{rel}}\right| + \left|S_{\operatorname{const}}\right|. }[/math]
The language 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.
Other conventions
In universal algebra the word type or similarity type is often used as a synonym for "signature". In model theory, a signature [math]\displaystyle{ \sigma }[/math] is often called a vocabulary, or identified with the (first-order) language [math]\displaystyle{ L }[/math] to which it provides the non-logical symbols. However, the cardinality of the language [math]\displaystyle{ L }[/math] will always be infinite; if [math]\displaystyle{ \sigma }[/math] is finite then [math]\displaystyle{ |L| }[/math] will be [math]\displaystyle{ \aleph 0 }[/math].
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 [math]\displaystyle{ \sigma = (+, -, 0), }[/math] where [math]\displaystyle{ - }[/math] 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 [math]\displaystyle{ \sigma = (2, 1, 0). }[/math]"
Formally this would define the function symbols of the signature as something like [math]\displaystyle{ f_0 }[/math] (which is binary), [math]\displaystyle{ f_1 }[/math] (which is unary) and [math]\displaystyle{ f_2 }[/math] (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,[citation needed] so that constant symbols must be treated separately rather than as nullary function symbols. They form a set [math]\displaystyle{ S_{\operatorname{const}} }[/math] disjoint from [math]\displaystyle{ S_{\operatorname{func}}, }[/math] on which the arity function [math]\displaystyle{ \operatorname{ar} }[/math] 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 [math]\displaystyle{ S_{\operatorname{func}} = \{+\} \cup \left\{f_a : a \in F\right\} }[/math] and [math]\displaystyle{ S_{\operatorname{rel}} = \{=\} }[/math] to formalize expressions and equations about a vector space over an infinite scalar field [math]\displaystyle{ F, }[/math] where each [math]\displaystyle{ f_a }[/math] denotes the unary operation of scalar multiplication by [math]\displaystyle{ a. }[/math] 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 [math]\displaystyle{ n }[/math]-ary function symbol [math]\displaystyle{ f }[/math] in a structure [math]\displaystyle{ \mathbf{A} }[/math] with domain [math]\displaystyle{ A }[/math] is a function [math]\displaystyle{ f^\mathbf{A} : A^n \to A, }[/math] and the interpretation of an [math]\displaystyle{ n }[/math]-ary relation symbol is a relation [math]\displaystyle{ R^\mathbf{A} \subseteq A^n. }[/math] Here [math]\displaystyle{ A^n = A \times A \times \cdots \times A }[/math] denotes the [math]\displaystyle{ n }[/math]-fold cartesian product of the domain [math]\displaystyle{ A }[/math] with itself, and so [math]\displaystyle{ f }[/math] is in fact an [math]\displaystyle{ n }[/math]-ary function, and [math]\displaystyle{ R }[/math] an [math]\displaystyle{ n }[/math]-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 symbol types that play the role of generalized arities.[3]
Symbol types
Let [math]\displaystyle{ S }[/math] be a set (of sorts) not containing the symbols [math]\displaystyle{ \times }[/math] or [math]\displaystyle{ \to. }[/math]
The symbol types over [math]\displaystyle{ S }[/math] are certain words over the alphabet [math]\displaystyle{ S \cup \{\times, \to\} }[/math]: the relational symbol types [math]\displaystyle{ s_1 \times \cdots \times s_n, }[/math] and the functional symbol types [math]\displaystyle{ s_1 \times \cdots \times s_n \to s^\prime, }[/math] for non-negative integers [math]\displaystyle{ n }[/math] and [math]\displaystyle{ s_1, s_2, \ldots, s_n, s^\prime \in S. }[/math] (For [math]\displaystyle{ n = 0, }[/math] the expression [math]\displaystyle{ s_1 \times \cdots \times s_n }[/math] denotes the empty word.)
Signature
A (many-sorted) signature is a triple [math]\displaystyle{ (S, P, \operatorname{type}) }[/math] consisting of
- a set [math]\displaystyle{ S }[/math] of sorts,
- a set [math]\displaystyle{ P }[/math] of symbols, and
- a map [math]\displaystyle{ \operatorname{type} }[/math] which associates to every symbol in [math]\displaystyle{ P }[/math] a symbol type over [math]\displaystyle{ S. }[/math]
See also
- Term algebra – Freely generated algebraic structure over a given signature
Notes
- ↑ Mokadem, Riad; Litwin, Witold (September 2007). "Fast nGram-Based String Search Over Data Encoded Using Algebraic Signatures" (PDF). http://www.cse.scu.edu/~tschwarz/Papers/vldb07_final.pdf. Retrieved 27 February 2019.
- ↑ George Grätzer (1967). "IV. Universal Algebra". in James C. Abbot. Trends in Lattice Theory. Princeton/NJ: Van Nostrand. pp. 173–210. Here: p.173.
- ↑ Many-Sorted Logic, the first chapter in Lecture notes on Decision Procedures, written by Calogero G. Zarba.
References
- Burris, Stanley N.; Sankappanavar, H.P. (1981). A Course in Universal Algebra. Springer. ISBN 3-540-90578-2. Free online edition.
- Hodges, Wilfrid (1997). A Shorter Model Theory. Cambridge University Press. ISBN 0-521-58713-1.
External links
- Stanford Encyclopedia of Philosophy: "Model theory"—by Wilfred Hodges.
- PlanetMath: Entry "Signature" describes the concept for the case when no sorts are introduced.
- Baillie, Jean, "An Introduction to the Algebraic Specification of Abstract Data Types."