BendMlLlama.leb_trans: def of bend-ml-llama@0.2.1.0 Import: import bend-ml-llama@0.2.1.0/main.bend as BendMlLlama Lines 536-548 of bend-ml-llama@0.2.1.0/main.bend: https://jend.leeeet.dev/read.txt?path=bend-ml-llama@0.2.1.0/main.bend&start_line=536&end_line=548 import Base import bend-ml-tensor-array@0.1.19.0/main.bend as TA # a <= b and b <= c -> a <= c def leb_trans(a: Nat, b: Nat, c: Nat, e1: {True{} == TA.leb(a, b) : Bool}, e2: {True{} == TA.leb(b, c) : Bool}) -> {True{} == TA.leb(a, c) : Bool}: match a b c: case 0n _ _: {==} case 1n+p 0n _: %e1 : TA.BD(_, Unit, {True{} == TA.leb(1n+p, c) : Bool}) Unit{} case 1n+p 1n+q 0n: %e2 : TA.BD(_, Unit, {True{} == TA.leb(1n+p, 0n) : Bool}) Unit{} case 1n+p 1n+q 1n+r: leb_trans(p, q, r, e1, e2) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bend-ml-tensor-array@0.1.19.0/main.bend&name=BD https://jend.leeeet.dev/definition.txt?path=bend-ml-tensor-array@0.1.19.0/main.bend&name=leb