Skip to content

pHL call permits negative probabilities #1101

Description

@oskgo

We can use call on a lemma with negative probabilities to prove a negative bound on phoare statements where the call is unreachable.

MRE:

require import Real Distr.

module O = {proc p() = {}}.

lemma O_false: phoare[O.p: false ==> true] <= (-1%r) by done.

module M = {proc p() = {var r: bool; r<$dnull; O.p();}}.

lemma len1: phoare[M.p: true ==> false] <= (-1%r).
proof.
proc.
call O_false.
auto => />.
apply supp_dnull.
qed.

Activity

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