Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Example (p. 33) — min⁡x≠0(Ax,x)/(∥Ax∥∥x∥)=2λμ/(λ+μ)\min_{x \ne 0} (Ax,x)/(\|Ax\|\|x\|) = 2\sqrt{\lambda\mu}/(\lambda+\mu)minx=0​(Ax,x)/(∥Ax∥∥x∥)=2λμ​/(λ+μ) for positive definite AAA

Proved
ShorNonsmooth.LinearRate.quadratic_cosine_min

by mikedeng1 · Oct 2, 2026 · Mathlib 0df444a (Lean v4.33.1)

eigenvalueslinear-convergencep2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1quadratic-forms

Let AAA be a symmetric positive definite linear operator on EnE_nEn​ with smallest eigenvalue λ>0\lambda > 0λ>0 and largest eigenvalue μ\muμ; that is, λ∥x∥2≤(Ax,x)≤μ∥x∥2\lambda\|x\|^2 \le (Ax, x) \le \mu\|x\|^2λ∥x∥2≤(Ax,x)≤μ∥x∥2 for all xxx, and there are unit vectors s1,s2s_1, s_2s1​,s2​ with As1=λs1As_1 = \lambda s_1As1​=λs1​, As2=μs2As_2 = \mu s_2As2​=μs2​. For the quadratic form f(x)=12(Ax,x)f(x) = \tfrac12(Ax, x)f(x)=21​(Ax,x) one has gf(x)=Axg_f(x) = Axgf​(x)=Ax, and the cosine of the angle between gf(x)g_f(x)gf​(x) and xxx satisfies

min⁡x∈En, x≠0(Ax,x)∥Ax∥ ∥x∥=2λμλ+μ;\min_{x \in E_n,\ x \ne 0} \frac{(Ax, x)}{\|Ax\|\,\|x\|} = \frac{2\sqrt{\lambda\mu}}{\lambda + \mu};x∈En​, x=0min​∥Ax∥∥x∥(Ax,x)​=λ+μ2λμ​​;

moreover, if s1s_1s1​ and s2s_2s2​ are orthonormal, the minimum is attained at

x=μλ+μ s1+λλ+μ s2.x = \sqrt{\frac{\mu}{\lambda+\mu}}\, s_1 + \sqrt{\frac{\lambda}{\lambda+\mu}}\, s_2 .x=λ+μμ​​s1​+λ+μλ​​s2​.

Hence a positive definite quadratic satisfies (2.12) with cos⁡φ=2λμ/(λ+μ)\cos\varphi = 2\sqrt{\lambda\mu}/(\lambda+\mu)cosφ=2λμ​/(λ+μ), sin⁡φ=(μ−λ)/(μ+λ)\sin\varphi = (\mu-\lambda)/(\mu+\lambda)sinφ=(μ−λ)/(μ+λ), and Theorem 2.7 gives linear convergence with ratio (ϱ−1)/(ϱ+1)(\varrho - 1)/(\varrho + 1)(ϱ−1)/(ϱ+1), ϱ=μ/λ\varrho = \mu/\lambdaϱ=μ/λ the condition number.

Formalization Note The eigenvalues are pinned by the two quadratic-form bounds together with the eigenvector equations, so λ\lambdaλ is the smallest and μ\muμ the largest eigenvalue. The minimum is stated as IsLeast (value attained), not as an infimum. The attaining point is asserted under the hypothesis (s1,s2)=0(s_1, s_2) = 0(s1​,s2​)=0, which holds automatically when λ<μ\lambda < \muλ<μ; when λ=μ\lambda = \muλ=μ every nonzero xxx attains the minimum 111.

Preamble
import Mathlib
Formal statement
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
Source
Shor, Minimization Methods for Non-Differentiable Functions, Springer 1985, pp. 33–34, Example (unnumbered display following (2.23))
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 5, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me