NLA-lib Explorer

Float.Model.BinaryRounding.IsNearestFloat.eq_of_isBinaryFloat

Library · theorem

A float rounds to itself.

Float.Model.BinaryRounding.IsNearestFloat.eq_of_isBinaryFloat {p : ℕ} {emin : ℤ} {x r : ℝ}
  (h : Float.Model.BinaryRounding.IsNearestFloat p emin x r)
  (hx : Float.Model.BinaryRounding.IsBinaryFloat p emin x) : r = x

Full source on GitHub

Import NLAlib.ForMathlib.Data.Float.BinaryFormat.