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, ∃xP(x) may be changed to P(c), where 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 with a term f(x1,…,xn) whose function symbol f is new. The variables of this term are as follows. If the formula is in prenex normal form, then x1,…,xn are the variables that are universally quantified and whose quantifiers precede that of 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 have been removed) and such that ∃y occurs in the scope of their quantifiers. The function 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∀zP(x,y,z) is not in Skolem normal form because it contains the existential quantifier ∃y. Skolemization replaces y with f(x), where f is a new function symbol, and removes the quantification over y. The resulting formula is ∀x∀zP(x,f(x),z). The Skolem term f(x) contains x, but not z, because the quantifier to be removed ∃y is in the scope of ∀x, but not in that of ∀z; since this formula is in prenex normal form, this is equivalent to saying that, in the list of quantifiers, x precedes y while 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∃yR(x,y)⟺∃f∀xR(x,f(x)) where
f(x) is a function that maps x to y. Intuitively, the sentence "for every x there exists a y such that R(x,y)" is converted into the equivalent form "there exists a function f mapping every x into a y such that, for every x it holds that 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 Φ is satisfiable if there exists a model M and an evaluation μ 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, ∀xR(x,f(x)) is satisfiable if and only if there exists a model M, which contains an interpretation for f, such that ∀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∀xR(x,f(x)). By the above equivalence, this is the same as the satisfiability of ∀x∃yR(x,y). At the meta-level, first-order satisfiability of a formula Φ may be written with a little abuse of notation as ∃M∃μ(M,μ⊨Φ), where M is a model, μ is an evaluation of the free variables, and ⊨ means that Φ is true in M under μ. Since first-order models contain the interpretation of all function symbols, any Skolem function that Φ contains is implicitly existentially quantified by ∃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∀xR(x,f(x)) as ∀xR(x,f(x)) may be completed because functions are implicitly existentially quantified by ∃M in the definition of first-order satisfiability. Correctness of Skolemization may be shown on the example formula F1=∀x1…∀xn∃yR(x1,…,xn,y) as follows. This formula is satisfied by a model M if and only if, for each possible value for x1,…,xn in the domain of the model, there exists a value for y in the domain of the model that makes R(x1,…,xn,y) true. By the axiom of choice, there exists a function f such that y=f(x1,…,xn). As a result, the formula F2=∀x1…∀xnR(x1,…,xn,f(x1,…,xn)) is satisfiable, because it has the model obtained by adding the interpretation of f to M. This shows that F1 is satisfiable only if F2 is satisfiable as well. Conversely, if F2 is satisfiable, then there exists a model M′ that satisfies it; this model includes an interpretation for the function f such that, for every value of x1,…,xn, the formula R(x1,…,xn,f(x1,…,xn)) holds. As a result, F1 is satisfied by the same model because one may choose, for every value of x1,…,xn, the value y=f(x1,…,xn), where f is evaluated according to M′.
… excerpt ends here. Continue reading the full article.