Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaiser committed Oct 25, 2023
1 parent 4f6a833 commit 967ad1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Distributions/UniformPowerOfTwo/Correctness.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ module UniformPowerOfTwo.Correctness {
var E: iset<Rand.Bitstream> := (iset s | m % 2 as nat == Helper.boolToNat(Monad.Coin(s).value));
var f := (s: Rand.Bitstream) => Model.Sample(n / 2)(s).rest;

var e1 := (iset s | Model.Sample(n / 2)(s).rest in E);
var e2 := (iset s | Model.Sample(n / 2)(s).value in A);
var e1 := (iset s | Model.Sample(n / 2)(s).RestIn(E));
var e2 := (iset s | Model.Sample(n / 2)(s).In(A));
var e3 := (iset s | 2*aOf(s) + Helper.boolToNat(bOf(s)) == m);

assert SplitEvent: e3 == e1 * e2 by {
Expand Down

0 comments on commit 967ad1e

Please sign in to comment.