NLA-lib Explorer

NLAlib.Computation.binaryFloatRound_two_zpow_sub_two

Library · theorem

A positive value one quarter of the smallest subnormal spacing rounds to zero for every nearest tie policy. This is strict underflow, not a tie, and shows why a relative-only error model cannot describe the complete finite exponent range.

NLAlib.Computation.binaryFloatRound_two_zpow_sub_two (fmt : Float.Model.Format) {r : ℝ → ℤ}
  (hr : ∀ (x : ℝ), Computation.AbsRelErr 0 (1 / 2) x ↑(r x)) :
  Computation.binaryFloatRound fmt r (2 ^ (fmt.minExponent - 2)) = 0

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.BinaryFloat.