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

[Feature request]: Name assertions in functions #3101

Open
MikaelMayer opened this issue Nov 23, 2022 · 0 comments
Open

[Feature request]: Name assertions in functions #3101

MikaelMayer opened this issue Nov 23, 2022 · 0 comments
Labels
kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny

Comments

@MikaelMayer
Copy link
Member

What is the feature you would like to see in a future version of Dafny?

I would like to prove, name and hide assertions in functions like in methods.

This works
image

But this doesn't
image

As a result, one cannot prove a result, hide it from the verifier, and reuse it later in the function, one has to either prove it again or make it available for every assertion, which is suboptimal.

@MikaelMayer MikaelMayer added the kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny label Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny
Projects
None yet
Development

No branches or pull requests

1 participant