TorchLean API

FloatLib.Floats.Formats.Posit.Quire.Capacity

Standard posit quire capacity #

The Posit Standard (2022) 16n-bit quire satisfies two finite-term capacity guarantees:

The proof first bounds one posit relative to minPos, then transports that bound to the quire's fixed scale. A list-level absolute-value argument proves that every signed sum within the stated exclusive term limit remains an OrdinaryCoefficient, excluding both two's-complement overflow and the reserved quire-NaR word.

Accumulation applies these coefficient bounds to the executable accumulation loops.

References #

Exclusive upper bound on the number of ordinary posit addends guaranteed to fit in a standard quire.

Instances For

    Exclusive upper bound on the number of exact posit products guaranteed to fit in a standard quire.

    Instances For

      Uniform quire-coefficient magnitude bound for one ordinary posit.

      Instances For

        Uniform quire-coefficient magnitude bound for one exact product of two ordinary posits.

        Instances For

          One ordinary posit contributes at most 2^(12(n-2)) quire coefficient units.

          theorem FloatLib.Floats.Formats.Posit.Quire.Model.natAbs_coefficientOfDyadic_mul_le_productCoefficientBound {format : Format} (left right : Posit.Model format) (leftDyadic rightDyadic : Numerics.Dyadic) (hleft : left.toDyadic? = some leftDyadic) (hright : right.toDyadic? = some rightDyadic) :
          (coefficientOfDyadic format (leftDyadic.mul rightDyadic)).natAbs productCoefficientBound format

          One exact product of two ordinary posits contributes at most 2^(16(n-2)) quire coefficient units.

          theorem FloatLib.Floats.Formats.Posit.Quire.Model.ordinaryCoefficient_sum_of_length_lt_positSumTermLimit {format : Format} (coefficients : List ) (hcoefficient : coefficientcoefficients, coefficient.natAbs positCoefficientBound format) (hlength : coefficients.length < positSumTermLimit format) :
          OrdinaryCoefficient format coefficients.sum

          Any coefficient list shorter than the ordinary-addend limit has an ordinary sum, provided each term satisfies the uniform posit coefficient bound.

          theorem FloatLib.Floats.Formats.Posit.Quire.Model.ordinaryCoefficient_sum_of_length_lt_productSumTermLimit {format : Format} (coefficients : List ) (hcoefficient : coefficientcoefficients, coefficient.natAbs productCoefficientBound format) (hlength : coefficients.length < productSumTermLimit) :
          OrdinaryCoefficient format coefficients.sum

          Any coefficient list shorter than the exact-product limit has an ordinary sum, provided each term satisfies the uniform product coefficient bound.