NLA-lib Explorer

NLAlib.ShiftedQR.IsRandomSmallEig.smallEigLeaf_pwrites

Library · theorem

A randomized small-eigenvalue kernel with its forward error ([BanksGarzaVargasSrivastava2022, Definition 1.2]): if the interpretation's smallEig is a randomized kernel with forward error \beta and failure probability \varphi on the stream s (NLAlib.ShiftedQR.IsRandomSmallEig), the leaf routine that calls it on an upper Hessenberg \mathbf{B} of order d writes only its output and, except with probability at most \varphi, stores values within \beta of a listing of the eigenvalues of \mathbf{B} with multiplicity. Stated in operand form; it is a statement about a tree, not the contract of a routine. An end statement in operand form: no other declaration of the library is proved from it.

NLAlib.ShiftedQR.IsRandomSmallEig.smallEigLeaf_pwrites {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 : ℕ × ℕ}
  (B : Matrix (Fin d) (Fin d) ℂ) (hB : IsUpperHessenberg B) :
  Ops.PWrites law I ShiftedQR.smallEigLeaf (Ops.Env.frame [d] [w, o])
    (Ops.Store.inBlock o.1 o.2 (2 * d))
    (fun μ ↦
      HoldsMatrix w B μ.store ∧
        μ.Live [w, o] ∧
          o.2 + 2 * d ≤ μ.store.len o.1 ∧
            Ops.Fp.Disj (Ops.Store.inBlock w.1 w.2 (2 * (d * d)))
              (Ops.Store.inBlock o.1 o.2 (2 * d)))
    (fun μ' ↦
      ∃ roots ev,
        IsEigenvalueListing B ev ∧
          (∀ (i : Fin d), ‖roots i - ev i‖ ≤ β) ∧ HoldsMatrix o (of fun i x ↦ roots i) μ'.store)
    φ

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedRegularize.