NLA-lib Explorer

Small-eigenvalue solver (BGS III): forward error

Library · Result group

Theorem (SmallEig.smallEig_measureReal_not_forward_le_unconditional). The forward error on one input, unconditional. The unconditional form of NLAlib.SmallEig.smallEig_measureReal_not_forward_le ([BanksGarzaVargasSrivastava2025, Corollary 1.3]): the eigenvalue-gap and eigenvector-condition tails of a complex Ginibre perturbation are proved, at the records NLAlib.ginibreGapTail <!-- value ginibreGapTail --> (2048e, 11/3, 2/3, 2) and NLAlib.ginibreConditionTail <!-- value ginibreConditionTail --> (128e, 3, 2, 2).

Headline Standard rounding Random tape

Lean statement and details
NLAlib.SmallEig.smallEig_measureReal_not_forward_le_unconditional {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 : ℝ} (hS : Ops.IsScalar Mch I)
  (hM : Ops.StdModel u id Mch) (hL : Ops.IsIndexLit Mch I) {kmax : ℕ}
  (hNat : Ops.IsExactNatLit id Mch kmax) (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) {S β φ : ℝ} (hβ : 0 < β) (hβS : β ≤ S) (hφ : 0 < φ) (hφ1 : φ ≤ 1)
  (hu : u ≤ SmallEig.uSmallEigForward kmax S β φ ginibreGapTail ginibreConditionTail) {n : ℕ}
  (hn : n + 1 ≤ kmax) {M : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} (hMS : specNorm M ≤ S)
  {w q o : ℕ × ℕ} {μ : Ops.Mem ℝ}
  (hin :
    SmallEig.SmallEigInput kmax S (SmallEig.forwardBackwardError kmax S β) φ ginibreGapTail
      ginibreConditionTail 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 kmax S (SmallEig.forwardBackwardError kmax S β) φ
                ginibreGapTail ginibreConditionTail)
              [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))))
            (fun μ' ↦
              ∃ Tb ev,
                HoldsMatrix w Tb μ'.store ∧
                  IsEigenvalueListing M ev ∧ ∀ (i : Fin (n + 1)), ‖Tb i i - ev i‖ ≤ β)
            μ} ≤
    φ

Full source on GitHub

Copy link

Other forms

Theorem (SmallEig.smallEig_measureReal_not_forward_le). The forward error on one input ([BanksGarzaVargasSrivastava2025, Corollary 1.3]): with the hypotheses on the machine, the streams and the tails written out in NLAlib.SmallEig.smallEigProg_pwrites (standard model at \boldsymbol{u} \le \boldsymbol{u}^{\mathrm{fwd}}_{\mathrm{SmallEig}}, exact literals up to k_{\max}, a measurable tape-local interpretation, the uniform and Gaussian streams, the tails with \mathbf{b}_1, \mathbf{b}_2 > 0): for \mathbf{M} of order n + 1 \le k_{\max} with \|\mathbf{M}\|_2 \le \Sigma, 0 < \beta \le \Sigma and 0 < \varphi \le 1, from a memory holding \mathbf{M} and the words NLAlib.SmallEig.smallEigForwardParams, \mathbb{P}\bigl[\mathsf{smallEigProg}(\mathbf{M}) \text{ fails, or writes outside its output, or lists no } \boldsymbol{\mu} \text{ with } \lvert\mu_i - \lambda_i\rvert \le \beta\bigr] \le \varphi for a listing \boldsymbol{\lambda} of the eigenvalues of \mathbf{M}.

Standard rounding Random tape

Lean statement and details
NLAlib.SmallEig.smallEig_measureReal_not_forward_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 : ℝ}
  (hS : Ops.IsScalar Mch I) (hM : Ops.StdModel u id Mch) (hL : Ops.IsIndexLit Mch I) {kmax : ℕ}
  (hNat : Ops.IsExactNatLit id Mch kmax) (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) {S β φ : ℝ} (hβ : 0 < β)
  (hβS : β ≤ S) (hφ : 0 < φ) (hφ1 : φ ≤ 1) (hu : u ≤ SmallEig.uSmallEigForward kmax S β φ c₁ c₂)
  {n : ℕ} (hn : n + 1 ≤ kmax) {M : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} (hMS : specNorm M ≤ S)
  {w q o : ℕ × ℕ} {μ : Ops.Mem ℝ}
  (hin : SmallEig.SmallEigInput kmax S (SmallEig.forwardBackwardError kmax 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 kmax S (SmallEig.forwardBackwardError kmax 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))))
            (fun μ' ↦
              ∃ Tb ev,
                HoldsMatrix w Tb μ'.store ∧
                  IsEigenvalueListing M ev ∧ ∀ (i : Fin (n + 1)), ‖Tb i i - ev i‖ ≤ β)
            μ} ≤
    φ

Full source on GitHub

Copy link