NLAlib.Krylov.Lanczos.Reorth.TwoPassOut.next_eq
Library · theorem
A pair of exact classical pass witnesses followed by the certified guarded normalization computes the current vector and coupling coefficient of the old pure reorthogonalized step.
NLAlib.Krylov.Lanczos.Reorth.TwoPassOut.next_eq {K : Type} [Inhabited K] {dec : K → ℝ} {n j : ℕ}
{A : Matrix (Fin n) (Fin n) ℝ} {s : LanczosReorthState ℝ (Fin n)} {qs raw reduced out : List K}
{β : K} (hQ : ∀ l < j + 1, (fun i ↦ dec (Ops.vec qs (l * n + ↑i))) = s.vecs l)
(hraw :
Ops.decv dec n raw = A *ᵥ s.cur - s.beta • s.prev - lanczosAlpha A s.toLanczosState • s.cur)
(hp : Krylov.Lanczos.Reorth.TwoPassOut dec 0 0 n (j + 1) qs raw reduced)
(hn :
Ops.decv dec n out = ‖WithLp.toLp 2 (Ops.decv dec n reduced)‖⁻¹ • Ops.decv dec n reduced ∧
dec β = ‖WithLp.toLp 2 (Ops.decv dec n reduced)‖) :
Ops.decv dec n out = (lanczosReorthStep A j s).cur ∧ dec β = (lanczosReorthStep A j s).betaImport NLAlib.Krylov.Lanczos.Reorth.StepMath.