The previous handout gave the definitions of a language, of terms, and of formulas. Now we need to distinguish between two kinds of formulas, sentences and non-sentences. (The non-sentences are sometimes called "open sentences.")
We begin by defining a free variable. The following is (almost) Leary's Definition 1.5.2, p. 23.
Definition: Suppose that
is a variable and
is a formula. We will say that
is free in
if and only if:
Leary's definition has "if" where the one above has "if and only if," but the latter seems clearly to be his intention. (Mathematicians seem to sometimes use simply "if" where logicians with a background in philosophy would write "if and only if" or its abbreviation "iff".)
The basic idea here is that an occurrence of a variable
is free if it is not bound by a quantifier, i.e. if it is not within the scope of a quantifier
(or a quantifier
, but that is not part of our official language
). (Of course, being within the scope of a different quantifier
, where
, does not prevent
from being free.) Another way to say this is that
is free if it is not bound by a quantifier.
The text mostly discusses "free variables" rather than free occurrences of a variable, but the latter term is a little more accurate, since the same variable might be free in one occurrence and bound in another (as exercise 6 on p. 25 makes clear).
Now we can define sentence very simply:
Definition: A sentence in a language
is a formula of
that contains no free variables.
A bit more precisely, a sentence is a formula that contains no free occurrences of any variable.