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))))
Exemplo n.º 2
0
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))))
Exemplo n.º 3
0
def state_implies_formula(state1, fmla2):
    clauses1 = and_clauses(state1.clauses + state1.domain.background_theory(state1.in_scope))
    return clauses_imply_formula(clauses1,fmla2)
Exemplo n.º 4
0
def state_implies_formula(state1, fmla2):
    clauses1 = and_clauses(state1.clauses +
                           state1.domain.background_theory(state1.in_scope))
    return clauses_imply_formula(clauses1, fmla2)