def div_le
import bend-collections-laws-math@1.0.0.0/proofs/lib/arith.bend as Arithimport Base
import bend-collections-laws-math@1.0.0.0/proofs/lib/nat.bend as N
121# a quotient never exceeds its dividend
122def div_le(+a: Nat, +d: Nat) -> {Nat.is_le(Nat.div(a, d), a) == True{} : Bool}:
123 match d:
124 case 0n:
125 N.zero_le(a)
126 case 1n+bp:
127 go_le(a, bp, 0n, 0n)
Uses (6)
Used by (8)
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/natfuel:il_140
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:imid_v
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64int:imid_v
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:ilog_fin
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:srch
- …