U32.u32_inc_exact: law of bend-mathlib@0.8.1.0 Import: import bend-mathlib@0.8.1.0/u32.bend as U32 Lines 668-672 of bend-mathlib@0.8.1.0/u32.bend: https://jend.leeeet.dev/read.txt?path=bend-mathlib@0.8.1.0/u32.bend&start_line=668&end_line=672 import Base import bend-mathlib@0.8.1.0/nat.bend as MNat # U32 increment is exact without overflow: 1 + a < 2^32 implies to_nat (inc a) = 1 + a. law u32_inc_exact: for a: U32 for h: MNat.lt(1n+U32.to_nat(a), Nat.pow(2n, 32n)) {U32.to_nat(U32.inc(a)) == 1n+U32.to_nat(a) : Nat} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.pow https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.inc https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.to_nat https://jend.leeeet.dev/definition.txt?path=bend-mathlib@0.8.1.0/nat.bend&name=lt https://jend.leeeet.dev/definition.txt?path=bend-mathlib@0.8.1.0/u32.bend&name=internal_u32_inc_exact