WordConversion.le_trans: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/word_conversion.bend as WordConversion Lines 121-137 of bendtorch-core@0.1.0.0/src/tensor/word_conversion.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/word_conversion.bend&start_line=121&end_line=137 import Base import bendtorch-core@0.1.0.0/src/storage/arith.bend as Arith def le_trans(+left: Nat, +middle: Nat, +right: Nat, first: {Nat.is_le(left, middle) == True{} : Bool}, second: {Nat.is_le(middle, right) == True{} : Bool}) -> {Nat.is_le(left, right) == True{} : Bool}: match left: case 0n: Arith.le_zero(right) case 1n+l: match middle: case 0n: Empty.absurd({Nat.is_le(1n+l, right) == True{} : Bool}, Arith.clash(first)) case 1n+m: match right: case 0n: Empty.absurd({Nat.is_le(1n+l, 0n) == True{} : Bool}, Arith.clash(second)) case 1n+r: le_trans(l, m, r, first, second) Uses (6): 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_le https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/arith.bend&name=clash https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/arith.bend&name=le_zero