Jump to content

Clausal normal form

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Compulogger (talk | contribs) at 12:47, 21 August 2012 (Conversion to clausal normal form: corrected serious error). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The clausal normal form (or clause normal form, conjunctive normal form, CNF) of a logical formula is used in logic programming and many theorem proving systems. A formula in clause normal form is a set of clauses, interpreted as a conjunction. A clause is an implicitly universally quantified set of literals, interpreted as a disjunction.[1]

Conversion to clausal normal form

The procedure to convert a formula into clausal form can destroy the structure of the formula, and naive translations often causes exponential blowup in the size of the resulting formula.

The procedure begins with any formula of classical first-order logic:

  1. Put the formula into negation normal form.
  2. Standardize variables
    • becomes , where is new
  3. Skolemize -- replace existential variables with Skolem constants or Skolem functions of universal variables, from the outside inward. Make the following replacements:
    • becomes , where is new
  4. Discard the universal quantifiers (which are implicit in CNF).
  5. Put the formula into conjunctive normal form.
  6. Replace with . Each conjunct is of the form , which is equivalent to .

When n ≤ 1 for all clauses, the logic is called Horn clause logic and is equivalent in computational power to a universal Turing machine. Horn logic is the basis of Prolog, the most widely used logic programming language.

Often it is sufficient to generate an equisatisfiable (not an equivalent) CNF for a formula. In this case, the worst-case exponential blow-up can be avoided by introducing definitions and using them to rename parts of the formula. [2]

References

  1. ^ Loveland, Donald W. (1978). Automated Theorem Proving: A Logical Basis. North Holland.
  2. ^ Nonnengart, Andreas (2001). "Computing Small Clause Normal Forms". In A. Robinson and A. Voronkov (ed.). Handbook of Automated Reasoning. Vol. I. Elsevier Science and MIT Press. pp. 335–367. Retrieved 2009-07-05. {{cite book}}: Unknown parameter |coauthors= ignored (|author= suggested) (help)