def clauses_imply_formula_cex(clauses, fmla): if clauses_imply_formula(clauses, fmla): return True return CounterExample( conjoin(clauses, negate_clauses(formula_to_clauses(fmla))))
def clauses_imply_formula_cex(clauses,fmla): if clauses_imply_formula(clauses,fmla): return True return CounterExample(conjoin(clauses,negate_clauses(formula_to_clauses(fmla))))
def state_implies_formula(state1, fmla2): clauses1 = and_clauses(state1.clauses + state1.domain.background_theory(state1.in_scope)) return clauses_imply_formula(clauses1,fmla2)
def state_implies_formula(state1, fmla2): clauses1 = and_clauses(state1.clauses + state1.domain.background_theory(state1.in_scope)) return clauses_imply_formula(clauses1, fmla2)