NLA-lib Explorer

Randomized shifted inverse iteration (BGS III)

Implementation of Inverse iteration

The library certifies the small-eigenvalue solver of Banks, Garza-Vargas and Srivastava, Global convergence of Hessenberg shifted QR III (Theorem 1.1, the algorithm Eig). The paper computes eigenvalues. The library's program computes a Schur pair of a complex matrix: an upper triangular \widehat{\mathbf{T}}_\mathbf{b} in the matrix buffer, whose diagonal holds the computed eigenvalues, and an accumulator \widehat{\mathbf{U}}_\mathbf{b}, with a backward error \delta and a failure probability \varphi over a random tape, in rounded arithmetic. It has no eigenvalue oracle: its primitives are scalar operations, comparisons, index operations and draws. It finds one eigenvalue at a time by shifted inverse iteration, carried out as repeated shifted QR steps with one shift, and deflates it.

The finite-precision shifted QR program (BGS II) runs this program as its small-block Schur solver, and so does BGS + Dense Schur (end-to-end).

Algorithm

The input is a complex matrix \mathbf{M} of order N, not necessarily Hessenberg. The program first regularizes it by a Gaussian perturbation. With high probability the perturbed matrix is diagonalizable, with a bounded eigenvector condition number and separated eigenvalues, and every later step relies on that. The program then deflates one eigenvalue at a time, using the worklist of the shifted QR program at bottom width k=1.

input: M of order N, overwritten; twelve parameter words Q; loop cap T
U_b := I
if N <= 1: keep the block; stop
W := M + fl(gamma / sqrt N) G        G complex Gaussian, from 2N^2 draws of the Gaussian stream
reduce W to upper Hessenberg form (rounded, bottom-up), logging the rotations; replay them on U_b
worklist at bottom width 1, threshold word Q[6]:
    a block of order 1: keep its entry on the diagonal
    a block of order d >= 2:
        RHess: draw a complex Gaussian direction g, rotate it to e_d by d - 1 rounded
            Givens rotations, and reduce to Hessenberg form again
        OneEig: from a uniform sample s of a disk of radius eta_2, for at most t rounds:
            estimate by DistSpec the distance to the spectrum of six perturbed points
            at distance tau around s, and move s to the best if its estimate is at most
            0.66 tau; stop when the estimate at s is at most 0.9 beta'
        Decouple: at most m_2 rounded shifted QR steps with the shift s, until the last
            subdiagonal entry passes the threshold
        replay the logged rotations on the couplings and on U_b
        write an exact 0 at the cut and split off the last row and column
output: T_b (upper triangular) in the matrix buffer, U_b; the eigenvalues are diag(T_b)
DistSpec(H, s): m = 2^q rounded shifted QR steps with the shift s; the product of the
    moduli of the last diagonal entries of their triangular factors; q square roots

RHess makes the weights of the last row of an eigenvector matrix large, which OneEig and Decouple need. The direction is a complex Gaussian vector applied by rotations; the paper uses a uniform vector on the sphere applied by a reflector. DistSpec estimates the distance to the spectrum within 10\%, because m shifted QR steps compute \|\mathbf{e}_n^{\mathsf{T}}(\mathbf{H}-s)^{-m}\|^{-1/m} approximately. This is inverse iteration.

Every loop is capped, by the words m,t,m_2\le T and by 2N rounds of the worklist, and the order-one blocks are a base case. So the run terminates on every tape (smallEigProg_terminates).

The twelve parameter words are computed by the library from the order bound n_{\max}, the norm bound \Sigma, the backward error \delta, the failure probability \varphi and the two tail records (smallEigParams). They are supplied as exact reals, and their computation is not charged.

Model of arithmetic

All statements on this page are for

Standard rounding

Definitions of the arithmetic models

The machine has the standard model with unit roundoff u and no overflow or underflow, index literals, exact natural literals up to n+1, exact natural conversion and exact comparisons. The tape has two streams: s_U, uniform on [0,1], read by the exact polar disk sampler (R\sqrt{t_0}\,e^{2\pi i t_1} from two entries), and s_G, standard real Gaussian, read by draws that store the tape entry. The drawn values are exact; the arithmetic after a draw is rounded. The interpretation is measurable and reads the tape only in the windows of its calls.

The probability bounds need tails for the eigenvalue gap and the eigenvector condition number of \mathbf{M}+\gamma n^{-1/2}\mathbf{G}. The library proves them with the records (2048e,11/3,2/3,2) and (128e,3,2,2) (see pseudospectral shattering), so the theorems below are unconditional. Each also has a general form with the records as hypotheses.

Precision. u\le u_{\mathrm{SmallEig}}, the minimum of five named per-block terms at n_{\max} (uSmallEig). For fixed tail records there are constants e_1,e_2 with

\log_2\frac1{u_{\mathrm{SmallEig}}}\le e_1\log_2^2Y+e_2,\qquad Y=\frac{4n_{\max}\Sigma}{\delta\varphi}.

This is logb_inv_uSmallEig_le: O(\log^2) bits, as in Theorem 1.1. The constants are not stated in closed form.

Operations and Storage

Definition (Certificate of the small-eigenvalue solver). The fixed program smallEigProgram, with unit costs and no oracle, succeeds on every admitted input, every interpretation of the model and every tape. It stays within the static budget, scratch and memory, writes only the matrix buffer and the accumulator, and leaves both stored. At the sizes (n,n_q,T), for a matrix of order n+1, n_q parameter words and the loop cap T, its work and span are at most

517058\,(n+1)^4(T+1)^2.

Lean statement and details

Uniform model Work: closed

NLAlib.SmallEig.smallEigAlgorithm (Mch : Ops.Machine ℝ) (nmax : ℕ) (c₁ c₂ : PolyLogTail)
  (admitted : ∃ d, SmallEig.SmallEigSizes Mch nmax c₁ c₂ d) (sU sG : ℕ) :
  Ops.Algorithm (SmallEig.smallEigModel (SmallEig.smallEigProblem Mch nmax c₁ c₂ admitted) Mch sU)
    (SmallEig.smallEigSpecification Mch nmax c₁ c₂ admitted sG)

Full source on GitHub

Copy link

The bound counts every instruction at unit cost: scalar operations, comparisons, index operations, draws, address computations, loop control and allocation. The constant is larger than the 80390\,(n+1)^4(T+1)^2 of the instrumented program in smallEig_work_le, because the certificate also counts the frame of the program. The cap T is a logarithm of n_{\max}\Sigma/(\delta\varphi) up to constants. So the work is of order n^4 up to logarithmic factors. The paper's count is of order n^4+n^3\log^2.

The factor n^4 comes from re-randomizing the Hessenberg form after each deflation: RHess runs at every node of the worklist, with fresh randomness, at a cost of order d^3 for a block of order d. One random Hessenberg form followed by one-step decoupling would cost of order n^3, but no proof is known for it. The library keeps the per-node re-randomization, and it is open whether it is needed.

Accuracy

Theorem (The output is a Schur pair). Let the machine and the streams be as above, with tail records that bound the two Ginibre tails, u\le u_{\mathrm{SmallEig}} at those records, n+1\le n_{\max}, \|\mathbf{M}\|_2\le\Sigma, 0<\delta\le\Sigma and 0<\varphi\le1. From a memory holding \mathbf{M} and the parameter words, except with probability at most \varphi, the run writes only the matrix and the accumulator and stores an upper triangular \widehat{\mathbf{T}}_\mathbf{b} and an accumulator \widehat{\mathbf{U}}_\mathbf{b} with

\widehat{\mathbf{T}}_\mathbf{b}=\mathbf{V}^{\mathsf{H}}(\mathbf{M}+\mathbf{E})\mathbf{V},\qquad\|\mathbf{E}\|_2\le\delta,\qquad\|\widehat{\mathbf{U}}_\mathbf{b}-\mathbf{V}\|_2\le(1+24u)^{R}-1

for an exact unitary \mathbf{V}, with R=n_{\max}^2+2(n_{\max}+1)\bigl((T+n_{\max})n_{\max}+6\bigr) (smallEigLeafRotations). The proved tail records satisfy the hypothesis. The eigenvalue theorems below are corollaries: the diagonal of \widehat{\mathbf{T}}_\mathbf{b} lists them.

Lean statement and details

Standard rounding

NLAlib.SmallEig.smallEigProg_pwrites_schur {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 : ℝ}
  {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) {nmax : ℕ} (hn : n + 1 ≤ nmax)
  {M : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {S δ φ : ℝ} (hMS : specNorm M ≤ S) (hδ : 0 < δ)
  (hδS : δ ≤ S) (hφ : 0 < φ) (hφ1 : φ ≤ 1) (hu : u ≤ SmallEig.uSmallEig nmax S δ φ c₁ c₂)
  (w q o : ℕ × ℕ) :
  Ops.PWrites law I (SmallEig.smallEigProg sG)
    (Ops.Env.frame (SmallEig.smallEigDims n nmax 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))))
    (SmallEig.SmallEigInput nmax S δ φ c₁ c₂ w q o M)
    (fun μ' ↦
      ∃ Ub Tb,
        Schur.HoldsSchurPair w o Ub Tb μ'.store ∧
          Tb.IsUpperTriangular ∧
            IsTrackedUnitarySimilar
              ((1 + 24 * u) ^
                  SmallEig.smallEigLeafRotations nmax (SmallEig.smallEigCap nmax S δ φ c₁ c₂) -
                1)
              δ 1 M Ub Tb)
    φ

Full source on GitHub

Copy link

Theorem (Theorem 1.1: eigenvalues, backward error). Let the machine and the streams be as above, with u\le u_{\mathrm{SmallEig}} at the proved tail records. Let n+1\le n_{\max}, let \mathbf{M} be a complex matrix of order n+1 with \|\mathbf{M}\|_2\le\Sigma, and let 0<\delta\le\Sigma and 0<\varphi\le1. Start smallEigProg from a memory holding \mathbf{M} and the parameter words. Then, for a random tape with the stream laws,

\mathbb{P}\bigl[\text{the run fails, writes outside the matrix and the accumulator, or does not store an upper triangular }\widehat{\mathbf{T}}_\mathbf{b}\text{ whose diagonal lists }\operatorname{spec}(\mathbf{M}+\mathbf{E})\text{ with }\|\mathbf{E}\|_2\le\delta\bigr]\le\varphi.

Lean statement and details

Standard rounding Random tape

NLAlib.SmallEig.smallEig_measureReal_not_spectrum_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 : ℝ} {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) {nmax : ℕ} (hn : n + 1 ≤ nmax)
  {M : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {S δ φ : ℝ} (hMS : specNorm M ≤ S) (hδ : 0 < δ)
  (hδS : δ ≤ S) (hφ : 0 < φ) (hφ1 : φ ≤ 1)
  (hu : u ≤ SmallEig.uSmallEig nmax S δ φ ginibreGapTail ginibreConditionTail) {w q o : ℕ × ℕ}
  {μ : Ops.Mem ℝ}
  (hin : SmallEig.SmallEigInput nmax 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 nmax 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))))
            (SmallEig.SmallEigSpectrum w o M δ) μ} ≤
    φ

Full source on GitHub

Copy link

The error is absolute and \Sigma is an input. The paper's form is relative; it is smallEig_relative and its unconditional form, with \|\mathbf{M}\|_2\le\Sigma\le c\|\mathbf{M}\|_2 and error \varepsilon\|\mathbf{M}\|_2. The failure probability is split in four parts: the eigenvalue gap, the condition number, the norm of the perturbation and the worklist.

Theorem (Corollary 1.3: forward error). Let the machine and the streams be as above, with exact natural literals up to k_{\max}, and let 0<\beta\le\Sigma and 0<\varphi\le1. Let u\le u^{\mathrm{fwd}}_{\mathrm{SmallEig}} at the proved tail records. Take the parameter words and the cap of the forward form at k_{\max}. For \mathbf{M} of order n+1\le k_{\max} with \|\mathbf{M}\|_2\le\Sigma, except with probability at most \varphi, the run writes only the matrix and the accumulator and stores \widehat{\mathbf{T}}_\mathbf{b} with |(\widehat{\mathbf{T}}_\mathbf{b})_{ii}-\lambda_i|\le\beta for a listing \lambda_1,\dots,\lambda_{n+1} of the eigenvalues of \mathbf{M} with multiplicity.

Lean statement and details

Standard rounding Random tape

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

One list of words, chosen at k_{\max}, serves every order up to k_{\max}; in the paper the order is fixed. The proof runs the backward form at \delta_\mathbf{b}=\Sigma\bigl(\beta/(4(2k_{\max}+1)\Sigma)\bigr)^{k_{\max}} and converts the backward error to a forward one by the Ostrowski–Elsner matching, which costs the exponent k_{\max}.

Theorem (The program is a small-block Schur solver). On the machine and streams above, with exact natural literals up to d_{\max}\le k_{\max}, tail records bounding the two Ginibre tails, 0<\beta\le\Sigma, 0<\varphi\le1 and u\le u^{\mathrm{fwd}}_{\mathrm{SmallEig}}, the program with the forward words meets the small-block Schur contract on orders at most d_{\max} and norms at most \Sigma: except with probability \varphi it stores an upper triangular \mathbf{T}_\mathbf{b} and an accumulator \mathbf{U}_\mathbf{b} with \mathbf{T}_\mathbf{b}=\mathbf{V}_\mathbf{b}^{\mathsf{H}}(\mathbf{B}+\mathbf{F})\mathbf{V}_\mathbf{b}, \|\mathbf{F}\|_2\le\delta_\mathbf{b} and \|\mathbf{U}_\mathbf{b}-\mathbf{V}_\mathbf{b}\|_2\le(1+24u)^{R_L}-1, for an exact unitary \mathbf{V}_\mathbf{b} and R_L=k_{\max}^2+2(k_{\max}+1)\bigl((T+k_{\max})k_{\max}+6\bigr).

Lean statement and details

Standard rounding

NLAlib.SmallEig.smallEigProg_randomSchurLeafContract {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) {dmax kmax : ℕ}
  (hdk : dmax ≤ kmax) (hNat : Ops.IsExactNatLit id Mch dmax) (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₂) :
  Schur.RandomSchurLeafContract law
    ((1 + 24 * u) ^
        SmallEig.smallEigLeafRotations kmax (SmallEig.smallEigForwardCap kmax S β φ c₁ c₂) -
      1)
    (SmallEig.forwardBackwardError kmax S β) φ dmax S
    (SmallEig.smallEigForwardParams kmax S β φ c₁ c₂) (SmallEig.smallEigForwardCap kmax S β φ c₁ c₂)
    (SmallEig.smallEigProg sG) I

Full source on GitHub

Copy link

This contract is the hypothesis that the shifted QR program and BGS + Dense Schur (end-to-end) discharge with this program.

Theorem (On one counted run). Under the hypotheses of Theorem 1.1, the probability is at most \varphi that the counted run of smallEigAlgorithm fails, exceeds its budget, scratch, memory, work or span, writes outside the matrix and the accumulator, or does not store an upper triangular \widehat{\mathbf{T}}_\mathbf{b} whose diagonal lists the spectrum of a matrix \mathbf{M}+\mathbf{E} with \|\mathbf{E}\|_2\le\delta. The work and span bound is the certificate's 517058\,(n+1)^4(T+1)^2.

Lean statement and details

Standard rounding Random tape

NLAlib.SmallEig.smallEig_algorithm_measureReal_not_accepts_le_unconditional {Mch : Ops.Machine ℝ}
  {nmax : ℕ} {admitted : ∃ d, SmallEig.SmallEigSizes Mch nmax ginibreGapTail ginibreConditionTail d}
  {u : ℝ} (hM : Ops.StdModel u id Mch) {law : ℕ → Measure ℝ} {sU sG : ℕ}
  (hU : law sU = ℙ.restrict (Set.Icc 0 1)) (hG : law sG = gaussianReal 0 1) {d : Fin 3 → ℕ}
  (hd : SmallEig.SmallEigSizes Mch nmax ginibreGapTail ginibreConditionTail d)
  (x : (SmallEig.smallEigProblem Mch nmax ginibreGapTail ginibreConditionTail admitted).Input d)
  {I : Ops.Interp SmallEig.SmallEigOp ShiftedQR.Tst ℝ}
  (hI :
    (SmallEig.smallEigModel
          (SmallEig.smallEigProblem Mch nmax ginibreGapTail ginibreConditionTail admitted) Mch
          sU).contracts
      d x I)
  (hIm : I.IsMeasurable) {win : SmallEig.SmallEigOp → List ℕ → ℕ}
  (hloc : ∀ (o : SmallEig.SmallEigOp), I.TapeLocal o (win o))
  (hMS : specNorm (↑x).1.matrix ≤ (↑x).1.S) (hδ : 0 < (↑x).1.δ) (hδS : (↑x).1.δ ≤ (↑x).1.S)
  (hφ : 0 < (↑x).1.φ) (hφ1 : (↑x).1.φ ≤ 1)
  (hu : u ≤ SmallEig.uSmallEig nmax (↑x).1.S (↑x).1.δ (↑x).1.φ ginibreGapTail ginibreConditionTail)
  {Ω : Type} [MeasurableSpace Ω] {P : Measure Ω} {ξ : Ω → Ops.Tape ℝ} (hξ : Ops.IsTapeLaw law P ξ) :
  P.real
      {ω |
        ¬(SmallEig.smallEigSpecification Mch nmax ginibreGapTail ginibreConditionTail admitted
                sG).Accepts
            (SmallEig.smallEigAlgorithm Mch nmax ginibreGapTail ginibreConditionTail admitted sU
                sG).program
            I SmallEig.smallEigResources (ξ ω) d x fun x_1 m ↦
            Ops.Store.EqOff
                (Ops.Store.inBlock 0 0 (2 * ((d 0 + 1) * (d 0 + 1))) ⊔
                  Ops.Store.inBlock 2 0 (2 * ((d 0 + 1) * (d 0 + 1))))
                ((SmallEig.smallEigProblem Mch nmax ginibreGapTail ginibreConditionTail
                        admitted).initial
                    d x).store
                m.store ∧
              SmallEig.SmallEigSpectrum (0, 0) (2, 0) (↑x).1.matrix (↑x).1.δ m} ≤
    (↑x).1.φ

Full source on GitHub

Copy link

Not yet presented

  • The formulas of the five per-block precision terms of u_{\mathrm{SmallEig}}, of u^{\mathrm{fwd}}_{\mathrm{SmallEig}}, and of the twelve parameter words.
  • The guarantees of the blocks on their own: RHess, OneEig, DistSpec, Decouple and the core worklist. They are in the Library under NLAlib.Eigensolvers.SmallEig.
  • Closed bounds for the instruction budget, the scratch and the resident memory.
  • A bit-operation count. The work counts instructions of unit cost; it gives no bit costs for arithmetic or sampling.
  • A rounded Gaussian or disk sampler: the drawn values are exact.

Mathematical method