law u32_wit

bend-osdev-u32@0.1.0.0 · LAWS.bend:217

import bend-osdev-u32@0.1.0.0/LAWS.bend as LAWS
import Base

217# the bounds can hold, and the wrapping cases happen: 2^32 - 1 + 1 wraps to
218# 0, below the first operand; 0 - 1 borrows
219law u32_wit:
220  {(Nat.is_le(Nat.add(U32.to_nat(3), U32.to_nat(4)), U32.to_nat(7)), U32.is_lt(U32.add(4294967295, 1), 4294967295), U32.is_lt(0, 1), U32.add(4294967295, 1), U32.sub(0, 1)) == (True{}, True{}, True{}, 0, 4294967295) : Bool & Bool & Bool & U32 & U32}

Uses (10)

Used by (0)

No other definition uses this definition.