Natural.bit_length_go: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/src/math/natural.bend as Natural Lines 157-164 of bend-collections-laws-crypto@1.0.0.0/src/math/natural.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/natural.bend&start_line=157&end_line=164 import Base def bit_length_go(fuel: Nat, +n: Nat, +k: Nat) -> Nat: match fuel n: case 0n _: k case 1n+f 0n: k case 1n+f 1n+ +np: bit_length_go(f, Nat.div(1n+np, 2n), 1n+k) Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.div