law to_nat_mul_fits

lawful-words@0.1.0.0 · LAWS.bend:156

import lawful-words@0.1.0.0/LAWS.bend as LAWS
import Base

156law to_nat_mul_fits:
157  for a: U32
158  for b: U32
159  for h: {Nat.is_lt(Nat.mul(U32.to_nat(a), U32.to_nat(b)), Nat.pow(2n, 32n)) == True{} : Bool}
160  {U32.to_nat(U32.mul(a, b)) == Nat.mul(U32.to_nat(a), U32.to_nat(b)) : Nat}

Uses (9)

Used by (0)

No other definition uses this definition.