def b2n
import bend-collections-laws-math@1.0.0.0/spec/math/random/pcg.bend as Pcgimport Base
22def b2n(b: Bool) -> Nat:
23 match b:
24 case True{}:
25 1n
26 case False{}:
27 0n
Uses (2)
Used by (5)
- bend-collections-laws-math@1.0.0.0/spec/math/random/pcg:xor_bits
- bend-collections-laws-math@1.0.0.0/proofs/math/random/pcg/xor:step_eq
- bend-collections-laws-math@1.0.0.0/proofs/math/random/pcg/xor:xbit
- bend-collections-laws-math@1.0.0.0/proofs/math/random/pcg/xor:xor_word
- bend-collections-laws-math@1.0.0.0/proofs/math/random/pcg/xor:xsplit