def BitLength.le

bend-collections-laws-math@1.0.0.0 · spec/math/natural.bend:247

import bend-collections-laws-math@1.0.0.0/spec/math/natural.bend as Natural
import Base
import bend-collections-laws-math@1.0.0.0/spec/lib/common.bend as C
import bend-collections-laws-math@1.0.0.0/src/math/natural.bend as M

247def BitLength.le(+np: Nat) -> Type:
248  {Nat.is_le(C.pow2(M.bit_length(1n+np)), Nat.double(1n+np)) == True{} : Bool}

Uses (6)

Used by (1)