NLAlib.CGS2.cgs2ExtendRoutine_meets
Library · theorem
Standard rounding Relative-error BLAS
Column-wise two-pass classical Gram–Schmidt with threshold deflation satisfies the rounded contract of a basis extension. Assume the standard model of rounded arithmetic at the unit roundoff u, the level-1 contracts with dot error e_d(n), update error e_a, square-root error e_s and scaling error e_c, and exact comparisons. Let 0 \le \eta_0 \le 1/100, c \le 1/100, u \ge 0, 4u \le c, 0 \le E \le 1/100, and let \tau > 0 be the rational threshold of the implementation. At every admitted dimension (n, k, \mathbf{b}) assume that the level-1 operations admit the length n, that e_d(n) \ge 0, that the pass budget of k + \mathbf{b} columns holds, (k+\mathbf{b}+1)e_d(n)(1+\eta_0)^2 + ((1+e_a)^{k+\mathbf{b}} - 1)(1 + (k+\mathbf{b})(1+e_d(n))(1+\eta_0)^2) \le c, and that the computed norms are accurate to E, e_d(n) + e_s(1 + e_d(n)) \le E; assume also e_c \le E. Then the implementation runs on all admitted operands and its decoded output is a rounded extension with the window \eta_0 and the parameters \mu = 4c + 8(\eta_0 + c)^2/\tau + 5E and \varepsilon = 3c + 2E + 2\tau.
NLAlib.CGS2.cgs2ExtendRoutine_meets {K Op Tst : Type} [Inhabited K] [Ops.Has Ops.ScalarOp Op]
[Ops.Has Ops.Blas1Op Op] [Ops.Has Ops.CmpTst Tst] {M : Ops.Machine K} {dec : K → ℝ} {u η₀ c E : ℝ}
{τ : ℚ} {ε : Ops.Blas1Err} {okB : ℕ → Prop} {ok : ℕ → ℕ → ℕ → Prop} {I : Ops.Interp Op Tst K}
(hS : Ops.IsScalar M I) (hM : Ops.StdModel u dec M) (hB : Ops.IsBlas1 dec ε okB I)
(hCmp : Ops.IsCmp dec I) (hu : 0 ≤ u) (hu₁ : 4 * u ≤ c) (hη₀ : 0 ≤ η₀) (hη : η₀ ≤ 1 / 100)
(hc : c ≤ 1 / 100) (hE : 0 ≤ E) (hE' : E ≤ 1 / 100) (hτ : 0 < τ) (ha : 0 ≤ ε.axpy)
(hs : 0 ≤ ε.sqrt) (hscal : ε.scal ≤ E) (hokB : ∀ (n k b : ℕ), ok n k b → okB n)
(hdot : ∀ (n k b : ℕ), ok n k b → 0 ≤ ε.dot n)
(hbudget :
∀ (n k b : ℕ),
ok n k b →
(↑(k + b) + 1) * ε.dot n * (1 + η₀) ^ 2 +
((1 + ε.axpy) ^ (k + b) - 1) * (1 + ↑(k + b) * (1 + ε.dot n) * (1 + η₀) ^ 2) ≤
c)
(hnorm : ∀ (n k b : ℕ), ok n k b → ε.dot n + ε.sqrt * (1 + ε.dot n) ≤ E) :
(CGS2.cgs2ExtendRoutine τ).Meets I
(Ops.extendSpec dec η₀ (cgs2ExtendMu (2 * c) (2 * (η₀ + c) ^ 2) E ↑τ)
(cgs2ExtendEps (3 * c) E ↑τ) ok)Import NLAlib.Krylov.Orthogonalization.CGS2.ExtendRounded.