NLA-lib Explorer

NLAlib.ShiftedQR.roundedShQRSmallEig_hermitian

Library · theorem

This statement changed in the recorded rename: 2026-11-schur.

Standard rounding Random tape

The algorithm with no oracle on Hermitian inputs ([BanksGarzaVargasSrivastava2022, Theorem 6.3], at the condition 1): with the machine, streams and tails written out in the signature: let \mathbf{H} of order n + 1 be upper Hessenberg and Hermitian with eigenvalues separated by \Gamma > 0, \|\mathbf{H}\|_2 \le \Sigma, 0 < \delta \le \Sigma, 0 < \varphi \le 1, k the degree of (eqn:setk) at 4, and the words and the precision at B = 1. Then the probability that the run fails, writes outside the matrix, the output and the failure word, or lists no spectrum of \mathbf{H} + \mathbf{E} with \|\mathbf{E}\|_2 \le \delta is at most \varphi.

NLAlib.ShiftedQR.roundedShQRSmallEig_hermitian {O Q : Type} [Ops.Has Ops.ScalarOp O]
  [Ops.Has Ops.IndexOp O] [Ops.Has ShiftedQR.DiskSampleOp O] [Ops.Has Ops.SampleOp O]
  [Ops.Has Ops.CmpTst Q] [Ops.Has Ops.IdxTst Q] {Mch : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ}
  {n : ℕ} (hS : Ops.IsScalar Mch I) (hM : Ops.StdModel u id Mch) (hL : Ops.IsIndexLit Mch I)
  (hNat : Ops.IsExactNatLit id Mch (n + 1)) (hQ : Ops.IsToNat id I) (hC : Ops.IsCmp id I)
  (hI : I.IsMeasurable) {win : O → List ℕ → ℕ} (hloc : ∀ (o : O), I.TapeLocal o (win o))
  (hSmp : Ops.IsSample I) {law : ℕ → Measure ℝ} {sU sG : ℕ}
  (hDisk : ShiftedQR.IsPolarDiskSampler sU I) (hU : law sU = ℙ.restrict (Set.Icc 0 1))
  (hG : law sG = gaussianReal 0 1) {c₁ c₂ : PolyLogTail} (hA : c₁.BoundsGinibreGap)
  (hB : c₂.BoundsGinibreCondition) (hb₁ : 0 < c₁.b) (hb₂ : 0 < c₂.b)
  {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {k : ℕ} {Γ S δ φ : ℝ} (hHess : IsUpperHessenberg H)
  (hH : H.IsHermitian) (hΓ : 0 < Γ)
  (hgap : ∀ (i j : Fin (n + 1)), i ≠ j → Γ ≤ |hH.eigenvalues i - hH.eigenvalues j|)
  (hHS : specNorm H ≤ S) (hδ : 0 < δ) (hδS : δ ≤ S) (hφ : 0 < φ) (hφ1 : φ ≤ 1)
  (hk : k = ShiftedQR.shqrDegree 4) (hu : u ≤ ShiftedQR.uShQRSchur n k 1 Γ S δ φ c₁ c₂)
  {a t p out f : ℕ × ℕ} {μ : Ops.Mem ℝ}
  (hin : ShiftedQR.ShQRSmallEigInput k 1 Γ S δ φ c₁ c₂ a t p out f H μ) {Ω : Type}
  [MeasurableSpace Ω] {P : Measure Ω} {ξ : Ω → Ops.Tape ℝ} (hξ : Ops.IsTapeLaw law P ξ) :
  P.real
      {ω' |
        ¬Ops.Writes Ops.Mode.total I (ξ ω') (ShiftedQR.roundedShQRSmallEig sG)
            (Ops.Env.frame (ShiftedQR.shqrSmallEigDims n k 1 Γ S δ φ c₁ c₂)
              [a, t, p, out, a, out, f])
            (ShiftedQR.shqrFp n a out f) (ShiftedQR.ShQRSpectrum a out f H δ) μ} ≤
    φ

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedSmallEig.