NLA-lib Explorer

NLAlib.ShiftedQR.IsRandomSmallEig.smallEigLeaf_terminates

Library · theorem

The SmallEig leaf stores its output: a randomized small-eigenvalue kernel (NLAlib.ShiftedQR.IsRandomSmallEig) called on any matrix of order d at w, with room for the 2d output words at o, writes only the output and leaves it stored, on every tape.

NLAlib.ShiftedQR.IsRandomSmallEig.smallEigLeaf_terminates {O Q : Type}
  [Ops.Has ShiftedQR.EigenvalueKernelOp O] {law : ℕ → Measure ℝ} {s : ℕ} {β φ : ℝ}
  {I : Ops.Interp O Q ℝ} (h : ShiftedQR.IsRandomSmallEig law s β φ I) {d : ℕ} {w o : ℕ × ℕ}
  {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {B : Matrix (Fin d) (Fin d) ℂ} (hH : HoldsMatrix w B μ.store)
  (hl : μ.Live [w, o]) (hroom : o.2 + 2 * d ≤ μ.store.len o.1) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.smallEigLeaf (Ops.Env.frame [d] [w, o])
    (Ops.Store.inBlock o.1 o.2 (2 * d))
    (fun μ' ↦ ∃ ys, μ'.store.readBlock o.1 o.2 (2 * d) = some ys) μ

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedRegularizeTermination.