Skip to content

Commit

Permalink
Remove Coin (#162)
Browse files Browse the repository at this point in the history
Depends on #161

By submitting this pull request, I confirm that my contribution is made
under the terms of the [MIT
license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).

---------

Co-authored-by: John Tristan <[email protected]>
  • Loading branch information
stefan-aws and jtristan authored Mar 6, 2024
1 parent 2697703 commit fdc7a86
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 63 deletions.
1 change: 0 additions & 1 deletion audit.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
src/Distributions/Uniform/Correctness.dfy(31,17): UniformFullCorrectness: Declaration has explicit `{:axiom}` attribute.
src/Distributions/Uniform/Correctness.dfy(36,17): SampleCoin: Declaration has explicit `{:axiom}` attribute.
src/Distributions/Uniform/Model.dfy(19,33): Sample: Declaration has explicit `{:axiom}` attribute.
src/Distributions/Uniform/Model.dfy(46,17): IntervalSampleIsMeasurePreserving: Declaration has explicit `{:axiom}` attribute.
src/ProbabilisticProgramming/Independence.dfy(30,27): IsIndep: Declaration has explicit `{:axiom}` attribute.
Expand Down
26 changes: 0 additions & 26 deletions src/Distributions/Coin/Implementation.dfy

This file was deleted.

20 changes: 0 additions & 20 deletions src/Distributions/Coin/Interface.dfy

This file was deleted.

13 changes: 0 additions & 13 deletions src/Distributions/Coin/Model.dfy

This file was deleted.

3 changes: 0 additions & 3 deletions src/Distributions/Uniform/Correctness.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ module Uniform.Correctness {
ensures SampleEquals(n, i) in Rand.eventSpace
ensures Rand.prob(SampleEquals(n, i)) == 1.0 / (n as real)

lemma {:axiom} SampleCoin(s: Rand.Bitstream)
ensures Model.Sample(2)(s)== Monad.Coin(s).Map(b => if b then 1 else 0)

// Correctness theorem for Model.IntervalSample
lemma UniformFullIntervalCorrectness(a: int, b: int, i: int)
requires a <= i < b
Expand Down

0 comments on commit fdc7a86

Please sign in to comment.