Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Prenex normal form

From Wikipedia, the free encyclopedia
Formalism of first-order logic

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ϕ(y){\displaystyle \phi (y)},ψ(z){\displaystyle \psi (z)}, andρ(x){\displaystyle \rho (x)} are quantifier-free formulas with the free variables shown then

xyz(ϕ(y)(ψ(z)ρ(x))){\displaystyle \forall x\exists y\forall z(\phi (y)\lor (\psi (z)\rightarrow \rho (x)))}

is in prenex normal form with matrixϕ(y)(ψ(z)ρ(x)){\displaystyle \phi (y)\lor (\psi (z)\rightarrow \rho (x))}, while

x((yϕ(y))((zψ(z))ρ(x))){\displaystyle \forall x((\exists y\phi (y))\lor ((\exists z\psi (z))\rightarrow \rho (x)))}

is logically equivalent but not in prenex normal form.

Conversion to prenex form

[edit]
icon
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.

Conjunction and disjunction

[edit]

The rules forconjunction anddisjunction say that

(xϕ)ψ{\displaystyle (\forall x\phi )\land \psi } is equivalent tox(ϕψ){\displaystyle \forall x(\phi \land \psi )} under (mild) additional conditionx{\displaystyle \exists x\top }, or, equivalently,¬x{\displaystyle \lnot \forall x\bot } (meaning that at least one individual exists),
(xϕ)ψ{\displaystyle (\forall x\phi )\lor \psi } is equivalent tox(ϕψ){\displaystyle \forall x(\phi \lor \psi )};

and

(xϕ)ψ{\displaystyle (\exists x\phi )\land \psi } is equivalent tox(ϕψ){\displaystyle \exists x(\phi \land \psi )},
(xϕ)ψ{\displaystyle (\exists x\phi )\lor \psi } is equivalent tox(ϕψ){\displaystyle \exists x(\phi \lor \psi )} under additional conditionx{\displaystyle \exists x\top }.

The equivalences are valid whenx{\displaystyle x} does not appear as afree variable ofψ{\displaystyle \psi }; ifx{\displaystyle x} does appear free inψ{\displaystyle \psi }, one can rename the boundx{\displaystyle x} in(xϕ){\displaystyle (\exists x\phi )} and obtain the equivalent(xϕ[x/x]){\displaystyle (\exists x'\phi [x/x'])}.

For example, in the language ofrings,

(x(x2=1))(0=y){\displaystyle (\exists x(x^{2}=1))\land (0=y)} is equivalent tox(x2=10=y){\displaystyle \exists x(x^{2}=1\land 0=y)},

but

(x(x2=1))(0=x){\displaystyle (\exists x(x^{2}=1))\land (0=x)} is not equivalent tox(x2=10=x){\displaystyle \exists x(x^{2}=1\land 0=x)}

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(x(x2=1))(0=x){\displaystyle (\exists x(x^{2}=1))\land (0=x)} will be first rewritten as(x(x2=1))(0=x){\displaystyle (\exists x'(x'^{2}=1))\land (0=x)} and then put in prenex normal formx(x2=10=x){\displaystyle \exists x'(x'^{2}=1\land 0=x)}.

Negation

[edit]

The rules for negation say that

¬xϕ{\displaystyle \lnot \exists x\phi } is equivalent tox¬ϕ{\displaystyle \forall x\lnot \phi }

and

¬xϕ{\displaystyle \lnot \forall x\phi } is equivalent tox¬ϕ{\displaystyle \exists x\lnot \phi }.

Implication

[edit]

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ϕψ{\displaystyle \phi \rightarrow \psi } as¬ϕψ{\displaystyle \lnot \phi \lor \psi } 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):

(xϕ)ψ{\displaystyle (\forall x\phi )\rightarrow \psi } is equivalent tox(ϕψ){\displaystyle \exists x(\phi \rightarrow \psi )},
(xϕ)ψ{\displaystyle (\exists x\phi )\rightarrow \psi } is equivalent tox(ϕψ){\displaystyle \forall x(\phi \rightarrow \psi )}.

The rules for removing quantifiers from the consequent are:

ϕ(xψ){\displaystyle \phi \rightarrow (\exists x\psi )} is equivalent tox(ϕψ){\displaystyle \exists x(\phi \rightarrow \psi )} (under the assumption thatx{\displaystyle \exists x\top }),
ϕ(xψ){\displaystyle \phi \rightarrow (\forall x\psi )} is equivalent tox(ϕψ){\displaystyle \forall x(\phi \rightarrow \psi )}.

For example, when therange of quantification is the non-negativenatural number (viz.nN{\displaystyle n\in \mathbb {N} }), the statement

[nN(x<n)](x<0){\displaystyle [\forall n\in \mathbb {N} (x<n)]\rightarrow (x<0)}

islogically equivalent to the statement

nN[(x<n)(x<0)]{\displaystyle \exists n\in \mathbb {N} [(x<n)\rightarrow (x<0)]}

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:

nN[(x<n)(x<0)]{\displaystyle \forall n\in \mathbb {N} [(x<n)\rightarrow (x<0)]}

and itslogically equivalent statement

[nN(x<n)](x<0){\displaystyle [\exists n\in \mathbb {N} (x<n)]\rightarrow (x<0)}

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.

Example

[edit]

Suppose thatϕ{\displaystyle \phi },ψ{\displaystyle \psi }, andρ{\displaystyle \rho } are quantifier-free formulas and no two of these formulas share any free variable. Consider the formula

(ϕxψ)zρ{\displaystyle (\phi \lor \exists x\psi )\rightarrow \forall z\rho }.

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

(ϕxψ)zρ{\displaystyle (\phi \lor \exists x\psi )\rightarrow \forall z\rho }.
(x(ϕψ))zρ{\displaystyle (\exists x(\phi \lor \psi ))\rightarrow \forall z\rho },
¬(x(ϕψ))zρ{\displaystyle \neg (\exists x(\phi \lor \psi ))\lor \forall z\rho },
(x¬(ϕψ))zρ{\displaystyle (\forall x\neg (\phi \lor \psi ))\lor \forall z\rho },
x(¬(ϕψ)zρ){\displaystyle \forall x(\neg (\phi \lor \psi )\lor \forall z\rho )},
x((ϕψ)zρ){\displaystyle \forall x((\phi \lor \psi )\rightarrow \forall z\rho )},
x(z((ϕψ)ρ)){\displaystyle \forall x(\forall z((\phi \lor \psi )\rightarrow \rho ))},
xz((ϕψ)ρ){\displaystyle \forall x\forall z((\phi \lor \psi )\rightarrow \rho )}.

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

zx((ϕψ)ρ){\displaystyle \forall z\forall x((\phi \lor \psi )\rightarrow \rho )}

can be obtained:

z((ϕxψ)ρ){\displaystyle \forall z((\phi \lor \exists x\psi )\rightarrow \rho )}
z((x(ϕψ))ρ){\displaystyle \forall z((\exists x(\phi \lor \psi ))\rightarrow \rho )},
z(x((ϕψ)ρ)){\displaystyle \forall z(\forall x((\phi \lor \psi )\rightarrow \rho ))},
zx((ϕψ)ρ){\displaystyle \forall z\forall x((\phi \lor \psi )\rightarrow \rho )}.

Theordering of the two universal quantifier with the same scope doesn't change the meaning/truth value of the statement.

Intuitionistic logic

[edit]

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

(xϕ)yψ(1){\displaystyle (\exists x\phi )\rightarrow \exists y\psi \qquad (1)}

is a function which, given a concretex and a proof ofϕ(x){\displaystyle \phi (x)}, produces a concretey and a proof ofψ(y){\displaystyle \psi (y)}. In this case it is allowable for the value ofy to be computed from the given value ofx. A proof of

y(xϕψ),(2){\displaystyle \exists y(\exists x\phi \rightarrow \psi ),\qquad (2)}

on the other hand, produces a single concrete value ofy and a function that converts any proof ofxϕ{\displaystyle \exists x\phi } into a proof ofψ(y){\displaystyle \psi (y)}. If eachx satisfyingϕ{\displaystyle \phi } can be used to construct ay satisfyingψ{\displaystyle \psi } 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:

(1)x(ϕψ){\displaystyle \forall x(\phi \lor \psi )} implies(xϕ)ψ{\displaystyle (\forall x\phi )\lor \psi },
(2)x(ϕψ){\displaystyle \forall x(\phi \lor \psi )} impliesϕ(xψ){\displaystyle \phi \lor (\forall x\psi )},
(3)(xϕ)ψ{\displaystyle (\forall x\phi )\rightarrow \psi } impliesx(ϕψ){\displaystyle \exists x(\phi \rightarrow \psi )},
(4)ϕ(xψ){\displaystyle \phi \rightarrow (\exists x\psi )} impliesx(ϕψ){\displaystyle \exists x(\phi \rightarrow \psi )},
(5)¬xϕ{\displaystyle \lnot \forall x\phi } impliesx¬ϕ{\displaystyle \exists x\lnot \phi },

(x does not appear as a free variable ofψ{\displaystyle \,\psi } in (1) and (3);x does not appear as a free variable ofϕ{\displaystyle \,\phi } in (2) and (4)).

Use of prenex form

[edit]

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 formu{\displaystyle \forall u} v{\displaystyle \forall v} {\displaystyle \ldots } a{\displaystyle \exists a} b{\displaystyle \exists b} ϕ{\displaystyle \phi }, whereϕ{\displaystyle \phi } is a sentence that does not contain any quantifier. This fact allowedTarski to prove that Euclidean geometry isdecidable.

See also

[edit]
Look upprenex in Wiktionary, the free dictionary.

Notes

[edit]
  1. ^The term 'prenex' comes from theLatinpraenexus "tied or bound up in front", past participle ofpraenectere[1] (archived as of May 27, 2011 at[2])
  2. ^Hinman, P. (2005), p. 110
  3. ^Hinman, P. (2005), p. 111

References

[edit]
Normal forms in logic
Propositional logic
Predicate logic
Other
Retrieved from "https://en.wikipedia.org/w/index.php?title=Prenex_normal_form&oldid=1325155371"
Category:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp