NLA-lib Explorer

O(\log(N)/\sqrt{\varepsilon}) multiplications suffice for random-start Lanczos

Library · Result group

Theorem (exists_forall_integral_eigenvalue_sub_eigenvalue_rangeProjector_mul_mul_le_of_hasLaw_gaussianVector). O(\log(N)/\sqrt{\varepsilon}) multiplications suffice for random-start Lanczos: there is an absolute constant C > 0 such that for every positive semidefinite real \mathbf{A} of size N = \lvert n\rvert, a standard Gaussian start \mathbf{g} (law \mathcal{N}(\mathbf{0}, \mathbf{I}) on \mathbb{R}^n), \varepsilon > 0 and q \ge C\log(2N)/\sqrt{\varepsilon} multiplications, the largest Ritz value \theta_0 of \mathcal{K}_{q+1}(\mathbf{A}, \mathbf{g}), written as \lambda_0(\mathbf{P}\mathbf{A}\mathbf{P}) with \mathbf{P} the orthogonal projector onto it, satisfies \mathbb{E}\bigl[\lambda_0(\mathbf{A}) - \theta_0\bigr] \le \varepsilon\,\lambda_0(\mathbf{A})\,. The asymptotic form of NLAlib.integral_eigenvalue_sub_eigenvalue_rangeProjector_mul_mul_le_of_hasLaw_gaussianVector. [KuczynskiWozniakowski1992, Theorem 4.2] (locator to check).

Headline (provisional) General form: sizes are index types

Lean statement and details
NLAlib.exists_forall_integral_eigenvalue_sub_eigenvalue_rangeProjector_mul_mul_le_of_hasLaw_gaussianVector :
  ∃ C,
    0 < C ∧
      ∀ {Ω : Type} [inst : MeasurableSpace Ω] {μ : Measure Ω} {n : Type} [inst_1 : Fintype n]
        [inst_2 : DecidableEq n] {g : Ω → n → ℝ},
        HasLaw g (gaussianVector n) μ →
          ∀ {A : Matrix n n ℝ},
            A.PosSemidef →
              ∀ (ε : ℝ) (q : ℕ),
                0 < ε →
                  C * Real.log (2 * ↑(Fintype.card n)) / √ε ≤ ↑q →
                    ∫ (ω : Ω),
                        eigenvalue A 0 -
                          eigenvalue
                            (rangeProjector (krylovMatrix A (g ω) (q + 1)) * A *
                              rangeProjector (krylovMatrix A (g ω) (q + 1)))
                            0 ∂μ ≤
                      ε * eigenvalue A 0

Full source on GitHub

Copy link

Other forms

Theorem (integral_eigenvalue_sub_eigenvalue_rangeProjector_mul_mul_le_of_hasLaw_gaussianVector). Random-start Lanczos: for positive semidefinite real \mathbf{A}, a standard Gaussian start \mathbf{g} (law \mathcal{N}(\mathbf{0}, \mathbf{I}) on \mathbb{R}^n) and q \ge 1, the largest Ritz value \theta_0 of \mathcal{K}_{q+1}(\mathbf{A}, \mathbf{g}) (q multiplications), written as \lambda_0(\mathbf{P}\mathbf{A}\mathbf{P}) with \mathbf{P} the orthogonal projector onto it, satisfies <!-- value randomStartLanczosBound {\lvert n \rvert} q --> \mathbb{E}\bigl[\lambda_0(\mathbf{A}) - \theta_0\bigr] \le \frac{4((\log(2\lvert n \rvert) + 2 + \log 2)^2 + 4)}{(\log 2)^2 q^2}\,\lambda_0(\mathbf{A})\,, for every dimension, repeated top eigenvalues and \mathbf{A} = \mathbf{0}; no gap. The factor is randomStartLanczosBound. Asymptotic form: NLAlib.exists_forall_integral_eigenvalue_sub_eigenvalue_rangeProjector_mul_mul_le_of_hasLaw_gaussianVector. [KuczynskiWozniakowski1992, Theorem 4.2] (locator to check); there as a relative error with a different constant; constants composed here.

General form: sizes are index types

Lean statement and details
NLAlib.integral_eigenvalue_sub_eigenvalue_rangeProjector_mul_mul_le_of_hasLaw_gaussianVector.{u_1,
    u_2}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} [Fintype n] [DecidableEq n]
  {g : Ω → n → ℝ} {A : Matrix n n ℝ} (hg : HasLaw g (gaussianVector n) μ) (hA : A.PosSemidef)
  {q : ℕ} (hq : 1 ≤ q) :
  ∫ (ω : Ω),
      eigenvalue A 0 -
        eigenvalue
          (rangeProjector (krylovMatrix A (g ω) (q + 1)) * A *
            rangeProjector (krylovMatrix A (g ω) (q + 1)))
          0 ∂μ ≤
    randomStartLanczosBound (Fintype.card n) q * eigenvalue A 0

Full source on GitHub

Copy link

General form: sizes are index types. A size is carried by a finite index type: |k| is the number of elements of the index type k, and "k nonempty" means k ≥ 1.