NLA-lib Explorer

NLAlib.Computation.floatDecode_add_eq_of_decode_zero

Library · theorem

Adding a finite word that decodes to zero preserves the other decoded value, including subnormal values and both signs of zero. The equality concerns decoded values.

NLAlib.Computation.floatDecode_add_eq_of_decode_zero (x y : Computation.FiniteFloat)
  (hx : Computation.floatDecode ↑x = 0) :
  Computation.floatDecode (↑x + ↑y) = Computation.floatDecode ↑y

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.NativeFloat.