In mathematical logic, a formula is in negation normal form (NNF) if the negation operator (, not) is only applied to variables and the only other allowed Boolean operators are conjunction (, and) and disjunction (, or).

Negation normal form is not a canonical form: for example, and are equivalent, and are both in negation normal form.

Definition

edit

The following is a context-free grammar for NNF:

NNF Literal
 ( NNF NNF  )
 ( NNF NNF  )
Literal Variable
  Variable

where Variable is any variable.

Examples and counterexamples

edit
         ∨
       /   \
      ∧     D
    /   \
   ∧     ¬
 /   \   |
A     ∨  C
     /  \
    ¬    C
    |
    B         

The following formulae are all in negation normal form:

The first example is also in conjunctive normal form, the next two are in both conjunctive normal form and disjunctive normal form, but the last example is in neither.

The following formulae are not in negation normal form:

They are however respectively equivalent to the following formulae in negation normal form:

Conversion to NNF

edit

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:[1]

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 and is unchanged, and the number of occurrences of 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.

See also

edit

Notes

edit

References

edit
  • Robinson, John Alan; Voronkov, Andrei, eds. (2001). Handbook of Automated Reasoning. Vol. 1. MIT Press. pp. 203 ff. ISBN 0444829490.
edit

📚 Artikel Terkait di Wikipedia

Linear temporal logic

operators. All the formulas of LTL can be transformed into negation normal form, where all negations appear only in front of the atomic propositions, only

Algebraic normal form

whether each variable is negated or not. Negation normal form is unsuitable for determining equivalence, since on negation normal forms, equivalence does not

Disjunctive normal form

one is in negation normal form. Davey & Priestley 1990, p. 152-153. Formulas with other connectives can be brought into negation normal form first. Dershowitz

Normal form

form Disjunctive normal form Negation normal form Prenex normal form Skolem normal form in lambda calculus: Beta normal form Normalization (disambiguation)

Prenex normal form

then put in prenex normal form ∃ x ′ ( x ′ 2 = 1 ∧ 0 = x ) {\displaystyle \exists x'(x'^{2}=1\land 0=x)} . The rules for negation say that ¬ ∃ x ϕ {\displaystyle

Conjunctive normal form

propositional formula ϕ {\displaystyle \phi } . Step 1: Convert its negation to disjunctive normal form. ¬ ϕ D N F = ( C 1 ∨ C 2 ∨ … ∨ C i ∨ … ∨ C m ) {\displaystyle

Binary decision diagram

representation, i.e. without decompression. Similar data structures include negation normal form (NNF), Zhegalkin polynomials, and propositional directed acyclic

Canonical form

fundamental form. Negation normal form Conjunctive normal form Disjunctive normal form Algebraic normal form Prenex normal form Skolem normal form Blake canonical