SUPPORT THE WORK

GetWiki

negation normal form

ARTICLE SUBJECTS
aesthetics  →
being  →
complexity  →
database  →
enterprise  →
ethics  →
fiction  →
history  →
internet  →
knowledge  →
language  →
licensing  →
linux  →
logic  →
method  →
news  →
perception  →
philosophy  →
policy  →
purpose  →
religion  →
science  →
sociology  →
software  →
truth  →
unix  →
wiki  →
ARTICLE TYPES
essay  →
feed  →
help  →
system  →
wiki  →
ARTICLE ORIGINS
critical  →
discussion  →
forked  →
imported  →
original  →
negation normal form
[ temporary import ]
please note:
- the content below is remote from Wikipedia
- it has been imported raw for GetWiki
{{Short description|Logical formula with NOT only on variables}}In mathematical logic, a formula is in negation normal form (NNF) if the negation operator (lnot, {{smallcaps|not}}) is only applied to variables and the only other allowed Boolean operators are conjunction (land, {{smallcaps|and}}) and disjunction (lor, {{smallcaps|or}}). Negation normal form is not a canonical form: for example, a land (blor lnot c) and (a land b) lor (a land lnot c) are equivalent, and are both in negation normal form.In classical logic and many modal logics, every formula can be brought into this form by replacing implications and equivalences by their definitions, using De Morgan's laws to push negation inwards, and eliminating double negations. This process can be represented using the following rewrite rules:{{sfn|Robinson|Voronkov|2001|p=204}}
begin{align}
A Rightarrow B &~to~ lnot A lor B
A Leftrightarrow B &~to~ (lnot A lor B) land (A lor lnot B)
lnot (A lor B) &~to~ lnot A land lnot B
lnot (A land B) &~to~ lnot A lor lnot B
lnot lnot A &~to~ A
lnot exists x A &~to~ forall x lnot A
lnot forall x A &~to~ exists x lnot A
end{align}(In these rules, the Rightarrow symbol indicates logical implication in the formula being rewritten, and to is the rewriting operation.)Transformation into negation normal form can increase the size of a formula only linearly: the number of occurrences of atomic formulas remains the same, the total number of occurrences of land and lor is unchanged, and the number of occurrences of lnot in the normal form is bounded by the length of the original formula.A formula in negation normal form can be put into the stronger conjunctive normal form or disjunctive normal form by applying distributivity. Repeated application of distributivity may exponentially increase the size of a formula. In the classical propositional logic, transformation to negation normal form does not impact computational properties: the satisfiability problem continues to be NP-complete, and the validity problem continues to be co-NP-complete. For formulas in conjunctive normal form, the validity problem is solvable in polynomial time, and for formulas in disjunctive normal form, the satisfiability problem is solvable in polynomial time.

Examples and counterexamples

The following formulae are all in negation normal form:
begin{align}
(A &vee B) wedge C
(A &wedge (lnot B vee C) wedge lnot C) vee D
A &vee lnot B
A &wedge lnot B
end{align}The first example is also in conjunctive normal form and the last two are in both conjunctive normal form and disjunctive normal form, but the second example is in neither.The following formulae are not in negation normal form:
begin{align}
A &Rightarrow B
lnot (A &vee B)
lnot (A &wedge B)
lnot (A &vee lnot C)
end{align}They are however respectively equivalent to the following formulae in negation normal form:
begin{align}
lnot A &vee B
lnot A &wedge lnot B
lnot A &vee lnot B
lnot A &wedge C
end{align}

See also

Notes

{{Reflist}}

References

  • BOOK, Robinson, John Alan, John Alan Robinson, Voronkov, Andrei, Andrei Voronkov, 2001, Handbook of Automated Reasoning, Handbook of Automated Reasoning, 1, MIT Press, 203 ff, 0444829490
,

External links

  • weblink" title="archive.today/20121208184549weblink">Java applet for converting logical formula to Negation Normal Form, showing laws used
{{Normal forms in logic}}

- content above as imported from Wikipedia
- "negation normal form" does not exist on GetWiki (yet)
- time: 4:08pm EDT - Thu, Apr 25 2024
[ this remote article is provided by Wikipedia ]
LATEST EDITS [ see all ]
GETWIKI 23 MAY 2022
GETWIKI 09 JUL 2019
Eastern Philosophy
History of Philosophy
GETWIKI 09 MAY 2016
GETWIKI 18 OCT 2015
M.R.M. Parrott
Biographies
GETWIKI 20 AUG 2014
CONNECT