law u32_cmp_to_nat_sym

bend-mathlib@0.8.1.0 · u32.bend:1100

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

1100# Comparing U32s compares their values: cmp a b = cmp (to_nat a) (to_nat b), reversed to rewrite toward the simple side.
1101law u32_cmp_to_nat_sym:
1102  for a: U32
1103  for b: U32
1104  {Nat.cmp(U32.to_nat(a), U32.to_nat(b)) == U32.cmp(a, b) : Cmp}

Uses (7)

Used by (0)

No other definition uses this definition.