Theorem 5.1 — approximate equivalence of the Lasso and Dantzig prediction losses
ProvedLassoDantzig.Equivalence.theorem_5_1Let and . Let be the design matrix of a dictionary at design points , with empirical column norms , and let be arbitrary (the regression function is not assumed to be a combination of the ). Let be independent random variables with , and observe . Let Assumption RE hold with and witness . Let and
Then there is an event of probability at least on which, for every Lasso solution of (2.1) and every Dantzig selector of (2.4) (both with this ) such that ,
where , , and .
The two estimators thus have prediction losses that differ by at most the rate of a sparse regression with parameters, up to the factor measuring how ill-posed the Gram matrix is on sparse vectors. Any prediction bound proved for one estimator then transfers to the other at this cost.
Formalization Note is any witness of RE; the paper's is the largest witness and the bound decreases in , so the two formulations are equivalent. The condition "" concerns the realised Lasso solution and is required inside the event, for each and each solution; the event itself does not depend on the solutions. Neither estimator need be unique and the bound holds for all of them. The law of is Mathlib's gaussianReal 0 σ², with each measurable and the family mutually independent; is the natural logarithm; the event is measurable and its probability is taken as a real number.
import Mathlib import Definitions.Def_LassoDantzig_Equivalence_Model open MeasureTheory ProbabilityTheory
namespace LassoDantzig.Equivalence
/-- Theorem 5.1 (Bickel–Ritov–Tsybakov): approximate equivalence of the Lasso and Dantzig
prediction losses. With probability at least `1 − M^{1 − A²/8}`, for every Lasso solution
`β̂_L` with `𝓜(β̂_L) ≤ s` and every Dantzig selector `β̂_D` (same `r = Aσ√(log M / n)`),
`|‖f̂_D − f‖_n² − ‖f̂_L − f‖_n²| ≤ 16 A² (𝓜(β̂_L) σ² / n) (f_max² / κ²) log M`. -/
theorem theorem_5_1 {n M : ℕ} (hn : 1 ≤ n) (hM : 2 ≤ M)
(X : Matrix (Fin n) (Fin M) ℝ) (f : Fin n → ℝ) (hX : ∀ j, colNorm X j ≠ 0)
{Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
(W : Fin n → Ω → ℝ) (σ : ℝ) (hσ : 0 < σ) (hWm : ∀ i, Measurable (W i))
(hWind : iIndepFun W P) (hWlaw : ∀ i, P.map (W i) = gaussianReal 0 (σ ^ 2).toNNReal)
(s : ℕ) (hs1 : 1 ≤ s) (hsM : s ≤ M) (κ : ℝ) (hκ : 0 < κ) (hRE : RE X s 1 κ)
(A : ℝ) (hA : 2 * Real.sqrt 2 < A) (r : ℝ) (hr : r = A * σ * Real.sqrt (Real.log M / n)) :
∃ E : Set Ω, MeasurableSet E ∧ 1 - (M : ℝ) ^ (1 - A ^ 2 / 8) ≤ (P E).toReal ∧
∀ ω ∈ E, ∀ βL βD : Fin M → ℝ,
IsLasso X (fun i => f i + W i ω) r βL → IsDantzig X (fun i => f i + W i ω) r βD →
sparsity βL ≤ s →
|predLoss X f βD - predLoss X f βL| ≤
16 * A ^ 2 * ((sparsity βL : ℝ) * σ ^ 2 / n) * (fmax X ^ 2 / κ ^ 2) * Real.log M := by sorry
end LassoDantzig.Equivalence
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Throughout, and are natural numbers with and . The data are:
- a real matrix (rows indexed by , columns by );
- a deterministic vector .
The matrix is assumed to satisfy for every column . Here , and also , , , , and below, are defined in the imported module Definitions.Def_LassoDantzig_Equivalence_Model. Their bodies are not part of this code, so this read-back names them only and does not say what they compute.
The random noise. Let be an arbitrary probability space. Let be functions with these properties:
- each is measurable;
- are mutually independent under ;
- the law of each under is the Gaussian , where is a real number with .
The remaining parameters.
- is a natural number with .
- is a real number with such that holds.
- is a real number with .
- is the real number
(natural logarithm, with and cast to reals).
The conclusion. There exists a measurable set with
(real-valued power) with the following property. For every , let
be the observation vector. Then for all vectors , the three conditions
- ,
- ,
- (a natural-number comparison)
together imply
What the conclusion depends on.
- Both losses are evaluated against the deterministic vector , not against . The noise enters only through the predicates and .
- The right-hand side uses , not .
- The same is passed to both predicates.
- No relation between and is assumed.
- The set is only asserted to exist. It is chosen once, before and are quantified.
Degenerate cases. The hypotheses rule out most of the usual default-value cases:
- No zero counts. Since , the division by is genuine. Since , , so and the square root is of a positive number. Since , the division by is genuine.
- The noise variance. Since , the variance given to the Gaussian (converted to a nonnegative real) is exactly , not truncated to .
- The probability bound. Since , we have , so the exponent is negative and lies strictly between and . The lower bound on therefore lies strictly between and . is finite because is a probability measure, so converting it to a real number loses nothing.
- Empty or one-element types. The index sets have at least one row () and at least two columns (). is an arbitrary type carrying a probability measure, so it is nonempty.
- Vacuous cases. The inner implication holds vacuously at any for which no vector satisfies , or none satisfies , or every Lasso vector has . The whole statement holds vacuously if the hypotheses and cannot be met together. Whether that can happen is not decidable from this code, because those definitions are not shown.
- Where the imported definitions could hide default values. Any division, subtraction, supremum or similar operation inside , , , , or could produce a default value in edge cases. Their bodies are not shown, so this cannot be checked from this code.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.