Source/Packages

Model.Word32

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

400 lines41 declarations16.0 KiBSHA-256 cb521ab16bb6

def · lines 229–241

modelWord32ShiftLeft

Full file
229def modelWord32ShiftLeft =
230  (lambda unrestricted value : (family ModelWord32) . unrestricted amount : Nat .
231    app
232      (nat-eliminate
233        (lambda unrestricted current : Nat . pi unrestricted unit : Nat . family ModelWord32)
234        (lambda unrestricted unit : Nat . modelWord32Zero)
235        (lambda unrestricted predecessor : Nat .
236          unrestricted induction : (pi unrestricted unit : Nat . family ModelWord32) .
237          unrestricted unit : Nat .
238          modelWord32FromNaturalTruncated
239            (naturalMultiply (modelWord32ToNatural value) (naturalPowerOfTwo amount)))
240        (naturalLess amount modelWord32NaturalThirtyTwo))
241      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.