def lt_asym

bendtorch-core@0.1.0.0 · src/tensor/contracts/matmul_parallel_proof.bend:155

import bendtorch-core@0.1.0.0/src/tensor/contracts/matmul_parallel_proof.bend as MatmulParallelProof
import Base
import bendtorch-core@0.1.0.0/src/storage/arith.bend as Arith

155def lt_asym(+k: Nat, +b: Nat, h: {Nat.is_lt(k, b) == True{} : Bool}) -> {Nat.is_lt(b, k) == False{} : Bool}:
156  match k b:
157    case 0n 0n:
158      {==}
159    case 0n 1n+q:
160      {==}
161    case 1n+p 0n:
162      Empty.absurd({Nat.is_lt(0n, 1n+p) == False{} : Bool}, Arith.clash(h))
163    case 1n+p 1n+q:
164      lt_asym(p, q, h)

Uses (5)

Used by (1)