NLA-lib Explorer

NLAlib.Ops.PairMatrix.diagonalReal_writes

Library · theorem

Real-diagonal extraction succeeds on a readable source and disjoint output capacity, returning the actual stored diagonal words and preserving the tape position. A fragment of the tree NLAlib.SpectralBisection.leafValues.

NLAlib.Ops.PairMatrix.diagonalReal_writes {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] {K : Type}
  {M : Ops.Machine K} {I : Ops.Interp Op Tst K} (hI : Ops.IsScalar M I) {τ : Ops.Tape K}
  {m : Ops.Mem K} {n : ℕ} {x y : ℕ × ℕ} {v : ℕ → K} (hx : m.store.HoldsVec x.1 x.2 (2 * (n * n)) v)
  (hy : y.2 + n ≤ m.store.len y.1)
  (hdisj : Ops.Fp.Disj (Ops.Store.inBlock y.1 y.2 n) (Ops.Store.inBlock x.1 x.2 (2 * (n * n)))) :
  Ops.Writes Ops.Mode.total I τ Ops.PairMatrix.diagonalReal (Ops.Env.frame [n] [x, y])
    (Ops.Store.inBlock y.1 y.2 n)
    (fun m' ↦ (m'.store.HoldsVec y.1 y.2 n fun i ↦ v (2 * (i * n + i))) ∧ m'.pos = m.pos) m

Full source on GitHub

Import NLAlib.Ops.Blas.Matrix.