def slt

bend-collections-laws-math@1.0.0.0 · proofs/math/typed/f64exp.bend:200

import bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64exp.bend as F64exp
import Base

200# a - k < 63 when a < k + 63
201def slt(+a: Nat, +k: Nat, +h: {Nat.is_lt(a, Nat.add(k, 63n)) == True{} : Bool}) -> {Nat.is_lt(Nat.sub(a, k), 63n) == True{} : Bool}:
202  match a k:
203    case 0n 0n:
204      {==}
205    case 0n 1n+ +kp:
206      {==}
207    case 1n+ +ap 0n:
208      h
209    case 1n+ +ap 1n+ +kp:
210      slt(ap, kp, h)

Uses (5)

Used by (1)