NLA-lib Explorer

NLAlib.Krylov.Lanczos.Prefix.advance

Library · theorem

One active round preserves the other initialized entries and writes exactly the next prefix values. Scratch may change freely above L.

NLAlib.Krylov.Lanczos.Prefix.advance {K : Type} [Inhabited K] {dec : K → ℝ} {n cap done L : ℕ}
  {A : Matrix (Fin n) (Fin n) ℝ} {b : Fin n → ℝ} {V C : ℕ × ℕ} {s s' : Ops.Store K}
  (h : Krylov.Lanczos.Prefix dec A b cap done V C s) (hd : done < cap) (hvc : V.1 ≠ C.1)
  (hv : V.1 < L) (hc : C.1 < L)
  (hf : Ops.Store.EqOff (Krylov.Lanczos.advanceFp n cap done L V C) s s')
  (hq :
    Krylov.Lanczos.StoresVec dec (V.1, V.2 + (done + 1) * n) (lanczosState A b (done + 1)).cur s')
  (ha : Krylov.Lanczos.StoresCell dec (C.1, C.2 + done) (lanczosAlpha A (lanczosState A b done)) s')
  (hb :
    Krylov.Lanczos.StoresCell dec (C.1, C.2 + cap + done + 1) (lanczosState A b (done + 1)).beta
      s') :
  Krylov.Lanczos.Prefix dec A b cap (done + 1) V C s'

Full source on GitHub

Import NLAlib.Krylov.Lanczos.State.