law nat_div_mod
import lawful-words@0.1.0.0/LAWS.bend as LAWSimport Base
491# a = (a / b) * b + a % b (also for b = 0: a / 0 = 0 and a % 0 = a).
492law nat_div_mod:
493 for a: Nat
494 for b: Nat
495 {Nat.add(Nat.mul(Nat.div(a, b), b), Nat.mod(a, b)) == a : Nat}
Uses (6)
Used by (0)
No other definition uses this definition.