sentence
A sentence![]()
is a formula
![]()
with no free variables
![]()
.
Simple examples include:
- •
- •
- •
Note that the last sentence contains no variables.
A sentence is also called a closed formula. A formula that is not a sentence is called an open formula.
The following formula is open:
Remark. In first-order logic, the main difference between a sentence and an open formula, semantically, is that a sentence has a definite truth value, whereas the truth value of an open formula may vary, depending on the interpretations
![]()
of the free variables occurring in the formula. In the open formula above, if were , then the formula is true. Otherwise, it is false.
Every open formula may be converted into a sentence by placing quantifiers![]()
in front of it. Given a formula , the universal closure of is the sentence
where is the set of all free variables occurring in .
The existential closure of a formula may be defined similarly.
For example, the universal closure of is
and its existential closure is
Note that the first sentence is false, while the second is true.