def mod_nat

bend-collections-laws-math@1.0.0.0 · proofs/lib/u32div.bend:226

import bend-collections-laws-math@1.0.0.0/proofs/lib/u32div.bend as U32div
import 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)