NLA-lib Explorer

NLAlib.MGS.sweep_writes

Library ยท theorem

The sweep with the columns of Q given one by one, as the trees that run it hold them: the column loop of NLAlib.MGS.factorRoutine and the probe projection of Hutch++ keep their basis as a list of column facts. It is the judgment NLAlib.MGS.sweepRoutine_meets at the block of the first k columns.

NLAlib.MGS.sweep_writes {๐•œ Op Tst : Type} [RCLike ๐•œ] [Ops.Has Ops.ScalarOp Op]
  [Ops.Has Ops.Blas1Op Op] {I : Ops.Interp Op Tst ๐•œ} {ฯ„ : Ops.Tape ๐•œ} {m : Ops.Mem ๐•œ}
  (hS : Ops.IsScalar Ops.RCLikeBlas.machine I) (hB : Ops.RCLikeBlas.IsExact I) {n k : โ„•}
  {q v r : โ„• ร— โ„•} (Q : โ„• โ†’ Fin n โ†’ ๐•œ) (w : Fin n โ†’ ๐•œ) (hl : m.Live [q, v, r])
  (hQ : โˆ€ i < k, m.store.readBlock q.1 (q.2 + n * i) n = some (List.ofFn (Q i)))
  (hv : m.store.readBlock v.1 v.2 n = some (List.ofFn w))
  (hdis :
    โˆ€ i < k,
      (Ops.Store.inBlock r.1 r.2 1 โŠ” Ops.Store.inBlock v.1 v.2 n).Disj
        (Ops.Store.inBlock q.1 (q.2 + n * i) n))
  (hrv : Ops.Fp.Disj (Ops.Store.inBlock r.1 r.2 1) (Ops.Store.inBlock v.1 v.2 n))
  (hr : r.2 + 1 โ‰ค m.store.len r.1) (hz : v.2 + n โ‰ค m.store.len v.1) :
  Ops.Writes Ops.Mode.total I ฯ„ MGS.sweep (Ops.Env.frame [n, k] [q, v, r])
    (Ops.Store.inBlock r.1 r.2 1 โŠ” 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 (mgsSweep Q w k))) m

Full source on GitHub

Import NLAlib.Matrix.Factorizations.MGS.Sweep.