NLA-lib Explorer

Float.Model.BinaryRounding.IsNearestFloat.neg

Library · theorem

Negating the input and output preserves nearest rounding, independently of the tie policy.

Float.Model.BinaryRounding.IsNearestFloat.neg {p : ℕ} {emin : ℤ} {x r : ℝ}
  (h : Float.Model.BinaryRounding.IsNearestFloat p emin x r) :
  Float.Model.BinaryRounding.IsNearestFloat p emin (-x) (-r)

Full source on GitHub

Import NLAlib.ForMathlib.Data.Float.BinaryFormat.