def b2n
import bend-collections-laws-crypto@1.0.0.0/spec/math/random/rand.bend as Randimport Base
31def b2n(b: Bool) -> Nat:
32 match b:
33 case True{}:
34 1n
35 case False{}:
36 0n
Uses (2)
Used by (9)
- bend-collections-laws-crypto@1.0.0.0/proofs/math/random/lemire:b2n
- bend-collections-laws-crypto@1.0.0.0/spec/math/random/rand:occurrences
- bend-collections-laws-crypto@1.0.0.0/spec/math/random/rand:hit
- bend-collections-laws-crypto@1.0.0.0/proofs/math/random/shuffle:lt_succ_split
- bend-collections-laws-crypto@1.0.0.0/proofs/math/random/shuffle:put_occ
- …