mirror of
https://github.com/Z3Prover/z3
synced 2026-02-19 23:14:40 +00:00
Rename set.select to set.filter and OP_FINITE_SET_SELECT to OP_FINITE_SET_FILTER (#7989)
* Initial plan * Rename set.select to set.filter and OP_FINITE_SET_SELECT to OP_FINITE_SET_FILTER Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> Co-authored-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ba5bc90d7c
commit
eb10ab1633
7 changed files with 25 additions and 24 deletions
|
|
@ -230,11 +230,11 @@ void finite_set_axioms::in_map_image_axiom(expr *x, expr *a) {
|
|||
m_add_clause(clause);
|
||||
}
|
||||
|
||||
// a := set.select(p, b)
|
||||
// a := set.filter(p, b)
|
||||
// (x in a) <=> (x in b) and p(x)
|
||||
void finite_set_axioms::in_select_axiom(expr *x, expr *a) {
|
||||
void finite_set_axioms::in_filter_axiom(expr *x, expr *a) {
|
||||
expr* p = nullptr, *b = nullptr;
|
||||
if (!u.is_select(a, p, b))
|
||||
if (!u.is_filter(a, p, b))
|
||||
return;
|
||||
|
||||
expr_ref x_in_a(u.mk_in(x, a), m);
|
||||
|
|
|
|||
|
|
@ -57,9 +57,9 @@ public:
|
|||
// (x in b) => f(x) in a
|
||||
void in_map_image_axiom(expr *x, expr *a);
|
||||
|
||||
// a := set.select(p, b)
|
||||
// a := set.filter(p, b)
|
||||
// (x in a) <=> (x in b) and p(x)
|
||||
void in_select_axiom(expr *x, expr *a);
|
||||
void in_filter_axiom(expr *x, expr *a);
|
||||
|
||||
// a := set.subset(b, c)
|
||||
// (a) <=> (set.intersect(b, c) = b)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue