def lt_d1

bendtorch-core@0.1.0.0 · src/storage/arith.bend:340

import bendtorch-core@0.1.0.0/src/storage/arith.bend as Arith
import Base

340def lt_d1(+x: Nat, h: {Nat.is_lt(Nat.double(x), 1n) == True{} : Bool}) -> {Nat.is_lt(x, 1n) == True{} : Bool}:
341  match x:
342    case 0n:
343      {==}
344    case 1n+p:
345      Empty.absurd({Nat.is_lt(1n+p, 1n) == True{} : Bool}, clash(h))

Uses (6)

Used by (1)