New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Operation - on FBag incorrect #1574
Comments
The modified rewrite rule is still not correct. A test case showing this is the following:
The expected output is |
The generate_data_types.py script refuses to run locally (even using python2) so I can not test this, but the rule:
does not take into account that the element d with multiplicity p can still occur in the remainder c. Therefore, it should still take the difference between the left bag and the remainder c, such that rule becomes:
|
@mlaveaux indeed, and I am already working on the fix. Will commit with tests shortly. |
This rewrite rule did not correctly take the ordering of elements in the FBag into account. The fix is a result of a discussion with @mlaveaux. Fixes mCRL2org#1574
Mea culpa; the previous fix was incorrect. Now proper tests have been added that check the correctness of the fix. Fixes mCRL2org#1574
Consider the following excerpt from mcrl2i. This illustrates that the - operation on finite sets has unexpected effects.
Note that correctness of the operation is dependant on the order of the operands.
The issue was observed by @wsinnema.
The text was updated successfully, but these errors were encountered: