Theorem (Krylov.Lanczos.Rounded.Stored.Certification.exec_scalarProgram_work_le_and_ritzResidual). Scalar Lanczos in rounded arithmetic: termination, operation count and Ritz residuals. Let \mathbf{A} \in \mathbb{R}^{n \times n} be symmetric, stored entry by entry, let \mathbf{b} \in \mathbb{R}^n and let k be the iteration cap. The program is the Lanczos recurrence in Paige's ordering started from \mathbf{b}, without reorthogonalization, with every matrix-vector product and every vector operation written out as scalar loops. Its arithmetic is any scalar machine in the standard model with unit roundoff u: each of +, -, \times, /, \sqrt{\cdot} returns the exact result times 1 + \delta, \lvert \delta \rvert \le u, with no overflow or underflow, and comparisons of stored numbers are exact. Let E \le 1/100 be an allowance that dominates the rounding of one scalar operation, of one dot product, vector update and scaling of length n, and of one row-by-row matrix-vector product (Lanczos.Rounded.Precision).
Headline Standard rounding
Lean statement and details
NLAlib.Krylov.Lanczos.Rounded.Stored.Certification.exec_scalarProgram_work_le_and_ritzResidual
{domain : (Fin 2 → ℕ) → Prop} {admitted : ∃ d, domain d} (M : Ops.Machine ℝ) (u : ℝ)
(hM : Ops.StdModel u id M) (hu : 0 ≤ u) (E : (Fin 2 → ℕ) → ℝ)
(hprec :
∀ (d : Fin 2 → ℕ),
domain d →
Krylov.Lanczos.Rounded.Precision (Ops.ScalarProducts.roundoff u (d 0) * √↑(d 0)) u (E d)
(Ops.Blas.seq.err u) (d 0))
{d : Fin 2 → ℕ} (hd : domain d)
(x : (Krylov.Lanczos.Rounded.Stored.Certification.problem domain admitted).Input d)
(I : Ops.Interp Ops.ScalarOp Ops.CmpTst ℝ)
(hI :
(Ops.RoundedScalarBlas.model
(Krylov.Lanczos.Rounded.Stored.Certification.problem domain admitted) M).contracts
d x I)
(τ : Ops.Tape ℝ) :
∃ st,
Ops.Reference.Execution Krylov.Lanczos.Rounded.Stored.Certification.scalarProgram I
Ops.RoundedScalarBlas.resources
(Krylov.Lanczos.Rounded.Stored.Certification.problem domain admitted).formats τ d
((Krylov.Lanczos.Rounded.Stored.Certification.problem domain admitted).initial d x) st ∧
Ops.RoundedScalarBlas.resources.work st.cost ≤
33 * d 0 ^ 2 * d 1 + 153 * d 0 * d 1 + 302 * d 1 + 58 * d 0 + 179 ∧
∃ vs cs,
st.mem.store.readBlock 2 0 ((d 1 + 1) * d 0) = some vs ∧
st.mem.store.readBlock 3 0 (2 * d 1 + 2) = some cs ∧
Krylov.Lanczos.Rounded.Output id (↑x).1.1 (↑x).1.2 (E d) (d 1) vs cs ∧
(0 < d 1 →
(↑x).1.2 ≠ 0 →
↑(d 1) * E d ≤ 1 / 100 →
Krylov.Lanczos.Rounded.RitzResidual id (↑x).1.1 (E d) (d 1) vs cs)