def mul_over
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
102# a * b >= 2^64
103def mul_over(+a: W.U64, +b: W.U64) -> Bool:
104 Bool.or(Bool.and(Bool.not(U32.is_zero(hi(a))), Bool.not(U32.is_zero(hi(b)))), mul_over_one(mul32(lo(a), lo(b)), add(mul32(hi(a), lo(b)), mul32(lo(a), hi(b)))))
Uses (11)
Used by (8)
- bend-collections-laws-math@1.0.0.0/src/math/instances:u64_is
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64laws:ops_mul
- bend-collections-laws-math@1.0.0.0/src/math/fixed:u64_overflowing_mul
- bend-collections-laws-math@1.0.0.0/src/math/fixed:u64_checked_mul
- bend-collections-laws-math@1.0.0.0/src/math/fixed:u64_saturating_mul
- …