NLAlib.Ops.RCLikeBlas.writes_copy
Library ยท theorem
A copy writes the input words exactly, including the empty-vector case.
NLAlib.Ops.RCLikeBlas.writes_copy {๐ Op Tst : Type} [RCLike ๐] [Ops.Has Ops.Blas1Op Op]
{I : Ops.Interp Op Tst ๐} {ฯ : Ops.Tape ๐} {ฯ : Ops.Env} {m : Ops.Mem ๐}
(hI : Ops.RCLikeBlas.IsExact I) {ds : List Ops.IExp} {ins outs : List Ops.Operand} {n : โ}
{a z : โ ร โ} {xs : List ๐} (hd : Ops.IExp.evalList ฯ.idx ds = some [n])
(ha : Ops.Operand.evalList ฯ ins = some [a]) (hz : Ops.Operand.evalList ฯ outs = some [z])
(hl : m.Live [a, z]) (hA : m.store.readBlock a.1 a.2 n = some xs)
(hAZ : Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 n) (Ops.Store.inBlock z.1 z.2 n) โจ a = z)
(hZ : z.2 + n โค m.store.len z.1) :
Ops.Writes Ops.Mode.total I ฯ (Ops.Stmt.call (Ops.Has.inj Ops.Blas1Op.copy) ds ins outs) ฯ
(Ops.Store.inBlock z.1 z.2 n) (fun m' โฆ m'.pos = m.pos โง m'.store.readBlock z.1 z.2 n = some xs)
mImport NLAlib.Ops.Logic.RCLikeBlas.