Core.int_le: def of bend-schema-lib@0.4.1.0 Import: import bend-schema-lib@0.4.1.0/core.bend as Core Lines 328-339 of bend-schema-lib@0.4.1.0/core.bend: https://jend.leeeet.dev/read.txt?path=bend-schema-lib@0.4.1.0/core.bend&start_line=328&end_line=339 import Base # a <= b on integers. A negative is below every non-negative, and between two # negatives the larger offset is the smaller number. def int_le(a: Int, b: Int) -> Bool: match a b: case IPos{m} IPos{n}: Nat.is_le(m, n) case IPos{m} INeg{n}: False{} case INeg{m} IPos{n}: True{} case INeg{m} INeg{n}: Nat.is_le(n, m) 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.is_le https://jend.leeeet.dev/definition.txt?path=bend-schema-lib@0.4.1.0/core.bend&name=Int