Example (p. 33) — for positive definite
ProvedShorNonsmooth.LinearRate.quadratic_cosine_minLet be a symmetric positive definite linear operator on with smallest eigenvalue and largest eigenvalue ; that is, for all , and there are unit vectors with , . For the quadratic form one has , and the cosine of the angle between and satisfies
moreover, if and are orthonormal, the minimum is attained at
Hence a positive definite quadratic satisfies (2.12) with , , and Theorem 2.7 gives linear convergence with ratio , the condition number.
Formalization Note The eigenvalues are pinned by the two quadratic-form bounds together with the eigenvector equations, so is the smallest and the largest eigenvalue. The minimum is stated as IsLeast (value attained), not as an infimum. The attaining point is asserted under the hypothesis , which holds automatically when ; when every nonzero attains the minimum .
import Mathlib
namespace ShorNonsmooth.LinearRate
/-- Shor (1985), pp. 33–34, Example (unnumbered display). Let `A` be a symmetric positive
definite operator on `E_n` with smallest eigenvalue `λ > 0` and largest eigenvalue `μ`
(so `λ‖x‖² ≤ (Ax, x) ≤ μ‖x‖²`, with unit eigenvectors `s₁`, `s₂` for `λ` and `μ`). Then
`min_{x ≠ 0} (Ax, x)/(‖Ax‖ ‖x‖) = 2√(λμ)/(λ + μ)`, and, when `s₁ ⊥ s₂`, the minimum is attained
at `x = √(μ/(λ + μ)) s₁ + √(λ/(λ + μ)) s₂`. -/
theorem quadratic_cosine_min {n : ℕ}
(A : EuclideanSpace ℝ (Fin n) →ₗ[ℝ] EuclideanSpace ℝ (Fin n)) (hA : A.IsSymmetric)
(lam mu : ℝ) (hlam : 0 < lam)
(hlow : ∀ x, lam * ‖x‖ ^ 2 ≤ inner ℝ (A x) x)
(hup : ∀ x, inner ℝ (A x) x ≤ mu * ‖x‖ ^ 2)
(s₁ s₂ : EuclideanSpace ℝ (Fin n)) (hs₁ : ‖s₁‖ = 1) (hs₂ : ‖s₂‖ = 1)
(hAs₁ : A s₁ = lam • s₁) (hAs₂ : A s₂ = mu • s₂) :
IsLeast {c : ℝ | ∃ x : EuclideanSpace ℝ (Fin n), x ≠ 0 ∧
c = inner ℝ (A x) x / (‖A x‖ * ‖x‖)}
(2 * Real.sqrt (lam * mu) / (lam + mu)) ∧
(inner ℝ s₁ s₂ = (0 : ℝ) →
let x := Real.sqrt (mu / (lam + mu)) • s₁ + Real.sqrt (lam / (lam + mu)) • s₂
inner ℝ (A x) x / (‖A x‖ * ‖x‖) = 2 * Real.sqrt (lam * mu) / (lam + mu)) := by sorry
end ShorNonsmooth.LinearRate
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.