Nat.le_case: def of bend-lawful-stdlib@0.1.0.0 Import: import bend-lawful-stdlib@0.1.0.0/src/nat.bend as Nat Lines 99-107 of bend-lawful-stdlib@0.1.0.0/src/nat.bend: https://jend.leeeet.dev/read.txt?path=bend-lawful-stdlib@0.1.0.0/src/nat.bend&start_line=99&end_line=107 import Base # Compares a and b and returns the proof of the side that holds. def le_case(a: Nat, b: Nat) -> Or(LE(a, b), LE(b, a)): match a b: case 0n y: Inl{Unit{}} case 1n+x 0n: Inr{Unit{}} case 1n+x 1n+y: le_case(x, y) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Either https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bend-lawful-stdlib@0.1.0.0/src/nat.bend&name=LE