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

f.requires forgotten for f defined with requires clause #6110

Open
erniecohen opened this issue Feb 17, 2025 · 0 comments
Open

f.requires forgotten for f defined with requires clause #6110

erniecohen opened this issue Feb 17, 2025 · 0 comments
Labels
incompleteness Things that Dafny should be able to prove, but can't kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label

Comments

@erniecohen
Copy link

Dafny version

4.10

Code to produce this issue

predicate p(x:int)
const f := (x:int) requires p(x) => x
lemma test(x:int) ensures f.requires(x) ==> p(x) {}

Command to run and resulting output


What happened?

This should verify. (Note that the reverse implication does.)

What type of operating system are you experiencing the problem on?

Mac

@erniecohen erniecohen added the kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label label Feb 17, 2025
@fabiomadge fabiomadge added the incompleteness Things that Dafny should be able to prove, but can't label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incompleteness Things that Dafny should be able to prove, but can't kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
Projects
None yet
Development

No branches or pull requests

2 participants