Source/Packages

Model.Word32

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

400 lines41 declarations16.0 KiBSHA-256 cb521ab16bb6

def · lines 335–345

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).
335def modelWord32OrderByte =
336  (lambda unrestricted left : Byte . unrestricted right : Byte . unrestricted equalResult : Nat .
337    nat-eliminate
338      (lambda unrestricted less : Nat . Nat)
339      (nat-eliminate
340        (lambda unrestricted greater : Nat . Nat)
341        equalResult
342        (lambda unrestricted predecessor : Nat . unrestricted induction : Nat . 0)
343        (byte-less-than right left))
344      (lambda unrestricted predecessor : Nat . unrestricted induction : Nat . 1)
345      (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.