ML.Lasso
Roll-up of the lasso family: l1penalty, lassoObjective, convexity of the finite objective, the scalar soft-thresholding optimality theorem softThreshold_isMinOn, the fixed-design restricted-eigenvalue oracle inequality,
Finite 4 core · 3 supporting The lasso objective is least squares plus the non-smooth convex penalty λ‖β‖₁ = λ ∑ₖ |βₖ|. ★ softThreshold★ convexOn_lassoObjective
Lasso — L1-regularized least squares (definitions + convexity)
The lasso objective is least squares plus the non-smooth convex penalty
λ‖β‖₁ = λ ∑ₖ |βₖ|. This file defines l1penalty, lassoObjective, and
softThreshold, and proves the nonnegativity and convexity facts needed by the
finite lasso objective. The scalar soft-thresholding optimality theorem is in
Lasso/Optimality.lean.
The L1 penalty measures a coefficient vector by summing its absolute coordinates over the finite coefficient index set, solutions.
Definition (Lean source)
The lasso objective trades residual squares against an L1 penalty. It evaluates a coefficient vector at penalty weight using a design matrix and outcome vector over finite observation and coefficient indices.
Definition (Lean source)
Soft thresholding shrinks a real input toward zero by thresholding its positive and negative parts, at the chosen threshold level.
The lasso objective is convex over the full coefficient space for a finite design and response vector on the observation and coefficient indices, provided the penalty weight is nonnegative.
Formal statement
Proof (Lean source)
3 supporting declarations (lemmas, instances)
-
l1penalty_nonnegtheorem — The L1 penalty is nonnegative.Proof (Lean source)
theorem l1penalty_nonneg (β : Param → ℝ) : 0 ≤ l1penalty β := Finset.sum_nonneg fun _ _ => abs_nonneg _ -
convexOn_l1penaltytheorem — The L1 penalty is convex as a function of the coefficient vector.Proof (Lean source)
theorem convexOn_l1penalty : ConvexOn ℝ univ (l1penalty (Param := Param)) := by classical unfold l1penalty let coord : Param → ((Param → ℝ) →ₗ[ℝ] ℝ) := fun k => LinearMap.proj k have hcoord : ∀ k : Param, ConvexOn ℝ univ (fun β : Param → ℝ => ‖β k‖) := by intro k simpa [Function.comp_def, coord] using (convexOn_univ_norm (E := ℝ)).comp_linearMap (coord k) have hfin : ∀ t : Finset Param, ConvexOn ℝ univ (fun β : Param → ℝ => t.sum fun k => ‖β k‖) := by intro t induction t using Finset.induction_on with | empty => simpa using (convexOn_const (𝕜 := ℝ) (E := Param → ℝ) (β := ℝ) (s := univ) (0 : ℝ) convex_univ) | insert k t hk ht => -- `ConvexOn.add` concludes about the point-free sum `f + g`; `simp` no -- longer bridges it to the lambda form, so close by `exact`. simp only [Finset.sum_insert hk] exact (hcoord k).add ht simpa [Real.norm_eq_abs] using hfin univ -
convexOn_olsObjectivetheorem — The least-squares objective is convex in the coefficients.hypothesesconclusionProof (Lean source)
theorem convexOn_olsObjective (X : Matrix Obs Param ℝ) (y : Obs → ℝ) : ConvexOn ℝ univ (olsObjective X y) := by classical unfold olsObjective let lin : Obs → ((Param → ℝ) →ₗ[ℝ] ℝ) := fun i => { toFun := fun β => (X *ᵥ β) i map_add' := by intro β γ simp [Matrix.mulVec_add] map_smul' := by intro c β simp [Matrix.mulVec_smul] } let aff : Obs → ((Param → ℝ) →ᵃ[ℝ] ℝ) := fun i => { toFun := fun β => y i - (X *ᵥ β) i linear := -lin i map_vadd' := by intro β δ simp only [vadd_eq_add] rw [Matrix.mulVec_add] simp [lin] ring } have hsquare : ConvexOn ℝ univ (fun t : ℝ => t ^ 2) := by simpa using (show Even 2 from by decide).convexOn_pow (𝕜 := ℝ) have hsummand : ∀ i : Obs, ConvexOn ℝ univ (fun β : Param → ℝ => (y i - (X *ᵥ β) i) ^ 2) := by intro i simpa [Function.comp_def, aff] using hsquare.comp_affineMap (aff i) have hfin : ∀ t : Finset Obs, ConvexOn ℝ univ (fun β : Param → ℝ => t.sum fun i => (y i - (X *ᵥ β) i) ^ 2) := by intro t induction t using Finset.induction_on with | empty => simpa using (convexOn_const (𝕜 := ℝ) (E := Param → ℝ) (β := ℝ) (s := univ) (0 : ℝ) convex_univ) | insert i t hi ht => simp only [Finset.sum_insert hi] exact (hsummand i).add ht simpa using hfin univ
OracleInequality 12 core · 0 supporting This module gives a fast-rate fixed-design Lasso bound under a full-vector cone-curvature condition. ★ exists_lassoMinimizer★ lasso_oracle_inequality
Fixed-design Lasso oracle inequality
This module gives a fast-rate fixed-design Lasso bound under a full-vector
cone-curvature condition. The objective is normalized as
(2n)⁻¹ ‖y - Xβ‖₂² + λ ‖β‖₁; exact minimizers exist for positive λ.
For an s-sparse truth, score domination
2 ‖Xᵀw/n‖∞ ≤ λ, and restricted curvature
‖XΔ‖₂²/n ≥ κ ‖Δ‖₂² on a factor-three cone, the main theorem proves
the simultaneous ℓ², ℓ¹, and prediction bounds with constants 3, 12, and
9. This is a strengthened and reparameterized deterministic variant of the
oracle-inequality argument in Bickel, Ritov, and Tsybakov (2009), Theorem 7.2:
here curvature controls the full perturbation norm rather than its restriction to
the active support, and kappa corresponds to a squared restricted-eigenvalue
constant. The cited theorem also adds stochastic assumptions not used here.
The Euclidean norm measures a finite coefficient vector in the stated dimension by the square root of summed squared coordinates.
The restricted one-norm measures a coefficient vector only on the selected coordinates, by summing their absolute values within the ambient dimension.
Normalized prediction error measures a coefficient perturbation by its mean squared fitted-value change. It uses sample and coefficient dimensions and the design matrix.
Normalized least-squares loss is half the mean squared residual. It evaluates a coefficient vector against the design and outcome vectors at the sample and coefficient dimensions.
The normalized Lasso objective trades half mean squared residual against weighted L1 norm. It scores a coefficient vector on the fixed design and outcomes at penalty level, with sample and coefficient dimensions.
A Lasso minimizer is a coefficient no worse than every competitor. The comparison uses the candidate, fixed design and outcomes, and penalty level at the sample and coefficient dimensions.
Definition (Lean source)
The normalized Lasso score at a coefficient coordinate is the mean design--noise product. It uses a fixed design and noise vector at the sample and coefficient dimensions.
The Lasso score infinity norm is the largest absolute coordinate score, with value zero in dimension zero. It uses a fixed design and noise vector at the sample and coefficient dimensions.
The factor-three Lasso cone contains perturbations with off-support norm at most three times on-support norm. It uses the proposed support in the ambient coefficient dimension.
The restricted-eigenvalue condition guarantees quadratic curvature on the factor-three cone. It uses the fixed design, proposed support, and curvature constant at the sample and coefficient dimensions.
Definition (Lean source)
Existence of a normalized Lasso solution. For a positive sample size, a positive coefficient dimension, a fixed design matrix, an outcome vector, and a positive penalty level, the normalized Lasso objective has a global minimizer.
Formal statement
Proof (Lean source)
Fixed-design Lasso oracle inequality under restricted eigenvalues. For a positive sample size, let the response obey the fixed-design model y = Xβ⋆ + w, let the true coefficient be supported on S with support size s, and let the positive penalty level satisfy twice the score infinity norm is at most the penalty. If the restricted-eigenvalue curvature κ is positive, the design satisfies restricted eigenvalues on the factor-three cone, and the candidate is an exact normalized Lasso minimizer, then its error has Euclidean norm at most 3√s λ/κ, one-norm at most 12sλ/κ, and normalized prediction error at most 9sλ²/κ.
Formal statement
Proof (Lean source)
HighProbability 1 core · 1 supporting This module constructs a Borel measurable exact Lasso minimizer and combines the deterministic oracle inequality with the sub-Gaussian score event. ★ lasso_oracle_inequality_of_subgaussian
High-probability fixed-design Lasso oracle bounds
This module constructs a Borel measurable exact Lasso minimizer and combines the deterministic oracle inequality with the sub-Gaussian score event.
Sub-Gaussian Lasso oracle inequality. Given a probability law, a fixed design, noise coordinates, positive noise scale and confidence level, a true coefficient with support of size, and restricted-eigenvalue constant, assume positive dimensions, positive scale, a confidence level strictly between zero and one, measurable noise, independence, sub-Gaussian moment bounds, normalized design columns, support containment, the asserted support size, positive curvature, and restricted eigenvalues. Then there is a measurable exact Lasso minimizer whose Euclidean, one-norm, and prediction errors simultaneously obey the stated bounds with probability at least 1 - delta.
Formal statement
Proof (Lean source)
1 supporting declaration (lemmas, instances)
-
exists_measurable_lassoMinimizertheorem — Exact Lasso solutions admit a Borel measurable response rule for a fixed design with positive sample and coefficient dimensions and a strictly positive penalty. Measurability makes the optimizer usable as a random estimator.hypothesesconclusionMeasurable βhatProof (Lean source)
theorem exists_measurable_lassoMinimizer {n p : ℕ} (X : Matrix (Fin n) (Fin p) ℝ) (lam : ℝ) (hn : 0 < n) (hp : 0 < p) (hlam : 0 < lam) : ∃ βhat : (Fin n → ℝ) → (Fin p → ℝ), Measurable βhat ∧ ∀ y, IsLassoMinimizer X y lam (βhat y) := by classical let _ : Nonempty (Fin p) := Fin.pos_iff_nonempty.mp hp let E := EuclideanSpace.equiv (Fin p) ℝ let K : Set (EuclideanSpace ℝ (Fin p)) := closedBall 0 1 let r : (Fin n → ℝ) → ℝ := fun y => fixedDesignLoss X y 0 / lam + 1 let f : (Fin n → ℝ) × EuclideanSpace ℝ (Fin p) → ℝ := fun yg => normalizedLassoObjective X yg.1 lam (r yg.1 • E yg.2) have hr_pos : ∀ y, 0 < r y := by intro y have hloss : 0 ≤ fixedDesignLoss X y 0 := by unfold fixedDesignLoss exact mul_nonneg (by positivity) (Finset.sum_nonneg fun _ _ => sq_nonneg _) dsimp [r] positivity have hK : IsCompact K := ProperSpace.isCompact_closedBall 0 1 have hKne : K.Nonempty := ⟨0, by simp [K]⟩ have hf : Measurable f := by unfold f r normalizedLassoObjective fixedDesignLoss l1penalty fun_prop have hfc : ∀ y, ContinuousOn (fun g => f (y, g)) K := by intro y apply Continuous.continuousOn unfold f r normalizedLassoObjective fixedDesignLoss l1penalty fun_prop obtain ⟨g, hgmeas, hgmin⟩ := Causalean.Mathlib.MeasureTheory.borelMeasurable_compact_argmin_selector K hK hKne f hf hfc let βhat : (Fin n → ℝ) → (Fin p → ℝ) := fun y => r y • E (g y) refine ⟨βhat, ?_, ?_⟩ · unfold βhat r fixedDesignLoss fun_prop · intro y β have hzeroK : (0 : EuclideanSpace ℝ (Fin p)) ∈ K := by simp [K] have hselected_zero : normalizedLassoObjective X y lam (βhat y) ≤ normalizedLassoObjective X y lam 0 := by simpa [βhat, f] using (hgmin y).2 0 hzeroK by_cases hβ : ‖E.symm β‖ ≤ r y · let u : EuclideanSpace ℝ (Fin p) := (r y)⁻¹ • E.symm β have huK : u ∈ K := by change u ∈ closedBall (0 : EuclideanSpace ℝ (Fin p)) 1 rw [mem_closedBall, dist_zero_right, norm_smul] dsimp [u] have hinvabs : |(r y)⁻¹| = (r y)⁻¹ := abs_of_pos (inv_pos.mpr (hr_pos y)) rw [hinvabs] rw [inv_mul_le_one₀ (hr_pos y)] exact hβ have hmin := (hgmin y).2 u huK have hscale : r y • E u = β := by dsimp [u] rw [map_smul, smul_smul, mul_inv_cancel₀ (hr_pos y).ne', one_smul, E.apply_symm_apply] simpa [βhat, f, hscale] using hmin · have hr_lt_l1 : r y < l1penalty β := lt_of_not_ge hβ |>.trans_le (euclidean_norm_coeff_le_l1 β) have hlossβ : 0 ≤ fixedDesignLoss X y β := by unfold fixedDesignLoss exact mul_nonneg (by positivity) (Finset.sum_nonneg fun _ _ => sq_nonneg _) have hzero : normalizedLassoObjective X y lam 0 < normalizedLassoObjective X y lam β := by unfold normalizedLassoObjective have hr_eq : lam * r y = fixedDesignLoss X y 0 + lam := by dsimp [r] field_simp [hlam.ne'] have := mul_lt_mul_of_pos_left hr_lt_l1 hlam change fixedDesignLoss X y 0 + lam * l1penalty 0 < fixedDesignLoss X y β + lam * l1penalty β rw [show l1penalty (0 : Fin p → ℝ) = 0 by simp [l1penalty], mul_zero, add_zero] nlinarith [hr_eq] exact hselected_zero.trans hzero.le
Optimality 1 core · 0 supporting The scalar soft-thresholding identity: S_λ(a) is the exact minimizer of the one-dimensional penalized objective (u − a)² + 2λ|u|. ★ softThreshold_isMinOn
Lasso — soft-thresholding closed form
The scalar soft-thresholding identity: S_λ(a) is the exact minimizer of the
one-dimensional penalized objective (u − a)² + 2λ|u|. This is the per-coordinate
proximal step that underlies closed-form lasso calculations in orthonormal
coordinates.
Soft thresholding minimizes one-dimensional penalized least squares at the observed scalar whenever the regularization level is nonnegative.
Formal statement
Proof (Lean source)
Rate 1 core · 1 supporting The slow uniform-deviation rate over an L¹-norm-bounded class of linear predictors a ↦ ∑ⱼ wⱼ aⱼ (the lasso constraint set). ★ rademacherComplexity_l1_ball_le
Lasso / L¹-ball linear predictors — Rademacher rate
The slow uniform-deviation rate over an L¹-norm-bounded class of
linear predictors a ↦ ∑ⱼ wⱼ aⱼ (the lasso constraint set). Over L∞-bounded features,
the Rademacher complexity of the L¹-ball class carries the characteristic √(log d)
dimension factor: ≤ (X∞·W/√n)·√(2 log 2d). Combined with the generic ERM oracle
inequality this gives an O(√(log d / n)) rate for the displayed linear functional. It
uses neither sparsity nor a restricted-eigenvalue condition and claims no fast rate.
The squared-loss excess-risk specialization is in Lasso/SquaredLoss.lean.
Built on FoML's linear_predictor_l1_bound' (Massart finite-class bound for the L¹-ball,
lifted here to the expected rademacherComplexity).
Rademacher complexity of the L¹-ball linear class. If the dimension d is positive, the sample size n is positive, the coordinatewise feature bound Xinf is nonnegative, the weight bound W is nonnegative, and every feature coordinate is bounded in absolute value by Xinf, then the expected Rademacher complexity of the class of linear predictors with L¹ weight norm at most W is at most (Xinf·W/√n)·√(2 log 2d).
Formal statement
Proof (Lean source)
1 supporting declaration (lemmas, instances)
-
lasso_erm_excess_ratetheorem — L¹-ball constrained ERM linear-functional deviation rate. For linear predictors indexed by the L¹ ball, if the dimension d is positive, the sample size n is positive, the coordinatewise feature bound Xinf is nonnegative, the weight bound W is nonnegative, the feature map X is measurable, the constant t satisfies the calibration t·(Xinf·W)² ≤ 1/2, the tolerance ε is nonnegative, and the estimator ŵ attains an empirical linear functional no larger than that of the comparator wstar, then the probability that the corresponding excess population linear functional of ŵ over wstar exceeds 4·(Xinf·W/√n)·√(2 log 2d) + 2ε is at most exp(-ε²tn).hypothesesd n :ℕhd :0 < dhn :0 < nΩ :Xinf W :ℝhXinf :0 ≤ XinfhW :0 ≤ WX :Ω → LinftyBall (d := d) XinfhX :Measurable fun ω => (X ω).1t :ℝht' :t * (Xinf * W) ^ 2 ≤ 1 / 2ε :ℝhε :0 ≤ εŵ :(Fin n → Ω) → L1Ball (d := d) Wwstar :L1Ball (d := d) WhERM :∀ ω : Fin n → Ω,(n : ℝ)⁻¹ * ∑ k, ∑ j, (ŵ ω).1 j * (X (ω k)).1 j≤ (n : ℝ)⁻¹ * ∑ k, ∑ j, wstar.1 j * (X (ω k)).1 jProof (Lean source)
theorem lasso_erm_excess_rate {d n : ℕ} (hd : 0 < d) (hn : 0 < n) {Ω : Type*} [MeasurableSpace Ω] {μ : Measure Ω} [IsProbabilityMeasure μ] {Xinf W : ℝ} (hXinf : 0 ≤ Xinf) (hW : 0 ≤ W) (X : Ω → LinftyBall (d := d) Xinf) (hX : Measurable fun ω => (X ω).1) {t : ℝ} (ht' : t * (Xinf * W) ^ 2 ≤ 1 / 2) {ε : ℝ} (hε : 0 ≤ ε) (ŵ : (Fin n → Ω) → L1Ball (d := d) W) (wstar : L1Ball (d := d) W) (hERM : ∀ ω : Fin n → Ω, (n : ℝ)⁻¹ * ∑ k, ∑ j, (ŵ ω).1 j * (X (ω k)).1 j ≤ (n : ℝ)⁻¹ * ∑ k, ∑ j, wstar.1 j * (X (ω k)).1 j) : (Measure.pi (fun _ : Fin n => μ) (fun ω => 4 * ((Xinf * W / sqrt (n : ℝ)) * sqrt (2 * log (2 * d))) + 2 * ε < μ[fun ω' => ∑ j, (ŵ ω).1 j * (X ω').1 j] - μ[fun ω' => ∑ j, wstar.1 j * (X ω').1 j])).toReal ≤ (- ε ^ 2 * t * n).exp := by classical let 𝒳 := LinftyBall (d := d) Xinf let ι := L1Ball (d := d) W letI : MeasurableSpace 𝒳 := comap (fun a : 𝒳 => (a.1 : EuclideanSpace ℝ (Fin d))) inferInstance -- State these on `L1Ball` itself, not on the `let`-bound `ι`: abstracting the -- `let` variable while the instance value's type stays at the unfolded subtype -- makes the auto-generated `_aux`/`_proof` declarations kernel-ill-typed. letI : TopologicalSpace (L1Ball (d := d) W) := inferInstanceAs (TopologicalSpace {w : EuclideanSpace ℝ (Fin d) // l1Norm (d := d) w ≤ W}) haveI : SeparableSpace (L1Ball (d := d) W) := inferInstanceAs (SeparableSpace {w : EuclideanSpace ℝ (Fin d) // l1Norm (d := d) w ≤ W}) haveI : FirstCountableTopology (L1Ball (d := d) W) := inferInstanceAs (FirstCountableTopology {w : EuclideanSpace ℝ (Fin d) // l1Norm (d := d) w ≤ W}) let f : ι → 𝒳 → ℝ := fun w a => ∑ j, w.1 j * a.1 j have hXmeas : Measurable X := by rw [measurable_comap_iff] exact hX haveI : Nonempty 𝒳 := ⟨⟨0, by intro j; simpa using hXinf⟩⟩ haveI : Nonempty ι := ⟨⟨0, by simpa [l1Norm, ι] using hW⟩⟩ have hb : 0 ≤ Xinf * W := mul_nonneg hXinf hW have hf : ∀ w : ι, Measurable (f w) := by intro w let g : EuclideanSpace ℝ (Fin d) → ℝ := fun a => ∑ j, w.1 j * a j have hg : Measurable g := by dsimp [g] fun_prop change Measurable (g ∘ fun a : 𝒳 => (a.1 : EuclideanSpace ℝ (Fin d))) exact hg.comp (comap_measurable (fun a : 𝒳 => (a.1 : EuclideanSpace ℝ (Fin d)))) have hf' : ∀ w : ι, ∀ a : 𝒳, |f w a| ≤ Xinf * W := by intro w a have hlinear : |∑ j : Fin d, w.1 j * a.1 j| ≤ l1Norm (d := d) w.1 * Xinf := by exact abs_sum_mul_le_l1_mul (d := d) (w := w.1) (z := a.1) (M := Xinf) a.2 calc |f w a| ≤ l1Norm (d := d) w.1 * Xinf := by simpa [f] using hlinear _ ≤ W * Xinf := mul_le_mul_of_nonneg_right w.2 hXinf _ = Xinf * W := by ring have hf'' : ∀ a : 𝒳, Continuous fun w : ι => f w a := by intro a let g : EuclideanSpace ℝ (Fin d) → ℝ := fun w => ∑ j, w j * a.1 j have hg : Continuous g := by dsimp [g] fun_prop change Continuous (g ∘ fun w : ι => (w.1 : EuclideanSpace ℝ (Fin d))) exact hg.comp continuous_subtype_val have hRC : rademacherComplexity n f μ X ≤ (Xinf * W / sqrt (n : ℝ)) * sqrt (2 * log (2 * d)) := by let C : ℝ := (Xinf * W / sqrt (n : ℝ)) * sqrt (2 * log (2 * d)) have hpoint : ∀ ω : Fin n → Ω, empiricalRademacherComplexity n f (X ∘ ω) ≤ C := by intro ω have h := linear_predictor_l1_bound' (ι := ι) (Xinf := Xinf) (W := W) hXinf hW hd hn (Y' := X ∘ ω) (w' := id) exact h unfold rademacherComplexity calc (∫ ω : Fin n → Ω, empiricalRademacherComplexity n f (X ∘ ω) ∂Measure.pi (fun _ => μ)) ≤ ∫ _ω : Fin n → Ω, C ∂Measure.pi (fun _ => μ) := by apply MeasureTheory.integral_mono_of_nonneg · exact Filter.Eventually.of_forall fun _ω => by unfold empiricalRademacherComplexity exact mul_nonneg (inv_nonneg.mpr (Nat.cast_nonneg _)) (Finset.sum_nonneg fun _σ _ => Real.iSup_nonneg fun _i => abs_nonneg _) · exact integrable_const C · exact Filter.Eventually.of_forall hpoint _ = (Xinf * W / sqrt (n : ℝ)) * sqrt (2 * log (2 * d)) := by simp [C] have key := erm_oracle_inequality_separable (μ := μ) (n := n) (f := f) hf X hXmeas (b := Xinf * W) hb hf' hf'' ht' hε ŵ wstar hERM refine le_trans ?_ key refine ENNReal.toReal_mono (measure_ne_top _ _) (measure_mono ?_) intro ω hω have hthreshold : 4 • rademacherComplexity n f μ X + 2 * ε ≤ 4 * ((Xinf * W / sqrt (n : ℝ)) * sqrt (2 * log (2 * d))) + 2 * ε := by calc 4 • rademacherComplexity n f μ X + 2 * ε = 4 * rademacherComplexity n f μ X + 2 * ε := by simp [nsmul_eq_mul] _ ≤ 4 * ((Xinf * W / sqrt (n : ℝ)) * sqrt (2 * log (2 * d))) + 2 * ε := by nlinarith [hRC] exact lt_of_le_of_lt hthreshold hω
SquaredLoss 3 core · 0 supporting The genuine squared-loss statistical rate for empirical risk minimization over an L¹-norm-bounded class of linear predictors a ↦ ∑ⱼ wⱼ aⱼ. ★ lasso_erm_squaredLoss_excess_rate
Lasso / L¹-ball linear predictors — squared-loss excess-risk rate
The genuine squared-loss statistical rate for empirical risk minimization over an
L¹-norm-bounded class of linear predictors a ↦ ∑ⱼ wⱼ aⱼ. Features are
L∞-bounded and responses are bounded, so the rate carries the lasso
√(2 log 2d) dimension factor.
The Rademacher complexity of the squared-loss class is bounded by decomposing the
centered loss (∑ⱼ wⱼxⱼ - y)² - y² = (∑ⱼ wⱼxⱼ)² - 2y∑ⱼ wⱼxⱼ:
* the quadratic part is handled by the infinite-index Ledoux--Talagrand contraction
with the clamped square as the Lipschitz surrogate, reducing to the lasso linear-class
bound;
* the cross part 2y∑ⱼ wⱼxⱼ is itself a lasso linear class over the rescaled
L∞-bounded features 2y·x.
Combined with the generic ERM oracle inequality (erm_oracle_inequality_separable) this
gives the O(√(log d / n)) squared-loss excess-risk rate
lasso_erm_squaredLoss_excess_rate.
The bounded lasso feature--response space imposes the stated coordinate and response bounds. Its dimension, coordinate bound, and response bound specify the learning domain.
Definition (Lean source)
The lasso weight space contains vectors whose L1 norm is within radius, in the stated dimension at radius.
Definition (Lean source)
Lasso ERM squared-loss excess-risk rate over the L¹ ball. For data pairing coordinatewise-bounded features with bounded responses, and predictors indexed by the coordinate L¹ ball of radius W, if the dimension d is positive, the sample size n is positive, the coordinatewise feature bound Xinf is nonnegative, the response bound Yb is nonnegative, the weight bound W is nonnegative, the feature coordinate map is measurable, the response coordinate map is measurable, the constant t satisfies the calibration t·((Xinf·W)² + 2·Yb·Xinf·W)² ≤ 1/2, the tolerance ε is nonnegative, and the estimator ŵ attains empirical squared loss no larger than that of the comparator wstar, then for the squared regression loss (∑ⱼ wⱼxⱼ - y)², the probability that the excess population risk of ŵ over wstar exceeds 4·((4(XinfW)² + 2·Yb·Xinf·W)/√n)·√(2 log 2d) + 2ε is at most exp(-ε²tn).
Formal statement
Proof (Lean source)
SubGaussian 1 core · 0 supporting This module discharges the score-domination event used by the deterministic Lasso oracle inequality. ★ lasso_score_event_of_subgaussian
Sub-Gaussian score control for fixed-design Lasso
This module discharges the score-domination event used by the deterministic
Lasso oracle inequality. Independent centered noise coordinates with common
sub-Gaussian proxy σ², combined with design columns of squared norm at most
n, make every coordinate of Xᵀw/n sub-Gaussian with proxy σ²/n.
The finite-family maximal inequality then shows that
λ = 2σ √(2 log(2p/δ)/n) dominates twice the score infinity norm with
probability at least 1-δ.
Sub-Gaussian Lasso score event. Given a probability measure, positive sample and coefficient dimensions, a fixed design matrix, measurable independent noise coordinates that are sub-Gaussian with proxy σ², a positive noise scale, design columns with squared norm at most n, and a confidence level strictly between zero and one, twice the score infinity norm is at most 2σ√(2 log(2p/δ)/n) with probability at least 1-δ.