The definition of a first-order language
Let’s put together everything into some neater definitions.
Definition 6.5 (Formulas of ). Let:
-
, the connectives of ;
-
, the quantifiers of ;
-
, the constants of ;
-
, the variables of ;
-
, the predicates of , and;
-
.
Let , the alphabet of , be the smallest set such that , , , , , . Let , the terms of .
Let , the atomic formulas of , be the smallest set such that if is a predicate of arity in , and are (not necessarily distinct) terms in , then .
The set of (well-formed) formulas of is the smallest set such that:
-
;
-
if and are in , and , then:
-
;
-
;
-
;
-
;
-
, and;
-
.
Definition 6.6 (Sentences of ). Let be the function defined for each such that:
-
if is of form , then ;
-
if is of form , then ;
-
if is of form , , , then ;
-
if and is of form , .
Let , the set of closed formulas or sentences of . If , we say is an open formula, and is the set of variables which have at least one free occurrence in .
Exercise 6.3. Read the above two definitions carefully, and try to understand every part. Then, explain in your own terms what the main aim of is, and how it achieves it with this specific definition.
Definition 6.7. Provide a proof for the following claim:
Every atomic formula with at least one occurrence of a variable is open.
Yet another convention
Finally, here is yet another convention we shall make use of. Sometimes, we want to state exactly which variables of a complex formula have at least one free occurrence in . In such cases, we may write , with the list of free variables of occurring between the parentheses. This is useful, for example, if we write , meaning that only has occurring free somewhere, and then writing , which immediately shows that the latter formula is now closed.
Now looks suspiciously like an open atomic formula of , and there are some clear parallels between the two, but it is still important to note that , , …, here are not predicates but entire complex formulas. For example, may just be something like the open formula , and thus, would be the formula . As expected, this latter formula is closed.
Exercise 6.4. Determine for each of the following formulas whether they are open or closed. In each case, explain your reasoning.
-
-
-
-
In connection, and this will be crucial when we introduce our first-order tableau system, we will also work with substitutions. Most importantly, sometimes we may want to consider formulas where the variables have been substituted for names. In fact, this is one way to turn an open formula into a closed one.
For example, take the closed formula . In the notation above, this may be represented as , while the open formula may be represented as . Now substituting the name for the variable in , we get . You simply take each unbound occurrence of , and replace it with the name . We use the notation to denote substituting for . In full generality, we can say that for any formula , we denote by the result of substituting for each unbound occurrence of the variable in .
Exercise 6.5. For each of the following, write the down the formula that is more concisely represented by our conventions.
-
-
where
-
-