Negation Normal Form: Difference between revisions
imported>Laurent |
imported>Laurent |
||
Line 33: | Line 33: | ||
== Tactics == | == Tactics == | ||
When | When a predicate with a negation is matched, rules are applied following a pre-order traversal of that predicate. | ||
<math>\lnot(A \land \lnot (B \lor C))</math> | <math>\lnot(A \land \lnot (B \lor C))</math> | ||
Line 55: | Line 55: | ||
<math>\lnot A \lor (B \lor C)</math> | <math>\lnot A \lor (B \lor C)</math> | ||
This way, tree proof is not unnecessarily complicated, and so more legible. The space used on disk is also smaller. |
Revision as of 15:45, 13 April 2011
This page describe the Negation Normal Form used in Rodin and show how it has been implemented.
Definition
A logical formula is in its Negation Normal Form if negation occurs only on atomic expression. To achieve this, rules already defined are reused :
SIMP_NOT_NOT :
DISTRI_NOT_AND :
DISTRI_NOT_OR :
DERIV_NOT_IMP :
DERIV_NOT_FORALL :
DERIV_NOT_EXISTS :
There is no rule implemented for that type of expression : (which is equivalent to The way the reasoner will work is yet to be defined. Since the "" is to be kept, the choice on which predicate the not will be applied to is ambiguous. Here is an example showing that difficulty :
(1) which is equivalent to (2)
A solution would be to applied systematically on the left expression. In that case, simple simplification in the right member as in (1) would not be applied, thus complicating the left expression.
A better solution would to apply the on a member containing already a . But it can be hard to find an expression with a which has already been put in its Negation Normal Form as for the right member in (2)
Implementation
Tactics
When a predicate with a negation is matched, rules are applied following a pre-order traversal of that predicate.
INSTEAD OF
This way, tree proof is not unnecessarily complicated, and so more legible. The space used on disk is also smaller.