law u32_to_nat_from_nat_sym

bend-mathlib@0.8.1.0 · u32.bend:1218

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

1218# Converting a natural below 2^32 to U32 and back is the identity: k < 2^32 implies to_nat (from_nat k) = k, reversed to rewrite toward the simple side.
1219law u32_to_nat_from_nat_sym:
1220  for k: Nat
1221  for h: MNat.lt(k, Nat.pow(2n, 32n))
1222  {k == U32.to_nat(U32.from_nat(k)) : Nat}

Uses (7)

Used by (0)

No other definition uses this definition.