Skip to content

Anomaly when combining pHL and pRHL using conseq in v2025.11 #834

@jjanku

Description

@jjanku

Hi,

The following example proof is valid in v2025.10:

require import AllCore Distr DBool.

module M = {
  proc run() : bool = {
    var b;
    b <$ {0,1};
    return b;
  }
}.

module N = {
  proc run() : bool = {
    var b;
    b <$ {0,1};
    return b;
  }
}.

phoare M_bound : [M.run : true ==> res] = (1%r / 2%r).
proof.
proc.
rnd.
skip => /=.
apply dboolE.
qed.

equiv N_M_equiv : N.run ~ M.run : true ==> res{1} <=> res{2}.
proof.
sim.
qed.

phoare N_bound : [N.run : true ==> res] = (1%r / 2%r).
proof.
conseq N_M_equiv M_bound => //.
qed.

In the new v2025.11, I'm getting the following error:
[critical] [...:37] anomaly: File "src/ecCoreFol.ml", line 311, characters 2-8: Assertion failed

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