def lt_succ
import bendtorch-core@0.1.0.0/src/storage/arith.bend as Arithimport Base
281def lt_succ(+a: Nat, +b: Nat, h: {Nat.is_le(a, b) == True{} : Bool}) -> {Nat.is_lt(a, 1n+b) == True{} : Bool}:
282 match a:
283 case 0n:
284 {==}
285 case 1n+p:
286 match b:
287 case 0n:
288 Empty.absurd({Nat.is_lt(1n+p, 1n) == True{} : Bool}, clash(h))
289 case 1n+q:
290 lt_succ(p, q, h)
Uses (6)
Used by (13)
- bendtorch-core@0.1.0.0/src/tensor/word_conversion:le_successor_lt
- bendtorch-core@0.1.0.0/src/autograd/reduce_fiber_proof:lt_of_room
- bendtorch-core@0.1.0.0/src/tensor/from_values_contract:cursor_lt
- bendtorch-core@0.1.0.0/src/tensor/contracts/build_facts:lt_add_right
- bendtorch-core@0.1.0.0/src/tensor/from_values_contract:written_at
- …