NLA-lib Explorer

MINRES

Minimize the residual over a Krylov space for a symmetric system.

Definition

Definition (MINRES). For a real symmetric system \mathbf{A}\mathbf{x}=\mathbf{b}, choose the iterate that minimizes the Euclidean residual norm over \mathbf{x}_0+\mathcal{K}_k(\mathbf{A},\mathbf{r}_0), where \mathbf{r}_0=\mathbf{b}-\mathbf{A}\mathbf{x}_0. Symmetry permits a Lanczos-based short recurrence. Positive definiteness is not required for this minimization; solvability and termination claims need their own hypotheses.

Copy link

Components

Results

Theorem (The Chebyshev bound for MINRES).

in \kappa = a'/a: for Hermitian \mathbf{A} with spectrum in [a, a'], 0 < a, \|\mathbf{b} - \mathbf{A}\,\mathsf{gmresIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q)\| \le 2\Bigl(\frac{\sqrt{a'/a} - 1}{\sqrt{a'/a} + 1}\Bigr)^q\|\mathbf{r}_0\| \,. [Greenbaum1997, Β§3.1]; locator to verify.

Lean statement and details
Matrix.IsHermitian.norm_sub_mulVec_gmresIterate_le_two_mul_pow.{u_1, u_2} {π•œ : Type u_1} [RCLike π•œ]
  {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n π•œ} (hA : A.IsHermitian) {a a' : ℝ}
  (ha : 0 < a) (hs : spectrum ℝ A βŠ† Set.Icc a a') (b xβ‚€ : n β†’ π•œ) (q : β„•) :
  β€–WithLp.toLp 2 (b - A *α΅₯ gmresIterate A b xβ‚€ q)β€– ≀
    2 * ((√(a' / a) - 1) / (√(a' / a) + 1)) ^ q * β€–WithLp.toLp 2 (b - A *α΅₯ xβ‚€)β€–

Full source on GitHub

Copy link

Theorem (MINRES attains the Chebyshev value).

for 0 < a < a', on the Chebyshev extrema matrix with right-hand side \mathbf{w} = chebyshevWeightVector and the zero start, \|\mathbf{w} - \mathbf{A}\,\mathsf{gmresIterate}(\mathbf{A}, \mathbf{w}, \mathbf{0}, q)\| = T_q\Bigl(\frac{a' + a}{a' - a}\Bigr)^{-1}\|\mathbf{w}\| = \frac{2\rho^q}{1 + \rho^{2q}}\|\mathbf{w}\| \,. As for CG, with residual weights \lvert\mathbf{w}_k\rvert^2 = \omega_k. [Greenbaum1997, Β§3.1]; locator to verify.

Lean statement and details
NLAlib.norm_sub_mulVec_gmresIterate_chebyshevExtremaMatrix.{u_1} {π•œ : Type u_1} [RCLike π•œ]
  {a a' : ℝ} (ha : 0 < a) (haa : a < a') (q : β„•) :
  β€–WithLp.toLp 2
        (chebyshevWeightVector π•œ a a' q -
          chebyshevExtremaMatrix π•œ a a' q *α΅₯
            gmresIterate (chebyshevExtremaMatrix π•œ a a' q) (chebyshevWeightVector π•œ a a' q) 0 q)β€– =
    (Polynomial.eval ((a' + a) / (a' - a)) (Polynomial.Chebyshev.T ℝ ↑q))⁻¹ *
      β€–WithLp.toLp 2 (chebyshevWeightVector π•œ a a' q)β€–

Full source on GitHub

Copy link

Theorem (The Lanczos recurrence yields MINRES).

for Hermitian \mathbf{A} and every q, \mathsf{gmresIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q) = \mathbf{x}_0 + \|\mathbf{r}_0\|\,\mathbf{Q}_q\underline{\mathbf{T}}_q^{+}\mathbf{e}_0 with \mathbf{Q}_q and \underline{\mathbf{T}}_q computed by the Lanczos recurrence from \mathbf{r}_0, with no grade hypothesis. [PaigeSaunders1975, Β§6]; [Greenbaum1997, Β§2.5]; the second locator to verify. Paige and Saunders put the Lanczos vectors into the minimum residual problem (2.7) through (6.1) and (6.2), for real symmetric \mathbf{A} and up to termination.

Lean statement and details
Matrix.IsHermitian.gmresIterate_eq_lanczosMatrix.{u_1, u_2} {π•œ : Type u_1} [RCLike π•œ] {n : Type u_2}
  [Fintype n] [DecidableEq n] {A : Matrix n n π•œ} (hA : A.IsHermitian) (b xβ‚€ : n β†’ π•œ) (q : β„•) :
  gmresIterate A b xβ‚€ q =
    xβ‚€ +
      ↑‖WithLp.toLp 2 (b - A *α΅₯ xβ‚€)β€– β€’
        lanczosMatrix A (b - A *α΅₯ xβ‚€) q *α΅₯
          pinv ((lanczosTridiagonal A (b - A *α΅₯ xβ‚€) (q + 1)).submatrix id Fin.castSucc) *α΅₯
            Pi.single 0 1

Full source on GitHub

Copy link

Theorem (MINRES kills outlying eigenvalues).

for Hermitian \mathbf{A} with spectrum in [a, a'] \cup T, 0 < a, 0 \notin T, and \lvert\prod_{t \in T}(1 - x/t)\rvert \le C on [a, a'], after m + d steps, m = \lvert T \rvert, \|\mathbf{b} - \mathbf{A}\,\mathsf{gmresIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, m + d)\| \le 2C\Bigl(\frac{\sqrt{a'/a} - 1}{\sqrt{a'/a} + 1}\Bigr)^d\|\mathbf{r}_0\| \,. The outliers may be negative (an indefinite matrix with a few negative eigenvalues); the hypothesis 0 \notin T is needed, since every residual polynomial is 1 at an eigenvalue 0. The hypothesis a \le a' is needed too: for an empty interval the rate is negative and the right side can be negative, while the CG and PCG forms are squares. [Greenbaum1997, Β§3.1]; locator to verify.

Lean statement and details
Matrix.IsHermitian.norm_sub_mulVec_gmresIterate_le_two_mul_mul_pow.{u_1, u_2} {π•œ : Type u_1}
  [RCLike π•œ] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n π•œ} (hA : A.IsHermitian)
  {a a' : ℝ} (ha : 0 < a) (haa : a ≀ a') {T : Finset ℝ} (hs : spectrum ℝ A βŠ† Set.Icc a a' βˆͺ ↑T)
  (hT : 0 βˆ‰ T) {C : ℝ} (hC : βˆ€ x ∈ Set.Icc a a', |∏ t ∈ T, (1 - x / t)| ≀ C) (b xβ‚€ : n β†’ π•œ)
  (d : β„•) :
  β€–WithLp.toLp 2 (b - A *α΅₯ gmresIterate A b xβ‚€ (T.card + d))β€– ≀
    2 * C * ((√(a' / a) - 1) / (√(a' / a) + 1)) ^ d * β€–WithLp.toLp 2 (b - A *α΅₯ xβ‚€)β€–

Full source on GitHub

Copy link

Theorem (The polynomial bound for MINRES).

for Hermitian \mathbf{A} with spectrum in s and a real p with \deg p \le q, p(0) = 1, \lvert p \rvert \le \eta on s, \|\mathbf{b} - \mathbf{A}\,\mathsf{gmresIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q)\| \le \eta\,\|\mathbf{r}_0\|. Indefinite \mathbf{A} is allowed, s a union of intervals. [Greenbaum1997, Β§3.1]; [Saad2003, Β§6.11.4]; locators to verify.

Lean statement and details
Matrix.IsHermitian.norm_sub_mulVec_gmresIterate_le.{u_1, u_2} {π•œ : Type u_1} [RCLike π•œ]
  {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n π•œ} (hA : A.IsHermitian) {s : Set ℝ}
  (hs : spectrum ℝ A βŠ† s) (b xβ‚€ : n β†’ π•œ) {q : β„•} {p : Polynomial ℝ} (hp : p.degree ≀ ↑q)
  (hpβ‚€ : Polynomial.eval 0 p = 1) {Ξ· : ℝ} (hΞ· : βˆ€ x ∈ s, |Polynomial.eval x p| ≀ Ξ·) :
  β€–WithLp.toLp 2 (b - A *α΅₯ gmresIterate A b xβ‚€ q)β€– ≀ Ξ· * β€–WithLp.toLp 2 (b - A *α΅₯ xβ‚€)β€–

Full source on GitHub

Copy link

Theorem (The Paige–Saunders iterates are the preconditioned MINRES iterates).

for invertible Hermitian \mathbf{A}, positive definite \mathbf{M} and every k, with no breakdown hypothesis, \mathbf{x}_k = \mathsf{pminresIterate}(\mathbf{A}, \mathbf{M}, \mathbf{b}, \mathbf{x}_0, k). [PaigeSaunders1975, Β§6]; there without a preconditioner (\mathbf{M} = \mathbf{I}), over \mathbb{R} and up to termination: the iterate (6.9) of the recurrence solves the minimum residual problem (2.7) in the Lanczos basis.

Lean statement and details
Matrix.IsHermitian.minresState_x_eq.{u_1, u_2} {π•œ : Type u_1} [RCLike π•œ] {n : Type u_2} [Fintype n]
  [DecidableEq n] {A M : Matrix n n π•œ} (hA : A.IsHermitian) (hAu : IsUnit A) (hM : M.PosDef)
  (b xβ‚€ : n β†’ π•œ) (k : β„•) : (minresState A M b xβ‚€ k).x = pminresIterate A M b xβ‚€ k

Full source on GitHub

Copy link

Theorem (MINRES residual estimate).

for invertible Hermitian \mathbf{A}, positive definite \mathbf{M} and every k, the recurrence's \bar\varphi_k and iterate \mathbf{x}_k satisfy \lvert\bar\varphi_k\rvert^2 = \|\mathbf{b} - \mathbf{A}\mathbf{x}_k\|_{\mathbf{M}}^2, available without forming the residual. [PaigeSaunders1975, (7.4)]; there without a preconditioner, as \|\mathbf{r}_k\| = \beta_1\lvert s_1 \cdots s_k \rvert, the product of the rotation sines that \lvert\bar\varphi_k\rvert is here (the paper indexes from 1).

Lean statement and details
Matrix.IsHermitian.norm_minresState_phi_sq.{u_1, u_2} {π•œ : Type u_1} [RCLike π•œ] {n : Type u_2}
  [Fintype n] [DecidableEq n] {A M : Matrix n n π•œ} (hA : A.IsHermitian) (hAu : IsUnit A)
  (hM : M.PosDef) (b xβ‚€ : n β†’ π•œ) (k : β„•) :
  β€–(minresState A M b xβ‚€ k).phiβ€– ^ 2 = RCLike.re (quadForm M (b - A *α΅₯ (minresState A M b xβ‚€ k).x))

Full source on GitHub

Copy link

Theorem (The spectrum-optimal bound for MINRES).

for Hermitian \mathbf{A} and \mathbf{r}_0 = \mathbf{b} - \mathbf{A}\mathbf{x}_0, \|\mathbf{b} - \mathbf{A}\,\mathsf{gmresIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q)\| \le \mathsf{residualMinimax}(\sigma(\mathbf{A}), q)\,\|\mathbf{r}_0\| \,, where \mathsf{residualMinimax}(\sigma(\mathbf{A}), q) = \min_{p}\max_{\lambda \in \sigma(\mathbf{A})}\lvert p(\lambda) \rvert, the minimum over real residual polynomials of degree at most q. [Saad2003, Proposition 6.32] is this bound for diagonalisable \mathbf{A} with the factor \kappa_2(\mathbf{X}), which is 1 here. For each \mathbf{A} some \mathbf{b} attains it (Greenbaum): Matrix.IsHermitian.exists_norm_sub_mulVec_gmresIterate_eq_residualMinimax_mul and Matrix.IsHermitian.isGreatest_norm_sub_mulVec_gmresIterate_div in NLAlib.Krylov.LinearSystems.WorstCase. [Greenbaum1997, Β§3.1]; locator to verify.

Lean statement and details
Matrix.IsHermitian.norm_sub_mulVec_gmresIterate_le_residualMinimax_mul.{u_1, u_2} {π•œ : Type u_1}
  [RCLike π•œ] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n π•œ} (hA : A.IsHermitian)
  (b xβ‚€ : n β†’ π•œ) (q : β„•) :
  β€–WithLp.toLp 2 (b - A *α΅₯ gmresIterate A b xβ‚€ q)β€– ≀
    residualMinimax (spectrum ℝ A) q * β€–WithLp.toLp 2 (b - A *α΅₯ xβ‚€)β€–

Full source on GitHub

Copy link

Theorem (The spectrum-minimax bound for MINRES is attained).

for n nonempty and Hermitian \mathbf{A} (indefinite or singular allowed), every start \mathbf{x}_0 and every q there is a \mathbf{b} with \mathbf{r}_0 = \mathbf{b} - \mathbf{A}\mathbf{x}_0 \ne \mathbf{0} and \|\mathbf{b} - \mathbf{A}\,\mathsf{gmresIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q)\| = \mathsf{residualMinimax}(\sigma(\mathbf{A}), q)\,\|\mathbf{r}_0\| \,. So Matrix.IsHermitian.norm_sub_mulVec_gmresIterate_le_residualMinimax_mul cannot be improved for any spectrum. For singular \mathbf{A} the value is 1 (p(0) = 1 on the eigenvalue 0). The initial residual carries the dual weights of exists_residualMinimax_sq_le_sum_mul_norm_sq as its spectral weights. [GreenbaumGurvits1994]; [Greenbaum1997, Β§3.1]; locators to verify.

General form: sizes are index types

Lean statement and details
Matrix.IsHermitian.exists_norm_sub_mulVec_gmresIterate_eq_residualMinimax_mul.{u_1, u_2}
  {π•œ : Type u_1} [RCLike π•œ] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n π•œ}
  (hA : A.IsHermitian) [Nonempty n] (xβ‚€ : n β†’ π•œ) (q : β„•) :
  βˆƒ b,
    b β‰  A *α΅₯ xβ‚€ ∧
      β€–WithLp.toLp 2 (b - A *α΅₯ gmresIterate A b xβ‚€ q)β€– =
        residualMinimax (spectrum ℝ A) q * β€–WithLp.toLp 2 (b - A *α΅₯ xβ‚€)β€–

Full source on GitHub

Copy link

Theorem (MINRES on two symmetric intervals).

for Hermitian \mathbf{A} with spectrum in [-a', -a] \cup [a, a'], 0 < a, and \kappa = a'/a, \|\mathbf{b} - \mathbf{A}\,\mathsf{gmresIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q)\| \le 2\Bigl(\frac{a'/a - 1}{a'/a + 1}\Bigr)^{\lfloor q/2 \rfloor}\|\mathbf{r}_0\| \,. The residual polynomial is a Chebyshev residual on [a^2, a'^2] composed with x^2. [Greenbaum1997, Β§3.1]; [ElmanSilvesterWathen2014, Theorem 4.14]; locators to verify.

Lean statement and details
Matrix.IsHermitian.norm_sub_mulVec_gmresIterate_le_two_mul_pow_div_two.{u_1, u_2} {π•œ : Type u_1}
  [RCLike π•œ] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n π•œ} (hA : A.IsHermitian)
  {a a' : ℝ} (ha : 0 < a) (hs : spectrum ℝ A βŠ† Set.Icc (-a') (-a) βˆͺ Set.Icc a a') (b xβ‚€ : n β†’ π•œ)
  (q : β„•) :
  β€–WithLp.toLp 2 (b - A *α΅₯ gmresIterate A b xβ‚€ q)β€– ≀
    2 * ((a' / a - 1) / (a' / a + 1)) ^ (q / 2) * β€–WithLp.toLp 2 (b - A *α΅₯ xβ‚€)β€–

Full source on GitHub

Copy link

Theorem (MINRES attains the two-interval value).

for 0 < a < a' and every q, with k = \lfloor q/2 \rfloor, the two-interval matrix and right-hand side give \|\mathbf{w} - \mathbf{A}\,\mathsf{gmresIterate}(\mathbf{A}, \mathbf{w}, \mathbf{0}, q)\| = T_k\Bigl(\frac{a'^2 + a^2}{a'^2 - a^2}\Bigr)^{-1}\|\mathbf{w}\| \,, which is 2\rho_2^k/(1 + \rho_2^{2k}) with \rho_2 = (a'/a - 1)/(a'/a + 1), against the bound 2\rho_2^k. Odd steps gain nothing: the data are symmetric, so the least-squares residual polynomial is even. For a residual p of degree at most q and u = p(\sqrt{\xi_j}), v = p(-\sqrt{\xi_j}), \lvert u \rvert^2 + \lvert v \rvert^2 \ge 2\lvert (u + v)/2 \rvert^2, and (u + v)/2 = P(\xi_j) for the even part P(x^2) of p, of degree at most \lfloor q/2 \rfloor; so the residual is at least the interval value on [a^2, a'^2], which the even Chebyshev residual attains. [Greenbaum1997, Β§3.1]; locator to verify.

Lean statement and details
NLAlib.norm_sub_mulVec_gmresIterate_chebyshevTwoIntervalMatrix.{u_1} {π•œ : Type u_1} [RCLike π•œ]
  {a a' : ℝ} (ha : 0 < a) (haa : a < a') (q : β„•) :
  β€–WithLp.toLp 2
        (chebyshevTwoIntervalVector π•œ a a' (q / 2) -
          chebyshevTwoIntervalMatrix π•œ a a' (q / 2) *α΅₯
            gmresIterate (chebyshevTwoIntervalMatrix π•œ a a' (q / 2))
              (chebyshevTwoIntervalVector π•œ a a' (q / 2)) 0 q)β€– =
    (Polynomial.eval ((a' ^ 2 + a ^ 2) / (a' ^ 2 - a ^ 2)) (Polynomial.Chebyshev.T ℝ ↑(q / 2)))⁻¹ *
      β€–WithLp.toLp 2 (chebyshevTwoIntervalVector π•œ a a' (q / 2))β€–

Full source on GitHub

Copy link

Mathematical background

Appears under these tasks

Family