Source/Packages

Model.Word32

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

481 lines41 declarations16.9 KiBSHA-256 56a6cf48ff83

def · lines 287–299

modelWord32ShiftLeft

Full file
287def modelWord32ShiftLeft =
288  (lambda unrestricted value : (family ModelWord32) . unrestricted amount : Nat .
289    app
290      (nat-eliminate
291        (lambda unrestricted current : Nat . pi unrestricted unit : Nat . family ModelWord32)
292        (lambda unrestricted unit : Nat . modelWord32Zero)
293        (lambda unrestricted predecessor : Nat .
294          unrestricted induction : (pi unrestricted unit : Nat . family ModelWord32) .
295          unrestricted unit : Nat .
296          modelWord32FromNaturalTruncated
297            (naturalMultiply (modelWord32ToNatural value) (naturalPowerOfTwo amount)))
298        (naturalLess amount modelWord32NaturalThirtyTwo))
299      0)

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.