W64sqrt.up32g: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/proofs/math/typed/w64sqrt.bend as W64sqrt Lines 105-112 of bend-collections-laws-crypto@1.0.0.0/proofs/math/typed/w64sqrt.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/math/typed/w64sqrt.bend&start_line=105&end_line=112 import Base def up32g(fuel: Nat, +x: U32, +r: U32, up: Bool, +m: U32) -> U32: match fuel up: case 0n _: r case 1n+f False{}: r case 1n+f True{}: up32g(f, x, U32.add(r, 1), up_okg(x, U32.add(r, 1), m), m) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/math/typed/w64sqrt.bend&name=up_okg