Structure (mathematical logic) should not be confused with Mathematical model.
In universal algebra and in model theory, a structure consists of a set along with a collection of finitary operations and relations that are defined on it.
Universal algebra studies structures that generalize the algebraic structures such as groups, rings, fields and vector spaces. The term universal algebra is used for structures of first-order theories with no relation symbols.[1] Model theory has a different scope that encompasses more arbitrary first-order theories, including foundational structures such as models of set theory.
From the model-theoretic point of view, structures are the objects used to define the semantics of first-order logic, cf. also Tarski's theory of truth or Tarskian semantics.
For a given theory in model theory, a structure is called a model if it satisfies the defining axioms of that theory, although it is sometimes disambiguated as a semantic model when one discusses the notion in the more general setting of mathematical models. Logicians sometimes refer to structures as "interpretations",[2] whereas the term "interpretation" generally has a different (although related) meaning in model theory, see interpretation (model theory).
In database theory, structures with no functions are studied as models for relational databases, in the form of relational models.
In the context of mathematical logic, the term "model" was first applied in 1940 by the philosopher Willard Van Orman Quine, in a reference to mathematician Richard Dedekind (1831 – 1916), a pioneer in the development of set theory.[3] [4] Since the 19th century, one main method for proving the consistency of a set of axioms has been to provide a model for it.
Formally, a structure can be defined as a triple
l{A}=(A,\sigma,I)
A,
\sigma,
I
\sigma
\sigma
See main article: Domain of discourse. The domain of a structure is an arbitrary set; it is also called the of the structure, its (especially in universal algebra), its (especially in model theory, cf. universe), or its . In classical first-order logic, the definition of a structure prohibits the empty domain.[5]
Sometimes the notation
\operatorname{dom}(lA)
|lA|
lA,
lA
See main article: Signature (logic). The signature
\sigma=(S,\operatorname{ar})
S
\operatorname{ar}: S\to\N0
s
n=\operatorname{ar}(s).
n=\operatorname{ar}(s)
s
s
s.
Since the signatures that arise in algebra often contain only function symbols, a signature with no relation symbols is called an algebraic signature. A structure with such a signature is also called an algebra; this should not be confused with the notion of an algebra over a field.
The interpretation function
I
lA
f
n
n
flA=I(f)
R
n
n
RlA=I(R)\subseteqA\operatorname{ar(R)
=0
c
I(c)
When a structure (and hence an interpretation function) is given by context, no notational distinction is made between a symbol
s
I(s).
f
lA,
f:lA2\tolA
flA:|lA|2\to|lA|.
The standard signature
\sigmaf
+
x
-
+
0
1
+
x
A
\Q,
\Reals
\Complex,
\sigma
In all three cases we have the standard signature given by with
Sf=\{+, x ,-,0,1\}
The interpretation function
IlQ
IlQ(+):\Q x \Q\to\Q
IlQ( x ):\Q x \Q\to\Q
IlQ(-):\Q\to\Q
x
-x,
IlQ(0)\in\Q
0,
IlQ(1)\in\Q
1;
IlR
IlC
But the ring
\Z
\sigmaf
\sigmaf
A signature for ordered fields needs an additional binary relation such as
<
\leq,
The ordinary signature for set theory includes a single binary relation
\in.
\in
lA
lB
lA
lB
\sigma(lA)=\sigma(lB);
lA
lB:
|lA|\subseteq|lB|;
|lA|.
The usual notation for this relation is
lA\subseteqlB.
A subset
B\subseteq|lA|
lA
lA,
n,
n
f
lA
b1,b2,...,bn\inB,
f
n
b1b2...bn
B:
f(b1,b2,...,bn)\inB.
For every subset
B\subseteq|lA|
|lA|
B.
B,
B,
\langleB\rangle
\langleB\ranglelA
\langle\rangle
|lA|
If
lA=(A,\sigma,I)
B\subseteqA
(B,\sigma,I')
lA,
I'
B
lA.
The closed subsets (or induced substructures) of a structure form a lattice. The meet of two subsets is their intersection. The join of two subsets is the closed subset generated by their union. Universal algebra studies the lattice of substructures of a structure in detail.
Let
\sigma=\{+, x ,-,0,1\}
\sigma
The set of integers gives an even smaller substructure of the real numbers which is not a field. Indeed, the integers are the substructure of the real numbers generated by the empty set, using this signature. The notion in abstract algebra that corresponds to a substructure of a field, in this signature, is that of a subring, rather than that of a subfield.
The most obvious way to define a graph is a structure with a signature
\sigma
E.
a
b,
(a,b)\inE
a
b
G
H
H
G,
Given two structures
lA
lB
lA
lB
h:|lA| → |lB|
a1,a2,...,an\in|lA|
h(f(a1,a2,...,an))=f(h(a1),h(a2),...,h(an))
a1,a2,...,an\in|lA|
(a1,a2,...,an)\inRl{A
Rl{A
Rl{B
R
l{A}
l{B}
A homomorphism h from
lA
lB
h:lA → lB
|l{A}|
|l{B}|
l{A}
l{B}
For every signature σ there is a concrete category σ-Hom which has σ-structures as objects and σ-homomorphisms as morphisms.
A homomorphism
h:lA → lB
b1,b2,...,bn\in|lB|
(b1,b2,...,bn)\inRl{B
a1,a2,...,an\in|lA|
(a1,a2,...,an)\inRl{A
b1=h(a1),b2=h(a2),...,bn=h(an).
A (σ-)homomorphism
h:lA → lB
a1,a2,...,an
(a1,a2,...,an)\inRl{A
Rl{A
Rl{B
l{A}
l{B}
Thus an embedding is the same thing as a strong homomorphism which is one-to-one.The category σ-Emb of σ-structures and σ-embeddings is a concrete subcategory of σ-Hom.
Induced substructures correspond to subobjects in σ-Emb. If σ has only function symbols, σ-Emb is the subcategory of monomorphisms of σ-Hom. In this case induced substructures also correspond to subobjects in σ-Hom.
As seen above, in the standard encoding of graphs as structures the induced substructures are precisely the induced subgraphs. However, a homomorphism between graphs is the same thing as a homomorphism between the two structures coding the graph. In the example of the previous section, even though the subgraph H of G is not induced, the identity map id: H → G is a homomorphism. This map is in fact a monomorphism in the category σ-Hom, and therefore H is a subobject of G which is not an induced substructure.
The following problem is known as the homomorphism problem:
Given two finite structures
lA
lB
h:lA → lB
Every constraint satisfaction problem (CSP) has a translation into the homomorphism problem. Therefore, the complexity of CSP can be studied using the methods of finite model theory.
Another application is in database theory, where a relational model of a database is essentially the same thing as a relational structure. It turns out that a conjunctive query on a database can be described by another structure in the same signature as the database model. A homomorphism from the relational model to the structure representing the query is the same thing as a solution to the query. This shows that the conjunctive query problem is also equivalent to the homomorphism problem.
Structures are sometimes referred to as "first-order structures". This is misleading, as nothing in their definition ties them to any specific logic, and in fact they are suitable as semantic objects both for very restricted fragments of first-order logic such as that used in universal algebra, and for second-order logic. In connection with first-order logic and model theory, structures are often called models, even when the question "models of what?" has no obvious answer.
Each first-order structure
l{M}=(M,\sigma,I)
l{M}\vDash\phi
\phi
l{M}
M,
A structure
l{M}
T
l{M}
T
T
l{M}.
An
n
R
M
l{M}
\emptyset
\emptyset
\varphi(x1,\ldots,xn)
R
\varphi
An important special case is the definability of specific elements. An element
m
M
l{M}
\varphi(x)
A relation
R
|lM|
\varphi
l{M}
R
\varphi.
Some authors use definable to mean definable without parameters, while other authors mean definable with parameters. Broadly speaking, the convention that definable means definable without parameters is more common amongst set theorists, while the opposite convention is more common amongst model theorists.
Recall from above that an
n
R
M
l{M}
\varphi(x1,\ldots,xn)
Here the formula
\varphi
R
l{M}
\varphi
R
R
l{M}.
\varphi
l{M}
R,
R
l{M}
l{M}\vDash\varphi,
R
l{M}.
By Beth's theorem, every implicitly definable relation is explicitly definable.
Structures as defined above are sometimes called s to distinguish them from the more general s. A many-sorted structure can have an arbitrary number of domains. The sorts are part of the signature, and they play the role of names for the different domains. Many-sorted signatures also prescribe on which sorts the functions and relations of a many-sorted structure are defined. Therefore, the arities of function symbols or relation symbols must be more complicated objects such as tuples of sorts rather than natural numbers.
Vector spaces, for example, can be regarded as two-sorted structures in the following way. The two-sorted signature of vector spaces consists of two sorts V (for vectors) and S (for scalars) and the following function symbols:
|
|
|
If V is a vector space over a field F, the corresponding two-sorted structure
lV
|lV|V=V
|lV|S=F
lV | |
0 | |
V |
=0\in|lV|V
lV | |
0 | |
S |
=0\in|lV|S
x lV:|lV|S x |lV|V → |lV|V
Many-sorted structures are often used as a convenient tool even when they could be avoided with a little effort. But they are rarely defined in a rigorous way, because it is straightforward and tedious (hence unrewarding) to carry out the generalization explicitly.
In most mathematical endeavours, not much attention is paid to the sorts. A many-sorted logic however naturally leads to a type theory. As Bart Jacobs puts it: "A logic is always a logic over a type theory." This emphasis in turn leads to categorical logic because a logic over a type theory categorically corresponds to one ("total") category, capturing the logic, being fibred over another ("base") category, capturing the type theory.
Both universal algebra and model theory study classes of (structures or) algebras that are defined by a signature and a set of axioms. In the case of model theory these axioms have the form of first-order sentences. The formalism of universal algebra is much more restrictive; essentially it only allows first-order sentences that have the form of universally quantified equations between terms, e.g. x y (x + y = y + x). One consequence is that the choice of a signature is more significant in universal algebra than it is in model theory. For example, the class of groups, in the signature consisting of the binary function symbol × and the constant symbol 1, is an elementary class, but it is not a variety. Universal algebra solves this problem by adding a unary function symbol −1.
In the case of fields this strategy works only for addition. For multiplication it fails because 0 does not have a multiplicative inverse. An ad hoc attempt to deal with this would be to define 0−1 = 0. (This attempt fails, essentially because with this definition 0 × 0−1 = 1 is not true.) Therefore, one is naturally led to allow partial functions, i.e., functions that are defined only on a subset of their domain. However, there are several obvious ways to generalize notions such as substructure, homomorphism and identity.
In type theory, there are many sorts of variables, each of which has a type. Types are inductively defined; given two types δ and σ there is also a type σ → δ that represents functions from objects of type σ to objects of type δ. A structure for a typed language (in the ordinary first-order semantics) must include a separate set of objects of each type, and for a function type the structure must have complete information about the function represented by each object of that type.
See main article: Second-order logic. There is more than one possible semantics for higher-order logic, as discussed in the article on second-order logic. When using full higher-order semantics, a structure need only have a universe for objects of type 0, and the T-schema is extended so that a quantifier over a higher-order type is satisfied by the model if and only if it is disquotationally true. When using first-order semantics, an additional sort is added for each higher-order type, as in the case of a many sorted first order language.
In the study of set theory and category theory, it is sometimes useful to consider structures in which the domain of discourse is a proper class instead of a set. These structures are sometimes called class models to distinguish them from the "set models" discussed above. When the domain is a proper class, each function and relation symbol may also be represented by a proper class.
In Bertrand Russell's Principia Mathematica, structures were also allowed to have a proper class as their domain.
|lA|
lA.
0,1,
-
Sf.
0,1,2,
-
N0
\Q.