NLAlib.LinearSystems.Refinement.Rounded.norm_sub_mulVec_sub_cast_le
Library · theorem
The residual computed in the residual precision and cast to the working precision. Let \hat{\mathbf{r}} be computed from \mathbf{b}, \mathbf{A}, \mathbf{x} row by row at unit roundoff u_r \ge 0 with (n + 1) u_r < 1, and let \tilde{\mathbf{r}} be \hat{\mathbf{r}} with relative error u \ge 0 in each entry. With \mathbf{r} = \mathbf{b} - \mathbf{A}\mathbf{x} and \gamma_{n+1} = (1 - u_r)^{-(n+1)} - 1, \|\mathbf{r} - \tilde{\mathbf{r}}\| \le u \|\mathbf{r}\| + (1 + u)(n + 1)\gamma_{n+1} \bigl(\|\mathbf{b}\| + \|\mathbf{A}\|_2 \|\mathbf{x}\|\bigr).
NLAlib.LinearSystems.Refinement.Rounded.norm_sub_mulVec_sub_cast_le {n : ℕ}
{A : Matrix (Fin n) (Fin n) ℝ} {b x rh rt : Fin n → ℝ} {u ur : ℝ} (hu : 0 ≤ u) (hur : 0 ≤ ur)
(hn : (↑n + 1) * ur < 1)
(htr :
∀ (i : Fin n),
∃ s,
Computation.IsSubstRowTrace (fun x ↦ Computation.RelErr ur)
(fun i j ↦ if hi : i < n then if hj : j < n then A ⟨i, hi⟩ ⟨j, hj⟩ else 0 else 0)
(fun i ↦ if hi : i < n then b ⟨i, hi⟩ else 0)
(fun j ↦ if hj : j < n then x ⟨j, hj⟩ else 0) (↑i) n s ∧
s n = rh i)
(hc : ∀ (i : Fin n), |rt i - rh i| ≤ u * |rh i|) :
‖WithLp.toLp 2 (b - A *ᵥ x - rt)‖ ≤
u * ‖WithLp.toLp 2 (b - A *ᵥ x)‖ +
(1 + u) * ((↑n + 1) * Computation.roundingFactor (n + 1) ur) *
(‖WithLp.toLp 2 b‖ + specNorm A * ‖WithLp.toLp 2 x‖)Import NLAlib.LinearSystems.Refinement.Rounded.Bounds.