NLA-lib Explorer

The polynomial bound for CG

Library ยท Result group

Theorem (Matrix.PosDef.re_quadForm_sub_cgIterate_le). The polynomial bound for CG: if \mathbf{A} is positive definite with spectrum in a set s, \mathbf{A}\mathbf{x}_\star = \mathbf{b}, and a real p with \deg p \le q, p(0) = 1 satisfies \lvert p \rvert \le \eta on s, then \|\mathbf{x}_\star - \mathsf{cgIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q)\|_{\mathbf{A}}^2 \le \eta^2 \|\mathbf{x}_\star - \mathbf{x}_0\|_{\mathbf{A}}^2 \,. [Saad2003, ยง6.11.3].

Headline (provisional)

Lean statement and details
Matrix.PosDef.re_quadForm_sub_cgIterate_le.{u_1, u_2} {๐•œ : Type u_1} [RCLike ๐•œ] {n : Type u_2}
  [Fintype n] [DecidableEq n] {A : Matrix n n ๐•œ} (hA : A.PosDef) {s : Set โ„} (hs : spectrum โ„ A โІ s)
  {b xs : n โ†’ ๐•œ} (hxs : A *แตฅ xs = b) (xโ‚€ : n โ†’ ๐•œ) {q : โ„•} {p : Polynomial โ„} (hp : p.degree โ‰ค โ†‘q)
  (hpโ‚€ : Polynomial.eval 0 p = 1) {ฮท : โ„} (hฮท : โˆ€ x โˆˆ s, |Polynomial.eval x p| โ‰ค ฮท) :
  RCLike.re (quadForm A (xs - cgIterate A b xโ‚€ q)) โ‰ค ฮท ^ 2 * RCLike.re (quadForm A (xs - xโ‚€))

Full source on GitHub

Copy link

Other forms

Theorem (Matrix.PosDef.re_quadForm_sub_cgIterate_le_iSup_sq_mul). The spectrum bound for a residual polynomial: for positive definite \mathbf{A} and a real p with \deg p \le q, p(0) = 1, \|\mathbf{x}_\star - \mathsf{cgIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q)\|_{\mathbf{A}}^2 \le \Bigl(\max_{\lambda \in \sigma(\mathbf{A})}\lvert p(\lambda) \rvert\Bigr)^2 \|\mathbf{x}_\star - \mathbf{x}_0\|_{\mathbf{A}}^2 \,. The maximum is the supremum over the finite spectrum. [Greenbaum1997, ยง3.1]; locator to verify.

Lean statement and details
Matrix.PosDef.re_quadForm_sub_cgIterate_le_iSup_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) {b xs : n โ†’ ๐•œ}
  (hxs : A *แตฅ xs = b) (xโ‚€ : n โ†’ ๐•œ) {q : โ„•} {p : Polynomial โ„} (hp : p.degree โ‰ค โ†‘q)
  (hpโ‚€ : Polynomial.eval 0 p = 1) :
  RCLike.re (quadForm A (xs - cgIterate A b xโ‚€ q)) โ‰ค
    (โจ† x โˆˆ spectrum โ„ A, |Polynomial.eval x p|) ^ 2 * RCLike.re (quadForm A (xs - xโ‚€))

Full source on GitHub

Copy link

Theorem (Matrix.PosDef.re_quadForm_sub_cgIterate_le_re_quadForm_aeval). CG beats every residual polynomial: for positive definite \mathbf{A}, \mathbf{A}\mathbf{x}_\star = \mathbf{b} and every real p with \deg p \le q, p(0) = 1, \|\mathbf{x}_\star - \mathsf{cgIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q)\|_{\mathbf{A}}^2 \le \|p(\mathbf{A})(\mathbf{x}_\star - \mathbf{x}_0)\|_{\mathbf{A}}^2 \,. [Saad2003, ยง6.11.3].

Lean statement and details
Matrix.PosDef.re_quadForm_sub_cgIterate_le_re_quadForm_aeval.{u_1, u_2} {๐•œ : Type u_1} [RCLike ๐•œ]
  {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n ๐•œ} (hA : A.PosDef) {b xs : n โ†’ ๐•œ}
  (hxs : A *แตฅ xs = b) (xโ‚€ : n โ†’ ๐•œ) {q : โ„•} {p : Polynomial โ„} (hp : p.degree โ‰ค โ†‘q)
  (hpโ‚€ : Polynomial.eval 0 p = 1) :
  RCLike.re (quadForm A (xs - cgIterate A b xโ‚€ q)) โ‰ค
    RCLike.re (quadForm A ((Polynomial.aeval A) p *แตฅ (xs - xโ‚€)))

Full source on GitHub

Copy link