NLA-lib Explorer

NLAlib.HutchPlusPlus.projectProbes_writes

Library ยท theorem

A batch of probes is reduced in place against the retained prefix. The exact footprint contains only the probe tail and scalar workspace, so the basis remains readable. A fragment of NLAlib.HutchPlusPlus.estimateRoutine: run only inside its tree, on its operands and the buffers it allocates.

NLAlib.HutchPlusPlus.projectProbes_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 ell : โ„•}
  {b t : โ„• ร— โ„•} (Q G : โ„• โ†’ Fin n โ†’ ๐•œ) (hl : m.Live [b, t])
  (hQ : โˆ€ i < k, m.store.readBlock b.1 (b.2 + n * i) n = some (List.ofFn (Q i)))
  (hG : โˆ€ j < ell, m.store.readBlock b.1 (b.2 + n * (k + j)) n = some (List.ofFn (G j)))
  (hTB : Ops.Fp.Disj (Ops.Store.inBlock t.1 t.2 2) (Ops.Store.inBlock b.1 b.2 ((k + ell) * n)))
  (ht : t.2 + 2 โ‰ค m.store.len t.1) (hb : b.2 + (k + ell) * n โ‰ค m.store.len b.1) :
  Ops.Writes Ops.Mode.total I ฯ„ HutchPlusPlus.projectProbes (Ops.Env.frame [n, k, ell] [b, t])
    (Ops.Store.inBlock b.1 (b.2 + n * k) (ell * n) โŠ” Ops.Store.inBlock t.1 t.2 2)
    (fun m' โ†ฆ
      m'.pos = m.pos โˆง
        โˆ€ j < ell,
          m'.store.readBlock b.1 (b.2 + n * (k + j)) n = some (List.ofFn (mgsSweep Q (G j) k)))
    m

Full source on GitHub

Import NLAlib.Estimation.Trace.HutchPlusPlus.Project.