NLA-lib Explorer

Float.Model.UnpackedFloat.div_pow_targetExponent_le

Library · theorem

Half a unit in the last place is bounded by relative rounding plus half-subnormal spacing.

Float.Model.UnpackedFloat.div_pow_targetExponent_le (spec : Float.Model.Format) (m : ℕ) (e : ℤ)
  (w : ℝ) (hm : 0 < m) (hw : ↑m ≤ w) :
  2 ^ spec.targetExponent (Float.Model.totalExponent m e) / 2 ≤
    spec.unitRoundoff * (w * 2 ^ e) + spec.underflowBound

Full source on GitHub

Import NLAlib.ForMathlib.Data.Float.Rounding.