NLA-lib Explorer

NLAlib.Computation.fixedPointPack_exists_of_abs_div_le

Library · theorem

A checked integer store succeeds when its decoded value is in the fixed-point interval.

NLAlib.Computation.fixedPointPack_exists_of_abs_div_le {scale limit : ℕ} {m : ℤ}
  (hscale : 0 < scale) (h : |↑m / ↑scale| ≤ ↑limit / ↑scale) :
  ∃ w, Computation.fixedPointPack limit m = some w

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.FixedPoint.