Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3.2 — the RLS solution is (µI + AᵀA)⁻¹Aᵀb if µ = (λ − τ)/τ > 0 and A†b else, with µ = ‖Ax − b‖/√(‖x‖² + 1)

Proved
RobustLS.Tikhonov.rls_solution_tikhonov

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

p2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1robust-least-squaressecond-order-cone-programmingtikhonov-regularization

Let A∈Rn×mA \in \mathbb R^{n\times m}A∈Rn×m and b∈Rnb \in \mathbb R^nb∈Rn, with Euclidean norms throughout. Let (x,λ,τ)(x, \lambda, \tau)(x,λ,τ) be an optimal point of the second-order cone program (15),

minimize λsubject to∥Ax−b∥≤λ−τ,∥[x1]∥≤τ,\text{minimize } \lambda \quad\text{subject to}\quad \|Ax - b\| \le \lambda - \tau,\qquad \left\|\begin{bmatrix} x \\ 1\end{bmatrix}\right\| \le \tau,minimize λsubject to∥Ax−b∥≤λ−τ,​[x1​]​≤τ,

in the variables x∈Rmx \in \mathbb R^mx∈Rm, λ,τ∈R\lambda, \tau \in \mathbb Rλ,τ∈R. By Theorem 3.1 of the paper, xxx is the robust least-squares solution xRLSx_{\rm RLS}xRLS​ for perturbation level ρ=1\rho = 1ρ=1. Put μ=(λ−τ)/τ\mu = (\lambda - \tau)/\tauμ=(λ−τ)/τ. Then

x={(μI+A⊤A)−1A⊤bif μ>0,A†belse,x = \begin{cases} \big(\mu I + A^\top A\big)^{-1} A^\top b & \text{if } \mu > 0,\\[2pt] A^\dagger b & \text{else,}\end{cases}x={(μI+A⊤A)−1A⊤bA†b​if μ>0,else,​

where A†bA^\dagger bA†b is the minimum-norm solution of Ax=bAx = bAx=b, and in both cases

μ=∥Ax−b∥∥x∥2+1.\mu = \frac{\|Ax - b\|}{\sqrt{\|x\|^2 + 1}}.μ=∥x∥2+1​∥Ax−b∥​.

The theorem identifies robust least squares with Tikhonov regularization: the robust solution is a ridge-regression solution whose regularization parameter is not chosen by the user but determined by the data through the SOCP (15).

Formalization Note The paper normalizes ρ=1\rho = 1ρ=1; general ρ\rhoρ follows by scaling (p. 1039). Mathlib has no pseudoinverse, so the branch μ≤0\mu \le 0μ≤0 asserts that xxx solves Ax=bAx = bAx=b with minimum Euclidean norm, which characterizes A†bA^\dagger bA†b. The inverse in the branch μ>0\mu > 0μ>0 is Mathlib's matrix inverse; the matrix is positive definite there. Since every feasible τ\tauτ satisfies τ≥∥x∥2+1≥1\tau \ge \sqrt{\|x\|^2+1} \ge 1τ≥∥x∥2+1​≥1, μ\muμ is well defined. The final identity for μ\muμ comes from the last display of the paper's proof and is the claim in the mission's title.

Preamble
import Mathlib
import Definitions.Def_RobustLS_Tikhonov_Core
Formal statement
namespace RobustLS.Tikhonov

open Matrix

/-- **Theorem 3.2** of El Ghaoui & Lebret, *Robust Solutions to Least-Squares Problems with
Uncertain Data*, SIAM J. Matrix Anal. Appl. 18(4) (1997), p. 1040 (PDF p. 6), with the identity
`µ = ‖Ax − b‖/√(‖x‖² + 1)` from the last display of its proof (p. 1041, PDF p. 7):
"When ρ = 1, the (unique) solution x_RLS to the RLS problem is given by
(17) x_RLS = (µI + AᵀA)⁻¹Aᵀb if µ ≜ (λ − τ)/τ > 0, A†b else,
where (λ, τ) are the (unique) optimal points for problem (15)."

Let `(x, λ, τ)` be an optimal point of the SOCP (15)
`minimize λ subject to ‖Ax − b‖ ≤ λ − τ, ‖[x; 1]‖ ≤ τ` (by Theorem 3.1, its `x`-part is the RLS
solution `x_RLS` for `ρ = 1`), and put `µ = (λ − τ)/τ`. Then
* if `µ > 0`, `x = (µI + AᵀA)⁻¹Aᵀb`;
* otherwise, `x = A†b`, i.e. `x` is the minimum-norm solution of `Ax = b`;
* in either case `µ = ‖Ax − b‖/√(‖x‖² + 1)`.

`⁻¹` is Mathlib's matrix inverse; for `µ > 0` the matrix `µI + AᵀA` is positive definite, so this
is the genuine inverse. `τ ≥ √(‖x‖² + 1) ≥ 1` for every feasible point, so the division defining
`µ` is by a positive number. -/
theorem rls_solution_tikhonov {n m : ℕ} (A : Matrix (Fin n) (Fin m) ℝ) (b : Fin n → ℝ)
    (x : Fin m → ℝ) (lam tau : ℝ) (hopt : IsSOCPOptimal A b x lam tau) :
    (0 < (lam - tau) / tau →
        x = (((lam - tau) / tau) • (1 : Matrix (Fin m) (Fin m) ℝ) + Aᵀ * A)⁻¹ *ᵥ (Aᵀ *ᵥ b)) ∧
      (¬ 0 < (lam - tau) / tau → IsMinNormSolution A b x) ∧
      (lam - tau) / tau = eucNorm (A *ᵥ x - b) / Real.sqrt (eucNorm x ^ 2 + 1) := by sorry

end RobustLS.Tikhonov
Source
El Ghaoui & Lebret, Robust Solutions to Least-Squares Problems with Uncertain Data, SIAM J. Matrix Anal. Appl. 18(4):1035–1064 (1997), p. 1040 (PDF p. 6), Theorem 3.2, Eq. (17); identity for µ from the last display of its proof, p. 1041 (PDF p. 7)
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