Aformula of thepredicate calculus is inprenex[1]normal form (PNF) if it iswritten as a string ofquantifiers andbound variables, called theprefix, followed by a quantifier-free part, called thematrix.[2] Together with the normal forms inpropositional logic (e.g.disjunctive normal form orconjunctive normal form), it provides acanonical normal form useful inautomated theorem proving.
Every formula inclassical logic islogically equivalent to a formula in prenex normal form. For example, if,, and are quantifier-free formulas with the free variables shown then
is in prenex normal form with matrix, while
is logically equivalent but not in prenex normal form.
This sectionneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources in this section. Unsourced material may be challenged and removed.(August 2018) (Learn how and when to remove this message) |
Everyfirst-order formula islogically equivalent (in classical logic) to some formula in prenex normal form.[3] There are several conversion rules that can be recursively applied to convert a formula to prenex normal form. The rules depend on whichlogical connectives appear in the formula.
The rules forconjunction anddisjunction say that
and
The equivalences are valid when does not appear as afree variable of; if does appear free in, one can rename the bound in and obtain the equivalent.
For example, in the language ofrings,
but
because the formula on the left is true in any ring when the free variablex is equal to 0, while the formula on the right has no free variables and is false in any nontrivial ring. So will be first rewritten as and then put in prenex normal form.
The rules for negation say that
and
There are four rules forimplication: two that remove quantifiers from the antecedent and two that remove quantifiers from the consequent. These rules can be derived byrewriting the implication as and applying the rules for disjunction and negation above. As with the rules for disjunction, these rules require that the variable quantified in one subformula does not appear free in the other subformula.
The rules for removing quantifiers from the antecedent are (note the change of quantifiers):
The rules for removing quantifiers from the consequent are:
For example, when therange of quantification is the non-negativenatural number (viz.), the statement
islogically equivalent to the statement
The former statement says that ifx is less than any natural number, thenx is less than zero. The latter statement says that there exists some natural numbern such that ifx is less thann, thenx is less than zero. Both statements are true. The former statement is true because ifx is less than any natural number, it must be less than the smallest natural number (zero). The latter statement is true becausen=0 makes the implication atautology.
Note that the placement of brackets implies thescope of the quantification, which is very important for the meaning of the formula. Consider the following two statements:
and itslogically equivalent statement
The former statement says that for any natural numbern, ifx is less thann thenx is less than zero. The latter statement says that if there exists some natural numbern such thatx is less thann, thenx is less than zero. Both statements are false. The former statement doesn't hold forn=2, becausex=1 is less thann, but not less than zero. The latter statement doesn't hold forx=1, because the natural numbern=2 satisfiesx<n, butx=1 is not less than zero.
Suppose that,, and are quantifier-free formulas and no two of these formulas share any free variable. Consider the formula
By recursively applying the rules starting at the innermost subformulas, the following sequence of logically equivalent formulas can be obtained:
This is not the only prenex form equivalent to the original formula. For example, by dealing with the consequent before the antecedent in the example above, the prenex form
can be obtained:
Theordering of the two universal quantifier with the same scope doesn't change the meaning/truth value of the statement.
The rules for converting a formula to prenex form make heavy use of classical logic. Inintuitionistic logic, it is not true that every formula is logically equivalent to a prenex formula. The negation connective is one obstacle, but not the only one. The implication operator is also treated differently in intuitionistic logic than classical logic; in intuitionistic logic, it is not definable using disjunction and negation.
TheBHK interpretation illustrates why some formulas have no intuitionistically-equivalent prenex form. In this interpretation, a proof of
is a function which, given a concretex and a proof of, produces a concretey and a proof of. In this case it is allowable for the value ofy to be computed from the given value ofx. A proof of
on the other hand, produces a single concrete value ofy and a function that converts any proof of into a proof of. If eachx satisfying can be used to construct ay satisfying but no suchy can be constructed without knowledge of such anx then formula (1) will not be equivalent to formula (2).
The rules for converting a formula to prenex form that dofail in intuitionistic logic are:
(x does not appear as a free variable of in (1) and (3);x does not appear as a free variable of in (2) and (4)).
Someproof calculi will only deal with a theory whose formulae are written in prenex normal form. The concept is essential for developing thearithmetical hierarchy and theanalytical hierarchy.
Gödel's proof of hiscompleteness theorem forfirst-order logic presupposes that all formulae have been recast in prenex normal form.
Tarski's axioms for geometry is a logical system whose sentences canall be written inuniversal–existential form, a special case of the prenex normal form that has everyuniversal quantifier preceding anyexistential quantifier, so that all sentences can be rewritten in the form , where is a sentence that does not contain any quantifier. This fact allowedTarski to prove that Euclidean geometry isdecidable.