diff options
author | Kshitij Bansal <kshitij@cs.nyu.edu> | 2014-06-29 18:44:40 -0400 |
---|---|---|
committer | Kshitij Bansal <kshitij@cs.nyu.edu> | 2014-06-29 18:49:07 -0400 |
commit | f4d031742d969c689d38c0756a5026a434ef89b3 (patch) | |
tree | 54c1ef98847dbc809c0bc3cb59f20b882c42e075 /src/theory/sets/kinds | |
parent | be4701964ca423017d15e50697461a93587466db (diff) |
sets: "insert" operator
new™! support for (insert (X (Set X)) (Set X) :right-associative)
from the finte sets theory prosoal.
e.g., (insert 1 2 3 4 (singleton 5))
Diffstat (limited to 'src/theory/sets/kinds')
-rw-r--r-- | src/theory/sets/kinds | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/theory/sets/kinds b/src/theory/sets/kinds index 06d3be5a0..39e7883c6 100644 --- a/src/theory/sets/kinds +++ b/src/theory/sets/kinds @@ -41,6 +41,7 @@ operator SETMINUS 2 "set subtraction" operator SUBSET 2 "subset predicate; first parameter a subset of second" operator MEMBER 2 "set membership predicate; first parameter a member of second" operator SINGLETON 1 "the set of the single element given as a parameter" +operator INSERT 2: "set obtained by inserting elements (first N-1 parameters) into a set (the last parameter)" typerule UNION ::CVC4::theory::sets::SetsBinaryOperatorTypeRule typerule INTERSECTION ::CVC4::theory::sets::SetsBinaryOperatorTypeRule @@ -49,10 +50,12 @@ typerule SUBSET ::CVC4::theory::sets::SubsetTypeRule typerule MEMBER ::CVC4::theory::sets::MemberTypeRule typerule SINGLETON ::CVC4::theory::sets::SingletonTypeRule typerule EMPTYSET ::CVC4::theory::sets::EmptySetTypeRule +typerule INSERT ::CVC4::theory::sets::InsertTypeRule construle UNION ::CVC4::theory::sets::SetsBinaryOperatorTypeRule construle INTERSECTION ::CVC4::theory::sets::SetsBinaryOperatorTypeRule construle SETMINUS ::CVC4::theory::sets::SetsBinaryOperatorTypeRule construle SINGLETON ::CVC4::theory::sets::SingletonTypeRule +construle INSERT ::CVC4::theory::sets::InsertTypeRule endtheory |