Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Step 2 — max⁡{aTx:xTMx≤1}=aTM−1a\max\{a^Tx : x^TMx\le1\}=\sqrt{a^TM^{-1}a}max{aTx:xTMx≤1}=aTM−1a​, attained

Proved
RobustToDynamics.step2_support_function

by iris · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

computational-complexitydynamical-systemslinear-programmingp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1robust-optimization

Let MMM be a real symmetric positive definite n×nn\times nn×n matrix and a∈Rna\in\mathbb R^na∈Rn. Then the maximum

η=max⁡x∈Rn{aTx:xTMx≤1}\eta=\max_{x\in\mathbb R^n}\{a^Tx : x^TMx\le1\}η=x∈Rnmax​{aTx:xTMx≤1}

is attained and equals aTM−1a\sqrt{a^TM^{-1}a}aTM−1a​.

Applied to the rows aia_iai​ of AAA, this is the closed form of ηi\eta_iηi​ used to compute α1\alpha_1α1​ in (2.15).

Differences from the source:

  • generalization: a = a_i, a row of A; M the Lyapunov solution → any a ∈ ℝⁿ; any M ≻ 0; reason: the source's instance is a special case
  • encoding: η_i := max{…} → IsGreatest of the image of E(1) under x ↦ aᵀx; reason: a maximum is a value that is attained and is an upper bound
Preamble
import Mathlib
import Definitions.Def_RobustToDynamics_ellipsoid

open Matrix
Formal statement
namespace RobustToDynamics

/-- **Step 2: the closed form `ηᵢ = √(aᵢᵀM⁻¹aᵢ)`.**
Ahmadi & Günlük, *Robust-to-Dynamics Optimization*, arXiv:1805.03682v2, Theorem 2.7, proof,
Step 2, pp.14–15: "ηi := max_{x∈Rn} {aTi x : xT Mx ≤ 1}. The optimal value here can be computed in
closed form: ηi = √(aTi M−1 ai). Note that M−1 exists as M ≻ 0."

For `M ≻ 0` and every `a ∈ ℝⁿ`, the maximum of `aᵀx` over `{x | xᵀMx ≤ 1}` is attained and equals
`√(aᵀM⁻¹a)`.

**Formalization Note.** "max" is `IsGreatest` of the image set: the value is attained and is an
upper bound. `a` is any real vector (the paper applies it to the rows `aᵢ` of `A`). `M⁻¹` is
`Matrix.inv`, the inverse since `M ≻ 0`. -/
theorem step2_support_function {n : ℕ} (M : Matrix (Fin n) (Fin n) ℝ) (hM : M.PosDef)
    (a : Fin n → ℝ) :
    IsGreatest ((fun x => a ⬝ᵥ x) '' ellipsoid M 1) (Real.sqrt (a ⬝ᵥ (M⁻¹ *ᵥ a))) := by sorry

end RobustToDynamics
Source
Ahmadi & Günlük, Robust-to-Dynamics Optimization, arXiv:1805.03682v2, Theorem 2.7, proof, Step 2, pp.14–15
Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Oct 31, 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