Satisfaction, truth in a structure, models of sentences, and theories in first order logic.
Satisfaction is the formal relation that connects syntax with semantics in first order logic, and it tells us when a formula is true in a structure under a given assignment of objects to its free variables.
Satisfaction
Let be a structure with domain , and let be an assignment:
The notation:
means that the formula is satisfied in the structure under the assignment .
This notation is used because formulas may contain free variables, and the truth of such a formula can depend on which elements of the domain are assigned to those variables.
Definition 2.29 (Satisfaction for Atomic Formulas)
Let be a structure, let be an assignment, and let be terms.
If is an -ary predicate symbol, then:
if and only if:
If the atomic formula is an equality:
then:
if and only if:
Thus atomic formulas are evaluated by first evaluating their terms and then checking whether the corresponding relation or equality holds in the structure.
Definition 2.30 (Satisfaction for Connectives)
The satisfaction relation extends from atomic formulas to compound formulas by following the truth rules for the logical connectives.
For negation:
if and only if:
For conjunction:
if and only if:
For disjunction:
if and only if:
For implication:
if and only if either:
or:
For biconditional:
if and only if:
and:
have the same truth value.
Definition 2.31 (Changing an Assignment)
Let be an assignment, let be a variable, and let .
We write:
for the assignment that sends to and agrees with on every variable other than .
Thus:
and if , then:
This notation is used to define the semantics of quantifiers, since quantifiers vary the value assigned to one variable while leaving the other variables fixed.
Definition 2.32 (Satisfaction for Quantifiers)
For the universal quantifier:
if and only if for every :
Thus is true when is true no matter which element of the domain is assigned to .
For the existential quantifier:
if and only if there exists such that:
Thus is true when is true for at least one element of the domain assigned to .
Example 2.33
Let be the usual structure of natural numbers:
Consider the formula:
To check satisfaction, choose any element for .
We need to find some element such that:
Taking:
works for every natural number , and therefore:
This sentence expresses the fact that the natural numbers have no greatest element.
Example 2.34
Let be the finite ordered structure:
where is the usual order restricted to the set .
The sentence:
is false in .
Indeed, if is assigned the value , then there is no element such that:
Thus:
The same formula can therefore be true in one structure and false in another structure.
Lemma 2.35 (Dependence on Free Variables)
Let be a formula, and let and be assignments in a structure .
If and agree on every free variable of , then:
if and only if:
Proof
The proof is by structural induction on the formula .
For atomic formulas, the truth of the formula depends only on the values of the variables occurring in its terms, and these variables are free in the atomic formula, so the two assignments give the same values to all relevant terms.
For negation and binary connectives, the result follows directly from the induction hypothesis applied to the immediate subformulas.
For a quantified formula such as:
the variable is bound, so the free variables of are the free variables of except for .
To evaluate the universal quantifier, we compare:
and:
for each .
The modified assignments agree on all free variables of , because they both send to and because and agree on the remaining free variables.
The existential case is similar.
Corollary 2.36 (Truth of Sentences)
If is a sentence, then its truth in a structure does not depend on the choice of assignment.
Proof
A sentence has no free variables.
Therefore any two assignments agree on all free variables of , because there are none.
By Lemma 2.35, the truth value of is the same under all assignments.
Models
A model is a structure in which a sentence or set of sentences is true.
Definition 2.37 (Model of a Sentence)
Let be a sentence. A structure is a model of if:
This means that is true in .
Definition 2.38 (Model of a Theory)
A theory is a set of sentences.
Let be a theory. A structure is a model of if:
for every sentence .
In this case we write:
Thus a model of a theory is a structure satisfying all sentences in that theory.
Example 2.39
The group axioms form a first order theory in a language with a binary function symbol, a unary function symbol, and a constant symbol.
A structure is a model of this theory exactly when its domain and operations form a group.
Similarly, the axioms for rings, fields, partial orders, and graphs can be written as first order theories, and their models are precisely the corresponding mathematical structures.
Example 2.40
Let be the theory containing the sentence:
The usual natural number structure:
is a model of .
The finite ordered structure:
is not a model of .
Thus the same theory may have some structures as models and exclude others.