Proof of Lemma B.1 — on the noise event every Lasso solution satisfies (B.1)
ProvedLassoDantzig.Oracle.lemma_B1_on_eventLet , , and , and suppose the noise vector lies in the event :
Let be any Lasso solution (2.1) for the data with tuning constant , and write . Then for every
This deterministic "basic inequality" is the heart of the Lasso analysis; combined with (B.4) it gives Lemma B.1. The target is arbitrary.
import Mathlib import Definitions.Def_LassoDantzig_Oracle_Model open MeasureTheory ProbabilityTheory
namespace LassoDantzig.Oracle
/-- **Lemma B.1, (B.1), deterministic core** (p. 21, proof of Lemma B.1: "so that on 𝒜 we get
(B.1)"). Let `w = y − f` lie in the event `𝒜`, i.e. `2|n⁻¹ ∑ᵢ X_{ij} w_i| ≤ r ‖f_j‖_n` for every
`j`, and let `β̂` be any Lasso solution (2.1) with tuning constant `r > 0`. Then for every
`β ∈ ℝ^M`:
`‖f̂_L − f‖_n² + r ∑_j ‖f_j‖_n |β̂_j − β_j| ≤ ‖f_β − f‖_n² + 4r ∑_{j ∈ J(β)} ‖f_j‖_n |β̂_j − β_j|
≤ ‖f_β − f‖_n² + 4r √𝓜(β) √(∑_{j ∈ J(β)} ‖f_j‖_n² |β̂_j − β_j|²)`. -/
theorem lemma_B1_on_event {n M : ℕ} (hn : 1 ≤ n) (X : Matrix (Fin n) (Fin M) ℝ)
(f y : Fin n → ℝ) (r : ℝ) (hr : 0 < r) (hA : NoiseBound X (fun i => y i - f i) r)
(βhat : Fin M → ℝ) (hL : IsLasso X y r βhat) (β : Fin M → ℝ) :
empSq (fun i => X.mulVec βhat i - f i) + r * ∑ j, colNorm X j * |βhat j - β j| ≤
empSq (fun i => X.mulVec β i - f i) +
4 * r * ∑ j ∈ supp β, colNorm X j * |βhat j - β j| ∧
empSq (fun i => X.mulVec β i - f i) +
4 * r * ∑ j ∈ supp β, colNorm X j * |βhat j - β j| ≤
empSq (fun i => X.mulVec β i - f i) +
4 * r * Real.sqrt (sparsity β) *
Real.sqrt (∑ j ∈ supp β, colNorm X j ^ 2 * |βhat j - β j| ^ 2) := by sorry
end LassoDantzig.Oracle
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. This statement is deterministic.
- ; is any natural number, including .
- is a real matrix. There is no condition on its columns, so zero columns are allowed.
- , and .
- The vector satisfies, for every ,
- is any global minimiser over of
with .
- is arbitrary, with support and .
Conclusion. Both of the following inequalities hold:
Degenerate cases.
- . and are the empty vector, and every sum is empty. Both inequalities read .
- . is empty, and the first inequality becomes
- Zero columns. A column with contributes nothing to any of the sums.
- Existence of a minimiser. Because , a minimiser exists, so the hypothesis on is not vacuous.
LassoDantzig.Oracle.lemma_B1
Setting.
- is a probability space.
- and .
- is a real matrix with for every column, where .
- is fixed.
- , and are measurable, mutually independent, each with law under .
- , and .
Conclusion. There exists a measurable event with
with the following property. For every , set . Then for every global minimiser over of
and for every , both of the following hold:
Here and .
Order of quantifiers. The event is chosen after , , , and are fixed, so it may depend on all of them, including . It is chosen before and , so it works simultaneously for all minimisers and all .
Degenerate cases. The hypotheses exclude , and . Consequently:
- and ;
- the bound lies strictly between and , because and ;
- for each , since , a minimiser exists, so the inner statement is not vacuous;
- with , the first inequality gives on .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.