def mod_nat
import bend-collections-laws-crypto@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))