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

Add the axiom stating that Seq#Take(s, Seq#Length(s)) == s) for all sequence s #4194

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

btwael
Copy link

@btwael btwael commented Jun 16, 2023

A trivial axiom stating Seq#Take(s, Seq#Length(s)) == s) for all sequence s. This will help deducing automatically and without using any workaround that "multiset(arr[..]) == multiset(arr[..arr.Length])" for any array arr.

Fixes #4184

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

… `s`

A trivial axiom that will help to deduce  that "multiset(arr[..]) == multiset(arr[..arr.Length])" for any array `arr`. (fix dafny-lang#4184 )

<small>By submitting this pull request, I confirm that my contribution
is made under the terms of the [MIT
license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
@MikaelMayer MikaelMayer changed the base branch from master to btwael-master June 19, 2023 15:08
@MikaelMayer MikaelMayer merged commit 862e5f7 into dafny-lang:btwael-master Jun 19, 2023
@MikaelMayer
Copy link
Member

I'm merging your PR to a local branch so that we can run variability tests. I'll open another PR from the branch as well.

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.

assert(multiset(arr[..]) == multiset(arr[..arr.Length])) fails!
2 participants