Skip to content

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

Closed

Description

@fdupress

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

Activity

  1. oskgo commented on Oct 3, 2025

    @oskgo
    Contributor

    Fixed by #789. @fdupress, can you verify that Aaron's example works now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions