I am reading through Mathematical Logic by Chiswell and Hodges and just finished section 5.3, which introduces LR, the Language of Relations, for first-order logic. In this section the following notions are defined:
- A first-order signature
- Variables
- A parsing tree for terms of LR($\sigma$)
- A parsing tree for formulas of LR($\sigma$)
- Compositional definitions for each of the above trees mentioned.
My question is on exercise 5.3.1, which asks:
Suppose $\sigma$ is a signature. What are the symbols in the lexicon of LR($\sigma$)?
The answer in the back of the book states that the lexicon consists of the symbols in $\sigma$ together with the twelve symbols '$\lnot$' '$\land$' '$\lor$' '$\to$' '$\leftrightarrow$' '$\bot$' '$=$' '$\forall$' '$\exists$' '$($' '$)$' '$,$'. This is what I had gotten as my answer too, based on the details of the above notions, except I also inlcuded the variables (which in section 5.3 are defined as the infinitely many symbols $x_0$, $x_1$, $x_2$ $...$).
So, why are variables not considered part of the lexicon for LR($\sigma$)?
Furthermore, there doesn't seem to be an explicit definition of a lexicon in this chapter (like there was for the earlier chapter on propositional logic, in which the authors stated explicitly what symbols were in the lexicon for LP($\rho$) for some propositional signature $\rho$). However, it seems clear enough that the lexicon is just the set of symbols we want to use to make strings of our language. But based on that loose definition, again, it would seem that the variables should be included in the lexicon. For example, the authors give $\exists x_0 (F(F(x_0)) = x_0)$ as a formula of LR, so wouldn't we consider the variable $x_0$ to be part of the lexicon?
Remarkably, this is the only textbook I am aware of that treats propositional calculus in a formal language setting; probably because propositional calculus is often the very initial subject with which teaching of logic begins. Let us review the relevant definition from that part:
Lexicon (or, “vocabulary”) of a formal language $\mathcal{L}$ is composed of two segments: a logical lexicon and a non-logical lexicon. Non-logical lexicon is also called signature, for it is the distinctive part of the language. Indeed, it is common among mathematicians to leave logical vocabulary out of the definition of language altogether, since a particular system of logic (first-order predicate logic in many cases) is assumed.
$Lxn_{LP} =\{\underbrace{\wedge,\vee,\rightarrow,\leftrightarrow,\neg,\bot, (, )}_{logical\;lexicon},\underbrace{p_{0}, p_{1}, p_{2},\ldots}_{non-logical\; lexicon}\}$
Let us denote the elements of $Co, Fu, Re$ by the sequences of symbols, $c_{0}, c_{1}, c_{2}, \ldots$, $f_{0}, f_{1}, f_{2}, \ldots$) and $R_{0}, R_{1}, R_{2}, \ldots$, respectively.
We shall combine the preceding considerations with the statement on p. 104 (bold font added):
$Lxn_{LR} =\{\underbrace{\wedge,\vee,\rightarrow,\leftrightarrow,\neg,\bot, =,\forall,\exists, x_{0}, x_{1}, x_{2},\ldots, (, ),`\text{,'} }_{logical\;lexicon},\underbrace{c_{0}, c_{1}, c_{2}, \ldots, f_{0}, f_{1}, f_{2}, \ldots,R_{0}, R_{1}, R_{2}, \ldots}_{non-logical\; lexicon}\}$
as stated in the answer:
However, a question remains: Why do the “variables” shift from the non-logical lexicon of propositional calculus to the logical lexicon of predicate logic?
Notice that the authors talk about “propositional symbols,” never “propositional variables.” They are not actually variables, but the names of propositions. For example $p_{0}$ designates ‘snow is white’, $p_{1}$ designates ‘grass is green’, $p_{2}$ designates ‘$i^{2}=-1$’ and so on. So, they can be immediately evaluated:
Compare to the case of predicate logic: The individual variables of a formula are first assigned to semantic relata in the universe, thereafter the formula is evaluated.