W64isq.up64g: def of bend-collections-laws-math@1.0.0.0 Import: import bend-collections-laws-math@1.0.0.0/proofs/math/typed/w64isq.bend as W64isq Lines 54-61 of bend-collections-laws-math@1.0.0.0/proofs/math/typed/w64isq.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/proofs/math/typed/w64isq.bend&start_line=54&end_line=61 import Base import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as WU def up64g(fuel: Nat, +n: WU.U64, +r: U32, up: Bool, +m: U32) -> U32: match fuel up: case 0n _: r case 1n+f False{}: r case 1n+f True{}: up64g(f, n, U32.add(r, 1), up64_okg(n, U32.add(r, 1), m), m) Uses (6): 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-math@1.0.0.0/proofs/math/typed/w64isq.bend&name=up64_okg https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/math/u64.bend&name=U64