NLA-lib Explorer

NLAlib.Krylov.Lanczos.state_zero_of_normalize

Library · theorem

Zeroed output blocks, a normalized first column, the input norm, and a readable valid guard establish the initial loop state. Additional coefficient cells remain initialized zero.

NLAlib.Krylov.Lanczos.state_zero_of_normalize {K : Type} [Inhabited K] {dec : K → ℝ}
  {n cap clen L : ℕ} {A : Matrix (Fin n) (Fin n) ℝ} {b : Fin n → ℝ} {V C : ℕ × ℕ}
  {s s' : Ops.Store K} (hlen : 2 * cap + 2 ≤ clen) (hvc : V.1 ≠ C.1) (hv : V.1 < L) (hc : C.1 < L)
  (hV : Krylov.Lanczos.StoresVec dec V 0 s) (hC : Krylov.Lanczos.StoresVec dec C 0 s)
  (hprev : Krylov.Lanczos.StoresVec dec (L, 0) 0 s)
  (hf : Ops.Store.EqOff (Krylov.Lanczos.normalizeFp n cap V C) s s')
  (hq : Krylov.Lanczos.StoresVec dec V (lanczosState A b 0).cur s')
  (hnorm : Krylov.Lanczos.StoresCell dec (C.1, C.2 + 2 * cap + 1) ‖WithLp.toLp 2 b‖ s')
  (hguard : ∃ σ, s'.get (L + 2) 0 = some σ ∧ 0 ≤ dec σ ∧ (0 < dec σ ↔ b ≠ 0)) :
  Krylov.Lanczos.State dec A b cap 0 V C L s' ∧
    ∀ (i : ℕ), 2 * cap + 2 ≤ i → i < clen → Krylov.Lanczos.StoresCell dec (C.1, C.2 + i) 0 s'

Full source on GitHub

Import NLAlib.Krylov.Lanczos.InitialState.