NLA-lib Explorer

Unique equality-constrained quadratic minima

Library · Result group

Theorem (Matrix.IsHermitian.forall_existsUnique_isMinOn_quadraticObjective_iff). Unique equality-constrained quadratic minima. Let \mathbf{H} be Hermitian and let \mathbf{B} have full row rank. For any basis \mathbf{Z} of its kernel, every linear term and every constraint right-hand side admit exactly one feasible minimizer if and only if \mathbf{Z}^{\mathsf{H}}\mathbf{H}\mathbf{Z} is positive definite. For a square invertible constraint matrix the feasible set is a singleton and the reduced matrix has size zero. [BenziGolubLiesen2005, §1 and §6], with the converse obtained from the homogeneous problem.

Headline (provisional)

Lean statement and details
Matrix.IsHermitian.forall_existsUnique_isMinOn_quadraticObjective_iff.{u_1, u_2, u_3, u_4}
  {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_2} {n : Type u_3} {r : Type u_4} [Fintype m] [Fintype n]
  [Fintype r] {B : Matrix m n 𝕜} {Z : Matrix n r 𝕜} {H : Matrix n n 𝕜} (hH : H.IsHermitian)
  (h : Function.Exact Z.mulVec B.mulVec) (hB : Function.Injective Bᴴ.mulVec)
  (hZ : Function.Injective Z.mulVec) :
  (∀ (f : n → 𝕜) (g : m → 𝕜),
      ∃! x, B *ᵥ x = g ∧ IsMinOn (quadraticObjective H f) {v | B *ᵥ v = g} x) ↔
    (Zᴴ * H * Z).PosDef

Full source on GitHub

Copy link

Other forms

Theorem (isUnit_fromBlocks_iff_isUnit_conjTranspose_mul_mul). Invertibility of a saddle-point matrix. For a full-row-rank \mathbf{B} and any basis \mathbf{Z} of its kernel, the block matrix with blocks \mathbf{H}, \mathbf{B}^{\mathsf{H}}, \mathbf{B} and zero is invertible exactly when the reduced matrix \mathbf{Z}^{\mathsf{H}}\mathbf{H}\mathbf{Z} is invertible. The ambient block \mathbf{H} may be singular or indefinite. [BenziGolubLiesen2005, §3.3 and §6].

Lean statement and details
NLAlib.isUnit_fromBlocks_iff_isUnit_conjTranspose_mul_mul.{u_1, u_2, u_3, u_4} {𝕜 : Type u_1}
  [RCLike 𝕜] {m : Type u_2} {n : Type u_3} {r : Type u_4} [Fintype m] [Fintype n] [Fintype r]
  {B : Matrix m n 𝕜} {Z : Matrix n r 𝕜} [DecidableEq m] [DecidableEq n] [DecidableEq r]
  (H : Matrix n n 𝕜) (h : Function.Exact Z.mulVec B.mulVec) (hB : Function.Injective Bᴴ.mulVec)
  (hZ : Function.Injective Z.mulVec) : IsUnit (fromBlocks H Bᴴ B 0) ↔ IsUnit (Zᴴ * H * Z)

Full source on GitHub

Copy link

Theorem (mulVec_fromBlocks_eq_of_mulVec_eq). Null-space solution of the saddle-point equations. Let \mathbf{B} have full row rank and let the columns of \mathbf{Z} span its kernel. Given a feasible point \mathbf{x}_p and any solution \mathbf{y} of the reduced equation, the primal solution is \mathbf{x}=\mathbf{x}_p+\mathbf{Z}\mathbf{y}. Its multiplier solves the constraint Gram system with right-hand side \mathbf{B}(\mathbf{f}-\mathbf{H}\mathbf{x}). [BenziGolubLiesen2005, equations (6.1)–(6.2)].

Lean statement and details
NLAlib.mulVec_fromBlocks_eq_of_mulVec_eq.{u_1, u_2, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜]
  {m : Type u_2} {n : Type u_3} {r : Type u_4} [Fintype m] [Fintype n] [Fintype r]
  {B : Matrix m n 𝕜} {Z : Matrix n r 𝕜} [DecidableEq m] (H : Matrix n n 𝕜)
  (h : Function.Exact Z.mulVec B.mulVec) (hB : Function.Injective Bᴴ.mulVec) {f xp : n → 𝕜}
  {g : m → 𝕜} {y : r → 𝕜} (hxp : B *ᵥ xp = g) (hy : (Zᴴ * H * Z) *ᵥ y = Zᴴ *ᵥ (f - H *ᵥ xp)) :
  fromBlocks H Bᴴ B 0 *ᵥ (xp + Z *ᵥ y ⊕ᵥ (B * Bᴴ)⁻¹ *ᵥ B *ᵥ (f - H *ᵥ (xp + Z *ᵥ y))) = f ⊕ᵥ g

Full source on GitHub

Copy link

Theorem (quadraticObjective_lt_of_mulVec_eq_of_ne). Strict constrained minimality. Let \mathbf{H} be Hermitian, and let the columns of \mathbf{Z} span the kernel of \mathbf{B}. If the reduced Hessian is positive definite, then a stationary point has strictly smaller objective than every other point with the same constraint value. [BenziGolubLiesen2005, §1 and §6].

Lean statement and details
NLAlib.quadraticObjective_lt_of_mulVec_eq_of_ne.{u_1, u_2, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜]
  {m : Type u_2} {n : Type u_3} {r : Type u_4} [Fintype n] [Fintype r] {B : Matrix m n 𝕜}
  {Z : Matrix n r 𝕜} {H : Matrix n n 𝕜} (f : n → 𝕜) (hH : H.IsHermitian)
  (h : Function.Exact Z.mulVec B.mulVec) (hG : (Zᴴ * H * Z).PosDef) {x v : n → 𝕜}
  (hstat : Zᴴ *ᵥ (f - H *ᵥ x) = 0) (hv : B *ᵥ v = B *ᵥ x) (hne : v ≠ x) :
  quadraticObjective H f x < quadraticObjective H f v

Full source on GitHub

Copy link