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

Make samplers and While loops opaque #100

Merged
merged 3 commits into from
Oct 23, 2023
Merged

Make samplers and While loops opaque #100

merged 3 commits into from
Oct 23, 2023

Conversation

fzaiser
Copy link
Collaborator

@fzaiser fzaiser commented Oct 20, 2023

Reason: For while loops, the definition is not very helpful, it's better to rely on lemmas around it for proofs. When calling samplers, we should also not rely on their internals, but on their correctness properties. It also reduces resource usage.

As a concession, this PR also adds a postcondition for While to avoid having to call a lemma to handle the case of a while loop immediately exiting.

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

@fzaiser fzaiser changed the title Make samplers and while loops opaque Make samplers and While loops opaque Oct 20, 2023
@stefan-aws stefan-aws merged commit ec4e2a1 into main Oct 23, 2023
7 checks passed
@fzaiser fzaiser deleted the opaque branch October 23, 2023 17:30
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