law u32_inc_wrap_sym

bend-mathlib@0.8.1.0 · u32.bend:1210

import bend-mathlib@0.8.1.0/u32.bend as U32
import Base

1210# U32 increment wraps modulo 2^32: to_nat (inc a) = (1 + a) % 2^32, reversed to rewrite toward the simple side.
1211law u32_inc_wrap_sym:
1212  for a: U32
1213  {Nat.mod(1n+U32.to_nat(a), Nat.pow(2n, 32n)) == U32.to_nat(U32.inc(a)) : Nat}

Uses (8)

Used by (0)

No other definition uses this definition.