fbpx
Wikipedia

Conjunctive normal form

In Boolean logic, a formula is in conjunctive normal form (CNF) or clausal normal form if it is a conjunction of one or more clauses, where a clause is a disjunction of literals; otherwise put, it is a product of sums or an AND of ORs. As a canonical normal form, it is useful in automated theorem proving and circuit theory.

All conjunctions of literals and all disjunctions of literals are in CNF, as they can be seen as conjunctions of one-literal clauses and conjunctions of a single clause, respectively. As in the disjunctive normal form (DNF), the only propositional connectives a formula in CNF can contain are and, or, and not. The not operator can only be used as part of a literal, which means that it can only precede a propositional variable or a predicate symbol.

In automated theorem proving, the notion "clausal normal form" is often used in a narrower sense, meaning a particular representation of a CNF formula as a set of sets of literals.

Examples and non-examples Edit

All of the following formulas in the variables  , and   are in conjunctive normal form:

  •  
  •  
  •  
  •  

For clarity, the disjunctive clauses are written inside parentheses above. In disjunctive normal form with parenthesized conjunctive clauses, the last case is the same, but the next to last is  . The constants true and false are denoted by the empty conjunct and one clause consisting of the empty disjunct, but are normally written explicitly.[1]

The following formulas are not in conjunctive normal form:

  •  , since an OR is nested within a NOT
  •  
  •  , since an AND is nested within an OR

Every formula can be equivalently written as a formula in conjunctive normal form. The three non-examples in CNF are:

  •  
  •  
  •  

Conversion into CNF Edit

[2]Every propositional formula can be converted into an equivalent formula that is in CNF. This transformation is based on rules about logical equivalences: double negation elimination, De Morgan's laws, and the distributive law.

Since all propositional formulas can be converted into an equivalent formula in conjunctive normal form, proofs are often based on the assumption that all formulae are CNF. However, in some cases this conversion to CNF can lead to an exponential explosion of the formula. For example, translating the non-CNF formula

 

into CNF produces a formula with   clauses:

 

Each clause contains either   or   for each  .

There exist transformations into CNF that avoid an exponential increase in size by preserving satisfiability rather than equivalence.[3][4] These transformations are guaranteed to only linearly increase the size of the formula, but introduce new variables. For example, the above formula can be transformed into CNF by adding variables   as follows:

 

An interpretation satisfies this formula only if at least one of the new variables is true. If this variable is  , then both   and   are true as well. This means that every model that satisfies this formula also satisfies the original one. On the other hand, only some of the models of the original formula satisfy this one: since the   are not mentioned in the original formula, their values are irrelevant to satisfaction of it, which is not the case in the last formula. This means that the original formula and the result of the translation are equisatisfiable but not equivalent.

An alternative translation, the Tseitin transformation, includes also the clauses  . With these clauses, the formula implies  ; this formula is often regarded to "define"   to be a name for  .

First-order logic Edit

In first order logic, conjunctive normal form can be taken further to yield the clausal normal form of a logical formula, which can be then used to perform first-order resolution. In resolution-based automated theorem-proving, a CNF formula

                                  , with   literals, is commonly represented as a set of sets
                                      .

See below for an example.

Computational complexity Edit

An important set of problems in computational complexity involves finding assignments to the variables of a boolean formula expressed in conjunctive normal form, such that the formula is true. The k-SAT problem is the problem of finding a satisfying assignment to a boolean formula expressed in CNF in which each disjunction contains at most k variables. 3-SAT is NP-complete (like any other k-SAT problem with k>2) while 2-SAT is known to have solutions in polynomial time. As a consequence,[5] the task of converting a formula into a DNF, preserving satisfiability, is NP-hard; dually, converting into CNF, preserving validity, is also NP-hard; hence equivalence-preserving conversion into DNF or CNF is again NP-hard.

Typical problems in this case involve formulas in "3CNF": conjunctive normal form with no more than three variables per conjunct. Examples of such formulas encountered in practice can be very large, for example with 100,000 variables and 1,000,000 conjuncts.

A formula in CNF can be converted into an equisatisfiable formula in "kCNF" (for k≥3) by replacing each conjunct with more than k variables   by two conjuncts   and   with Z a new variable, and repeating as often as necessary.

Converting from first-order logic Edit

To convert first-order logic to CNF:[2]

  1. Convert to negation normal form.
    1. Eliminate implications and equivalences: repeatedly replace   with  ; replace   with  . Eventually, this will eliminate all occurrences of   and  .
    2. Move NOTs inwards by repeatedly applying De Morgan's law. Specifically, replace   with  ; replace   with  ; and replace   with  ; replace   with  ;   with  . After that, a   may occur only immediately before a predicate symbol.
  2. Standardize variables
    1. For sentences like   which use the same variable name twice, change the name of one of the variables. This avoids confusion later when dropping quantifiers. For example,   is renamed to  .
  3. Skolemize the statement
    1. Move quantifiers outwards: repeatedly replace   with  ; replace   with  ; replace   with  ; replace   with  . These replacements preserve equivalence, since the previous variable standardization step ensured that   doesn't occur in  . After these replacements, a quantifier may occur only in the initial prefix of the formula, but never inside a  ,  , or  .
    2. Repeatedly replace   with  , where   is a new  -ary function symbol, a so-called "Skolem function". This is the only step that preserves only satisfiability rather than equivalence. It eliminates all existential quantifiers.
  4. Drop all universal quantifiers.
  5. Distribute ORs inwards over ANDs: repeatedly replace   with  .

As an example, the formula saying "Anyone who loves all animals, is in turn loved by someone" is converted into CNF (and subsequently into clause form in the last line) as follows (highlighting replacement rule redexes in  ):

                                     
                                        by 1.1
                                          by 1.1
                                              by 1.2
                                            by 1.2
                                        by 1.2
                                        by 2
                                  by 3.1
                                  by 3.1
                                by 3.2
                            by 4
                              by 5
                                  (clause representation)

Informally, the Skolem function   can be thought of as yielding the person by whom   is loved, while   yields the animal (if any) that   doesn't love. The 3rd last line from below then reads as "  doesn't love the animal  , or else   is loved by  ".

The 2nd last line from above,  , is the CNF.

Notes Edit

  1. ^ Peter B. Andrews, An Introduction to Mathematical Logic and Type Theory, 2013, ISBN 9401599343, p. 48
  2. ^ a b 2017-08-31 at the Wayback Machine [1995...] Russell and Norvig
  3. ^ Tseitin (1968)
  4. ^ Jackson and Sheridan (2004)
  5. ^ since one way to check a CNF for satisfiability is to convert it into a DNF, the satisfiability of which can be checked in linear time

See also Edit

References Edit

  • J. Eldon Whitesitt (24 May 2012). Boolean Algebra and Its Applications. Courier Corporation. ISBN 978-0-486-15816-7.
  • Hans Kleine Büning; Theodor Lettmann (28 August 1999). Propositional Logic: Deduction and Algorithms. Cambridge University Press. ISBN 978-0-521-63017-7.
  • Paul Jackson, Daniel Sheridan: Clause Form Conversions for Boolean Circuits. In: Holger H. Hoos, David G. Mitchell (Eds.): Theory and Applications of Satisfiability Testing, 7th International Conference, SAT 2004, Vancouver, BC, Canada, May 10–13, 2004, Revised Selected Papers. Lecture Notes in Computer Science 3542, Springer 2005, pp. 183–198
  • G.S. Tseitin: On the complexity of derivation in propositional calculus. In: Slisenko, A.O. (ed.) Structures in Constructive Mathematics and Mathematical Logic, Part II, Seminars in Mathematics (translated from Russian), pp. 115–125. Steklov Mathematical Institute (1968)

External links Edit

  • "Conjunctive normal form", Encyclopedia of Mathematics, EMS Press, 2001 [1994]
  • Java tool for converting a truth table into CNF and DNF
  • Java applet for converting to CNF and DNF, showing laws used

conjunctive, normal, form, confused, with, chomsky, normal, form, boolean, logic, formula, conjunctive, normal, form, clausal, normal, form, conjunction, more, clauses, where, clause, disjunction, literals, otherwise, product, sums, canonical, normal, form, us. Not to be confused with Chomsky normal form In Boolean logic a formula is in conjunctive normal form CNF or clausal normal form if it is a conjunction of one or more clauses where a clause is a disjunction of literals otherwise put it is a product of sums or an AND of ORs As a canonical normal form it is useful in automated theorem proving and circuit theory All conjunctions of literals and all disjunctions of literals are in CNF as they can be seen as conjunctions of one literal clauses and conjunctions of a single clause respectively As in the disjunctive normal form DNF the only propositional connectives a formula in CNF can contain are and or and not The not operator can only be used as part of a literal which means that it can only precede a propositional variable or a predicate symbol In automated theorem proving the notion clausal normal form is often used in a narrower sense meaning a particular representation of a CNF formula as a set of sets of literals Contents 1 Examples and non examples 2 Conversion into CNF 3 First order logic 4 Computational complexity 5 Converting from first order logic 5 1 Notes 6 See also 7 References 8 External linksExamples and non examples EditAll of the following formulas in the variables A B C D E displaystyle A B C D E nbsp and F displaystyle F nbsp are in conjunctive normal form A B C D E F displaystyle A lor neg B lor neg C land neg D lor E lor F nbsp A B C displaystyle A lor B land C nbsp A B displaystyle A lor B nbsp A displaystyle A nbsp For clarity the disjunctive clauses are written inside parentheses above In disjunctive normal form with parenthesized conjunctive clauses the last case is the same but the next to last is A B displaystyle A lor B nbsp The constants true and false are denoted by the empty conjunct and one clause consisting of the empty disjunct but are normally written explicitly 1 The following formulas are not in conjunctive normal form B C displaystyle neg B lor C nbsp since an OR is nested within a NOT A B C displaystyle A land B lor C nbsp A B D E displaystyle A land B lor D land E nbsp since an AND is nested within an OREvery formula can be equivalently written as a formula in conjunctive normal form The three non examples in CNF are B C displaystyle neg B land neg C nbsp A C B C displaystyle A lor C land B lor C nbsp A B D B E displaystyle A land B lor D land B lor E nbsp Conversion into CNF Edit 2 Every propositional formula can be converted into an equivalent formula that is in CNF This transformation is based on rules about logical equivalences double negation elimination De Morgan s laws and the distributive law Since all propositional formulas can be converted into an equivalent formula in conjunctive normal form proofs are often based on the assumption that all formulae are CNF However in some cases this conversion to CNF can lead to an exponential explosion of the formula For example translating the non CNF formula X 1 Y 1 X 2 Y 2 X n Y n displaystyle X 1 wedge Y 1 vee X 2 wedge Y 2 vee dots vee X n wedge Y n nbsp into CNF produces a formula with 2 n displaystyle 2 n nbsp clauses X 1 X 2 X n Y 1 X 2 X n X 1 Y 2 X n Y 1 Y 2 X n Y 1 Y 2 Y n displaystyle X 1 vee X 2 vee cdots vee X n wedge Y 1 vee X 2 vee cdots vee X n wedge X 1 vee Y 2 vee cdots vee X n wedge Y 1 vee Y 2 vee cdots vee X n wedge cdots wedge Y 1 vee Y 2 vee cdots vee Y n nbsp Each clause contains either X i displaystyle X i nbsp or Y i displaystyle Y i nbsp for each i displaystyle i nbsp There exist transformations into CNF that avoid an exponential increase in size by preserving satisfiability rather than equivalence 3 4 These transformations are guaranteed to only linearly increase the size of the formula but introduce new variables For example the above formula can be transformed into CNF by adding variables Z 1 Z n displaystyle Z 1 ldots Z n nbsp as follows Z 1 Z n Z 1 X 1 Z 1 Y 1 Z n X n Z n Y n displaystyle Z 1 vee cdots vee Z n wedge neg Z 1 vee X 1 wedge neg Z 1 vee Y 1 wedge cdots wedge neg Z n vee X n wedge neg Z n vee Y n nbsp An interpretation satisfies this formula only if at least one of the new variables is true If this variable is Z i displaystyle Z i nbsp then both X i displaystyle X i nbsp and Y i displaystyle Y i nbsp are true as well This means that every model that satisfies this formula also satisfies the original one On the other hand only some of the models of the original formula satisfy this one since the Z i displaystyle Z i nbsp are not mentioned in the original formula their values are irrelevant to satisfaction of it which is not the case in the last formula This means that the original formula and the result of the translation are equisatisfiable but not equivalent An alternative translation the Tseitin transformation includes also the clauses Z i X i Y i displaystyle Z i vee neg X i vee neg Y i nbsp With these clauses the formula implies Z i X i Y i displaystyle Z i equiv X i wedge Y i nbsp this formula is often regarded to define Z i displaystyle Z i nbsp to be a name for X i Y i displaystyle X i wedge Y i nbsp First order logic EditIn first order logic conjunctive normal form can be taken further to yield the clausal normal form of a logical formula which can be then used to perform first order resolution In resolution based automated theorem proving a CNF formula displaystyle nbsp l 11 displaystyle l 11 nbsp displaystyle lor nbsp displaystyle ldots nbsp displaystyle lor nbsp l 1 n 1 displaystyle l 1n 1 nbsp displaystyle nbsp displaystyle land nbsp displaystyle ldots nbsp displaystyle land nbsp displaystyle nbsp l m 1 displaystyle l m1 nbsp displaystyle lor nbsp displaystyle ldots nbsp displaystyle lor nbsp l m n m displaystyle l mn m nbsp displaystyle nbsp with l i j displaystyle l ij nbsp literals is commonly represented as a set of sets displaystyle nbsp displaystyle nbsp l 11 displaystyle l 11 nbsp displaystyle nbsp displaystyle ldots nbsp displaystyle nbsp l 1 n 1 displaystyle l 1n 1 nbsp displaystyle nbsp displaystyle nbsp displaystyle ldots nbsp displaystyle nbsp displaystyle nbsp l m 1 displaystyle l m1 nbsp displaystyle nbsp displaystyle ldots nbsp displaystyle nbsp l m n m displaystyle l mn m nbsp displaystyle nbsp displaystyle nbsp See below for an example Computational complexity EditAn important set of problems in computational complexity involves finding assignments to the variables of a boolean formula expressed in conjunctive normal form such that the formula is true The k SAT problem is the problem of finding a satisfying assignment to a boolean formula expressed in CNF in which each disjunction contains at most k variables 3 SAT is NP complete like any other k SAT problem with k gt 2 while 2 SAT is known to have solutions in polynomial time As a consequence 5 the task of converting a formula into a DNF preserving satisfiability is NP hard dually converting into CNF preserving validity is also NP hard hence equivalence preserving conversion into DNF or CNF is again NP hard Typical problems in this case involve formulas in 3CNF conjunctive normal form with no more than three variables per conjunct Examples of such formulas encountered in practice can be very large for example with 100 000 variables and 1 000 000 conjuncts A formula in CNF can be converted into an equisatisfiable formula in kCNF for k 3 by replacing each conjunct with more than k variables X 1 X k X n displaystyle X 1 vee cdots vee X k vee cdots vee X n nbsp by two conjuncts X 1 X k 1 Z displaystyle X 1 vee cdots vee X k 1 vee Z nbsp and Z X k X n displaystyle neg Z vee X k cdots vee X n nbsp with Z a new variable and repeating as often as necessary Converting from first order logic EditTo convert first order logic to CNF 2 Convert to negation normal form Eliminate implications and equivalences repeatedly replace P Q displaystyle P rightarrow Q nbsp with P Q displaystyle lnot P lor Q nbsp replace P Q displaystyle P leftrightarrow Q nbsp with P Q P Q displaystyle P lor lnot Q land lnot P lor Q nbsp Eventually this will eliminate all occurrences of displaystyle rightarrow nbsp and displaystyle leftrightarrow nbsp Move NOTs inwards by repeatedly applying De Morgan s law Specifically replace P Q displaystyle lnot P lor Q nbsp with P Q displaystyle lnot P land lnot Q nbsp replace P Q displaystyle lnot P land Q nbsp with P Q displaystyle lnot P lor lnot Q nbsp and replace P displaystyle lnot lnot P nbsp with P displaystyle P nbsp replace x P x displaystyle lnot forall xP x nbsp with x P x displaystyle exists x lnot P x nbsp x P x displaystyle lnot exists xP x nbsp with x P x displaystyle forall x lnot P x nbsp After that a displaystyle lnot nbsp may occur only immediately before a predicate symbol Standardize variables For sentences like x P x x Q x displaystyle forall xP x lor exists xQ x nbsp which use the same variable name twice change the name of one of the variables This avoids confusion later when dropping quantifiers For example x y A n i m a l y L o v e s x y y L o v e s y x displaystyle forall x exists y mathrm Animal y land lnot mathrm Loves x y lor exists y mathrm Loves y x nbsp is renamed to x y A n i m a l y L o v e s x y z L o v e s z x displaystyle forall x exists y mathrm Animal y land lnot mathrm Loves x y lor exists z mathrm Loves z x nbsp Skolemize the statement Move quantifiers outwards repeatedly replace P x Q x displaystyle P land forall xQ x nbsp with x P Q x displaystyle forall x P land Q x nbsp replace P x Q x displaystyle P lor forall xQ x nbsp with x P Q x displaystyle forall x P lor Q x nbsp replace P x Q x displaystyle P land exists xQ x nbsp with x P Q x displaystyle exists x P land Q x nbsp replace P x Q x displaystyle P lor exists xQ x nbsp with x P Q x displaystyle exists x P lor Q x nbsp These replacements preserve equivalence since the previous variable standardization step ensured that x displaystyle x nbsp doesn t occur in P displaystyle P nbsp After these replacements a quantifier may occur only in the initial prefix of the formula but never inside a displaystyle lnot nbsp displaystyle land nbsp or displaystyle lor nbsp Repeatedly replace x 1 x n y P y displaystyle forall x 1 ldots forall x n exists y P y nbsp with x 1 x n P f x 1 x n displaystyle forall x 1 ldots forall x n P f x 1 ldots x n nbsp where f displaystyle f nbsp is a new n displaystyle n nbsp ary function symbol a so called Skolem function This is the only step that preserves only satisfiability rather than equivalence It eliminates all existential quantifiers Drop all universal quantifiers Distribute ORs inwards over ANDs repeatedly replace P Q R displaystyle P lor Q land R nbsp with P Q P R displaystyle P lor Q land P lor R nbsp As an example the formula saying Anyone who loves all animals is in turn loved by someone is converted into CNF and subsequently into clause form in the last line as follows highlighting replacement rule redexes in red displaystyle color red text red nbsp x displaystyle forall x nbsp displaystyle nbsp y displaystyle forall y nbsp A n i m a l displaystyle mathrm Animal nbsp y displaystyle y nbsp displaystyle nbsp displaystyle color red rightarrow nbsp L o v e s x displaystyle mathrm Loves x nbsp y displaystyle y nbsp displaystyle nbsp displaystyle nbsp displaystyle rightarrow nbsp displaystyle nbsp displaystyle exists nbsp y displaystyle y nbsp L o v e s displaystyle mathrm Loves nbsp y displaystyle y nbsp x displaystyle x nbsp displaystyle nbsp x displaystyle forall x nbsp displaystyle nbsp y displaystyle forall y nbsp displaystyle lnot nbsp A n i m a l displaystyle mathrm Animal nbsp y displaystyle y nbsp displaystyle nbsp displaystyle lor nbsp L o v e s x displaystyle mathrm Loves x nbsp y displaystyle y nbsp displaystyle nbsp displaystyle nbsp displaystyle color red rightarrow nbsp displaystyle nbsp displaystyle exists nbsp y displaystyle y nbsp L o v e s displaystyle mathrm Loves nbsp y displaystyle y nbsp x displaystyle x nbsp displaystyle nbsp by 1 1 x displaystyle forall x nbsp displaystyle color red lnot nbsp displaystyle nbsp y displaystyle color red forall y nbsp displaystyle lnot nbsp A n i m a l displaystyle mathrm Animal nbsp y displaystyle y nbsp displaystyle nbsp displaystyle lor nbsp L o v e s x displaystyle mathrm Loves x nbsp y displaystyle y nbsp displaystyle nbsp displaystyle nbsp displaystyle lor nbsp displaystyle nbsp displaystyle exists nbsp y displaystyle y nbsp L o v e s displaystyle mathrm Loves nbsp y displaystyle y nbsp x displaystyle x nbsp displaystyle nbsp by 1 1 x displaystyle forall x nbsp displaystyle nbsp y displaystyle exists y nbsp displaystyle color red lnot nbsp displaystyle nbsp displaystyle lnot nbsp A n i m a l displaystyle mathrm Animal nbsp y displaystyle y nbsp displaystyle nbsp displaystyle color red lor nbsp L o v e s x displaystyle mathrm Loves x nbsp y displaystyle y nbsp displaystyle nbsp displaystyle nbsp displaystyle nbsp displaystyle lor nbsp displaystyle nbsp displaystyle exists nbsp y displaystyle y nbsp L o v e s displaystyle mathrm Loves nbsp y displaystyle y nbsp x displaystyle x nbsp displaystyle nbsp by 1 2 x displaystyle forall x nbsp displaystyle nbsp y displaystyle exists y nbsp displaystyle color red lnot nbsp displaystyle color red lnot nbsp A n i m a l displaystyle mathrm Animal nbsp y displaystyle y nbsp displaystyle nbsp displaystyle land nbsp displaystyle lnot nbsp L o v e s x displaystyle mathrm Loves x nbsp y displaystyle y nbsp displaystyle nbsp displaystyle nbsp displaystyle lor nbsp displaystyle nbsp displaystyle exists nbsp y displaystyle y nbsp L o v e s displaystyle mathrm Loves nbsp y displaystyle y nbsp x displaystyle x nbsp displaystyle nbsp by 1 2 x displaystyle forall x nbsp displaystyle nbsp y displaystyle color red exists y nbsp A n i m a l displaystyle mathrm Animal nbsp y displaystyle y nbsp displaystyle nbsp displaystyle land nbsp displaystyle lnot nbsp L o v e s x displaystyle mathrm Loves x nbsp y displaystyle y nbsp displaystyle nbsp displaystyle nbsp displaystyle lor nbsp displaystyle nbsp displaystyle color red exists nbsp y displaystyle color red y nbsp L o v e s displaystyle mathrm Loves nbsp y displaystyle y nbsp x displaystyle x nbsp displaystyle nbsp by 1 2 x displaystyle forall x nbsp displaystyle nbsp y displaystyle exists y nbsp A n i m a l displaystyle mathrm Animal nbsp y displaystyle y nbsp displaystyle nbsp displaystyle land nbsp displaystyle lnot nbsp L o v e s x displaystyle mathrm Loves x nbsp y displaystyle y nbsp displaystyle nbsp displaystyle nbsp displaystyle color red lor nbsp displaystyle nbsp displaystyle color red exists nbsp z displaystyle color red z nbsp L o v e s displaystyle mathrm Loves nbsp z displaystyle z nbsp x displaystyle x nbsp displaystyle nbsp by 2 x displaystyle forall x nbsp z displaystyle exists z nbsp displaystyle nbsp y displaystyle color red exists y nbsp A n i m a l displaystyle mathrm Animal nbsp y displaystyle y nbsp displaystyle nbsp displaystyle land nbsp displaystyle lnot nbsp L o v e s x displaystyle mathrm Loves x nbsp y displaystyle y nbsp displaystyle nbsp displaystyle nbsp displaystyle color red lor nbsp L o v e s displaystyle mathrm Loves nbsp z displaystyle z nbsp x displaystyle x nbsp by 3 1 x displaystyle forall x nbsp z displaystyle color red exists z nbsp y displaystyle exists y nbsp displaystyle nbsp A n i m a l displaystyle mathrm Animal nbsp y displaystyle y nbsp displaystyle nbsp displaystyle land nbsp displaystyle lnot nbsp L o v e s x displaystyle mathrm Loves x nbsp y displaystyle y nbsp displaystyle nbsp displaystyle nbsp displaystyle lor nbsp L o v e s displaystyle mathrm Loves nbsp z displaystyle z nbsp x displaystyle x nbsp by 3 1 x displaystyle forall x nbsp y displaystyle color red exists y nbsp displaystyle nbsp A n i m a l displaystyle mathrm Animal nbsp y displaystyle y nbsp displaystyle nbsp displaystyle land nbsp displaystyle lnot nbsp L o v e s x displaystyle mathrm Loves x nbsp y displaystyle y nbsp displaystyle nbsp displaystyle nbsp displaystyle lor nbsp L o v e s displaystyle mathrm Loves nbsp g x displaystyle g x nbsp x displaystyle x nbsp by 3 2 displaystyle nbsp A n i m a l displaystyle mathrm Animal nbsp f x displaystyle f x nbsp displaystyle nbsp displaystyle color red land nbsp displaystyle lnot nbsp L o v e s x displaystyle mathrm Loves x nbsp f x displaystyle f x nbsp displaystyle nbsp displaystyle nbsp displaystyle color red lor nbsp L o v e s displaystyle mathrm Loves nbsp g x displaystyle g x nbsp x displaystyle x nbsp by 4 displaystyle nbsp A n i m a l displaystyle mathrm Animal nbsp f x displaystyle f x nbsp displaystyle nbsp displaystyle color red lor nbsp L o v e s displaystyle mathrm Loves nbsp g x displaystyle g x nbsp x displaystyle x nbsp displaystyle nbsp displaystyle color red land nbsp displaystyle nbsp L o v e s x f x displaystyle lnot mathrm Loves x f x nbsp displaystyle color red lor nbsp L o v e s g x x displaystyle mathrm Loves g x x nbsp displaystyle nbsp by 5 displaystyle nbsp displaystyle nbsp A n i m a l displaystyle mathrm Animal nbsp f x displaystyle f x nbsp displaystyle nbsp displaystyle nbsp L o v e s displaystyle mathrm Loves nbsp g x displaystyle g x nbsp x displaystyle x nbsp displaystyle nbsp displaystyle nbsp displaystyle nbsp L o v e s x f x displaystyle lnot mathrm Loves x f x nbsp displaystyle nbsp L o v e s g x x displaystyle mathrm Loves g x x nbsp displaystyle nbsp displaystyle nbsp clause representation Informally the Skolem function g x displaystyle g x nbsp can be thought of as yielding the person by whom x displaystyle x nbsp is loved while f x displaystyle f x nbsp yields the animal if any that x displaystyle x nbsp doesn t love The 3rd last line from below then reads as x displaystyle x nbsp doesn t love the animal f x displaystyle f x nbsp or else x displaystyle x nbsp is loved by g x displaystyle g x nbsp The 2nd last line from above A n i m a l f x L o v e s g x x L o v e s x f x L o v e s g x x displaystyle mathrm Animal f x lor mathrm Loves g x x land lnot mathrm Loves x f x lor mathrm Loves g x x nbsp is the CNF Notes Edit Peter B Andrews An Introduction to Mathematical Logic and Type Theory 2013 ISBN 9401599343 p 48 a b Artificial Intelligence A modern Approach Archived 2017 08 31 at the Wayback Machine 1995 Russell and Norvig Tseitin 1968 Jackson and Sheridan 2004 since one way to check a CNF for satisfiability is to convert it into a DNF the satisfiability of which can be checked in linear timeSee also EditAlgebraic normal form Disjunctive normal form Horn clause Quine McCluskey algorithmReferences EditJ Eldon Whitesitt 24 May 2012 Boolean Algebra and Its Applications Courier Corporation ISBN 978 0 486 15816 7 Hans Kleine Buning Theodor Lettmann 28 August 1999 Propositional Logic Deduction and Algorithms Cambridge University Press ISBN 978 0 521 63017 7 Paul Jackson Daniel Sheridan Clause Form Conversions for Boolean Circuits In Holger H Hoos David G Mitchell Eds Theory and Applications of Satisfiability Testing 7th International Conference SAT 2004 Vancouver BC Canada May 10 13 2004 Revised Selected Papers Lecture Notes in Computer Science 3542 Springer 2005 pp 183 198 G S Tseitin On the complexity of derivation in propositional calculus In Slisenko A O ed Structures in Constructive Mathematics and Mathematical Logic Part II Seminars in Mathematics translated from Russian pp 115 125 Steklov Mathematical Institute 1968 External links Edit Conjunctive normal form Encyclopedia of Mathematics EMS Press 2001 1994 Java tool for converting a truth table into CNF and DNF Java applet for converting to CNF and DNF showing laws used Retrieved from https en wikipedia org w index php title Conjunctive normal form amp oldid 1172973037, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.