Appendix B, (B.30)–(B.31) — prediction and bounds for the Lasso on the event
ProvedLassoDantzig.Lasso.eq_B30_B31Let , , , let have unit diagonal Gram matrix, and let satisfy . Assume RE holds with witness . Let and let lie in the noise event , i.e. for all . Let be any Lasso solution (7.2) for , and put , . Then
the cone condition holds, and
The first inequality of (B.31) is the prediction bound (7.8); the second, combined with the cone condition, gives the bound (7.7).
Formalization Note The paper states these inequalities "on the event " with ; they are deterministic consequences of the event, so they are stated for every noise vector in and every . is any witness of RE, in place of .
import Mathlib import Definitions.Def_LassoDantzig_Lasso_Model open MeasureTheory ProbabilityTheory
namespace LassoDantzig.Lasso
/-- (B.30)–(B.31), p. 28 (proof of Theorem 7.2): for `r > 0`, on the noise event `𝒜`, for `y = Xβ* + w`
with unit diagonal, `𝓜(β*) ≤ s` and Assumption RE(s, 3) with witness `κ`, every Lasso solution
`β̂` satisfies, with `δ = β̂ − β*` and `J₀ = J(β*)`,
`(1/n)|Xδ|_2² ≤ 4r√s |δ_{J₀}|_2` (B.30), the cone condition (4.1) with `c₀ = 3`, and
`(1/n)|Xδ|_2² ≤ 16 r² s / κ²`, `|δ_{J₀}|_2 ≤ 4r√s / κ²` (B.31). -/
theorem eq_B30_B31 {n M : ℕ} (hn : 1 ≤ n) (hM : 2 ≤ M)
(X : Matrix (Fin n) (Fin M) ℝ) (hX : UnitDiag X) (βstar : Fin M → ℝ)
(s : ℕ) (hs1 : 1 ≤ s) (hsM : s ≤ M) (hsparse : sparsity βstar ≤ s)
(κ : ℝ) (hκ : 0 < κ) (hRE : RE X s 3 κ)
(r : ℝ) (hr : 0 < r) (w : Fin n → ℝ) (hw : NoiseEventHalf X r w)
(βhat : Fin M → ℝ) (hL : IsLasso X (fun i => X.mulVec βstar i + w i) r βhat) :
(1 / (n : ℝ)) * ∑ i, (X.mulVec (βhat - βstar) i) ^ 2 ≤
4 * r * Real.sqrt s * l2On (βhat - βstar) (supp βstar) ∧
ConeCond 3 (supp βstar) (βhat - βstar) ∧
(1 / (n : ℝ)) * ∑ i, (X.mulVec (βhat - βstar) i) ^ 2 ≤ 16 * r ^ 2 * s / κ ^ 2 ∧
l2On (βhat - βstar) (supp βstar) ≤ 4 * r * Real.sqrt s / κ ^ 2 := by sorry
end LassoDantzig.Lasso
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
This statement is deterministic.
Setting.
- and are natural numbers.
- is a real matrix with for all .
- , and with and , where .
- , and satisfies with witness . That is, for every with and every with :
- , and satisfies, for all ,
- is a global minimiser of with .
Claim. With and , all four of the following hold:
Degenerate cases. The hypotheses exclude , , and . If , then and the right-hand sides of the first two inequalities are , so the claims force and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.