NLA-lib Explorer

Float.Model.UnpackedFloat.ExtendedMantissa.Approximates.shiftRight

Library · theorem

Shifting an extended mantissa right by n places preserves its description divided by 2^n.

Float.Model.UnpackedFloat.ExtendedMantissa.Approximates.shiftRight
  {em : Float.Model.UnpackedFloat.ExtendedMantissa} {w : ℝ} (h : em.Approximates w) (n : ℕ) :
  (em >>> n).Approximates (w / 2 ^ n)

Full source on GitHub

Import NLAlib.ForMathlib.Data.Float.Mantissa.