law cmp_value

bend-osdev-word64@0.1.1.0 · LAWS.bend:84

import bend-osdev-word64@0.1.1.0/LAWS.bend as LAWS
import Base
import bend-osdev-word64@0.1.1.0/word64.bend as W

84# Comparison is the order of the values (for every pair of words).
85law cmp_value:
86  for +a: W.W64
87  for +b: W.W64
88  {W.W64.cmp(a, b) == Nat.cmp(W.W64.to_nat(a), W.W64.to_nat(b)) : Cmp}

Uses (13)

Used by (3)