BookRags.com Literature Guides Literature
Guides
Criticism & Essays Criticism &
Essays
Questions & Answers Questions &
Answers
Lesson Plans Lesson
Plans
My Bibliography Periodic Table U.S. Presidents Shakespeare Sonnet Shake-Up
Research Anything:        
History | Encyclopedias | Films | News | Create a Bibliography | More... Login | Register | Help
Not What You Meant?  There are 10 definitions for CNF.

Clausal normal form

Print-Friendly
About 1 pages (323 words)

Bookmark and Share Know this topic well? Help others and get FREE products!

The clausal normal form (or clause normal form, conjunctive normal form, CNF) is used in logic programming and many theorem proving systems. 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. Skolemize -- replace existential variables with Skolem constants or Skolem functions of universal variables, from the outside inward. Make the following replacements:
    • <math>\forall x \, P(x)</math> becomes <math>\exists c \, P(c)</math>, where <math>c</math> is new
    • <math>\forall x \exists y \, P(y)</math> becomes <math>, \forall x \, P(f_c(x))</math>, where <math>f_c</math> is new
  3. Remove the universal quantifiers.
  4. Put the formula into conjunctive normal form.
  5. Replace <math>C1 \wedge ... \wedge Cn</math> with <math>\{ C1 , ... , Cn \}</math>. Each conjunct is of the form <math>\neg A1 \vee ... \vee \neg Am \vee B1 \vee ... \vee Bn</math>, which is equivalent to <math>( A1 \wedge ... \wedge Am ) \to ( B1 \vee ... \vee Bn )</math>.
    • If m=0 and n=1, this is a Prolog fact.
    • If m>0 and n=1, this is a Prolog rule.
    • If m>0 and n=0, this is a Prolog query.
  6. Finally, replace each conjunct <math>( A1 \wedge ... \wedge Am ) \to ( B1 \vee ... \vee Bn )</math> with <math>\{ A1 \wedge ... \wedge Am \to B1 , A1 \wedge ... \wedge Am \to B2 , ... , A1 \wedge ... \wedge Am \to Bn \}</math>.

When n=1, the logic is called Horn clause logic and is equivalent in computational power to a Universal Turing machine. 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.

View More Summaries on Clausal normal form
 
Ask any question on Clausal normal form and get it answered FAST!
Answer questions in BookRags Q&A and earn points toward
discounted or even FREE Study Guides and other BookRags products!
Learn more about BookRags Q&A
Copyrights
Clausal normal form from Wíkipedia. ©2006 by Wíkipedia. Licensed under the GNU Free Documentation License. View a list of authors or edit this article.

Article Navigation
Join BookRagslearn moreJoin BookRags




About BookRags | Customer Service | Report an Error | Terms of Use | Privacy Policy