NLA-lib Explorer

NLAlib.SmallEig.smallEig_measureReal_not_spectrum_le

Library · theorem

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

Standard rounding Random tape

The small-eigenvalue solver ([BanksGarzaVargasSrivastava2025, Theorem 1.1], corrected: \Sigma an input, the base case of order 1, every loop capped, the error absolute). Let the machine have the standard model at \boldsymbol{u} \le \boldsymbol{u}_{\mathrm{SmallEig}}, index literals, exact natural literals up to n + 1, exact toNat and comparisons, a measurable interpretation reading the tape only in its windows, draws that store the tape entry, a stream s_U uniform on [0, 1] with an exact polar disk sampler on it, and a stream s_G with the standard real Gaussian law; let the eigenvalue gap and the eigenvector condition of a complex Ginibre perturbation have the tails c_1, c_2 with \mathbf{b}_1, \mathbf{b}_2 > 0. Let n + 1 \le n_{\max}, \mathbf{M} of order n + 1 with \|\mathbf{M}\|_2 \le \Sigma, 0 < \delta \le \Sigma and 0 < \varphi \le 1. Then from a memory holding \mathbf{M} and the words of NLAlib.SmallEig.smallEigParams, under a random tape with the stream laws, \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 \delta\bigr] \le \varphi\,. Here \boldsymbol{u}_{\mathrm{SmallEig}} is NLAlib.SmallEig.uSmallEig at n_{\max}. [BanksGarzaVargasSrivastava2025, Theorem 1.1]; there \Sigma is not an input (its errata P9, N4) and the error is relative.

Result: small-eig-backward-error

Notes

The run terminates on every tape (NLAlib.SmallEig.smallEigProg_terminates). The failure is split in four: the gap, the condition, the norm of the perturbation, and the worklist.

NLAlib.SmallEig.smallEig_measureReal_not_spectrum_le {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 δ φ : ℝ} (hMS : specNorm M ≤ S) (hδ : 0 < δ)
  (hδS : δ ≤ S) (hφ : 0 < φ) (hφ1 : φ ≤ 1) (hu : u ≤ SmallEig.uSmallEig nmax S δ φ c₁ c₂)
  {w q o : ℕ × ℕ} {μ : Ops.Mem ℝ} (hin : SmallEig.SmallEigInput nmax S δ φ 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 δ φ 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 δ) μ} ≤
    φ

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.Theorems.