NLA-lib Explorer

NLAlib.SmallEig.smallEigProg_pwrites

Library · theorem

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

Standard rounding

The small-eigenvalue program as a probabilistic block ([BanksGarzaVargasSrivastava2025, Theorem 1.1]): let the machine have the standard model at \boldsymbol{u} \le \boldsymbol{u}_{\mathrm{SmallEig}} (NLAlib.SmallEig.uSmallEig at n_{\max}), 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 (NLAlib.SmallEig.SmallEigInput), except with probability at most \varphi, the run of NLAlib.SmallEig.smallEigProg writes only its output and lists the spectrum of \mathbf{M} + \mathbf{E} for some \|\mathbf{E}\|_2 \le \delta (NLAlib.SmallEig.SmallEigSpectrum). The order 1 is copied; otherwise the perturbation (NLAlib.SmallEig.ginibrePerturb_pwrites, 3\varphi/4), the reduction (NLAlib.SmallEig.smallEigProg_reduce_writes) and the core (NLAlib.SmallEig.smallEigProg_core_pwrites, \varphi/4) compose by NLAlib.Ops.PWrites.seq; the backward errors \delta/2 + \delta/8 + \delta/4 add.

Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.

NLAlib.SmallEig.smallEigProg_pwrites {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.PWrites law 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.SmallEigInput nmax S δ φ c₁ c₂ w q o M) (SmallEig.SmallEigSpectrum w o M δ) φ

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.ProgramSchur.