def lt_not_le
import bend-collections-laws-math@1.0.0.0/proofs/lib/nat.bend as Natimport Base
182def lt_not_le(+a: Nat, +b: Nat, e: {Nat.is_lt(a, b) == True{} : Bool}) -> {Nat.is_le(b, a) == False{} : Bool}:
183 match a b:
184 case _ 0n:
185 Empty.absurd({Nat.is_le(0n, a) == False{} : Bool}, lt_zero_absurd(a, e))
186 case 0n 1n+q:
187 {==}
188 case 1n+p 1n+q:
189 lt_not_le(p, q, e)
Uses (6)
Used by (25)
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/roots:hi_bound
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/roots:iroot_k_ok
- bend-collections-laws-math@1.0.0.0/proofs/lib/arith:quot_lt_g
- bend-collections-laws-math@1.0.0.0/proofs/lib/arith:sc_lt_cancel_g
- bend-collections-laws-math@1.0.0.0/proofs/lib/u32alg:uniq_gap
- …