Skip to content
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

Expand tuple equality definition for negative indices and references #179

Merged

Conversation

PascalDevenoge
Copy link
Contributor

@PascalDevenoge PascalDevenoge commented Mar 22, 2024

As discussed, this should not affect the issue of the new tuple axiomatization being unsound.
Change could then be merged back into master once that issue is fixed.


This change is Reviewable

Tuple equality can be established by ensuring that they have the same
length and all elements are themselfs pairwise equal. Currently, the
definition of the tuple equality function only consideres quantifying
over positive integer indices. Since specifications might want to infer
equality by quantifying over equivalent negative indices, and translated
forall quantifiers might quantify over references and not integer values,
additional equivalent postconditions are added to tuple___eq__() to
support these cases.
@marcoeilers marcoeilers merged commit 021820c into marcoeilers:better_tuple_types Mar 22, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants