TorchLean API

FloatLib.Floats.Formats.Posit.Configured.Storage.Code.Runtime

Runtime packing for configured posits #

Code.toModel and Code.ofModel form the canonical executable conversion pair for every static posit carrier. Closed plans reduce to primitive or fixed-limb operations; the wide branch is the identity on the exact-width proof model.

theorem FloatLib.Floats.Formats.Posit.Configured.bits_lt_storage_capacity (format : Format) (bits wordWidth : ) (hbits : bits < format.modulus) (width_le : format.bits wordWidth) :
bits < 2 ^ wordWidth

A valid Posit encoding fits every storage width at least as wide as its format.

@[inline]

Decode a packed runtime code into the exact-width proof model.

Instances For
    @[inline]

    Pack an exact proof-model value into the selected runtime carrier.

    Instances For