NLA-lib Explorer

NLAlib.SmallEig.ginibrePerturb_pwrites

Library · theorem

Standard rounding

The perturbation is in the class ([BanksGarzaVargasSrivastava2025, Theorem 1.1], the perturbation step, with Lemma 6.5 replaced by the class): on a scalar machine with the standard model at \boldsymbol{u} \le NLAlib.SmallEig.uSmallEigReduce, index literals, a measurable interpretation reading the tape only in its windows whose draws store the tape entry, a stream sG with the standard real Gaussian law, and the random-matrix tails c_1 (gap) and c_2 (condition) with \mathbf{b}_1, \mathbf{b}_2 > 0: let 1 \le n_{\max}, 0 < \delta \le \Sigma, 0 < \varphi \le 1, \mathbf{A} of order n + 1 \le n_{\max} with \|\mathbf{A}\|_2 \le \Sigma, stored at a, and the words NLAlib.SmallEig.smallEigParams at q, apart. Then, except with probability at most 3\varphi/4, the run writes only the matrix and stores \widehat{\mathbf{A}} = \mathbf{A} + \mathbf{E} with \|\mathbf{E}\|_2 \le \delta/2 and a diagonalization \mathbf{V}\operatorname{diag}(\mathbf{d})\mathbf{V}^{-1} with \|\mathbf{V}\|_2\|\mathbf{V}^{-1}\|_2 \le 2/t_2 and eigenvalues separated by t_1/2, for t_1, t_2 = NLAlib.SmallEig.smallEigGap, NLAlib.SmallEig.smallEigCond. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.

NLAlib.SmallEig.ginibrePerturb_pwrites {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
  [Ops.Has Ops.SampleOp O] {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)
  (hSmp : Ops.IsSample I) {law : ℕ → Measure ℝ} {sG : ℕ} (hG : law sG = gaussianReal 0 1)
  {c₁ c₂ : PolyLogTail} (hA : c₁.BoundsGinibreGap) (hB : c₂.BoundsGinibreCondition) (hb₁ : 0 < c₁.b)
  (hb₂ : 0 < c₂.b) {nmax : ℕ} {S δ φ : ℝ} (hδ : 0 < δ) (hδS : δ ≤ S) (hφ : 0 < φ) (hφ1 : φ ≤ 1)
  (hu : u ≤ SmallEig.uSmallEigReduce nmax S δ φ c₁ c₂) {n : ℕ} (hn : n + 1 ≤ nmax)
  {A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} (hAS : specNorm A ≤ S) {a q : ℕ × ℕ} :
  Ops.PWrites law I (SmallEig.ginibrePerturb sG)
    (Ops.Env.frame [n + 1, (SmallEig.smallEigParams nmax S δ φ c₁ c₂).length] [a, q, a])
    (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))))
    (fun μ ↦
      HoldsMatrix a A μ.store ∧
        μ.store.readBlock q.1 q.2 (SmallEig.smallEigParams nmax S δ φ c₁ c₂).length =
            some (SmallEig.smallEigParams nmax S δ φ c₁ c₂) ∧
          μ.Live [a, q] ∧
            Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))))
              (Ops.Store.inBlock q.1 q.2 (SmallEig.smallEigParams nmax S δ φ c₁ c₂).length))
    (fun μ' ↦
      ∃ E V d,
        HoldsMatrix a (A + E) μ'.store ∧
          specNorm E ≤ δ / 2 ∧
            IsUnit V ∧
              (A + E) * V = V * diagonal d ∧
                pseudoConditionNumber V ≤ 2 / SmallEig.smallEigCond nmax S δ φ c₂ ∧
                  ∀ (i j : Fin (n + 1)),
                    i ≠ j → SmallEig.smallEigGap nmax S δ φ c₁ / 2 ≤ ‖d i - d j‖)
    (3 * φ / 4)

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.Perturb.