Structures, domains, and interpretations of symbols in first order logic.
In first order logic, formulas do not have meaning by themselves, and meaning is provided by specifying a structure in which the symbols of the language are interpreted as actual objects, functions, and relations.
Structures
A structure consists of a domain together with interpretations of all symbols in the signature, and it serves as the semantic environment in which formulas are evaluated.
Definition 2.19 (Structure)
A structure for a given signature consists of the following data.
A non empty set:
called the domain of the structure.
For each constant symbol , an element:
For each function symbol of arity , a function:
For each predicate symbol of arity , a relation:
Thus every symbol in the language is assigned a concrete meaning inside the structure.
Example 2.20
Let be a structure with domain:
Suppose the signature contains a constant symbol , a unary function symbol , and a binary predicate symbol .
We may interpret these symbols as follows:
This structure represents the natural numbers with their usual operations and relations.
Assignments
Formulas may contain free variables, and to interpret such formulas we need to assign elements of the domain to these variables.
Definition 2.21 (Assignment)
An assignment in a structure is a function:
which assigns to each variable an element of the domain.
Thus an assignment tells us which object each variable refers to.
Interpretation of Terms
Terms denote elements of the domain once a structure and an assignment have been fixed.
Definition 2.22 (Value of a Term)
Let be a structure and an assignment.
The value of a term in under , written:
is defined inductively.
If is a variable , then:
If is a constant symbol , then:
If , then:
This definition assigns a unique element of the domain to every term.
Example 2.23
In the structure of natural numbers described above, let the assignment be given by:
Then:
and:
if denotes the successor function.
Interpretation of Atomic Formulas
Atomic formulas express basic relations between terms.
Definition 2.24 (Truth of Atomic Formulas)
Let be a structure and an assignment.
If is an atomic formula of the form:
then:
if and only if:
If is of the form:
then:
if and only if:
Thus atomic formulas are evaluated by checking whether the corresponding relation holds in the structure.
Extension to All Formulas
The truth of general formulas is defined recursively.
Definition 2.25 (Satisfaction)
Let be a structure and an assignment.
The relation:
is defined inductively.
For atomic formulas, the definition is as above.
For negation:
if and only if:
For conjunction:
if and only if:
The other connectives are defined similarly.
For the universal quantifier:
if and only if for every element , we have:
For the existential quantifier:
if and only if there exists an element such that:
Here denotes the assignment that agrees with except that it assigns to .
Example 2.26
Let be the structure of natural numbers, and let be any assignment.
Then:
because for every element :
holds.
However:
is false, because there is no natural number less than .
Lemma 2.27 (Uniqueness of Evaluation)
For every structure , assignment , and formula , the truth value of is uniquely determined.
Proof
The proof is by structural induction on formulas.
The value of atomic formulas is uniquely determined by the interpretation of symbols and the values of terms.
The logical connectives define truth values uniquely from the truth values of their components.
The quantifiers define truth uniquely by ranging over all elements of the domain.
Thus every formula has a well defined truth value in a given structure under a given assignment.
Closed Formulas
If a formula has no free variables, then its truth does not depend on the assignment.
In this case we write:
to mean that is true in the structure .
Such formulas are called sentences, and they express properties of the structure itself rather than properties of particular elements.
Example 2.28
In the structure of natural numbers:
but:
does not hold.
Thus sentences describe global properties of the domain and its operations.