Time-to-time transformation

from Wikipedia, the free encyclopedia

The Zeitin transformation (also Zeitin method , Tseitin transformation , Tseitin method ) describes a method with which formulas from propositional logic can be converted to a conjunctive normal form (CNF). The resulting conjunctive normal form is not equivalent , but only equivalent to satisfiability . The process was developed by Grigori Zeitin .

motivation

Conventionally, equivalence transformations such as De Morgan's Laws , the Distributive Law and others are used to convert any propositional formula into a conjunctive normal form .

Applying the distributive law can generally lead to an exponential increase in the number of conjunctions . In order to limit this increase, the formula is converted into a form that can be satisfied .

For an example with 2 clauses with 4 variables each, to which the distributive law is applied, one can see the resulting exponential increase in the conjunctions:

idea

By using a transformation that is equivalent to satisfiability , it is possible to introduce variables during the transformation .

The basic idea is to introduce a variable for each sub-formula. With the help of propositional equivalence , these sub-formulas are then connected with the new variables and all resulting conditions are conjugated with one another. After that, each of these conditions is brought to KNF separately.

example

The example is to be shown here using the formula .

First, all sub-formulas are listed according to their length:

Now 4 variables are introduced and linked to the subformulas using the biconditional . On this occasion, sub-formulas are already substituted by corresponding variables:

Now all of these substitutions are conjugated. It is important that the variable that stood for the original formula is added as a separate conjunct.

The corresponding new formula looks like this:

Now all the conjuncts have to be converted separately into CNF, which are carried out with the usual equivalent conversions. This is exemplified by a conjunct:

Note that the distributive law was applied again in the last step, but in this step there is only a constant increase in conjunctions.

In the end, this transformation is applied to all conjuncts and the resulting CNF is equivalent to the initial formula and generally has fewer clauses. It may happen that this does not apply to smaller formulas.

Since the variable that stands for the original formula is (here:) part of the constructed formula, trivially applies . Conversely, every model of can be expanded so that it is also a model of . For this purpose, the introduced variables (here:) are each set in such a way that they meet the required equivalence under the interpretation .

It is therefore satisfiable if and only if it is satisfiable, and every satisfying assignment of is also a satisfying assignment of . This is an advantage because it has fewer clauses and it is therefore easier to find a satisfactory assignment than on the original formula.

Extension according to Plaisted and Greenbaum

This extension of the classic Zeitin method uses the concept of polarity (NV Murray, 1982) as an essential component.

polarity

Polarity describes the parity of the number of negations in the syntax tree of a propositional formula from the root node to the desired node. Accordingly, a node which has an odd number of negations from the root symbol to it has a negative polarity (corresponding to an even number of negations and positive polarity).

With the extension according to Plaisted and Greenbaum there are two essential differences to the normal Zeitin transformation:

  1. The polarity of a sub-formula has no effect on the introduction of new variables.
  2. Instead of bi- implication , an implication is introduced for each new variable .

The direction of the introduced implication depends on the polarity:

In the case of a partial formula with positive polarity, the new variable is introduced as follows:

The same sub-formula is replaced with negative polarity as follows:

In general, these two changes have the effect that the resulting CNF is smaller than with the Zeitin transformation, as long as not all sub-formulas occur in both polarities.

Future research will deal with heuristics for the appropriate introduction of new variables, so that not all subformulas lead to an increase in the number of variables.

swell

  • GS Zeitin: On the complexity of derivation in propositional calculus. Leningrad Seminar on Mathematical Logic, 1970.
  • DA Plaisted, S. Greenbaum: A Structure-Preserving Clause Form Translation. Journal of Symbolic Computation, 1986, doi : 10.1016 / S0747-7171 (86) 80028-1