~/bend-docscommunity

proofs/lib/lemmas/spec/unsigned_division.bend source

proofs/lib/lemmas/spec/unsigned_division.bend on the hub · documented module

import Baseimport ./numeric.bend as N# Mathematical division of the interpreted input. Matching the word before# interpreting it avoids eager unary expansion of fixed denominator constants;# this is not a binary-division algorithm or an implementation import.def quotient(n: Nat, word: Word(n), d: U32) -> Word(n):  N.unsigned_quotient(n, word, d)