def n48
import bend-collections-laws-math@1.0.0.0/src/math/w64.bend as W64import Base
import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as W
706def n48(+a: W.U64) -> Nat:
707 Nat.add(U32.to_nat(lo(a)), Nat.mul(Nat.mul(U32.to_nat(hi(a)), 65536n), 65536n))
Uses (7)
Used by (7)
- bend-collections-laws-math@1.0.0.0/src/math/instances:u64_op
- bend-collections-laws-math@1.0.0.0/src/math/random/rand:to_nat
- bend-collections-laws-math@1.0.0.0/src/math/random/rand:swap_at
- bend-collections-laws-math@1.0.0.0/proofs/math/random/shuffle:swap_at_occ
- bend-collections-laws-math@1.0.0.0/proofs/math/random/wrappers:n48v
- …