Natfuel.ends: def of bend-collections-laws-math@1.0.0.0 Import: import bend-collections-laws-math@1.0.0.0/proofs/math/typed/natfuel.bend as Natfuel Lines 30-40 of bend-collections-laws-math@1.0.0.0/proofs/math/typed/natfuel.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/proofs/math/typed/natfuel.bend&start_line=30&end_line=40 import Base # the Nat loop reaches b == 0 within f steps def ends(f: Nat, +a: Nat, +b: Nat) -> Bool: match f b: case 0n 0n: True{} case 0n 1n+bp: False{} case 1n+g 0n: True{} case 1n+g 1n+ +bp: ends(g, 1n+bp, Nat.mod(a, 1n+bp)) Uses (3): 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=Nat.mod