Chapter 27 Sentences of FOL
We know how to represent English sentences in FOL. The time has finally come to define the notion of a sentence of FOL.
27.1 Expressions
There are six kinds of symbols in FOL:
-
1.
Predicates: , , , …, , or with subscripts, as needed: , , , , , , …
-
2.
Names: , , , …, , or with subscripts, as needed: , , , , …
-
3.
Variables: , , , , , , , , or with subscripts, as needed: , , , , …
-
4.
Connectives: , , , ,
-
5.
Brackets: ( , )
-
6.
Quantifiers: ,
We define an expression of FOL as any string of symbols of FOL. Take any of the symbols of FOL and write them down, in any order, and you have an expression.
27.2 Terms and formulas
In chapter 6, we went straight from the statement of the vocabulary of TFL to the definition of a sentence of TFL. In FOL, we will have to go via an intermediary stage: via the notion of a formula . The intuitive idea is that a formula is any sentence, or anything which can be turned into a sentence by adding quantifiers out front. But this intuitive idea will take some time to unpack.
We start by defining the notion of a term.
A term is any name or any variable.
So, here are some terms:
Next we need to define atomic formulas.
-
1.
Any sentence letter is an atomic formula.
-
2.
If is an -place predicate and are terms, then is an atomic formula.
-
3.
If and are terms, then is an atomic formula.
-
4.
Nothing else is an atomic formula.
Note that we consider sentence letters also formulas of FOL, so every sentence of TFL is also a formula of FOL.
The use of script letters here follows the conventions laid down in chapter 8. So, ‘’ is not itself a predicate of FOL. Rather, it is a symbol of our metalanguage (augmented English) that we use to talk about any predicate of FOL. Similarly, ‘’ is not a term of FOL, but a symbol of the metalanguage that we can use to talk about any term of FOL. So, where ‘’ is a one-place predicate, ‘’ is a three-place predicate, and ‘’ is a six-place predicate, here are some atomic formulas:
Once we know what atomic formulas are, we can offer recursion clauses to define arbitrary formulas. The first few clauses are exactly analogous to those in the definition of ‘sentence of TFL’.
-
1.
Every atomic formula is a formula.
-
2.
If is a formula, then is a formula.
-
3.
If and are formulas, then is a formula.
-
4.
If and are formulas, then is a formula.
-
5.
If and are formulas, then is a formula.
-
6.
If and are formulas, then is a formula.
-
7.
If is a formula and is a variable, then is a formula.
-
8.
If is a formula and is a variable, then is a formula.
-
9.
Nothing else is a formula.
So, assuming again that ‘’ is a one-place predicate, ‘’ is a three-place predicate and ‘’ is a six place-predicate, here are some formulas you can build this way:
We can now give a formal definition of scope, which incorporates the definition of the scope of a quantifier. Here we follow the case of TFL, though we note that a logical operator can be either a connective or a quantifier:
-
‣
The main logical operator in a formula is the operator that was introduced most recently, when that formula was constructed using the recursion rules.
-
‣
The scope of a logical operator in a formula is the subformula for which that operator is the main logical operator.
So we can graphically illustrate the scope of the quantifiers in the preceding example thus:
27.3 Sentences and free variables
Recall that we are largely concerned in logic with assertoric sentences: sentences that can be either true or false. Many formulas are not sentences. Consider the following symbolization key:
- domain:
-
people
- :
-
blank x loves blank y
- :
-
Boris
Consider the atomic formula ‘’. All atomic formulas are formulas, so ‘’ is a formula, but can it be true or false? You might think that it will be true just in case the person named by ‘’ loves themself, in the same way that ‘’ is true just in case Boris (the person named by ‘’) loves himself. However, ‘’ is a variable, and does not name anyone or any thing.
Of course, if we put an existential quantifier out front, obtaining ‘’, then this would be true iff someone loves themselves. Equally, if we wrote ‘’, this would be true iff everyone loves themselves. The point is that we need a quantifier to tell us how to deal with a variable.
Let’s make this idea precise.
An occurrence of a variable is bound iff it falls within the scope of either or . An occurrence of a variable which is not bound is free .
For example, consider the formula
The scope of the universal quantifier ‘’ is ‘’, so the first ‘’ is bound by the universal quantifier. However, the second and third occurrence of ‘’ are free. Equally, the ‘’ is free. The scope of the existential quantifier ‘’ is ‘’, so ‘’ is bound.
Formulas that do not have free variables, i.e., every variable is bound, are called sentences . Only sentences can be true or false.
A sentence of FOL is any formula of FOL that contains no free variables.
Note that in the formation rules given in section 27.2, specifically in the clauses for and , we did not require that the variable in and does not already occur as a bound variable in . So we allow, for instance, ‘’ as a sentence. We won’t be meeting such special cases often, since we can always rename bound variables to obtain an equivalent sentence that avoids such weirdness; in this case, e.g., ‘’. But since it is allowed to happen, we should clarify which quantifiers bind which variables: An occurrence of a bound variable is always bound by the quantifier with the same matching variable that is closest to it. By “closest” we mean: it is the main logical operator of the smallest subformula into the scope of which the occurrence of the variable falls. So in our previous example, ‘’ binds the occurrence of in ‘’, since it is the main logical operator of ‘’. The ‘’ does not bind the ‘’ in ‘’, however. The ‘’ does not bind the ‘’ in ‘’, but it does bind the ‘’ in ‘’.
The rules also do not require that the bound variable actually occurs free in (or even at all). So our rules also allow ‘’ and ‘’ as formulas. In each case, the ‘’ does not bind ‘’, because ‘’ does not occur free in ‘’ or in ‘’. In the former case, ‘’ does not occur at all; in the latter, it is already bound by ‘’. This is called vacuous quantification . It rarely appears in practice, and isn’t harmful. The two sentences are equivalent to the sentences without the ‘’, i.e., to ‘’ and ‘’.
27.4 Bracketing conventions
We will adopt the same notational conventions governing brackets that we did for TFL (see chapters 6 and 11.3.) First, we may omit the outermost brackets of a formula. Second, we may use square brackets, ‘[’ and ‘]’, in place of brackets to increase the readability of formulas.
Sentences of FOL used in our examples can become quite cumbersome, and so we also introduce a convention to deal with conjunctions and disjunctions of more than two sentences. We stipulate that and are to be interpreted as, respectively:
-
-
In practice, this just means that you are allowed to leave out parentheses in long conjunctions and disjunctions. But remember that (unless they are the outermost parentheses of the sentence) you must still enclose the entire conjunction or disjunction in parentheses. Also, you cannot mix conjunctions and disjunctions with each other or with other connectives. So the following are still not allowed, and would be ambiguous if they were:
-
-
27.5 Superscripts on predicates
Above, we said that an -place predicate followed by terms is an atomic formula. But there is a small issue with this definition: the symbols we use for predicates do not, themselves, indicate how many places the predicate has. Indeed, in some places in this book, we have used the letter ‘’ as a one-place predicate; in other places we have used it as a three-place predicate. So, unless we state explicitly whether we want to use ‘’ as a one-place predicate or as a three place predicate, it is indeterminate whether ‘’ is an atomic formula or not.
There is an easy way to avoid this, which many books adopt. Instead of saying that our predicates are just capital letters (with numerical subscripts as necessary), we could say that they are capital letters with numerical superscripts (and with numerical subscripts as necessary). The purpose of the superscript would be to say explicitly how many places the predicate has. On this approach, ‘’ would be a one-place predicate, and ‘’ would be an (entirely different) three places predicate. They would need to have different entries in any symbolisation key. And ‘’ would be an atomic formula, whereas ‘’ would not; likewise ‘’ would be an atomic formula, and ‘’ would not.
So, we could add superscripts to all our predicates. This would have the advantage of making certain things completely explicit. However, it would have the disadvantage of making our formulas much harder to read; the superscripts would distract the eye. So, we will not bother to make this change. Our predicates will remain without superscripts. (And, in practice, any book which includes superscripts almost immediately stops including them!)
However, this leaves open a possibility of ambiguity. So, when any ambiguity could arise—in practice, very rarely—you should say, explicitly, how many places your predicate(s) have.
Practice exercises
A. Identify which variables are bound and which are free.
-
1.
-
2.
-
3.
-
4.
-
5.