def lt_succ_le
import bend-collections-laws-math@1.0.0.0/proofs/lib/nat.bend as Natimport Base
116def lt_succ_le(+a: Nat, +b: Nat, e: {Nat.is_lt(a, 1n+b) == True{} : Bool}) -> {Nat.is_le(a, b) == True{} : Bool}:
117 match a b:
118 case 0n _:
119 zero_le(b)
120 case 1n+p 0n:
121 Empty.absurd({Nat.is_le(1n+p, 0n) == True{} : Bool}, lt_zero_absurd(p, e))
122 case 1n+p 1n+q:
123 lt_succ_le(p, q, e)
Uses (7)
Used by (47)
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/arith:mod_of
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/arith:div_of
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64rtools:round_jam
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64round:bl_c
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/w64mul:mul_lt_sq
- …