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]) mImport NLAlib.Estimation.Trace.HutchPlusPlus.Combine.