Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(2.16) — every xxx with l≤x≤ul\le x\le ul≤x≤u has xTMx≤α2x^TMx\le\alpha_2xTMx≤α2​, so P⊆E(α2)P\subseteq E(\alpha_2)P⊆E(α2​)

Proved
RobustToDynamics.step2_outer_ellipsoid

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 n×nn\times nn×n matrix and l,u∈Rnl,u\in\mathbb R^nl,u∈Rn, and put

α2=∑i=1n∑j=1nmax⁡{∣Mijuiuj∣, ∣Mijlilj∣, ∣Mijuilj∣, ∣Mijliuj∣}.(2.16)\alpha_2=\sum_{i=1}^n\sum_{j=1}^n\max\{|M_{ij}u_iu_j|,\ |M_{ij}l_il_j|,\ |M_{ij}u_il_j|,\ |M_{ij}l_iu_j|\}. \tag{2.16}α2​=i=1∑n​j=1∑n​max{∣Mij​ui​uj​∣, ∣Mij​li​lj​∣, ∣Mij​ui​lj​∣, ∣Mij​li​uj​∣}.(2.16)

Then every xxx with li≤xi≤uil_i\le x_i\le u_ili​≤xi​≤ui​ for all iii satisfies xTMx≤α2x^TMx\le\alpha_2xTMx≤α2​. Consequently every polyhedron P={x:Ax≤b}P=\{x: Ax\le b\}P={x:Ax≤b} contained in the box {x:l≤x≤u}\{x: l\le x\le u\}{x:l≤x≤u} satisfies P⊆E(α2)P\subseteq E(\alpha_2)P⊆E(α2​).

E(α2)E(\alpha_2)E(α2​) is the outer ellipsoid of Step 2.

Differences from the source:

  • generalization: M the Lyapunov solution; l_i, u_i the LP minima and maxima of x_i over P → any real M; any box bounds l, u; reason: the bound uses neither symmetry nor definiteness of M, and the paper's box is one box containing P
  • generalization: rational data → real data; reason: the statement for real matrices specializes to rational ones by casting
Preamble
import Mathlib
import Definitions.Def_RobustToDynamics_polyhedron
import Definitions.Def_RobustToDynamics_ellipsoid
import Definitions.Def_RobustToDynamics_alpha2

open Matrix
Formal statement
namespace RobustToDynamics

/-- **(2.16): the outer ellipsoid `P ⊆ E(α₂)`.**
Ahmadi & Günlük, *Robust-to-Dynamics Optimization*, arXiv:1805.03682v2, Theorem 2.7, proof,
Step 2, display (2.16), p.15: "We can now bound xT Mx = ∑i,j Mi,jxixj term by term to obtain
α2 = ∑∑ max{|Mi,juiuj|, |Mi,jlilj|, |Mi,juilj|, |Mi,jliuj|}. Clearly for any x ∈ P, we have
xT Mx ≤ α2 and therefore P ⊆ E(α2)."

For every real `n × n` matrix `M` and box bounds `l, u ∈ ℝⁿ`: every `x` with `l ≤ x ≤ u`
satisfies `xᵀMx ≤ α₂`; hence every polyhedron `P` inside the box satisfies `P ⊆ E(α₂)`.

**Formalization Note.** The box is `Set.Icc l u` in the componentwise order of `Fin n → ℝ`. `M` is
any real matrix (the bound needs neither symmetry nor definiteness), and `l, u` are any bounds of a
box containing `P` (the paper's coordinatewise LP minima and maxima are one choice). -/
theorem step2_outer_ellipsoid {n : ℕ} (M : Matrix (Fin n) (Fin n) ℝ) (l u : Fin n → ℝ) :
    (∀ x ∈ Set.Icc l u, x ⬝ᵥ (M *ᵥ x) ≤ alpha2 M l u) ∧
      ∀ {m : ℕ} (A : Matrix (Fin m) (Fin n) ℝ) (b : Fin m → ℝ),
        polyhedron A b ⊆ Set.Icc l u → polyhedron A b ⊆ ellipsoid M (alpha2 M l u) := by sorry

end RobustToDynamics
Source
Ahmadi & Günlük, Robust-to-Dynamics Optimization, arXiv:1805.03682v2, Theorem 2.7, proof, Step 2, display (2.16), p.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