NLA-lib Explorer

NLAlib.Krylov.Lanczos.Reorth.Rounded.History.exists_isOrthErr

Library · theorem

Every actual transition in the final history inherits local two-pass orthogonalization with its own actual vector/norm witnesses and the same final archived basis. The size-only budget is required for each executed prefix; strict tau-admissibility is not asserted.

NLAlib.Krylov.Lanczos.Reorth.Rounded.History.exists_isOrthErr {K : Type} [Inhabited K] {dec : K → ℝ}
  {n : ℕ} {A : Matrix (Fin n) (Fin n) ℝ} {rhs : Fin n → ℝ} {em u E : ℝ} {e : Ops.Blas1Err}
  {done : ℕ} {z : Krylov.Lanczos.Rounded.Values n} {nus : ℕ → ℝ} {η c : ℝ}
  (h : Krylov.Lanczos.Reorth.Rounded.History dec A rhs em u E e done z nus) (hd : 0 ≤ e.dot n)
  (ha : 0 ≤ e.axpy) (hη₀ : 0 ≤ η) (hη : η ≤ 1 / 100) (hc : c ≤ 1 / 100)
  (hbudget :
    ∀ j < done,
      (↑j + 1 + 1) * e.dot n * (1 + η) ^ 2 +
          ((1 + e.axpy) ^ (j + 1) - 1) * (1 + (↑j + 1) * (1 + e.dot n) * (1 + η) ^ 2) ≤
        c)
  (j : ℕ) :
  j < done →
    ∃ first raw reduced ys norm beta' coefficients,
      z.v (j + 2) = Ops.decv dec n ys ∧
        z.beta (j + 1) = dec beta' ∧
          nus (j + 1) = dec norm ∧
            Krylov.Lanczos.Rounded.UpdateBounds em (e.dot n) e.axpy A (z.v j) (z.v (j + 1))
                (Ops.decv dec n first) (Ops.decv dec n raw) (z.beta j) (z.alpha (j + 1)) ∧
              Ops.IsNrm2Err dec (e.dot n) u n (Ops.vec raw) norm ∧
                Ops.IsNrm2Err dec (e.dot n) u n (Ops.vec reduced) beta' ∧
                  Ops.IsScalErr dec e.scal n beta' (Ops.vec reduced) (Ops.vec ys) ∧
                    (Ops.decv dec n reduced = 0 → Ops.decv dec n ys = 0) ∧
                      IsOrthErr η (2 * c) (3 * c) (2 * (η + c) ^ 2)
                        (LanczosReorthRun.basisOf z.v (j + 1)) (Ops.decv dec n raw) coefficients
                        (Ops.decv dec n reduced)

Full source on GitHub

Import NLAlib.Krylov.Lanczos.Reorth.Rounded.Analysis.