NLAlib.Ops.Hermitian.copyTriangle_writes
Library · theorem
Copying the strict upper triangle returns the same stored entries and preserves every other cell. Input and output blocks are disjoint, including within one live arena buffer. An end statement in operand form: no other declaration of the library is proved from it.
NLAlib.Ops.Hermitian.copyTriangle_writes {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
{M : Ops.Machine K} {I : Ops.Interp Op Tst K} (hI : Ops.IsScalar M I) {τ : Ops.Tape K} {n : ℕ}
{x y : ℕ × ℕ} {m : Ops.Mem K} {A : ℕ → ℕ → K × K}
(hxy :
Ops.Fp.Disj (Ops.Store.inBlock x.1 x.2 (2 * (n * n))) (Ops.Store.inBlock y.1 y.2 (2 * (n * n))))
(hX :
m.store.HoldsEntries (Ops.EntryCodec.pair K)
{ buf := x.1, off := x.2, rows := n, cols := n, ld := n } A)
(hY : y.2 + 2 * (n * n) ≤ m.store.len y.1) (hl : m.Live [x, y]) :
Ops.Writes Ops.Mode.total I τ Ops.Hermitian.copyTriangle (Ops.Env.frame [n] [x, y])
((Ops.EntryCodec.pair K).rowsFp { buf := y.1, off := y.2, rows := n, cols := n, ld := n } id)
(fun m' ↦
m'.store.HoldsRowEntries (Ops.EntryCodec.pair K)
{ buf := y.1, off := y.2, rows := n, cols := n, ld := n } id A ∧
m'.pos = m.pos)
mImport NLAlib.Ops.Blas.HermitianUpper.