NLA-lib Explorer

NLAlib.Computation.norm_inv_mulVec_sub_le_of_isCholTrace

Library · theorem

The solve with computed Cholesky factors has a small relative error. Let \mathbf{A} be positive definite of order n, with a Cholesky trace as in NLAlib.Computation.IsCholTrace.pos_and_specNorm_sub_le and 24(n + 1)^2(u + \mathbf{v})\kappa(\mathbf{A}) \le 1. Let \hat{\mathbf{r}} be \mathbf{r} with relative error \mathbf{v} in each entry, \mathbf{y} a forward substitution trace with \mathbf{L} from \hat{\mathbf{r}} and \mathbf{d} a back substitution trace with \mathbf{L}^{\mathsf{T}} from \mathbf{y}, at unit roundoff u. Then \|\mathbf{A}^{-1}\mathbf{r} - \mathbf{d}\| \le 24(n + 1)^2(u + \mathbf{v})\kappa(\mathbf{A}) \|\mathbf{A}^{-1}\mathbf{r}\| . [CarsonHigham2018, (2.3)]; the assumption there on the solver, proved here for Cholesky.

NLAlib.Computation.norm_inv_mulVec_sub_le_of_isCholTrace {n : ℕ} {A : Matrix (Fin n) (Fin n) ℝ}
  {a L : ℕ → ℕ → ℝ} {u v : ℝ} (h : Computation.IsCholTrace u a L n) (hA : A.PosDef) (hu : 0 ≤ u)
  (hv : 0 ≤ v) (ha : ∀ (i j : Fin n), j ≤ i → |a ↑i ↑j - A i j| ≤ v * |A i j|)
  (hsmall : 24 * (↑n + 1) ^ 2 * (u + v) * pseudoConditionNumber A ≤ 1) {r : Fin n → ℝ}
  {rh y d : ℕ → ℝ} (hr : ∀ (i : Fin n), |rh ↑i - r i| ≤ v * |r i|)
  (hy : Computation.IsSubstTrace (fun x ↦ Computation.RelErr u) L rh n y)
  (hd : Computation.IsBackSubstTrace u L y n d) :
  ‖WithLp.toLp 2 (A⁻¹ *ᵥ r - fun i ↦ d ↑i)‖ ≤
    24 * (↑n + 1) ^ 2 * (u + v) * pseudoConditionNumber A * ‖WithLp.toLp 2 (A⁻¹ *ᵥ r)‖

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.CholeskyRoundingError.