NLA-lib Explorer

NLAlib.Krylov.Lanczos.Reorth.Rounded.Output.exists_admissible_prefix

Library · theorem

Every actual output determines a leading strictly admissible prefix, possibly empty. If it ends before the executed history, the next actual coupling is at most tau times its saved raw norm. The complete history, packed values and runtime early-stop meaning are retained.

NLAlib.Krylov.Lanczos.Reorth.Rounded.Output.exists_admissible_prefix {K : Type} [Inhabited K]
  {dec : K → ℝ} {n cap : ℕ} {A : Matrix (Fin n) (Fin n) ℝ} {rhs : Fin n → ℝ} {em u E : ℝ}
  {e : Ops.Blas1Err} {vs cs : List K}
  (h : Krylov.Lanczos.Reorth.Rounded.Output dec A rhs em u E e cap vs cs) (τ : ℝ) :
  ∃ done ≤ cap,
    ∃ z nus,
      Krylov.Lanczos.Reorth.Rounded.History dec A rhs em u E e done z nus ∧
        Krylov.Lanczos.Reorth.Rounded.PackedOutput dec cap done z nus vs cs ∧
          (done < cap → (if done = 0 then z.initialNorm else z.beta done) = 0) ∧
            ∃ r ≤ done,
              (∀ j < r, τ * nus (j + 1) < z.beta (j + 1)) ∧
                (r < done → z.beta (r + 1) ≤ τ * nus (r + 1))

Full source on GitHub

Import NLAlib.Krylov.Lanczos.Reorth.Rounded.Prefix.