Putting it all together
Using the above techniques, one can calculate the truth-value of any sentence in , involving any number of quantifiers in any possible distribution. And in fact, one can also calculate the satisfaction of every formula of relative to an initial assignment in the structure , involving open formulas with quantifiers. At each step, one just has to apply the relevant definition for the quantifier or connective until none are left, and then calculate the satisfiability of each resulting atomic formula relative to the relevant assignments. As we shall see soon, there are various techniques that make this easier than it first appears. But first, letโs formulate the semantics for our language as a whole.
Again, the semantics is compositional, where the meaning of more complex expressions will always be calculable from the meaning of their constituent parts. Thus, parallel to how we introduced the semantics above, our definition will also start with assigning meaning to the predicates and terms of the language, then to atomic formulas, and then to more complex formulas.
Returning to satisfaction and truth once more, truth will be defined as a special case of satisfaction. Namely, satisfaction is relativized to structures and variable assignments, while truth will be assigned to those formulas in a structure that are satisfied under every possible variable assignment in the domain of that structure. In other words, only some formulas satisfiable in a structure will be said to be true, those that are satisfied under every variable assignment in the domain of the structure.
Definition 7.3 (Semantics of ). A first-order structure is a pair where is a non-empty set called the domain, and is the interpretation function such that for every , , and for every predicate of arity , .
The function is a variable assignment in . If is a variable assignment in just like , except possibly for some , , we call an -variant variable assignment of . If (), i.e., is the -variant variable assignment of such that is sent to by , we may also write .
For each term , we define the value of in the structure relative to the variable assignment as follows:
-
if for some , ;
-
if for some , .
We define satisfaction for a formula relative to under , in symbols, as follows:
-
For the base: if , then iff .
-
For the connectives:
-
if , iff ;
-
if , iff and ;
-
if , iff or (or both);
-
if , iff if , then .
-
-
For the quantifiers:
-
if , then iff there is an -variant assignment such that ;
-
if , then iff for every -variant assignment , .
-
We say that a formula is true in (or relative to) iff for every assignment (in of ), . We say that a formula is false in (or relative to) iff for every assignment (in of ), .
You may see something strange with this definition of falsity. In particular, we defined a formula being false not as it not being true, but as a separate condition (namely, being unsatisfied under every assignment in ). The reason why this is the case is precisely because some formulas cannot be said to be true or false, as they depend on the assignment function for their evaluation. Accordingly, if we specified that the formulas that are not true are false, we would have had to deem false those formulas that are sometimes satisfied, sometimes arenโt in . It should be noted however that as far as sentences are concerned, a sentence not being true does entail it being false, so we are not violating the Law of Excluded Middle.