Common.half: def of bend-collections-laws-math@1.0.0.0 Import: import bend-collections-laws-math@1.0.0.0/spec/lib/common.bend as Common Lines 26-34 of bend-collections-laws-math@1.0.0.0/spec/lib/common.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/spec/lib/common.bend&start_line=26&end_line=34 import Base # n div 2 and n mod 2, structurally def half(n: Nat) -> Nat: match n: case 0n: 0n case 1n: 0n case 2n+q: 1n+half(q) Uses (1): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat