NLA-lib Explorer

NLAlib.SmallEig.smallEigDecoupler_oneEig_pwrites

Library · theorem

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

Standard rounding

OneEig inside the decoupler ([BanksGarzaVargasSrivastava2025, Proposition 3.5] at the parameters of NLAlib.SmallEig.smallEigParams): on a block of order n + 1, 1 \le n \le n_{\max} with exact natural literals up to n, after RHess (upper Hessenberg, condition at most 4B_c, separation g_c/4, last-row weights at least p, norm at most 2\Sigma(1 + 200(n_{\max} + 1)^2\boldsymbol{u})), OneEig with the cap words m = 2^q, q, t sets the flag to 0 and stores a point at distance between \eta_1 and \beta' from the spectrum, except with probability at most \varphi_D/2. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.

NLAlib.SmallEig.smallEigDecoupler_oneEig_pwrites {O Q : Type} [Ops.Has Ops.ScalarOp O]
  [Ops.Has Ops.IndexOp O] [Ops.Has ShiftedQR.DiskSampleOp O] [Ops.Has Ops.CmpTst Q]
  {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ} (hS : Ops.IsScalar M I)
  (hM : Ops.StdModel u id M) (hL : Ops.IsIndexLit M I) (hC : Ops.IsCmp id I) (hI : I.IsMeasurable)
  {win : O → List ℕ → ℕ} (hloc : ∀ (o : O), I.TapeLocal o (win o)) {law : ℕ → Measure ℝ} {sU : ℕ}
  (hDisk : ShiftedQR.IsPolarDiskSampler sU I) (hU : law sU = ℙ.restrict (Set.Icc 0 1))
  {c₁ c₂ : PolyLogTail} (hb₁ : 0 < c₁.b) (hb₂ : 0 < c₂.b) {nmax : ℕ} (hn1 : 1 ≤ nmax) {S δ φ : ℝ}
  (hδ : 0 < δ) (hδS : δ ≤ S) (hφ : 0 < φ) (hφ1 : φ ≤ 1)
  (hu : u ≤ SmallEig.uSmallEig nmax S δ φ c₁ c₂) {n : ℕ} (hNat : Ops.IsExactNatLit id M n)
  (hn : 1 ≤ n) (hnn : n ≤ nmax) {H V : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {d : Fin (n + 1) → ℂ}
  (hH : IsUpperHessenberg H) (hV : IsUnit V) (hHV : H * V = V * diagonal d)
  (hκ : pseudoConditionNumber V ≤ 4 * SmallEig.smallEigCondition nmax S δ φ c₂)
  (hgap :
    ∀ (i j : Fin (n + 1)), i ≠ j → SmallEig.smallEigSeparation nmax S δ φ c₁ / 4 ≤ ‖d i - d j‖)
  (hw : ∀ (i : Fin (n + 1)), SmallEig.smallEigWeight nmax S δ φ c₂ ≤ lastRowWeights V i)
  (hHS : specNorm H ≤ 2 * S * (1 + 200 * (↑nmax + 1) ^ 2 * u)) {h qw lam f : ℕ × ℕ} :
  Ops.PWrites law I SmallEig.oneEig
    (Ops.Env.frame
      [n + 1, 2 ^ SmallEig.smallEigDegreeLog nmax S δ φ c₂,
        SmallEig.smallEigDegreeLog nmax S δ φ c₂, SmallEig.smallEigRounds nmax S δ φ c₁ c₂]
      [h, qw, lam, f])
    (Ops.Store.inBlock lam.1 lam.2 2 ⊔ Ops.Store.inBlock f.1 f.2 1)
    (SmallEig.OneEigInput H (SmallEig.smallEigParams nmax S δ φ c₁ c₂) h qw lam f)
    (fun μ' ↦
      μ'.store.get f.1 f.2 = some 0 ∧
        ∃ z,
          μ'.store.readBlock lam.1 lam.2 2 = some [z.re, z.im] ∧
            SmallEig.smallEigInnerRadius nmax S δ φ c₁ c₂ ≤ ⨅ i, ‖z - d i‖ ∧
              ⨅ i, ‖z - d i‖ ≤ SmallEig.smallEigAccuracy nmax S δ φ c₁ c₂)
    (SmallEig.smallEigDecouplerFailure nmax φ / 2)

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.Decoupler.