Lemma B.1, (B.1) — basic inequality for the Lasso with high probability
ProvedLassoDantzig.Oracle.lemma_B1Fix and , a design with nonzero column norms and an arbitrary target . Let be independent random variables with , , and let for some . Then there is an event of probability at least on which every Lasso solution of (2.1), with , satisfies simultaneously for all
Lemma B.1 is the common starting point of the paper's Lasso bounds (Theorems 5.1, 6.1, 7.2).
Formalization Note "With probability at least " is a measurable event with , chosen before and the minimiser. Only the (B.1) clause of Lemma B.1 is stated; (B.2) and (B.3) are not used by Theorem 6.1.
import Mathlib import Definitions.Def_LassoDantzig_Oracle_Model open MeasureTheory ProbabilityTheory
namespace LassoDantzig.Oracle
/-- **Lemma B.1, (B.1)** (p. 20). Fix `M ≥ 2`, `n ≥ 1`, independent `W_i ∼ N(0, σ²)` with
`σ² > 0`, and `r = Aσ√(log M / n)` with `A > 2√2`. With probability at least `1 − M^{1−A²/8}`,
simultaneously for all `β ∈ ℝ^M` and every Lasso solution `β̂_L` of (2.1) with data `y = f + W`:
`‖f̂_L − f‖_n² + r ∑_j ‖f_j‖_n |β̂_{j,L} − β_j| ≤ ‖f_β − f‖_n² + 4r ∑_{j ∈ J(β)} ‖f_j‖_n |β̂_{j,L} − β_j|
≤ ‖f_β − f‖_n² + 4r √𝓜(β) √(∑_{j ∈ J(β)} ‖f_j‖_n² |β̂_{j,L} − β_j|²)`. -/
theorem lemma_B1 {Ω : 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 σ)
(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 → ℝ,
empSq (fun i => X.mulVec βhat i - f i) +
tuning n M A σ * ∑ j, colNorm X j * |βhat j - β j| ≤
empSq (fun i => X.mulVec β i - f i) +
4 * tuning n M A σ * ∑ j ∈ supp β, colNorm X j * |βhat j - β j| ∧
empSq (fun i => X.mulVec β i - f i) +
4 * tuning n M A σ * ∑ j ∈ supp β, colNorm X j * |βhat j - β j| ≤
empSq (fun i => X.mulVec β i - f i) +
4 * tuning n M A σ * 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
The statement is about a probability space , where is a probability measure. It also involves:
- natural numbers and with and ;
- a real matrix with columns ;
- a vector ;
- a real number ;
- a real number with ;
- random variables .
Several notions come from the imported definitions file, which was not provided. Each is described below only by its name and how it is used; its actual content cannot be checked from the code shown.
- : a real number attached to column of , written here .
- : a hypothesis about the family under with parameter .
- : a real number, written here .
- : a predicate on a design matrix, a response vector, a tuning value and a coefficient vector.
- : a real number attached to a vector , written here .
- : a finite set of column indices attached to , written here .
- : a real number attached to (possibly a count converted to a real), written here .
The statement has two further hypotheses:
- for every column ;
- holds.
Under these hypotheses, the statement claims that some measurable event exists that satisfies both of the following.
- Its probability is bounded below:
Here the power is the real power with base .
-
For every outcome , every with , and every , two inequalities hold together. The response vector has entries .
The first inequality sums over all columns on the left and only over on the right:
The second inequality starts from the right-hand side of the first:
In both inequalities, and are ordinary matrix–vector products.
The same event must work for all and all at once. It does not depend on , and it does not depend on which Lasso solution is taken.
On degenerate cases:
- Empty or one-element index sets: these cannot occur. The hypotheses require and , so both index sets have at least one and two elements respectively.
- The probability bound: gives , so the exponent is negative. With , the bound therefore lies strictly between 0 and 1. is finite because is a probability measure, so turning it into a real number loses nothing.
- No Lasso solution: for an outcome where no satisfies , the second claim holds vacuously at that .
- Impossible hypotheses: if or the column condition cannot be satisfied, the whole statement holds vacuously. Whether that happens cannot be checked from the code shown.
- Empty : the sums over are then 0. The first inequality then says that plus times the full weighted sum is at most . The second inequality then reads plus .
- Square roots: Lean's real square root returns 0 for any negative argument. The sum under the second square root has nonnegative terms, provided the squared quantities are real numbers as they appear, so the rule cannot apply there. It would apply to only if can be negative, which the code shown does not settle.
- Sign of : the code shown does not settle whether is positive. If could be zero or negative, the weighted-sum terms would vanish or change sign accordingly.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.