def lt_different
bendtorch-core@0.1.0.0 · src/tensor/from_values_contract.bend:72
import bendtorch-core@0.1.0.0/src/tensor/from_values_contract.bend as FromValuesContract
import Base
import bendtorch-core@0.1.0.0/src/storage/arith.bend as Arith
72def lt_different(+small: Nat, +big: Nat, earlier: {Nat.is_lt(small, big) == True{} : Bool}) ->
73 {Nat.is_eq(big, small) == False{} : Bool}:
74 match small big:
75 case 0n 0n:
76 Empty.absurd({True{} == False{} : Bool}, Arith.clash(earlier))
77 case 0n 1n+q:
78 {==}
79 case 1n+p 0n:
80 {==}
81 case 1n+p 1n+q:
82 lt_different(p, q, earlier)