def isqrt
import bend-collections-laws-math@1.0.0.0/src/math/natural.bend as Naturalimport Base
import bend-collections-laws-math@1.0.0.0/src/math/pow2.bend as P2
232def isqrt(+n: Nat) -> Nat:
233 isqrt_from(n, P2.pow2t(1n+Nat.div(bit_length(n), 2n)))
Uses (5)
Used by (98)
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64sqa:ilt
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64sqa:isl
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64sqa:isqrt_lt
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64sqv:hn_v
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64sqa:isqrt_ge
- …