Source/Packages

Model.Word32

packages/foundation/standard/src/Model/Word32.alpha

481 lines41 declarations16.9 KiBSHA-256 56a6cf48ff83

def · lines 404–414

modelWord32OrderByte

Full file
Order one byte position: 1 when left is below right, 0 when above, and the lower positions' verdict when equal (most significant position outermost).
404def modelWord32OrderByte =
405  (lambda unrestricted left : Byte . unrestricted right : Byte . unrestricted equalResult : Nat .
406    nat-eliminate
407      (lambda unrestricted less : Nat . Nat)
408      (nat-eliminate
409        (lambda unrestricted greater : Nat . Nat)
410        equalResult
411        (lambda unrestricted predecessor : Nat . unrestricted induction : Nat . 0)
412        (byte-less-than right left))
413      (lambda unrestricted predecessor : Nat . unrestricted induction : Nat . 1)
414      (byte-less-than left right))

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.