Clausal normal form

Clausal normal form

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
    • (\forall x\, P(x)) \vee (\exists x\, P(x)) becomes (\forall x\, P(x)) \vee (\exists c\, P(c)), where c is new
  3. Skolemize -- replace existential variables with Skolem constants or Skolem functions of universal variables, from the outside inward. Make the following replacements:
    • \forall x \exists y \, P(y) becomes , \forall x \, P(f_c(x)), where fc is new
  4. Discard the universal quantifiers (which are implicit in CNF).
  5. Put the formula into conjunctive normal form.
  6. Replace C1 \wedge \cdots \wedge Cn with \{ C1 , \dots , Cn \}. Each conjunct is of the form \neg A1 \vee \cdots \vee \neg Am \vee B1 \vee \cdots \vee Bn, which is equivalent to ( A1 \wedge \cdots \wedge Am ) \to ( B1 \vee \cdots \vee Bn ).
  7. Finally, replace each conjunct ( A1 \wedge \cdots \wedge Am ) \to ( B1 \vee \cdots \vee Bn ) with \{ A1 \wedge \cdots \wedge Am \to B1 , A1 \wedge \cdots \wedge Am \to B2 , \cdots , A1 \wedge \cdots \wedge Am \to Bn \}.

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; Christoph Weidenbach (2001). "Computing Small Clause Normal Forms". In A. Robinson and A. Voronkov. Handbook of Automated Reasoning. I. Elsevier Science and MIT Press. pp. 335–367. http://www.mpi-inf.mpg.de/~weidenb/publications/handbook99small.ps.gz. Retrieved 2009-07-05. 

Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Normal form — may refer to: Normal form (abstract rewriting) Normal form (databases) Normal form (game theory) Normal form (mathematics) In formal language theory: Beta normal form Chomsky normal form Greibach normal form Kuroda normal form Normal form… …   Wikipedia

  • Conjunctive normal form — In Boolean logic, a formula is in conjunctive normal form (CNF) if it is a conjunction of clauses, where a clause is a disjunction of literals. As a normal form, it is useful in automated theorem proving. It is similar to the product of sums form …   Wikipedia

  • List of mathematics articles (C) — NOTOC C C closed subgroup C minimal theory C normal subgroup C number C semiring C space C symmetry C* algebra C0 semigroup CA group Cabal (set theory) Cabibbo Kobayashi Maskawa matrix Cabinet projection Cable knot Cabri Geometry Cabtaxi number… …   Wikipedia

  • CNF — is a three letter acronym, and may refer to: Cornell NanoScale Facility Canadian Neutron Facility at the Canadian Neutron Beam Centre Canadian Nurses Foundation Carbon nanofibers Caribbean National Forest Cameroons National Federation Chomsky… …   Wikipedia

  • Method of analytic tableaux — A graphical representation of a partially built propositional tableau In proof theory, the semantic tableau (or truth tree) is a decision procedure for sentential and related logics, and a proof procedure for formulas of first order logic. The… …   Wikipedia

  • English grammar — is a body of rules (grammar) specifying how phrases and sentences are constructed in the English language. Accounts of English grammar tend to fall into two groups: the descriptivist , which describes the grammatical system of English; and the… …   Wikipedia

  • Logic programming — is, in its broadest sense, the use of mathematical logic for computer programming. In this view of logic programming, which can be traced at least as far back as John McCarthy s [1958] advice taker proposal, logic is used as a purely declarative… …   Wikipedia

  • Speech-Language Pathology in School Settings — Speech language pathology is a fast growing profession that, according to the Bureau of Labor Statistics, offers about 96,000 jobs in the United States alone. It relates to many educational disciplines such as communication sciences, linguistics …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”