Theorem 6.1 — sparsity oracle inequality for the Lasso prediction loss
ProvedLassoDantzig.Oracle.theorem_6_1Let be independent random variables with , and observe , where is an arbitrary target and a design with nonzero column norms . Fix and integers , , , and let Assumption RE hold with constant . Let for some . Then there is an event of probability at least on which every Lasso solution of (2.1), with , satisfies, for every with ,
Equivalently, is at most times the infimum of the braces over all with : the Lasso predicts almost as well as the best -sparse linear combination of the dictionary, up to a remainder of order .
Formalization Note The paper writes " is a constant depending only on "; the proof (p. 26, ) yields , which is stated explicitly (a strengthening that implies the printed statement). The infimum is replaced by "for every with " on one event chosen before and the minimiser; this is equivalent since the index set is nonempty () and the braces are nonnegative. is any witness of RE (the paper's is the largest one). "With probability at least" is a measurable event with . Dictionary functions enter only through and .
import Mathlib import Definitions.Def_LassoDantzig_Oracle_Model open MeasureTheory ProbabilityTheory
namespace LassoDantzig.Oracle
/-- **Theorem 6.1** (p. 13), with the constant the proof (p. 26) yields,
`C(ε) = 4(2 + ε)²/(ε(1 + ε))`. Let `W_i` be independent `N(0, σ²)`, `σ² > 0`; fix `ε > 0`,
`n ≥ 1`, `M ≥ 2`, `1 ≤ s ≤ M`, and let RE(s, (3 + 4/ε) f_max/f_min) hold with witness `κ > 0`.
Let `r = Aσ√(log M / n)` with `A > 2√2`. With probability at least `1 − M^{1−A²/8}`, every Lasso
solution `β̂_L` of (2.1) with data `y = f + W` satisfies, for every `β` with `𝓜(β) ≤ s`,
`‖f̂_L − f‖_n² ≤ (1 + ε) (‖f_β − f‖_n² + C(ε) f_max² A² σ² / κ² · 𝓜(β) log M / n)`.
The target `f` is arbitrary. -/
theorem theorem_6_1 {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
{n M : ℕ} (hn : 1 ≤ n) (hM : 2 ≤ M)
(X : Matrix (Fin n) (Fin M) ℝ) (hcol : ∀ j, colNorm X j ≠ 0) (f : Fin n → ℝ)
(W : Fin n → Ω → ℝ) (σ : ℝ) (hσ : 0 < σ) (hW : GaussianNoise P W σ)
(ε : ℝ) (hε : 0 < ε) (s : ℕ) (hs1 : 1 ≤ s) (hsM : s ≤ M)
(κ : ℝ) (hκ : 0 < κ) (hRE : RE X s ((3 + 4 / ε) * fmax X / fmin X) κ)
(A : ℝ) (hA : 2 * Real.sqrt 2 < A) :
∃ E : Set Ω, MeasurableSet E ∧ 1 - (M : ℝ) ^ (1 - A ^ 2 / 8) ≤ (P E).toReal ∧
∀ ω ∈ E, ∀ βhat : Fin M → ℝ, IsLasso X (fun i => f i + W i ω) (tuning n M A σ) βhat →
∀ β : Fin M → ℝ, sparsity β ≤ s →
empSq (fun i => X.mulVec βhat i - f i) ≤
(1 + ε) * (empSq (fun i => X.mulVec β i - f i) +
4 * (2 + ε) ^ 2 / (ε * (1 + ε)) * fmax X ^ 2 * A ^ 2 * σ ^ 2 / κ ^ 2 *
((sparsity β : ℝ) * Real.log M / n)) := by sorry
end LassoDantzig.Oracle
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement is set in a probability space: a set with a σ-algebra and a probability measure on it. Because is a probability measure, is nonempty and . Several symbols in the statement are defined in the imported module Definitions.Def_LassoDantzig_Oracle_Model, whose code is not shown here. For each one, this read-back records only how it is used. Nothing more about its content can be stated from this code. These symbols are the column quantity , the noise predicate , the scalars and , the condition , the solution predicate , the tuning value , the count and the functional . The documentation comment attached to the declaration has no logical force, and the account below describes only the formal statement.
Data and hypotheses. The statement fixes the following:
- natural numbers and with and ;
- a real matrix with for every column index ;
- an arbitrary vector , with no condition on it;
- real-valued functions on , with no measurability or independence assumed beyond what the next item provides;
- a real such that holds;
- a real ;
- a natural number with ;
- a real such that the following condition holds:
- a real with .
Conclusion. There exists a measurable set with the following two properties.
First, its probability satisfies
where the power is the real power of the positive real and is read as a real number.
Second, for every outcome , the following holds:
- take every vector satisfying , where
- is the observation vector with coordinates , and
- ;
- take every vector with .
Then
Here and are ordinary matrix–vector products in , and is the natural logarithm.
The set depends on all the fixed data, including , , , , and . It is chosen once, and the inequality must then hold for all admissible and at once.
Degenerate cases. Since , and , the divisions by , , and are never divisions by zero.
- Probability bound. Since and , the exponent is strictly negative. So lies strictly between and , and the lower bound on lies strictly between and . Also .
- Division by . This division is not protected by any explicit hypothesis. If , the division is evaluated as and the third argument of becomes . Whether the hypothesis on rules this out depends on the unseen definitions.
- with sparsity 0. The vectors may have (for example , if that is how behaves). Then the second term in the bracket is , and the bound reduces to .
- No satisfies the predicate. If, for some , no satisfies with data , the conclusion for that holds vacuously. Whether this can happen depends on the unseen definition.
- Unsatisfiable hypotheses. The theorem is vacuous if the hypotheses or can never hold. Nothing in the displayed code settles whether they are satisfiable.
- Small sizes. The smallest permitted sizes are , and (or up to ). In those cases the statement asserts exactly the displayed inequality for those sizes.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.