NLA-lib Explorer

NLAlib.isBasisExtension_of_two_passes

Library · theorem

Headline of cgs2-basis-extension

Exact column-wise classical Gram–Schmidt with two passes extends a basis. Let \mathbf{Q} be an arbitrary basis, \mathbf{W} a block of \mathbf{b} columns, and write \operatorname{su}(\mathbf{A}) for the strictly upper triangular part of \mathbf{A}. Let \mathbf{H}_1 = \mathbf{Q}^{\mathsf{H}}\mathbf{W}, \mathbf{R}_1 = \operatorname{su}(\mathbf{Q}'^{\mathsf{H}}\mathbf{W}), \mathbf{W}_1 = \mathbf{W} - \mathbf{Q}\mathbf{H}_1 - \mathbf{Q}'\mathbf{R}_1 be the first pass, \mathbf{H}_2 = \mathbf{Q}^{\mathsf{H}}\mathbf{W}_1, \mathbf{R}_2 = \operatorname{su}(\mathbf{Q}'^{\mathsf{H}}\mathbf{W}_1), \mathbf{W}_2 = \mathbf{W}_1 - \mathbf{Q}\mathbf{H}_2 - \mathbf{Q}'\mathbf{R}_2 the second, and let column c of \mathbf{Q}' be \|\mathbf{w}\|^{-1}\mathbf{w} with \mathbf{w} column c of \mathbf{W}_2 (the zero column when \mathbf{w} = \mathbf{0}). Then \mathbf{Q}' with the coefficients \mathbf{H}_1 + \mathbf{H}_2 and \mathbf{R}_1 + \mathbf{R}_2 + \mathbf{D}, \mathbf{D} the diagonal matrix of the norms of the columns of \mathbf{W}_2, is an exact extension of \mathbf{Q} by \mathbf{W}. No hypothesis on \mathbf{Q}: the orthonormality of \mathbf{Q} on its support is used only by the clause that preserves it. No printed source; docs/design/LowRank-BlockLanczos.md §3.5. Result: cgs2-basis-extension

NLAlib.isBasisExtension_of_two_passes.{u_1} {𝕜 : Type u_1} [RCLike 𝕜] {b n k : ℕ}
  {Q : Matrix (Fin n) (Fin k) 𝕜} {W Q' W₁ W₂ : Matrix (Fin n) (Fin b) 𝕜}
  {H₁ H₂ : Matrix (Fin k) (Fin b) 𝕜} {R₁ R₂ : Matrix (Fin b) (Fin b) 𝕜} (hH₁ : H₁ = Qᴴ * W)
  (hR₁ : R₁ = strictUpper (Q'ᴴ * W)) (hW₁ : W₁ = W - Q * H₁ - Q' * R₁) (hH₂ : H₂ = Qᴴ * W₁)
  (hR₂ : R₂ = strictUpper (Q'ᴴ * W₁)) (hW₂ : W₂ = W₁ - Q * H₂ - Q' * R₂)
  (hQ' : ∀ (c : Fin b), Q'.col c = ↑‖WithLp.toLp 2 (W₂.col c)‖⁻¹ • W₂.col c) :
  IsBasisExtension Q W Q' (H₁ + H₂) (R₁ + R₂ + diagonal fun c ↦ ↑‖WithLp.toLp 2 (W₂.col c)‖)

Full source on GitHub

Import NLAlib.Matrix.Factorizations.CGS2.BasisExtension.