sentence (original) (raw)

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 differencePlanetmathPlanetmath 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 interpretationsMathworldPlanetmathPlanetmath of the free variables occurring in the formula. In the open formula above, if x were 1, then the formula is true. Otherwise, it is false.

Every open formula may be converted into a sentence by placing quantifiersMathworldPlanetmath in front of it. Given a formula φ, the universal closure of φ is the sentence

where {x1,…,xn} is the set of all free variables occurring in φ.

For example, the universal closure of x+2=3 is

and its existential closure is

Note that the first sentence is false, while the second is true.