Skip to content

Commit

Permalink
corrected wrong negation in negate_quantor
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wittig committed Oct 10, 2012
1 parent be1f5e9 commit 191313e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions operations.py
Expand Up @@ -19,9 +19,9 @@ def rewrite_binary(binary_formula, left, right, new_op):
def rewrite_quantor(quantor_formula, not_negated, new_quantor):

if not_negated:
new_term = quantor_formula.term.negate()
else:
new_term = quantor_formula.term
else:
new_term = quantor_formula.term.negate()

return f.Quantor(new_quantor, quantor_formula.variables, transform(new_term))

Expand Down Expand Up @@ -78,7 +78,7 @@ def inner_function(eq_formula):
'&' : beta(False, False),
'~|' : beta(True, True),

'?' : gamma(True),
'?' : gamma(False),
'!' : delta(False),

'~' : double_negation,
Expand Down

0 comments on commit 191313e

Please sign in to comment.