Example #1
0
    def _check(expression):
        """method performing check"""
        if background_knowledge:
            e = AndExpression(expression.fol(), background_knowledge)
            if verbose:
                print "performing check on: %s" % e
            t = Theorem(NegatedExpression(e), e)
        else:
            if verbose:
                print "performing check on: %s" % expression.fol()
            t = Theorem(NegatedExpression(expression), expression)

        result, output = t.check()
        if verbose:
            if output:
                print "\nMace4 returns:\n%s\n" % output
            else:
                print "\nProver9 returns: %s\n" % (not result)
        return result
Example #2
0
 def fol(self):
     e = AndExpression(self.first.fol(), self.second.fol())
     if self.consequent:
         e = ImpExpression(e, self.consequent.fol())
     return e