NLA-lib Explorer

Matrix.PosDef.exists_re_quadForm_sub_cgIterate_eq_residualMinimax_sq_mul

Library · theorem

Headline of cg-spectrum-minimax-sharp (provisional) General form: sizes are index types

The spectrum-minimax bound for CG is attained (Greenbaum): for n nonempty and positive definite \mathbf{A}, every start \mathbf{x}_0 and every q there is a solution \mathbf{x}_\star \ne \mathbf{x}_0 with, for \mathbf{b} = \mathbf{A}\mathbf{x}_\star, \|\mathbf{x}_\star - \mathsf{cgIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q)\|_{\mathbf{A}}^2 = \mathsf{residualMinimax}(\sigma(\mathbf{A}), q)^2 \|\mathbf{x}_\star - \mathbf{x}_0\|_{\mathbf{A}}^2 \,, where \mathsf{residualMinimax}(\sigma(\mathbf{A}), q) = \min_{p}\max_{\lambda \in \sigma(\mathbf{A})}\lvert p(\lambda) \rvert, the minimum over real p with \deg p \le q, p(0) = 1. So Matrix.PosDef.re_quadForm_sub_cgIterate_le_residualMinimax_sq_mul cannot be improved for any spectrum. The interval case with an explicit instance is re_quadForm_sub_cgIterate_chebyshevExtremaMatrix. The initial error carries the dual weights w_\lambda of exists_residualMinimax_sq_le_sum_mul_norm_sq, divided by \lambda, as its spectral weights. [Greenbaum1979]; [Greenbaum1997, §3.1]; locators to verify. Result: cg-spectrum-minimax-sharp

Matrix.PosDef.exists_re_quadForm_sub_cgIterate_eq_residualMinimax_sq_mul.{u_1, u_2} {𝕜 : Type u_1}
  [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.PosDef)
  [Nonempty n] (x₀ : n → 𝕜) (q : ℕ) :
  ∃ xs,
    xs ≠ x₀ ∧
      RCLike.re (quadForm A (xs - cgIterate A (A *ᵥ xs) x₀ q)) =
        residualMinimax (spectrum ℝ A) q ^ 2 * RCLike.re (quadForm A (xs - x₀))

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.WorstCase.

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.