def fits
import bend-collections-laws-math@1.0.0.0/spec/lib/common.bend as Commonimport Base
59# n < 2^k
60def fits(+k: Nat, +n: Nat) -> Bool:
61 Nat.is_eq(high(k, n), 0n)
Uses (4)
Used by (603)
- bend-collections-laws-math@1.0.0.0/spec/math/f64:sign
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/width:low_fit
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32laws:vb
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/w64sh:fits_mono
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/width:high_u
- …