Girish Mahajan (Editor)

Prenex normal form

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

A formula of the predicate calculus is in prenex normal form if it is written as a string of quantifiers (referred to as the prefix) followed by a quantifier-free part (referred to as the matrix).

Contents

Every formula in classical logic is equivalent to a formula in prenex normal form. For example, if ϕ ( y ) , ψ ( z ) , and ρ ( x ) are quantifier-free formulas with the free variables shown then

x y z ( ϕ ( y ) ( ψ ( z ) ρ ( x ) ) )

is in prenex normal form with matrix ϕ ( y ) ( ψ ( z ) ρ ( x ) ) , while

x ( ( y ϕ ( y ) ) ( ( z ψ ( z ) ) ρ ( x ) ) )

is logically equivalent but not in prenex normal form.

Conversion to prenex form

Every first-order formula is logically equivalent (in classical logic) to some formula in prenex normal form. There are several conversion rules that can be recursively applied to convert a formula to prenex normal form. The rules depend on which logical connectives appear in the formula.

Conjunction and disjunction

The rules for conjunction and disjunction say that

( x ϕ ) ψ is equivalent to x ( ϕ ψ ) , ( x ϕ ) ψ is equivalent to x ( ϕ ψ ) ;

and

( x ϕ ) ψ is equivalent to x ( ϕ ψ ) , ( x ϕ ) ψ is equivalent to x ( ϕ ψ ) .

The equivalences are valid when x does not appear as a free variable of ψ ; if x does appear free in ψ , one can rename the bound x in ( x ϕ ) and obtain the equivalent ( x ϕ [ x / x ] ) .

For example, in the language of rings,

( x ( x 2 = 1 ) ) ( 0 = y ) is equivalent to x ( x 2 = 1 0 = y ) ,

but

( x ( x 2 = 1 ) ) ( 0 = x ) is not equivalent to x ( x 2 = 1 0 = x )

because the formula on the left is true in any ring when the free variable x is equal to 0, while the formula on the right has no free variables and is false in any nontrivial ring. So ( x ( x 2 = 1 ) ) ( 0 = x ) will be first rewritten as ( x ( x 2 = 1 ) ) ( 0 = x ) and then put in prenex normal form x ( x 2 = 1 0 = x ) .

Negation

The rules for negation say that

¬ x ϕ is equivalent to x ¬ ϕ

and

¬ x ϕ is equivalent to x ¬ ϕ .

Implication

There are four rules for implication: two that remove quantifiers from the antecedent and two that remove quantifiers from the consequent. These rules can be derived by rewriting the implication ϕ ψ as ¬ ϕ ψ and applying the rules for disjunction 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:

( x ϕ ) ψ is equivalent to x ( ϕ ψ ) , ( x ϕ ) ψ is equivalent to x ( ϕ ψ ) .

The rules for removing quantifiers from the consequent are:

ϕ ( x ψ ) is equivalent to x ( ϕ ψ ) , ϕ ( x ψ ) is equivalent to x ( ϕ ψ ) .

Example

Suppose that ϕ , ψ , and ρ are quantifier-free formulas and no two of these formulas share any free variable. Consider the formula

( ϕ x ψ ) z ρ .

By recursively applying the rules starting at the innermost subformulas, the following sequence of logically equivalent formulas can be obtained:

( ϕ x ψ ) z ρ . ( x ( ϕ ψ ) ) z ρ , ¬ ( x ( ϕ ψ ) ) z ρ , ( x ¬ ( ϕ ψ ) ) z ρ , x ( ¬ ( ϕ ψ ) z ρ ) , x ( ( ϕ ψ ) z ρ ) , x ( z ( ( ϕ ψ ) ρ ) ) , x z ( ( ϕ ψ ) ρ ) .

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

z x ( ( ϕ ψ ) ρ )

can be obtained:

z ( ( ϕ x ψ ) ρ ) z ( ( x ( ϕ ψ ) ) ρ ) , z ( x ( ( ϕ ψ ) ρ ) ) , z x ( ( ϕ ψ ) ρ ) .

Intuitionistic logic

The rules for converting a formula to prenex form make heavy use of classical logic. In intuitionistic 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.

The BHK interpretation illustrates why some formulas have no intuitionistically-equivalent prenex form. In this interpretation, a proof of

( x ϕ ) y ψ ( 1 )

is a function which, given a concrete x and a proof of ϕ ( x ) , produces a concrete y and a proof of ψ(y). In this case it is allowable for the value of y to be computed from the given value of x. A proof of

y ( x ϕ ψ ) , ( 2 )

on the other hand, produces a single concrete value of y and a function that converts any proof of x ϕ into a proof of ψ(y). If each x satisfying φ can be used to construct a y satisfying ψ but no such y can be constructed without knowledge of such an x then formula (1) will not be equivalent to formula (2).

The rules for converting a formula to prenex form that do fail in intuitionistic logic are:

(1) x ( ϕ ψ ) implies ( x ϕ ) ψ , (2) x ( ϕ ψ ) implies ϕ ( x ψ ) , (3) ( x ϕ ) ψ implies x ( ϕ ψ ) , (4) ϕ ( x ψ ) implies x ( ϕ ψ ) , (5) ¬ x ϕ implies x ¬ ϕ ,

(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)).

Use of prenex form

Some proof calculi will only deal with a theory whose formulae are written in prenex normal form. The concept is essential for developing the arithmetical hierarchy and the analytical hierarchy.

Gödel's proof of his completeness theorem for first-order logic presupposes that all formulae have been recast in prenex normal form.

References

Prenex normal form Wikipedia