Skip to content

Commit 23cf445baa7b2486f8c36bf60c2022d0dafecdb7 has broken some uses of byequiv with implicit pRHL judgement #818

Closed

Description

@alleystoughton

Commit 23cf445 has broken some uses of byequiv where the pRHL judgement is implicit. An example is below.

require import AllCore.

module M = {
  proc f() : bool = {
    return true;
  }
}.

lemma lem1 &m :
  Pr[M.f() @ &m : res] = Pr[M.f() @ &m : res].  
proof.
byequiv (_ : true ==> ={res}).
by proc.
trivial.
trivial.
qed.

lemma lem2 &m :
  Pr[M.f() @ &m : res] = Pr[M.f() @ &m : res].
proof.
byequiv.
(* error:
anomaly: Failure("hd")
*)

Activity

  1. oskgo commented on Oct 24, 2025

    @oskgo
    Contributor

    This should be fixed now. Thank you for the report!

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

Metadata

Metadata

Assignees

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