NLA-lib Explorer

NLAlib.SmallEig.smallEig_relative

Library · theorem

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

Standard rounding Random tape

The small-eigenvalue solver, relative form ([BanksGarzaVargasSrivastava2025, Theorem 1.1], as printed: the error relative to \|\mathbf{M}\|_2). With the hypotheses on the machine, the streams and the tails of NLAlib.SmallEig.smallEig_measureReal_not_spectrum_le written out below: let n + 1 \le n_{\max}, \mathbf{M} of order n + 1, c \ge 1 and \Sigma > 0 with \|\mathbf{M}\|_2 \le \Sigma \le c\|\mathbf{M}\|_2, 0 < \varepsilon \le 1, 0 < \varphi \le 1, and \boldsymbol{u} \le \boldsymbol{u}_{\mathrm{SmallEig}} at the absolute error \varepsilon\Sigma/c. Then from a memory holding \mathbf{M} and the words at \delta = \varepsilon\Sigma/c, \mathbb{P}\bigl[\mathsf{smallEigProg}(\mathbf{M}) \text{ fails, or writes outside its output, or lists no } \operatorname{spec}(\mathbf{M} + \mathbf{E}),\ \|\mathbf{E}\|_2 \le \varepsilon\|\mathbf{M}\|_2\bigr] \le \varphi\,. [BanksGarzaVargasSrivastava2025, Theorem 1.1]; the bound \Sigma of the norm is an input there too (its errata P9, N4). Result: small-eig-backward-error

NLAlib.SmallEig.smallEig_relative {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
  [Ops.Has Ops.SampleOp O] [Ops.Has ShiftedQR.DiskSampleOp 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) {nmax : ℕ} (hn : n + 1 ≤ nmax)
  {M : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {S c ε φ : ℝ} (hS0 : 0 < S) (hMS : specNorm M ≤ S)
  (hc : 1 ≤ c) (hSM : S ≤ c * specNorm M) (hε : 0 < ε) (hε1 : ε ≤ 1) (hφ : 0 < φ) (hφ1 : φ ≤ 1)
  (hu : u ≤ SmallEig.uSmallEig nmax S (ε * S / c) φ c₁ c₂) {w q o : ℕ × ℕ} {μ : Ops.Mem ℝ}
  (hin : SmallEig.SmallEigInput nmax S (ε * S / c) φ c₁ c₂ w q o M μ) {Ω : Type} [MeasurableSpace Ω]
  {P : Measure Ω} {ξ : Ω → Ops.Tape ℝ} (hξ : Ops.IsTapeLaw law P ξ) :
  P.real
      {ω |
        ¬Ops.Writes Ops.Mode.total I (ξ ω) (SmallEig.smallEigProg sG)
            (Ops.Env.frame (SmallEig.smallEigDims n nmax S (ε * S / c) φ c₁ c₂) [w, q, w, o])
            (Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))) ⊔
              Ops.Store.inBlock o.1 o.2 (2 * ((n + 1) * (n + 1))))
            (SmallEig.SmallEigSpectrum w o M (ε * specNorm M)) μ} ≤
    φ

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.Theorems.