NLAlib.Ops.Hermitian.mirror_writes_lower
Library · theorem
Mirroring fills precisely the strict lower triangle with the machine conjugates of the stored upper entries, preserves all other cells, and consumes no random words. Output capacity covers the square matrix; the input handle is live even when its dimension is zero. A fragment of the tree NLAlib.Ops.Hermitian.complete.
NLAlib.Ops.Hermitian.mirror_writes_lower {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
{M : Ops.Machine K} {I : Ops.Interp Op Tst K} (hI : Ops.IsScalar M I) {md : Ops.Mode}
{τ : Ops.Tape K} {m : Ops.Mem K} {n : ℕ} {y : ℕ × ℕ} (A : ℕ → ℕ → K × K)
(hl : y.1 < List.length m.store) (hz : y.2 + 2 * (n * n) ≤ m.store.len y.1)
(hu :
m.store.HoldsRowEntries (Ops.EntryCodec.pair K)
{ buf := y.1, off := y.2, rows := n, cols := n, ld := n } (fun j ↦ j + 1) A) :
Ops.Writes md I τ Ops.Hermitian.mirror (Ops.Env.frame [n] [y, y])
((Ops.EntryCodec.pair K).regionFp y.1 y.2 n (fun i j ↦ i * n + j) fun j ↦ j)
(fun m' ↦
(m'.store.HoldsEntryRegion (Ops.EntryCodec.pair K) y.1 y.2 n (fun i j ↦ i * n + j) (fun j ↦ j)
fun i j ↦ ((A i j).1, M.neg (A i j).2)) ∧
m'.pos = m.pos)
mImport NLAlib.Ops.Blas.HermitianMirror.