Misplaced Pages

Skolem normal form

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from Skolem term) Formalism of first-order logic

In mathematical logic, a formula of first-order logic is in Skolem normal form if it is in prenex normal form with only universal first-order quantifiers.

Every first-order formula may be converted into Skolem normal form while not changing its satisfiability via a process called Skolemization (sometimes spelled Skolemnization). The resulting formula is not necessarily equivalent to the original one, but is equisatisfiable with it: it is satisfiable if and only if the original one is satisfiable.

Reduction to Skolem normal form is a method for removing existential quantifiers from formal logic statements, often performed as the first step in an automated theorem prover.

Examples

The simplest form of Skolemization is for existentially quantified variables that are not inside the scope of a universal quantifier. These may be replaced simply by creating new constants. For example, x P ( x ) {\displaystyle \exists xP(x)} may be changed to P ( c ) {\displaystyle P(c)} , where c {\displaystyle c} is a new constant (does not occur anywhere else in the formula).

More generally, Skolemization is performed by replacing every existentially quantified variable y {\displaystyle y} with a term f ( x 1 , , x n ) {\displaystyle f(x_{1},\ldots ,x_{n})} whose function symbol f {\displaystyle f} is new. The variables of this term are as follows. If the formula is in prenex normal form, then x 1 , , x n {\displaystyle x_{1},\ldots ,x_{n}} are the variables that are universally quantified and whose quantifiers precede that of y {\displaystyle y} . In general, they are the variables that are quantified universally (we assume we get rid of existential quantifiers in order, so all existential quantifiers before y {\displaystyle \exists y} have been removed) and such that y {\displaystyle \exists y} occurs in the scope of their quantifiers. The function f {\displaystyle f} introduced in this process is called a Skolem function (or Skolem constant if it is of zero arity) and the term is called a Skolem term.

As an example, the formula x y z P ( x , y , z ) {\displaystyle \forall x\exists y\forall zP(x,y,z)} is not in Skolem normal form because it contains the existential quantifier y {\displaystyle \exists y} . Skolemization replaces y {\displaystyle y} with f ( x ) {\displaystyle f(x)} , where f {\displaystyle f} is a new function symbol, and removes the quantification over y {\displaystyle y} . The resulting formula is x z P ( x , f ( x ) , z ) {\displaystyle \forall x\forall zP(x,f(x),z)} . The Skolem term f ( x ) {\displaystyle f(x)} contains x {\displaystyle x} , but not z {\displaystyle z} , because the quantifier to be removed y {\displaystyle \exists y} is in the scope of x {\displaystyle \forall x} , but not in that of z {\displaystyle \forall z} ; since this formula is in prenex normal form, this is equivalent to saying that, in the list of quantifiers, x {\displaystyle x} precedes y {\displaystyle y} while z {\displaystyle z} does not. The formula obtained by this transformation is satisfiable if and only if the original formula is.

How Skolemization works

Skolemization works by applying a second-order equivalence together with the definition of first-order satisfiability. The equivalence provides a way for "moving" an existential quantifier before a universal one.

x y R ( x , y ) f x R ( x , f ( x ) ) {\displaystyle \forall x\exists yR(x,y)\iff \exists f\forall xR(x,f(x))}

where

f ( x ) {\displaystyle f(x)} is a function that maps x {\displaystyle x} to y {\displaystyle y} .

Intuitively, the sentence "for every x {\displaystyle x} there exists a y {\displaystyle y} such that R ( x , y ) {\displaystyle R(x,y)} " is converted into the equivalent form "there exists a function f {\displaystyle f} mapping every x {\displaystyle x} into a y {\displaystyle y} such that, for every x {\displaystyle x} it holds that R ( x , f ( x ) ) {\displaystyle R(x,f(x))} ".

This equivalence is useful because the definition of first-order satisfiability implicitly existentially quantifies over functions interpreting the function symbols. In particular, a first-order formula Φ {\displaystyle \Phi } is satisfiable if there exists a model M {\displaystyle M} and an evaluation μ {\displaystyle \mu } of the free variables of the formula that evaluate the formula to true. The model contains the interpretation of all function symbols; therefore, Skolem functions are implicitly existentially quantified. In the example above, x R ( x , f ( x ) ) {\displaystyle \forall xR(x,f(x))} is satisfiable if and only if there exists a model M {\displaystyle M} , which contains an interpretation for f {\displaystyle f} , such that x R ( x , f ( x ) ) {\displaystyle \forall xR(x,f(x))} is true for some evaluation of its free variables (none in this case). This may be expressed in second order as f x R ( x , f ( x ) ) {\displaystyle \exists f\forall xR(x,f(x))} . By the above equivalence, this is the same as the satisfiability of x y R ( x , y ) {\displaystyle \forall x\exists yR(x,y)} .

At the meta-level, first-order satisfiability of a formula Φ {\displaystyle \Phi } may be written with a little abuse of notation as M μ ( M , μ Φ ) {\displaystyle \exists M\exists \mu (M,\mu \models \Phi )} , where M {\displaystyle M} is a model, μ {\displaystyle \mu } is an evaluation of the free variables, and {\displaystyle \models } means that Φ {\displaystyle \Phi } is true in M {\displaystyle M} under μ {\displaystyle \mu } . Since first-order models contain the interpretation of all function symbols, any Skolem function that Φ {\displaystyle \Phi } contains is implicitly existentially quantified by M {\displaystyle \exists M} . As a result, after replacing existential quantifiers over variables by existential quantifiers over functions at the front of the formula, the formula still may be treated as a first-order one by removing these existential quantifiers. This final step of treating f x R ( x , f ( x ) ) {\displaystyle \exists f\forall xR(x,f(x))} as x R ( x , f ( x ) ) {\displaystyle \forall xR(x,f(x))} may be completed because functions are implicitly existentially quantified by M {\displaystyle \exists M} in the definition of first-order satisfiability.

Correctness of Skolemization may be shown on the example formula F 1 = x 1 x n y R ( x 1 , , x n , y ) {\displaystyle F_{1}=\forall x_{1}\dots \forall x_{n}\exists yR(x_{1},\dots ,x_{n},y)} as follows. This formula is satisfied by a model M {\displaystyle M} if and only if, for each possible value for x 1 , , x n {\displaystyle x_{1},\dots ,x_{n}} in the domain of the model, there exists a value for y {\displaystyle y} in the domain of the model that makes R ( x 1 , , x n , y ) {\displaystyle R(x_{1},\dots ,x_{n},y)} true. By the axiom of choice, there exists a function f {\displaystyle f} such that y = f ( x 1 , , x n ) {\displaystyle y=f(x_{1},\dots ,x_{n})} . As a result, the formula F 2 = x 1 x n R ( x 1 , , x n , f ( x 1 , , x n ) ) {\displaystyle F_{2}=\forall x_{1}\dots \forall x_{n}R(x_{1},\dots ,x_{n},f(x_{1},\dots ,x_{n}))} is satisfiable, because it has the model obtained by adding the interpretation of f {\displaystyle f} to M {\displaystyle M} . This shows that F 1 {\displaystyle F_{1}} is satisfiable only if F 2 {\displaystyle F_{2}} is satisfiable as well. Conversely, if F 2 {\displaystyle F_{2}} is satisfiable, then there exists a model M {\displaystyle M'} that satisfies it; this model includes an interpretation for the function f {\displaystyle f} such that, for every value of x 1 , , x n {\displaystyle x_{1},\dots ,x_{n}} , the formula R ( x 1 , , x n , f ( x 1 , , x n ) ) {\displaystyle R(x_{1},\dots ,x_{n},f(x_{1},\dots ,x_{n}))} holds. As a result, F 1 {\displaystyle F_{1}} is satisfied by the same model because one may choose, for every value of x 1 , , x n {\displaystyle x_{1},\ldots ,x_{n}} , the value y = f ( x 1 , , x n ) {\displaystyle y=f(x_{1},\dots ,x_{n})} , where f {\displaystyle f} is evaluated according to M {\displaystyle M'} .

Uses of Skolemization

One of the uses of Skolemization is within automated theorem proving. For example, in the method of analytic tableaux, whenever a formula whose leading quantifier is existential occurs, the formula obtained by removing that quantifier via Skolemization may be generated. For example, if x Φ ( x , y 1 , , y n ) {\displaystyle \exists x\Phi (x,y_{1},\ldots ,y_{n})} occurs in a tableau, where x , y 1 , , y n {\displaystyle x,y_{1},\ldots ,y_{n}} are the free variables of Φ ( x , y 1 , , y n ) {\displaystyle \Phi (x,y_{1},\ldots ,y_{n})} , then Φ ( f ( y 1 , , y n ) , y 1 , , y n ) {\displaystyle \Phi (f(y_{1},\ldots ,y_{n}),y_{1},\ldots ,y_{n})} may be added to the same branch of the tableau. This addition does not alter the satisfiability of the tableau: every model of the old formula may be extended, by adding a suitable interpretation of f {\displaystyle f} , to a model of the new formula.

This form of Skolemization is an improvement over "classical" Skolemization in that only variables that are free in the formula are placed in the Skolem term. This is an improvement because the semantics of tableaux may implicitly place the formula in the scope of some universally quantified variables that are not in the formula itself; these variables are not in the Skolem term, while they would be there according to the original definition of Skolemization. Another improvement that may be used is applying the same Skolem function symbol for formulae that are identical up to variable renaming.

Another use is in the resolution method for first-order logic, where formulas are represented as sets of clauses understood to be universally quantified. (For an example see drinker paradox.)

An important result in model theory is the Löwenheim–Skolem theorem, which can be proven via Skolemizing the theory and closing under the resulting Skolem functions.

Skolem theories

In general, if T {\displaystyle T} is a theory and for each formula with free variables x 1 , , x n , y {\displaystyle x_{1},\dots ,x_{n},y} there is an n-ary function symbol F {\displaystyle F} that is provably a Skolem function for y {\displaystyle y} , then T {\displaystyle T} is called a Skolem theory.

Every Skolem theory is model complete, i.e. every substructure of a model is an elementary substructure. Given a model M of a Skolem theory T, the smallest substructure of M containing a certain set A is called the Skolem hull of A. The Skolem hull of A is an atomic prime model over A.

History

Skolem normal form is named after the late Norwegian mathematician Thoralf Skolem.

See also

Notes

  1. "Normal Forms and Skolemization" (PDF). Max-Planck-Institut für Informatik. Retrieved 15 December 2012.
  2. Reiner Hähnle. Tableaux and related methods. Handbook of Automated Reasoning.
  3. Scott Weinstein, The Lowenheim-Skolem Theorem, lecture notes (2009). Accessed 6 January 2023.
  4. "Sets, Models and Proofs" (3.3) by I. Moerdijk and J. van Oosten

References

External links

Normal forms in logic
Propositional logic
Predicate logic
Other
Categories: