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

Anomaly in ecSubst when postconditions contain Pr[...] expressions #729

Open
fdupress opened this issue Mar 3, 2025 · 0 comments · May be fixed by #745
Open

Anomaly in ecSubst when postconditions contain Pr[...] expressions #729

fdupress opened this issue Mar 3, 2025 · 0 comments · May be fixed by #745

Comments

@fdupress
Copy link
Member

fdupress commented Mar 3, 2025

The following illustrates one such failure. Aaron (github handle?) has one that fails on wp but has a much larger context that I cannot usefully reduce.

This can still be worked around using pose, so not blocking, but certainly annoying.

require import AllCore Distr DBool.

module M = {
  proc p() = {
    var b;

    b <$ dbool;
    return b;
  }
}.

lemma ohno &m:
  Pr[M.p() @ &m: res] = Pr[M.p() @ &m: !res].
proof.
byphoare=> //.
proc; rnd. conseq />.

Fails with anomaly: File "src/ecCoreSubst.ml", line 149, characters 2-8: Assertion failed

@strub strub linked a pull request Mar 10, 2025 that will close this issue
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 a pull request may close this issue.

1 participant