NLAlib.MGS.normalize_writes_residual
Library · theorem
A Gram–Schmidt residual normalizes to its intended column at every rank. The zero-coefficient case returns the zero column, and the other case has a nonzero divisor. A fragment of NLAlib.MGS.factorRoutine: run only inside its tree, on its operands and the buffers it allocates.
NLAlib.MGS.normalize_writes_residual {𝕜 Op Tst : Type} [RCLike 𝕜] [Ops.Has Ops.ScalarOp Op]
[Ops.Has Ops.Blas1Op Op] [Ops.Has Ops.CmpTst Tst] {I : Ops.Interp Op Tst 𝕜} {τ : Ops.Tape 𝕜}
{m : Ops.Mem 𝕜} (hS : Ops.IsScalar Ops.RCLikeBlas.machine I) (hB : Ops.RCLikeBlas.IsExact I)
(hC : Ops.IsCmp (⇑RCLike.re) I) {n : ℕ} {v t : ℕ × ℕ} (q : Fin n → 𝕜) (ρ : 𝕜) (hρ : 0 ≤ ρ)
(hzero : ρ = 0 → q = 0) (hunit : ρ ≠ 0 → star q ⬝ᵥ q = 1) (hl : m.Live [v, t])
(hv : m.store.readBlock v.1 v.2 n = some (List.ofFn (ρ • q)))
(htv : Ops.Fp.Disj (Ops.Store.inBlock t.1 t.2 2) (Ops.Store.inBlock v.1 v.2 n))
(ht : t.2 + 2 ≤ m.store.len t.1) (hz : v.2 + n ≤ m.store.len v.1) :
Ops.Writes Ops.Mode.total I τ MGS.normalize (Ops.Env.frame [n] [v, t])
(Ops.Store.inBlock t.1 t.2 2 ⊔ Ops.Store.inBlock v.1 v.2 n)
(fun m' ↦ m'.pos = m.pos ∧ m'.store.readBlock v.1 v.2 n = some (List.ofFn q)) mImport NLAlib.Matrix.Factorizations.MGS.Normalize.