NLA-lib Explorer

Float.Model.UnpackedFloat.toReal_sqrt_nonneg

Library · theorem

The unpacked square root of a finite nonnegative input has nonnegative real value.

Float.Model.UnpackedFloat.toReal_sqrt_nonneg {spec : Float.Model.Format}
  (x : Float.Model.UnpackedFloat) (hx : x.IsFinite) (ha : 0 ≤ x.toReal) :
  0 ≤ (Float.Model.UnpackedFloat.sqrt spec x).toReal

Full source on GitHub

Import NLAlib.ForMathlib.Data.Float.Sqrt.