NatOrder.ngt_le: def of bend-kit-collections@0.1.4.1 Import: import bend-kit-collections@0.1.4.1/nat_order.bend as NatOrder Lines 224-231 of bend-kit-collections@0.1.4.1/nat_order.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-collections@0.1.4.1/nat_order.bend&start_line=224&end_line=231 import Base import bend-mathlib@0.7.4.0/nat.bend as MNat import bend-mathlib@0.7.4.0/bool.bend as MBool def ngt_le(a: Nat, b: Nat, e: {Nat.is_gt(a, b) == False{} : Bool}) -> LE(a, b): match a b: case 0n b: MNat.zero_le(b) case 1n+ap 0n: Empty.absurd(LE(1n+ap, 0n), MBool.true_ne_false()(e)) case 1n+ap 1n+bp: ngt_le(ap, bp, e) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Empty.absurd https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_gt https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/nat_order.bend&name=LE https://jend.leeeet.dev/definition.txt?path=bend-mathlib@0.8.1.0/bool.bend&name=true_ne_false https://jend.leeeet.dev/definition.txt?path=bend-mathlib@0.8.1.0/nat.bend&name=zero_le