NLA-lib Explorer

NLAlib.CGS2.column_writes

Library · theorem

One round of the column-wise extension. From a memory with the layout of the rounds in which the k + c stored columns (the basis followed by the new columns before c) are read as one block vs and column c of the block is wc, the round writes only column c of the block, of the coefficients and of the new block and the scratch, keeps the position, and the three columns written satisfy NLAlib.CGS2.ColOut. A fragment of NLAlib.CGS2.cgs2ExtendRoutine.

NLAlib.CGS2.column_writes {K Op Tst : Type} [Inhabited K] [Ops.Has Ops.ScalarOp Op]
  [Ops.Has Ops.Blas1Op Op] [Ops.Has Ops.CmpTst Tst] {M : Ops.Machine K} {dec : K → ℝ} {ed : ℕ → ℝ}
  {ea : ℝ} {N : ℕ → (ℕ → K) → K → Prop} {S : ℕ → K → (ℕ → K) → (ℕ → K) → Prop} {ok : ℕ → Prop}
  {I : Ops.Interp Op Tst K} (ops : CGS2.ColOps M dec ed ea N S ok I) {τ' : Ops.Tape K} {τ : ℚ}
  {n k b c : ℕ} {Q W C : ℕ × ℕ} {hb tb : ℕ} {m : Ops.Mem K} {vs wc : List K}
  (L : CGS2.ColMem n k b Q W C hb tb m) (hc : c < b) (hok : ok n)
  (hV : m.store.readBlock Q.1 Q.2 ((k + c) * n) = some vs)
  (hw : m.store.readBlock W.1 (W.2 + c * n) n = some wc) :
  Ops.Writes Ops.Mode.total I τ' (CGS2.cgs2ExtendColumn τ) (CGS2.colEnv n k b c Q W C hb tb)
    (CGS2.colFp n k b c Q W C hb tb)
    (fun m' ↦
      m'.pos = m.pos ∧
        ∃ w₂ cc qc,
          m'.store.readBlock W.1 (W.2 + c * n) n = some w₂ ∧
            m'.store.readBlock C.1 (C.2 + c * (k + b)) (k + b) = some cc ∧
              m'.store.readBlock Q.1 (Q.2 + k * n + c * n) n = some qc ∧
                CGS2.ColOut M dec (ed n) ea (N n) (S n) τ n (k + c) (k + b) vs wc w₂ cc qc)
    m

Full source on GitHub

Import NLAlib.Krylov.Orthogonalization.CGS2.ExtendColumn.