def msn
import bend-collections-laws-math@1.0.0.0/proofs/math/typed/natfuel.bend as Natfuelimport Base
427def msn(bit: Bool, +na: Nat, +nb: Nat) -> Nat:
428 match bit:
429 case True{}:
430 Nat.mul(na, nb)
431 case False{}:
432 na
Uses (3)
Used by (10)
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/natfuel:powstep
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:powsim
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64int:powsim
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/natfuel:pw_bit
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:ms_fits
- …