NLA-lib Explorer

NLAlib.Computation.roundingFactor_le

Library · theorem

The rounding factor is at most Higham's [CarsonMaShao2026, §2]: for 0 \le u and nu < 1, \gamma_n \le nu/(1 - nu), the constant of [Higham2002, §3.1], by Bernoulli's inequality 1 - nu \le (1 - u)^n.

NLAlib.Computation.roundingFactor_le {u : ℝ} {n : ℕ} (hu : 0 ≤ u) (hn : ↑n * u < 1) :
  Computation.roundingFactor n u ≤ ↑n * u / (1 - ↑n * u)

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.Rounding.