NLA-lib Explorer

Rounded shifted QR with the BGS III program: eigenvalues

Library · Result group

Theorem (ShiftedQR.roundedShQRSmallEig_measureReal_not_spectrum_le_unconditional). The rounded shifted QR algorithm with no oracle, unconditional. The unconditional form of NLAlib.ShiftedQR.roundedShQRSmallEig_measureReal_not_spectrum_le ([BanksGarzaVargasSrivastava2022, Theorem 6.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.ShiftedQR.roundedShQRSmallEig_measureReal_not_spectrum_le_unconditional {O Q : Type}
  [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O] [Ops.Has ShiftedQR.DiskSampleOp O]
  [Ops.Has Ops.SampleOp 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) {H V : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
  {d : Fin (n + 1) → ℂ} {k : ℕ} {B Γ S δ φ : ℝ} (hHess : IsUpperHessenberg H) (hV : IsUnit V)
  (hHV : H * V = V * diagonal d) (hκ : pseudoConditionNumber V ≤ B) (hΓ : 0 < Γ)
  (hgap : ∀ (i j : Fin (n + 1)), i ≠ j → Γ ≤ ‖d i - d j‖) (hHS : specNorm H ≤ S) (hδ : 0 < δ)
  (hδS : δ ≤ S) (hφ : 0 < φ) (hφ1 : φ ≤ 1) (hk : k = ShiftedQR.shqrDegree (4 * B))
  (hu : u ≤ ShiftedQR.uShQRSchur n k B Γ S δ φ ginibreGapTail ginibreConditionTail)
  {a t p out f : ℕ × ℕ} {μ : Ops.Mem ℝ}
  (hin :
    ShiftedQR.ShQRSmallEigInput k B Γ S δ φ ginibreGapTail ginibreConditionTail a t p out f H μ)
  {Ω : Type} [MeasurableSpace Ω] {P : Measure Ω} {ξ : Ω → Ops.Tape ℝ} (hξ : Ops.IsTapeLaw law P ξ) :
  P.real
      {ω' |
        ¬Ops.Writes Ops.Mode.total I (ξ ω') (ShiftedQR.roundedShQRSmallEig sG)
            (Ops.Env.frame
              (ShiftedQR.shqrSmallEigDims n k B Γ S δ φ ginibreGapTail ginibreConditionTail)
              [a, t, p, out, a, out, f])
            (ShiftedQR.shqrFp n a out f) (ShiftedQR.ShQRSpectrum a out f H δ) μ} ≤
    φ

Full source on GitHub

Copy link

Other forms

Theorem (ShiftedQR.roundedShQRSmallEig_measureReal_not_spectrum_le). The rounded shifted QR algorithm with no oracle ([BanksGarzaVargasSrivastava2022, Theorem 6.3] with the quantifiers of Theorem 1.4, corrected; SmallEig by [BanksGarzaVargasSrivastava2025, Theorem 1.1 and Corollary 1.3]). Let the machine have the standard model at \boldsymbol{u} \le \boldsymbol{u}_0, index literals, exact natural literals up to n + 1, exact toNat and comparisons, a measurable interpretation reading the tape only in its windows whose draws 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 \mathbf{H} of order n + 1 be upper Hessenberg, \mathbf{H}\mathbf{V} = \mathbf{V}\operatorname{diag}(\mathbf{d}) with \|\mathbf{V}\|_2\|\mathbf{V}^{-1}\|_2 \le B and eigenvalues separated by \Gamma > 0, \|\mathbf{H}\|_2 \le \Sigma, 0 < \delta \le \Sigma, 0 < \varphi \le 1 and k the degree of (eqn:setk) at 4B. Then from a memory holding \mathbf{H}, the deflation threshold word and the words of NLAlib.ShiftedQR.shqrSmallEigParams, under a random tape with the stream laws, \mathbb{P}\bigl[\mathsf{roundedShQRSmallEig}(\mathbf{H}) \text{ fails, or writes outside the matrix, the output and the failure word, or lists no } \operatorname{spec}(\mathbf{H} + \mathbf{E}),\ \|\mathbf{E}\|_2 \le \delta\bigr] \le \varphi\,. Here \boldsymbol{u}_0 is NLAlib.ShiftedQR.uShQRSchur. [BanksGarzaVargasSrivastava2022, Theorem 6.3]; there SmallEig is an oracle.

Standard rounding Random tape

Notes

The run terminates on every tape (NLAlib.ShiftedQR.roundedShQRSmallEig_terminates). General form: NLAlib.ShiftedQR.roundedShQRWith_measureReal_not_spectrum_le.

Lean statement and details
NLAlib.ShiftedQR.roundedShQRSmallEig_measureReal_not_spectrum_le {O Q : Type}
  [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O] [Ops.Has ShiftedQR.DiskSampleOp O]
  [Ops.Has Ops.SampleOp 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)
  {H V : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {d : Fin (n + 1) → ℂ} {k : ℕ} {B Γ S δ φ : ℝ}
  (hHess : IsUpperHessenberg H) (hV : IsUnit V) (hHV : H * V = V * diagonal d)
  (hκ : pseudoConditionNumber V ≤ B) (hΓ : 0 < Γ)
  (hgap : ∀ (i j : Fin (n + 1)), i ≠ j → Γ ≤ ‖d i - d j‖) (hHS : specNorm H ≤ S) (hδ : 0 < δ)
  (hδS : δ ≤ S) (hφ : 0 < φ) (hφ1 : φ ≤ 1) (hk : k = ShiftedQR.shqrDegree (4 * B))
  (hu : u ≤ ShiftedQR.uShQRSchur n k B Γ S δ φ c₁ c₂) {a t p out f : ℕ × ℕ} {μ : Ops.Mem ℝ}
  (hin : ShiftedQR.ShQRSmallEigInput k B Γ S δ φ c₁ c₂ a t p out f H μ) {Ω : Type}
  [MeasurableSpace Ω] {P : Measure Ω} {ξ : Ω → Ops.Tape ℝ} (hξ : Ops.IsTapeLaw law P ξ) :
  P.real
      {ω' |
        ¬Ops.Writes Ops.Mode.total I (ξ ω') (ShiftedQR.roundedShQRSmallEig sG)
            (Ops.Env.frame (ShiftedQR.shqrSmallEigDims n k B Γ S δ φ c₁ c₂)
              [a, t, p, out, a, out, f])
            (ShiftedQR.shqrFp n a out f) (ShiftedQR.ShQRSpectrum a out f H δ) μ} ≤
    φ

Full source on GitHub

Copy link

Theorem (ShiftedQR.roundedShQRSmallEig_relative). The algorithm with no oracle, relative form ([BanksGarzaVargasSrivastava2022, Theorem 6.3], the error relative to \|\mathbf{H}\|_2): with the machine, streams and tails of NLAlib.ShiftedQR.roundedShQRSmallEig_measureReal_not_spectrum_le written out in the signature: let \mathbf{H} of order n + 1 be upper Hessenberg, in the class (B, \Gamma), with \Sigma > 0, \|\mathbf{H}\|_2 \le \Sigma \le c\|\mathbf{H}\|_2, c \ge 1, 0 < \delta \le 1, 0 < \varphi \le 1, k the degree of (eqn:setk) at 4B, and the words and the precision at the absolute error \delta\Sigma/c. Then the probability that the run fails, writes outside the matrix, the output and the failure word, or lists no spectrum of \mathbf{H} + \mathbf{E} with \|\mathbf{E}\|_2 \le \delta\|\mathbf{H}\|_2 is at most \varphi.

Standard rounding Random tape

Lean statement and details
NLAlib.ShiftedQR.roundedShQRSmallEig_relative {O Q : Type} [Ops.Has Ops.ScalarOp O]
  [Ops.Has Ops.IndexOp O] [Ops.Has ShiftedQR.DiskSampleOp O] [Ops.Has Ops.SampleOp 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)
  {H V : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {d : Fin (n + 1) → ℂ} {k : ℕ} {B Γ S c δ φ : ℝ}
  (hHess : IsUpperHessenberg H) (hV : IsUnit V) (hHV : H * V = V * diagonal d)
  (hκ : pseudoConditionNumber V ≤ B) (hΓ : 0 < Γ)
  (hgap : ∀ (i j : Fin (n + 1)), i ≠ j → Γ ≤ ‖d i - d j‖) (hS0 : 0 < S) (hHS : specNorm H ≤ S)
  (hSc : S ≤ c * specNorm H) (hc : 1 ≤ c) (hδ : 0 < δ) (hδ1 : δ ≤ 1) (hφ : 0 < φ) (hφ1 : φ ≤ 1)
  (hk : k = ShiftedQR.shqrDegree (4 * B))
  (hu : u ≤ ShiftedQR.uShQRSchur n k B Γ S (δ * S / c) φ c₁ c₂) {a t p out f : ℕ × ℕ}
  {μ : Ops.Mem ℝ} (hin : ShiftedQR.ShQRSmallEigInput k B Γ S (δ * S / c) φ c₁ c₂ a t p out f H μ)
  {Ω : Type} [MeasurableSpace Ω] {P : Measure Ω} {ξ : Ω → Ops.Tape ℝ} (hξ : Ops.IsTapeLaw law P ξ) :
  P.real
      {ω' |
        ¬Ops.Writes Ops.Mode.total I (ξ ω') (ShiftedQR.roundedShQRSmallEig sG)
            (Ops.Env.frame (ShiftedQR.shqrSmallEigDims n k B Γ S (δ * S / c) φ c₁ c₂)
              [a, t, p, out, a, out, f])
            (ShiftedQR.shqrFp n a out f) (ShiftedQR.ShQRSpectrum a out f H (δ * specNorm H)) μ} ≤
    φ

Full source on GitHub

Copy link

Theorem (ShiftedQR.roundedShQRSmallEig_relative_unconditional). The algorithm with no oracle, relative form, unconditional. The unconditional form of NLAlib.ShiftedQR.roundedShQRSmallEig_relative ([BanksGarzaVargasSrivastava2022, Theorem 6.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).

Standard rounding Random tape

Lean statement and details
NLAlib.ShiftedQR.roundedShQRSmallEig_relative_unconditional {O Q : Type} [Ops.Has Ops.ScalarOp O]
  [Ops.Has Ops.IndexOp O] [Ops.Has ShiftedQR.DiskSampleOp O] [Ops.Has Ops.SampleOp 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) {H V : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
  {d : Fin (n + 1) → ℂ} {k : ℕ} {B Γ S c δ φ : ℝ} (hHess : IsUpperHessenberg H) (hV : IsUnit V)
  (hHV : H * V = V * diagonal d) (hκ : pseudoConditionNumber V ≤ B) (hΓ : 0 < Γ)
  (hgap : ∀ (i j : Fin (n + 1)), i ≠ j → Γ ≤ ‖d i - d j‖) (hS0 : 0 < S) (hHS : specNorm H ≤ S)
  (hSc : S ≤ c * specNorm H) (hc : 1 ≤ c) (hδ : 0 < δ) (hδ1 : δ ≤ 1) (hφ : 0 < φ) (hφ1 : φ ≤ 1)
  (hk : k = ShiftedQR.shqrDegree (4 * B))
  (hu : u ≤ ShiftedQR.uShQRSchur n k B Γ S (δ * S / c) φ ginibreGapTail ginibreConditionTail)
  {a t p out f : ℕ × ℕ} {μ : Ops.Mem ℝ}
  (hin :
    ShiftedQR.ShQRSmallEigInput k B Γ S (δ * S / c) φ ginibreGapTail ginibreConditionTail a t p out
      f H μ)
  {Ω : Type} [MeasurableSpace Ω] {P : Measure Ω} {ξ : Ω → Ops.Tape ℝ} (hξ : Ops.IsTapeLaw law P ξ) :
  P.real
      {ω' |
        ¬Ops.Writes Ops.Mode.total I (ξ ω') (ShiftedQR.roundedShQRSmallEig sG)
            (Ops.Env.frame
              (ShiftedQR.shqrSmallEigDims n k B Γ S (δ * S / c) φ ginibreGapTail
                ginibreConditionTail)
              [a, t, p, out, a, out, f])
            (ShiftedQR.shqrFp n a out f) (ShiftedQR.ShQRSpectrum a out f H (δ * specNorm H)) μ} ≤
    φ

Full source on GitHub

Copy link