NLA-lib Explorer

NLAlib.FloatMachine.IsArithAccurate.abs_sum_sub_traceRe_le

Library · theorem

This statement changed in the recorded rename: 2026-11-eigh-followups.

Error of the rounded trace: under NLAlib.FloatMachine.IsArithAccurate with u, \tau \ge 0 and ku \le 1/2, for a stored k \times k \mathbf{X} with real parts of the diagonal \mathbf{x}_i and 2(\sum_i \lvert \mathbf{x}_i \rvert + k\tau) \le \Omega, \Bigl\lvert \sum_i \mathbf{x}_i - \overline{\mathrm{traceRe}(\mathbf{X})} \Bigr\rvert \le 2ku\Bigl(\sum_i \lvert \mathbf{x}_i \rvert + k\tau\Bigr) \,. [Higham2002, (4.4)], there with \gamma_{k-1} and \tau = 0.

NLAlib.FloatMachine.IsArithAccurate.abs_sum_sub_traceRe_le.{u_1} {F : Type u_1}
  {M : FloatMachine F ℝ ℂ} {dec : F → ℝ} {u τ Ω : ℝ} {μM : ℕ → ℝ}
  (hM : M.IsArithAccurate dec u τ Ω μM) (hu : 0 ≤ u) (hτ : 0 ≤ τ) {k : ℕ} (hku : ↑k * u ≤ 1 / 2)
  (X : Matrix (Fin k) (Fin k) (F × F)) (hΩ : 2 * (∑ i, |dec (X i i).1| + ↑k * τ) ≤ Ω) :
  |∑ i, dec (X i i).1 - dec (M.traceRe X)| ≤ 2 * ↑k * u * (∑ i, |dec (X i i).1| + ↑k * τ)

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.EntrywiseRounding.