Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§4.1, Eq. (28) — rS(A,b,x)2r_S(\mathbf A,\mathbf b,x)^2rS​(A,b,x)2 is the maximum of a quadratic form over the unit ball

Proved
RobustLS.Structured.worst_case_residual_sq_quadratic

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

p2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1robust-least-squaresstructured-robust-least-squaresworst-case-residual

Fix the data A0,…,ApA_0,\dots,A_pA0​,…,Ap​, b0,…,bpb_0,\dots,b_pb0​,…,bp​ and x∈Rmx \in \mathbb{R}^mx∈Rm, take ρ=1\rho = 1ρ=1, and let FFF, ggg, hhh be as in (27): F=M(x)TM(x)F = M(x)^TM(x)F=M(x)TM(x), g=M(x)T(A0x−b0)g = M(x)^T(A_0x - b_0)g=M(x)T(A0​x−b0​), h=∥A0x−b0∥2h = \|A_0x - b_0\|^2h=∥A0​x−b0​∥2, where M(x)=[A1x−b1 ⋯ Apx−bp]M(x) = [A_1x - b_1\ \cdots\ A_px - b_p]M(x)=[A1​x−b1​ ⋯ Ap​x−bp​]. Then

rS(A,b,x)2=max⁡δTδ≤1[1δ]T[hgTgF][1δ],r_S(\mathbf A,\mathbf b,x)^2 = \max_{\delta^T\delta \le 1} \begin{bmatrix} 1 \\ \delta \end{bmatrix}^T \begin{bmatrix} h & g^T \\ g & F \end{bmatrix} \begin{bmatrix} 1 \\ \delta \end{bmatrix},rS​(A,b,x)2=δTδ≤1max​[1δ​]T[hg​gTF​][1δ​],

that is, the quadratic form on the right is at most rS(A,b,x)2r_S(\mathbf A,\mathbf b,x)^2rS​(A,b,x)2 for every δ\deltaδ with δTδ≤1\delta^T\delta \le 1δTδ≤1, and equals it for some such δ\deltaδ.

This rewrites the squared worst-case residual as the maximum of a convex quadratic function of δ\deltaδ over the Euclidean unit ball (a nonconvex maximization), the form to which the S-procedure applies.

Formalization Note The maximum is stated as "upper bound on the ball, attained on the ball". The vector [1;δ][1;\delta][1;δ] and the block matrix are indexed by Unit ⊕ Fin p, the scalar first as printed. The statement holds for every p≥0p \ge 0p≥0.

Preamble
import Mathlib
import Definitions.Def_RobustLS_Structured_Core

open Matrix
Formal statement
namespace RobustLS.Structured

/-- **Eq. (28)** — El Ghaoui & Lebret (1997), §4.1, p. 1044 (PDF p. 10). With `ρ = 1` and
`F, g, h` as in (27),
`r_S(A, b, x)² = max_{δᵀδ ≤ 1} [1; δ]ᵀ [h gᵀ; g F] [1; δ]`.
The maximum is encoded as "an upper bound on the whole ball, attained at some `δ` of the ball". -/
theorem worst_case_residual_sq_quadratic {n m p : ℕ} (A0 : Matrix (Fin n) (Fin m) ℝ)
    (A : Fin p → Matrix (Fin n) (Fin m) ℝ) (b0 : Fin n → ℝ) (b : Fin p → Fin n → ℝ)
    (x : Fin m → ℝ) :
    (∀ δ : Fin p → ℝ, δ ⬝ᵥ δ ≤ 1 →
        oneStack δ ⬝ᵥ (hgFBlock A0 A b0 b x *ᵥ oneStack δ) ≤ rS A0 A b0 b 1 x ^ 2) ∧
      ∃ δ : Fin p → ℝ, δ ⬝ᵥ δ ≤ 1 ∧
        oneStack δ ⬝ᵥ (hgFBlock A0 A b0 b x *ᵥ oneStack δ) = rS A0 A b0 b 1 x ^ 2 := by sorry

end RobustLS.Structured
Source
El Ghaoui & Lebret, Robust Solutions to Least-Squares Problems with Uncertain Data, SIAM J. Matrix Anal. Appl. 18(4):1035–1064 (1997), p. 1044, §4.1, Eq. (28)
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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