WordConversion.double_le: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/word_conversion.bend as WordConversion Lines 109-119 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=109&end_line=119 import Base import bendtorch-core@0.1.0.0/src/storage/arith.bend as Arith def double_le(+left: Nat, +right: Nat, bound: {Nat.is_le(left, right) == True{} : Bool}) -> {Nat.is_le(Nat.double(left), Nat.double(right)) == True{} : Bool}: match left right: case 0n 0n: {==} case 0n 1n+r: {==} case 1n+l 0n: Empty.absurd({Nat.is_le(2n+Nat.double(l), 0n) == True{} : Bool}, Arith.clash(bound)) case 1n+l 1n+r: double_le(l, r, bound) 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.double 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