TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Reduction.Tree

Finite, repeatedly rounded binary sums #

Each internal node uses Model.add, with one nearest-even rounding at that node. A finite execution certificate excludes exceptional inputs and overflow at every intermediate result. The error budget then follows from FloatLib's half-ULP theorem, including subnormal values. This API does not change Model.sum, which accumulates exactly and rounds only once.

Each finite addition also has relative error at most unitRoundoffAt fmt, with no underflow term, because a sum of two grid points below the normal range is exact. This discharges the local premise of the mixed and geometric reduction bounds for Model.add trees.

All leaves and intermediate additions have real denotations.

Instances For

    Finiteness of the root is part of a finite execution certificate.

    The rounded real interpretation agrees with encoded execution at each finite node.

    The sum of half-ULPs at the actual intermediate additions.

    Instances For

      No normal-range hypothesis is needed: each finite addition has an absolute half-ULP bound.

      Two finite schedules over the same inputs can differ by at most their combined budgets.

      Every finite addition in the tree has relative error at most unitRoundoffAt fmt, measured against the magnitudes of its two operands, with no underflow allowance.

      A finite IEEE reduction tree satisfies the mixed-budget bound with relative allowance unitRoundoffAt fmt and zero absolute allowance, including subnormal intermediate results.

      A finite IEEE reduction tree with n additions has error at most ((1 + u)^n - 1) * Σ|xᵢ| for u = unitRoundoffAt fmt, with no normal-range hypothesis.