PointwiseProof.lt_succ_le: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/contracts/pointwise_proof.bend as PointwiseProof Lines 98-108 of bendtorch-core@0.1.0.0/src/tensor/contracts/pointwise_proof.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/contracts/pointwise_proof.bend&start_line=98&end_line=108 import Base import bendtorch-core@0.1.0.0/src/storage/arith.bend as Arith def lt_succ_le(+index: Nat, +bound: Nat, below: {Nat.is_lt(index, bound) == True{} : Bool}) -> {Nat.is_le(1n+index, bound) == True{} : Bool}: match index bound: case 0n 0n: Empty.absurd({Nat.is_le(1n, 0n) == True{} : Bool}, Arith.clash(below)) case 0n 1n+q: Arith.le_zero(q) case 1n+p 0n: Empty.absurd({Nat.is_le(2n+p, 0n) == True{} : Bool}, Arith.clash(below)) case 1n+p 1n+q: lt_succ_le(p, q, below) 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_le https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_lt 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