NLA-lib Explorer

Projection principles for linear systems

A projection principle selects an approximation from a trial space. Galerkin imposes orthogonality of the residual to a test space; minimum-residual methods minimize a residual norm. Their optimality statements depend on the matrix, inner product, and relationship between the spaces.

Results

Theorem (Galerkin approximations are \mathbf{A}-norm optimal).

for positive definite \mathbf{A} and \mathbf{A}\mathbf{x}_\star = \mathbf{b}, \mathsf{galerkinInverse}(\mathbf{A}, \mathbf{X})\,\mathbf{b} minimises \|\mathbf{x}_\star - \mathbf{y}\|_{\mathbf{A}}^2 = \operatorname{Re}\bigl((\mathbf{x}_\star - \mathbf{y})^{\mathsf{H}}\mathbf{A} (\mathbf{x}_\star - \mathbf{y})\bigr) over the column space of \mathbf{X}. [Saad2003, Β§5.2].

Lean statement and details
Matrix.PosDef.isMinOn_galerkinInverse_mulVec.{u_1, u_2, u_3} {π•œ : Type u_1} [RCLike π•œ]
  {n : Type u_2} {p : Type u_3} [Fintype n] [Fintype p] {A : Matrix n n π•œ} (hA : A.PosDef)
  (X : Matrix n p π•œ) {b xs : n β†’ π•œ} (hxs : A *α΅₯ xs = b) :
  IsMinOn (fun y ↦ RCLike.re (quadForm A (xs - y))) (↑X.mulVecLin.range) (galerkinInverse A X *α΅₯ b)

Full source on GitHub

Copy link

Theorem (Minimal residual approximations minimise the residual).

for every \mathbf{A}, \mathsf{minResidualInverse}(\mathbf{A}, \mathbf{X})\,\mathbf{b} minimises \|\mathbf{b} - \mathbf{A}\mathbf{y}\| over the column space of \mathbf{X}. [Saad2003, Β§5.3.2].

Lean statement and details
NLAlib.isMinOn_minResidualInverse_mulVec.{u_1, u_2, u_3, u_4} {π•œ : Type u_1} [RCLike π•œ]
  {m : Type u_2} {n : Type u_3} {p : Type u_4} [Fintype m] [Fintype n] [Fintype p]
  (A : Matrix m n π•œ) (X : Matrix n p π•œ) (b : m β†’ π•œ) :
  IsMinOn (fun y ↦ β€–WithLp.toLp 2 (b - A *α΅₯ y)β€–) (↑X.mulVecLin.range) (minResidualInverse A X *α΅₯ b)

Full source on GitHub

Copy link

Formal definitions

Used by algorithms

Broader topics