def sub_nat
import bend-collections-laws-math@1.0.0.0/proofs/lib/u32.bend as U32import Base
import bend-collections-laws-math@1.0.0.0/proofs/lib/lemmas/proofs/subtraction_bounds.bend as SB
100def sub_nat(+a: U32, +b: U32, +e: {Nat.is_le(U32.to_nat(b), U32.to_nat(a)) == True{} : Bool}) -> {U32.to_nat(U32.sub(a, b)) == Nat.sub(U32.to_nat(a), U32.to_nat(b)) : Nat}:
101 SB.u32_exact(a, b, e)
Uses (8)
Used by (11)
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32laws:ops_sub
- bend-collections-laws-math@1.0.0.0/proofs/lib/u32div:fin_ge
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64round:cvb
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/w64dm:qdn
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/w64dm:qup2
- …