NLA-lib Explorer

NLAlib.MGS.factorColumn_writes

Library · theorem

One full column step produces its Gram–Schmidt column at every rank, using readable preceding columns and a disjoint two-cell scalar workspace. A fragment of NLAlib.MGS.factorRoutine: run only inside its tree, on its operands and the buffers it allocates.

NLAlib.MGS.factorColumn_writes {𝕜 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 k j : ℕ} (A : Matrix (Fin n) (Fin k) 𝕜) (hj : j < k)
  {y t : ℕ × ℕ} (hl : m.Live [y, t])
  (hQ :
    ∀ (i : ℕ) (hi : i < j),
      m.store.readBlock y.1 (y.2 + n * i) n = some (List.ofFn ((gramSchmidtQ A).col ⟨i, ⋯⟩)))
  (hv : m.store.readBlock y.1 (y.2 + n * j) n = some (List.ofFn (A.col ⟨j, hj⟩)))
  (hdis :
    ∀ i < j,
      (Ops.Store.inBlock t.1 t.2 1 ⊔ Ops.Store.inBlock y.1 (y.2 + n * j) n).Disj
        (Ops.Store.inBlock y.1 (y.2 + n * i) n))
  (htv : Ops.Fp.Disj (Ops.Store.inBlock t.1 t.2 2) (Ops.Store.inBlock y.1 (y.2 + n * j) n))
  (ht : t.2 + 2 ≤ m.store.len t.1) (hz : y.2 + n * j + n ≤ m.store.len y.1) :
  Ops.Writes Ops.Mode.total I τ MGS.factorColumn (Ops.Env.frame [n, j] [y, t])
    (Ops.Store.inBlock y.1 (y.2 + n * j) n ⊔ Ops.Store.inBlock t.1 t.2 2)
    (fun m' ↦
      m'.pos = m.pos ∧
        m'.store.readBlock y.1 (y.2 + n * j) n = some (List.ofFn ((gramSchmidtQ A).col ⟨j, hj⟩)))
    m

Full source on GitHub

Import NLAlib.Matrix.Factorizations.MGS.Factor.