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.
MINRES
Minimize the residual over a Krylov space for a symmetric system.
Definition
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β)β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)β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 1Theorem (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β)β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β)β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β kTheorem (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))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β)β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β)β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β)β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))β