def entails(expr, formula_set={}):
 formula_set = list(formula_set)
 formula_set.append(Not(expr))
 return (not satisfiable(And(*formula_set)))

def entails ( expr , formula_set = { } ) : formula_set = list ( formula_set ) formula_set . append ( Not ( expr ) ) return ( not satisfiable ( And ( * formula_set ) ) )
check whether the given expr_set entail an expr .