NLA-lib Explorer

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)
    m

Full source on GitHub

Import NLAlib.Ops.Logic.RCLikeBlas.