Theorem (isOrthErr_of_two_passes). Twice is enough: two passes with coefficient, residual and projection-error bounds (the second on \mathbf{w}_1), and coefficients summed with relative error u, meet NLAlib.IsOrthErr with \varepsilon_1 = 2c_1, \varepsilon_2 = 3c_1, \varepsilon_3 = 2(\eta_0 + c_1)^2, for \eta_0 \le 1/100, c_1 \le 1/100, 4u \le c_1. [GiraudLangouRozloznikVandenEshof2005, Theorem 2]; [Parlett1998, §6.9].
Headline
Lean statement and details
NLAlib.isOrthErr_of_two_passes {n j : ℕ} {V : Matrix (Fin n) (Fin j) ℝ} {w w₁ w₂ : Fin n → ℝ}
{h₁ h₂ h : Fin j → ℝ} {η₀ c₁ u : ℝ} (hη : η₀ ≤ 1 / 100) (hc₁ : c₁ ≤ 1 / 100) (hu : 0 ≤ u)
(hu₁ : 4 * u ≤ c₁)
(hp₁ :
specNorm (Vᵀ * V - 1) ≤ η₀ →
‖WithLp.toLp 2 (h₁ - Vᵀ *ᵥ w)‖ ≤ c₁ * ‖WithLp.toLp 2 w‖ ∧
‖WithLp.toLp 2 (w - V *ᵥ h₁ - w₁)‖ ≤ c₁ * ‖WithLp.toLp 2 w‖ ∧
‖WithLp.toLp 2 (w₁ - (w - V *ᵥ Vᵀ *ᵥ w))‖ ≤ c₁ * ‖WithLp.toLp 2 w‖)
(hp₂ :
specNorm (Vᵀ * V - 1) ≤ η₀ →
‖WithLp.toLp 2 (h₂ - Vᵀ *ᵥ w₁)‖ ≤ c₁ * ‖WithLp.toLp 2 w₁‖ ∧
‖WithLp.toLp 2 (w₁ - V *ᵥ h₂ - w₂)‖ ≤ c₁ * ‖WithLp.toLp 2 w₁‖ ∧
‖WithLp.toLp 2 (w₂ - (w₁ - V *ᵥ Vᵀ *ᵥ w₁))‖ ≤ c₁ * ‖WithLp.toLp 2 w₁‖)
(hsum : ∀ (i : Fin j), |h i - (h₁ i + h₂ i)| ≤ u * |h₁ i + h₂ i|) :
IsOrthErr η₀ (2 * c₁) (3 * c₁) (2 * (η₀ + c₁) ^ 2) V w h w₂