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

Isolate function application arguments #5626

Closed

Conversation

keyboardDrummer
Copy link
Member

@keyboardDrummer keyboardDrummer commented Jul 15, 2024

Putting this PR on hold since it breaks the rule that

var x := <expr>
var y := F(x);
...

Should behave the same as:

var y := F(<expr>)
...

Because there can be facts proven in <expr> that are exposed in the first case but not in the other.

Changes

  • Isolate proofs inside expressions from the surrounding proofs
  • Expression proofs still affect the proof of the ensures clause of the surrounding function, unless inside a let binding.

How has this been tested?

  • Added CLI test ast/expressions/statementExpressionScope.dfy

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

@keyboardDrummer keyboardDrummer mentioned this pull request Jul 15, 2024
@keyboardDrummer keyboardDrummer changed the title Isolated wellformedness Improve function ensures clause error reporting, and isolate expression proofs Aug 9, 2024
@keyboardDrummer keyboardDrummer changed the title Improve function ensures clause error reporting, and isolate expression proofs Isolate expression proofs Aug 12, 2024
@keyboardDrummer keyboardDrummer changed the title Isolate expression proofs Isolate function application arguments Aug 14, 2024
@keyboardDrummer
Copy link
Member Author

Closing this since I currently have no intention of adding this behavior

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.

1 participant