kdrag.smt.ForAll
- kdrag.smt.ForAll(vs: list[ExprRef] | ExprRef, *hyp_conc, **kwargs) QuantifierRef
Quantified ForAll
Shorthand for ForAll(vars, Implies(hyp[0], Implies(hyp[1], …, conc))). Use an explicit And to group premises.
>>> x,y = Ints("x y") >>> ForAll([x,y], x > 0, y > 0, x + y > 0) ForAll([x, y], Implies(x > 0, Implies(y > 0, x + y > 0))) >>> x = Const("x", Lambda([x], x >= 0)) >>> ForAll([x], x > 3) ForAll(x, Implies(x >= 0, x > 3))
- Parameters:
vs (list[ExprRef] | ExprRef)
- Return type:
QuantifierRef