NLAlib.Ops.Pair.readBlocks_updCells_pairs
Library · theorem
Copying two previously computed pairs back into spatially disjoint output views gives both packed outputs, independently of the earlier scratch-write trace.
NLAlib.Ops.Pair.readBlocks_updCells_pairs {K : Type} {m : Ops.Mem K} {prior : List ((ℕ × ℕ) × K)}
{x y : ℕ × ℕ} {u v : K × K}
(hxy : Ops.Fp.Disj (Ops.Store.inBlock x.1 x.2 2) (Ops.Store.inBlock y.1 y.2 2))
(hx : x.2 + 2 ≤ m.store.len x.1) (hy : y.2 + 2 ≤ m.store.len y.1) :
(m.updCells
(prior ++ [(x, u.1), ((x.1, x.2 + 1), u.2), (y, v.1), ((y.1, y.2 + 1), v.2)])).readBlocks
[x, y] [2, 2] =
some [[u.1, u.2], [v.1, v.2]]Import NLAlib.Ops.Blas.Pair.