NLA-lib Explorer

NLAlib.SmallEig.smallEigDecoupler_rhess_pwrites

Library · theorem

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

Standard rounding

RHess inside the decoupler, with its log ([BanksGarzaVargasSrivastava2025, Proposition 5.3] 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_l \ge n, of norm at most N \le 2\Sigma in the class (2B_c, g_c/2), and an empty log with room for n slots of at least n entries, RHess closes n slots Ls (planes below n) and stores a block in NLAlib.SmallEig.SmallEigRHessClass by the unitary of Ls with the error 200(n + 1)^2\boldsymbol{u}N, 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_rhess_pwrites {O Q : Type} [Ops.Has Ops.ScalarOp O]
  [Ops.Has Ops.IndexOp O] [Ops.Has Ops.SampleOp 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)
  (hzero : M.lit 0 = 0) (hC : Ops.IsCmp id I) (hL : Ops.IsIndexLit M I) (hSmp : Ops.IsSample I)
  {law : ℕ → Measure ℝ} {sG : ℕ} (hG : law sG = gaussianReal 0 1) {c₁ c₂ : PolyLogTail}
  (hb₁ : 0 < c₁.b) (hb₂ : 0 < c₂.b) {nmax : ℕ} (hn : 1 ≤ nmax) {nl : ℕ}
  (hNat : Ops.IsExactNatLit id M nl) {S δ φ : ℝ} (hδ : 0 < δ) (hδS : δ ≤ S) (hφ : 0 < φ)
  (hφ1 : φ ≤ 1) (hu : u ≤ SmallEig.uSmallEig nmax S δ φ c₁ c₂) {n : ℕ} (hn1 : 1 ≤ n)
  (hnn : n ≤ nmax) (hnl : n ≤ nl) {N : ℝ} {H V : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
  {d : Fin (n + 1) → ℂ} (hN : N ≤ 2 * S) (hHN : specNorm H ≤ N) (hV : IsUnit V)
  (hHV : H * V = V * diagonal d)
  (hκ : pseudoConditionNumber V ≤ 2 * SmallEig.smallEigCondition nmax S δ φ c₂)
  (hgap :
    ∀ (i j : Fin (n + 1)), i ≠ j → SmallEig.smallEigSeparation nmax S δ φ c₁ / 2 ≤ ‖d i - d j‖)
  {w lg : ℕ × ℕ} {ns ws : ℕ} (hns : n ≤ ns) (hws : n ≤ ws) :
  Ops.PWrites law I (SmallEig.rhess sG) (Ops.Env.frame [n + 1, ws, 0] [w, w, lg])
    (Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))) ⊔
      Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * ws)))
    (fun μ ↦
      HoldsMatrix w H μ.store ∧
        μ.Live [w] ∧ HoldsSlottedLog lg ns ws [] [] μ.store ∧ μ.Live [lg] ∧ lg.1 ≠ w.1)
    (fun μ' ↦
      ∃ H₁ Ls,
        HoldsMatrix w H₁ μ'.store ∧
          Ls.length = n ∧
            (∀ e ∈ slotEntries ws Ls, e.1 + 1 < n + 1) ∧
              HoldsSlottedLog lg ns ws Ls [] μ'.store ∧
                SmallEig.SmallEigRHessClass nmax S δ φ c₁ c₂ H (200 * (↑n + 1) ^ 2 * u * N)
                  (givensLog (n + 1) (slotEntries ws Ls)) H₁)
    (SmallEig.smallEigDecouplerFailure nmax φ / 2)

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.Decoupler.