def mod_nat
import bend-collections-laws-math@1.0.0.0/proofs/lib/u32div.bend as U32divimport Base
226# THEOREM: mod is Nat remainder.
227def mod_nat(+a: U32, +b: U32, +hb: {U32.is_zero(b) == False{} : Bool}) -> {v(U32.mod(a, b)) == Nat.mod(v(a), v(b)) : Nat}:
228 mod_of(a, b, div_mod(a, b, hb))
Uses (9)
Used by (10)
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32laws:ops_rem
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/fixbytes:byte_v
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/fix32:crem
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/fixbits:nib_low
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/fixbits:nib_ones
- …