NLA-lib Explorer

NLAlib.HutchPlusPlus.combineTrace_writes

Library ยท theorem

Combine actual stored sums through the dimension literal, division and addition. The scalar machine is exact; no successful-execution premise is required. A fragment of NLAlib.HutchPlusPlus.estimateRoutine: run only inside its tree, on its operands and the buffers it allocates.

NLAlib.HutchPlusPlus.combineTrace_writes {๐•œ Op Tst : Type} [RCLike ๐•œ] [Ops.Has Ops.ScalarOp Op]
  [Ops.Has Ops.IndexOp Op] {I : Ops.Interp Op Tst ๐•œ} {ฯ„ : Ops.Tape ๐•œ} {m : Ops.Mem ๐•œ}
  (hS : Ops.IsScalar Ops.RCLikeBlas.machine I) (hLit : Ops.IsIndexLit Ops.RCLikeBlas.machine I)
  {ell : โ„•} {t out : โ„• ร— โ„•} (lo hi : ๐•œ) (hl : m.Live [t, out])
  (hLo : m.store.readBlock out.1 out.2 1 = some [lo])
  (hHi : m.store.readBlock t.1 (t.2 + 1) 1 = some [hi])
  (hTO : Ops.Fp.Disj (Ops.Store.inBlock t.1 t.2 2) (Ops.Store.inBlock out.1 out.2 1))
  (ht : t.2 + 2 โ‰ค m.store.len t.1) (ho : out.2 + 1 โ‰ค m.store.len out.1) :
  Ops.Writes Ops.Mode.total I ฯ„ HutchPlusPlus.combineTrace (Ops.Env.frame [ell] [t, out])
    (Ops.Store.inBlock t.1 t.2 2 โŠ” Ops.Store.inBlock out.1 out.2 1)
    (fun m' โ†ฆ m'.pos = m.pos โˆง m'.store.readBlock out.1 out.2 1 = some [lo + hi / โ†‘ell]) m

Full source on GitHub

Import NLAlib.Estimation.Trace.HutchPlusPlus.Combine.