The meaning of terms
As specified above, the terms of are the constants and variables of . For , assigning a semantic value to any constant was done through the interpretation function of the structure . This will be retained, so that the value of a constant () relative to the structure , in other words (symbols), , is just some member of . But again, though variables have a function similar to constants, their semantic value is only temporarily assigned, and is otherwise variable. Accordingly, we do not use the interpretation function to assign values to our variables, but a separate function called a variable assignment.
The variable assignment function assigns to each variable () a member of , like does for constants. But unlike with , we will introduce a device that will allow us to change the variable assignment inside a structure . The basis of this is what is called an -variant assignment for an existing assignment . Unsurprisingly, is called an -variant assignment of because it differs from it in at most what it assigns to the variable . (It should be noted that in usual mathematical fashion, may be its own (trivial) -variant assignment, in which case nothing is changed from the initial assignment.)
Letโs look at an example for this. Suppose you have a mathematical statement as follows: Here, we have multiple variables, so each assignment of values to the variables will assign a value to , and to . Suppose we assign the value to and to . This will result in an incorrect statement, since is incorrect. So now take the -variant assignment that assigns to , but otherwise leaves the assignment as it was. This time, we get a correct statement, since . Of course, we can also take a -variant assignment. And in general, not all – or -variant assignment will make the statement correct. For example, the -variant assignment (to the initial one) where will clearly make it incorrect again.
We can make the above ideas more precise as follows:
Definition 7.1 (Variable assignment). Given a structure , 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 .
Letโs return to the general picture. Since some terms of the language are variables, it wonโt be enough to work solely with the interpretation function to assign semantic values to our terms in โ we need a variable assignment too. Clearly, since these terms then go into forming atomic and complex formulas, we will need to relativize the semantic values of expressions of both to a particular structure and to a corresponding variable assignment in at any one time. We will introduce some new notation for this. In particular, if is any expression of , then its semantic value relative to a structure and variable assignment in will be denoted: Using this notation, we can easily specify what it means to assign a semantic value to a term of as follows:
Definition 7.2 (Term values). Let be any ordered pair such that is a non-empty set and is defined for each so that . Let be a variable assignment in as above. Then, for each term , we define the value of in the structure relative to the variable assignment as follows:
-
if for some , ;
-
if for some , .
Remark 7.1. Take some time to try and thoroughly understand the above definition. What it says is that if a term is a variable, then its value is taken care of by the variable assignment, while if itโs a constant, then the interpretation function decides.
Exercise 7.1. Let be such that , , and let (). Then, determine for each of the expressions below which natural number they stand for. In each case, specify how you reduced the calculation to one of two options, in accordance with the definition.
Remark 7.2. Your answers should look something like this:
One thing you may notice here is that variables may โseeโ more of the domain than the constants of a language. For example, since , no odd number in the domain will have a constant that refers to it. On the other hand, a variable may be assigned the value of an odd number nevertheless. In the above case, since , if is even, then the variable assignment will assign it an odd number as its value. As we will see soon when we introduce quantifiers, at times, they will be able to see more of the domain than our constants, and this way, they can express more facts about a structure. Indeed, the consequences of this are at the core of many foundational theorems in logic.