NLA-lib Explorer

Float.Model.UnpackedFloat.ExtendedMantissa.Approximates.abs_roundedMantissa_sub_le

Library · theorem

Round to nearest is within half a unit.

Float.Model.UnpackedFloat.ExtendedMantissa.Approximates.abs_roundedMantissa_sub_le
  {em : Float.Model.UnpackedFloat.ExtendedMantissa} {w : ℝ} (h : em.Approximates w) :
  |↑em.roundedMantissa - w| ≤ 1 / 2

Full source on GitHub

Import NLAlib.ForMathlib.Data.Float.Mantissa.