forallIndexed function
Creates a Forall quantifier, like forall but arguments must manually
de-Bruijn indexed.
Implementation
Forall forallIndexed(
Map<String, Sort> args,
Expr body, {
Expr? when,
int weight = 0,
Iterable<Pat> patterns = const [],
Iterable<Expr> noPatterns = const [],
String? id,
String? skolem,
}) =>
Forall(
args.map((key, value) => MapEntry(Sym(key), value)),
when == null ? body : implies(when, body),
weight: weight,
patterns: patterns.toList(),
noPatterns: noPatterns.toList(),
id: id == null ? null : Sym(id),
skolem: skolem == null ? null : Sym(skolem),
).declare();