Stat.Concentration.VC.Rademacher
For a countable class of measurable functions bounded by U, with population L² norm at most σ < U and polynomial empirical L² covering numbers (base A ≥ e, exponent v ≥ 1), the Rademacher complexity at sample size n is a
Conditional 2 core · 8 supporting This file connects absolute and signed empirical Rademacher complexities, proves the conditional entropy-integral estimate used by the VC maximal bound, and develops measurability and deterministic bounds for the empiric ★ empiricalRademacher_conditional_le
Conditional Rademacher and empirical-radius bounds
This file connects absolute and signed empirical Rademacher complexities,
proves the conditional entropy-integral estimate used by the VC maximal
bound, and develops measurability and deterministic bounds for the empirical
L² radius. The entropy integration and final variance-adaptive theorem live
in the sibling files.
For a measurable observation space, nonempty function index set, and function class, an envelope, entropy cutoff, covering constant, entropy exponent, and empirical radius, if the cutoff is positive and below the envelope, the covering constant and exponent satisfy their lower bounds, every function is measurable, the envelope bounds every function, and the class has polynomial empirical covering numbers, then for a positive sample size and realized sample, a uniform empirical-radius bound, positive radius, and radius below the envelope, the conditional empirical Rademacher complexity obeys the stated localized entropy bound.
Formal statement
Proof (Lean source)
For a function class and a finite sample, the empirical L² radius is the largest empirical L² norm among the functions in the class. It summarizes the sample-specific scale used in variance-adaptive bounds.
Definition (Lean source)
8 supporting declarations (lemmas, instances)
-
empiricalRademacherComplexity_le_signed_add_neg_of_zerolemma — If the class contains a zero function, the envelope level is nonnegative, and every function is bounded in absolute value by the envelope, then its empirical Rademacher complexity is bounded by the sum of the unsigned-supremum complexities of the class and its negation.hypotheses𝒳 :sharedType uι :sharedType vNonempty ιH :ι → 𝒳 → ℝi₀ :ιhzero :∀ x, H i₀ x = 0M :ℝhM0 :0 ≤ MhM :∀ i x, |H i x| ≤ Mn :ℕS :Fin n → 𝒳conclusionempiricalRademacherComplexity n H S≤ empiricalRademacherComplexity_without_abs n H S+ empiricalRademacherComplexity_without_abs n (fun i x => -H i x) SProof (Lean source)
lemma empiricalRademacherComplexity_le_signed_add_neg_of_zero [Nonempty ι] (H : ι → 𝒳 → ℝ) (i₀ : ι) (hzero : ∀ x, H i₀ x = 0) {M : ℝ} (hM0 : 0 ≤ M) (hM : ∀ i x, |H i x| ≤ M) (n : ℕ) (S : Fin n → 𝒳) : empiricalRademacherComplexity n H S ≤ empiricalRademacherComplexity_without_abs n H S + empiricalRademacherComplexity_without_abs n (fun i x => -H i x) S := by classical unfold empiricalRademacherComplexity empiricalRademacherComplexity_without_abs rw [← mul_add, ← Finset.sum_add_distrib] refine mul_le_mul_of_nonneg_left (Finset.sum_le_sum fun τ _ => ?_) (by positivity) let z : ι → ℝ := fun i => (n : ℝ)⁻¹ * ∑ k : Fin n, (τ k : ℝ) * H i (S k) have hz0 : z i₀ = 0 := by simp [z, hzero] have hbddAbs : BddAbove (range fun i => |z i|) := by simpa [z] using absInner_bddAbove H hM0 hM n S τ have hbdd : BddAbove (range z) := by refine ⟨M, ?_⟩ rintro _ ⟨i, rfl⟩ exact (le_abs_self _).trans (absInner_le_of_bound H hM0 hM n S τ i) have hbddNeg : BddAbove (range fun i => -z i) := by refine ⟨M, ?_⟩ rintro _ ⟨i, rfl⟩ exact (neg_le_abs _).trans (absInner_le_of_bound H hM0 hM n S τ i) have hsup0 : 0 ≤ ⨆ i, z i := by rw [← hz0] exact le_ciSup hbdd i₀ have hsupNeg0 : 0 ≤ ⨆ i, -z i := by rw [← show -z i₀ = 0 by rw [hz0]; simp] exact le_ciSup hbddNeg i₀ have hpoint : (⨆ i, |z i|) ≤ (⨆ i, z i) + (⨆ i, -z i) := by refine ciSup_le fun i => ?_ by_cases hi : 0 ≤ z i · rw [abs_of_nonneg hi] linarith [le_ciSup hbdd i] · rw [abs_of_neg (lt_of_not_ge hi)] linarith [le_ciSup hbddNeg i] have hneg : (⨆ i, -z i) = ⨆ i, (n : ℝ)⁻¹ * ∑ k : Fin n, (τ k : ℝ) * (-H i (S k)) := by refine iSup_congr fun i => ?_ calc -z i = (n : ℝ)⁻¹ * (-(∑ k : Fin n, (τ k : ℝ) * H i (S k))) := by simp only [z] ring _ = (n : ℝ)⁻¹ * ∑ k : Fin n, -((τ k : ℝ) * H i (S k)) := by rw [Finset.sum_neg_distrib] _ = (n : ℝ)⁻¹ * ∑ k : Fin n, (τ k : ℝ) * (-H i (S k)) := by congr 1 refine Finset.sum_congr rfl fun k _ => by ring simpa [z, hneg] using hpoint -
constantClass_empiricalRademacher_lelemma — If the sample size is positive, then the empirical Rademacher complexity of a constant-indexed function class is at most twice the function's empirical L2 norm divided by the square root of the sample size.hypothesesconclusionempiricalRademacherComplexity n (fun _i : ι => g) S≤ 2 * empiricalNorm S g / sqrt (n : ℝ)Proof (Lean source)
lemma constantClass_empiricalRademacher_le [Nonempty ι] (g : 𝒳 → ℝ) {n : ℕ} (hn : 0 < n) (S : Fin n → 𝒳) : empiricalRademacherComplexity n (fun _i : ι => g) S ≤ 2 * empiricalNorm S g / sqrt (n : ℝ) := by classical let H : Unit → 𝒳 → ℝ := fun _ => g have hradius : ∀ i ∈ (Finset.univ : Finset Unit), sqrt (∑ k : Fin n, ((n : ℝ)⁻¹ * |H i (S k)|) ^ 2) ≤ empiricalNorm S g / sqrt (n : ℝ) := by intro i hi exact (sqrt_sum_inv_abs_sq_eq_empiricalNorm_div_sqrt hn S g).le have hmass := empiricalRademacher_withAbs_finiteClass_le hn H S (Finset.univ : Finset Unit) (by simp) (empiricalNorm S g / sqrt (n : ℝ)) hradius rw [empiricalRademacherComplexity_F_on_univ_eq] at hmass have hlog2 : sqrt (2 * log (2 * ((Finset.univ : Finset Unit).card : ℝ))) ≤ 2 := by rw [Real.sqrt_le_iff] constructor · norm_num · simp only [Finset.card_univ, Fintype.card_unit, Nat.cast_one, mul_one] nlinarith [Real.log_le_sub_one_of_pos (show (0 : ℝ) < 2 by norm_num)] have hnonneg : 0 ≤ empiricalNorm S g / sqrt (n : ℝ) := div_nonneg (by simp only [causal_defs_simps]; positivity) (Real.sqrt_nonneg _) have hunit : empiricalRademacherComplexity n H S = empiricalRademacherComplexity n (fun _i : ι => g) S := by simp only [causal_defs_simps] congr 1 refine Finset.sum_congr rfl fun τ _ => ?_ simp [H, hn.ne'] rw [← hunit] exact hmass.trans (by calc _ ≤ (empiricalNorm S g / sqrt (n : ℝ)) * 2 := mul_le_mul_of_nonneg_left hlog2 hnonneg _ = _ := by ring) -
empiricalRademacherComplexity_measurable_countablelemma — For a countably indexed function class whose members are measurable and a fixed sample size, the empirical Rademacher complexity is measurable as a function of the sample.hypothesesconclusionMeasurable (fun S : Fin n → 𝒳 => empiricalRademacherComplexity n F S)Proof (Lean source)
@[fun_prop] lemma empiricalRademacherComplexity_measurable_countable [Countable ι] (F : ι → 𝒳 → ℝ) (hmeas : ∀ i, Measurable (F i)) (n : ℕ) : Measurable (fun S : Fin n → 𝒳 => empiricalRademacherComplexity n F S) := by simp only [causal_defs_simps] fun_prop -
empiricalRademacherComplexity_mem_Icclemma — If the envelope level is nonnegative and every function is bounded in absolute value by the envelope, then the empirical Rademacher complexity lies between zero and the envelope level.hypotheses𝒳 :sharedType uι :sharedType vNonempty ιF :ι → 𝒳 → ℝM :ℝhM0 :0 ≤ MhM :∀ i x, |F i x| ≤ Mn :ℕS :Fin n → 𝒳conclusionempiricalRademacherComplexity n F S ∈ Icc 0 MProof (Lean source)
lemma empiricalRademacherComplexity_mem_Icc [Nonempty ι] (F : ι → 𝒳 → ℝ) {M : ℝ} (hM0 : 0 ≤ M) (hM : ∀ i x, |F i x| ≤ M) (n : ℕ) (S : Fin n → 𝒳) : empiricalRademacherComplexity n F S ∈ Icc 0 M := by classical letI : Nonempty (Signs n) := ⟨fun _ => ⟨1, by simp⟩⟩ simp only [causal_defs_simps] constructor · exact mul_nonneg (by positivity) (Finset.sum_nonneg fun τ _ => by let i₀ : ι := choice inferInstance exact (abs_nonneg _).trans (le_ciSup (absInner_bddAbove F hM0 hM n S τ) i₀)) · calc (card (Signs n) : ℝ)⁻¹ * ∑ τ : Signs n, ⨆ i, |(n : ℝ)⁻¹ * ∑ k, (τ k : ℝ) * F i (S k)| ≤ (card (Signs n) : ℝ)⁻¹ * ∑ _τ : Signs n, M := by refine mul_le_mul_of_nonneg_left (Finset.sum_le_sum fun τ _ => ?_) (by positivity) exact ciSup_le fun i => absInner_le_of_bound F hM0 hM n S τ i _ = M := by rw [Finset.sum_const, Finset.card_univ, nsmul_eq_mul] have hcNat : 0 < card (Signs n) := Fintype.card_pos have hc : (card (Signs n) : ℝ) ≠ 0 := by exact_mod_cast hcNat.ne' field_simp -
empiricalL2Radius_measurablelemma — For a countably indexed function class whose members are measurable and a fixed sample size, the empirical L² radius is measurable as a function of the sample.hypothesesconclusionProof (Lean source)
@[fun_prop] lemma empiricalL2Radius_measurable [Countable ι] (F : ι → 𝒳 → ℝ) (hmeas : ∀ i, Measurable (F i)) (n : ℕ) : Measurable (fun S : Fin n → 𝒳 => empiricalL2Radius F S) := by unfold empiricalL2Radius empiricalNorm fun_prop -
empiricalL2Radius_mem_Icclemma — If the envelope level is nonnegative and every function is bounded in absolute value by the envelope, then the empirical L2 radius lies between zero and the envelope level.hypotheses𝒳 :sharedType uι :sharedType vNonempty ιF :ι → 𝒳 → ℝU :ℝhU0 :0 ≤ Uhenvelope :∀ i x, |F i x| ≤ Un :ℕS :Fin n → 𝒳conclusionempiricalL2Radius F S ∈ Icc 0 UProof (Lean source)
lemma empiricalL2Radius_mem_Icc [Nonempty ι] (F : ι → 𝒳 → ℝ) {U : ℝ} (hU0 : 0 ≤ U) (henvelope : ∀ i x, |F i x| ≤ U) {n : ℕ} (S : Fin n → 𝒳) : empiricalL2Radius F S ∈ Icc 0 U := by have hbdd : BddAbove (range fun i => empiricalNorm S (F i)) := ⟨U, by rintro _ ⟨i, rfl⟩; exact empiricalNorm_le_of_envelope F hU0 henvelope S i⟩ constructor · let i₀ : ι := choice inferInstance exact (by simp only [causal_defs_simps]; positivity : 0 ≤ empiricalNorm S (F i₀)) |>.trans (le_ciSup hbdd i₀) · exact ciSup_le fun i => empiricalNorm_le_of_envelope F hU0 henvelope S i -
clippedSquare_lipschitzAt0lemma — If the clipping radius is nonnegative, then squaring after clipping to the symmetric interval of that radius is Lipschitz at zero with constant twice the radius.Proof (Lean source)
lemma clippedSquare_lipschitzAt0 {U : ℝ} (hU0 : 0 ≤ U) : LipschitzAt0 (fun x => (clipIcc (-U) U x) ^ 2) (2 * U) := by open Causalean.Mathlib.Analysis in constructor · simp [clipIcc, hU0] · intro x y let a := clipIcc (-U) U x let b := clipIcc (-U) U y have ha : |a| ≤ U := abs_clipIcc_neg_le hU0 x have hb : |b| ≤ U := abs_clipIcc_neg_le hU0 y have hab : |a - b| ≤ |x - y| := abs_clipIcc_sub_clipIcc_le (-U) U x y have habsum : |a + b| ≤ 2 * U := by calc |a + b| ≤ |a| + |b| := abs_add_le _ _ _ ≤ 2 * U := by linarith rw [sq_sub_sq, abs_mul] calc |a + b| * |a - b| ≤ (2 * U) * |x - y| := mul_le_mul habsum hab (abs_nonneg _) (by positivity) -
empiricalL2Radius_sq_le_uniformDeviationlemma — If the population L2 radius is positive, it is smaller than the envelope level, the class functions are uniformly bounded by the envelope, their population L2 distances from zero are at most the stated radius, and the sample size is positive, then the squared empirical L2 radius is at most the squared population radius plus the uniform deviation of the squared class.hypotheses𝒳 :sharedType uι :sharedType vNonempty ιP :F :ι → 𝒳 → ℝU σ :ℝhσ :0 < σhσU :σ < Uhenvelope :∀ i x, |F i x| ≤ UhL2 :∀ i, measureL2Dist P (F i) (fun _ => 0) ≤ σn :ℕhn :0 < nS :Fin n → 𝒳conclusionempiricalL2Radius F S ^ 2 ≤ σ ^ 2 + uniformDeviation n (fun i x => F i x ^ 2) P id SProof (Lean source)
lemma empiricalL2Radius_sq_le_uniformDeviation [Nonempty ι] (P : Measure 𝒳) [IsProbabilityMeasure P] (F : ι → 𝒳 → ℝ) {U σ : ℝ} (hσ : 0 < σ) (hσU : σ < U) (henvelope : ∀ i x, |F i x| ≤ U) (hL2 : ∀ i, measureL2Dist P (F i) (fun _ => 0) ≤ σ) {n : ℕ} (hn : 0 < n) (S : Fin n → 𝒳) : empiricalL2Radius F S ^ 2 ≤ σ ^ 2 + uniformDeviation n (fun i x => F i x ^ 2) P id S := by classical have hU : 0 < U := hσ.trans hσU have hpop : ∀ i, ∫ x, F i x ^ 2 ∂P ≤ σ ^ 2 := by intro i have hi0 : 0 ≤ ∫ x, F i x ^ 2 ∂P := integral_nonneg fun _ => sq_nonneg _ have hi := hL2 i unfold measureL2Dist at hi simp only [sub_zero] at hi calc (∫ x, F i x ^ 2 ∂P) = sqrt (∫ x, F i x ^ 2 ∂P) ^ 2 := (Real.sq_sqrt hi0).symm _ ≤ σ ^ 2 := (sq_le_sq₀ (Real.sqrt_nonneg _) hσ.le).2 hi have havg : ∀ i, 0 ≤ (n : ℝ)⁻¹ * ∑ k : Fin n, F i (S k) ^ 2 ∧ (n : ℝ)⁻¹ * ∑ k : Fin n, F i (S k) ^ 2 ≤ U ^ 2 := by intro i constructor · positivity · calc (n : ℝ)⁻¹ * ∑ k : Fin n, F i (S k) ^ 2 ≤ (n : ℝ)⁻¹ * ∑ _k : Fin n, U ^ 2 := by refine mul_le_mul_of_nonneg_left (Finset.sum_le_sum fun k _ => ?_) (by positivity) rw [sq_le_sq] simpa [abs_of_pos hU] using henvelope i (S k) _ = U ^ 2 := by rw [Finset.sum_const, Finset.card_univ, nsmul_eq_mul] have hnR : (n : ℝ) ≠ 0 := by exact_mod_cast hn.ne' simp only [Fintype.card_fin] field_simp have hdevBdd : BddAbove (range fun i => |(n : ℝ)⁻¹ * ∑ k : Fin n, F i (S k) ^ 2 - ∫ x, F i x ^ 2 ∂P|) := by refine ⟨2 * U ^ 2, ?_⟩ rintro _ ⟨i, rfl⟩ have hpop0 : 0 ≤ ∫ x, F i x ^ 2 ∂P := integral_nonneg fun _ => sq_nonneg _ have hσU2 : σ ^ 2 ≤ U ^ 2 := by nlinarith rw [abs_le] constructor <;> nlinarith [havg i, hpop i] let D := uniformDeviation n (fun i x => F i x ^ 2) P id S have hD0 : 0 ≤ D := by let i₀ : ι := choice inferInstance exact (abs_nonneg _).trans (le_ciSup hdevBdd i₀) have hnormsq : ∀ i, empiricalNorm S (F i) ^ 2 ≤ σ ^ 2 + D := by intro i have hdev : |(n : ℝ)⁻¹ * ∑ k : Fin n, F i (S k) ^ 2 - ∫ x, F i x ^ 2 ∂P| ≤ D := le_ciSup hdevBdd i have heq : empiricalNorm S (F i) ^ 2 = (n : ℝ)⁻¹ * ∑ k : Fin n, F i (S k) ^ 2 := by simp only [causal_defs_simps] simpa [one_div] using Real.sq_sqrt (havg i |>.1) rw [heq] linarith [le_abs_self ((n : ℝ)⁻¹ * ∑ k : Fin n, F i (S k) ^ 2 - ∫ x, F i x ^ 2 ∂P), hpop i] have hrad := empiricalL2Radius_mem_Icc F hU.le henvelope S have hB0 : 0 ≤ σ ^ 2 + D := add_nonneg (sq_nonneg _) hD0 have hradle : empiricalL2Radius F S ≤ sqrt (σ ^ 2 + D) := by unfold empiricalL2Radius refine ciSup_le fun i => ?_ have hs := Real.sqrt_le_sqrt (hnormsq i) have hnorm0 : 0 ≤ empiricalNorm S (F i) := by simp only [causal_defs_simps]; positivity rw [Real.sqrt_sq hnorm0] at hs exact hs change empiricalL2Radius F S ^ 2 ≤ σ ^ 2 + D nlinarith [Real.sq_sqrt hB0, hrad.1]
EntropyIntegral 2 core · 5 supporting This file anchors a function class at a reference member, transports polynomial empirical-cover certificates through anchoring and negation, and bounds the resulting Dudley entropy integral. ★ polynomialCover_entropyIntegral_le
Polynomial entropy integrals for anchored classes
This file anchors a function class at a reference member, transports polynomial empirical-cover certificates through anchoring and negation, and bounds the resulting Dudley entropy integral. These deterministic chaining estimates feed the conditional and variance-adaptive Rademacher bounds.
For a function class and a chosen reference function, the anchored function class subtracts that reference function from every member of the class. This recentering supplies a zero function for the entropy-integral Rademacher bound.
Definition (Lean source)
For a measurable observation space, nonempty function index set, and function class, an envelope, entropy cutoff, covering constant, entropy exponent, integration lower limit, and empirical radius, if the class has polynomial empirical covering numbers, every function is measurable, the envelope and cutoff are positive with the cutoff below the envelope, the covering constant and exponent satisfy their lower bounds, then for a finite sample with positive size, positive lower integration limit, that limit below the radius, and radius below the envelope, the square- root log-covering-number integral is bounded by the stated radius and cutoff terms.
Formal statement
Proof (Lean source)
5 supporting declarations (lemmas, instances)
-
anchoredClass_measurablelemma — If every function in a class is measurable, then every function obtained by subtracting a fixed member of the class is measurable.hypothesesconclusionMeasurable (anchoredClass F i₀ i)Proof (Lean source)
lemma anchoredClass_measurable (F : ι → 𝒳 → ℝ) (i₀ : ι) (hmeas : ∀ i, Measurable (F i)) : ∀ i, Measurable (anchoredClass F i₀ i) := fun i => (hmeas i).sub (hmeas i₀) -
anchoredClasslemma — If a function class has a polynomial empirical L2 covering bound and all of its functions are measurable, then the class anchored by subtracting any fixed member has the same covering bound.hypotheses𝒳 :sharedType uι :sharedType vι → 𝒳 → ℝU A p :ℝhcover :HasPolynomialEmpiricalL2Cover F U A pi₀ :ιhmeas :∀ i, Measurable (F i)conclusionHasPolynomialEmpiricalL2Cover (anchoredClass F i₀) U A pProof (Lean source)
lemma HasPolynomialEmpiricalL2Cover.anchoredClass {F : ι → 𝒳 → ℝ} {U A p : ℝ} (hcover : HasPolynomialEmpiricalL2Cover F U A p) (i₀ : ι) (hmeas : ∀ i, Measurable (F i)) : HasPolynomialEmpiricalL2Cover (anchoredClass F i₀) U A p := by intro m S hm ε hε hε1 obtain ⟨C, hC, hcard⟩ := hcover S hm ε hε hε1 refine ⟨C, ?_, hcard⟩ intro i obtain ⟨j, hj, hij⟩ := hC i refine ⟨j, hj, ?_⟩ rw [measureL2Dist_finiteSampleMeasure_eq_empiricalDist S (anchoredClass_measurable F i₀ hmeas i) (anchoredClass_measurable F i₀ hmeas j), anchoredClass_empiricalDist] rwa [← measureL2Dist_finiteSampleMeasure_eq_empiricalDist S (hmeas i) (hmeas j)] -
neglemma — If a function class has a polynomial empirical L2 covering bound and all of its functions are measurable, then negating every function preserves that covering bound.hypotheses𝒳 :sharedType uι :sharedType vι → 𝒳 → ℝU A p :ℝhcover :HasPolynomialEmpiricalL2Cover F U A phmeas :∀ i, Measurable (F i)conclusionHasPolynomialEmpiricalL2Cover (fun i x => -F i x) U A pProof (Lean source)
lemma HasPolynomialEmpiricalL2Cover.neg {F : ι → 𝒳 → ℝ} {U A p : ℝ} (hcover : HasPolynomialEmpiricalL2Cover F U A p) (hmeas : ∀ i, Measurable (F i)) : HasPolynomialEmpiricalL2Cover (fun i x => -F i x) U A p := by intro m S hm ε hε hε1 obtain ⟨C, hC, hcard⟩ := hcover S hm ε hε hε1 refine ⟨C, ?_, hcard⟩ intro i obtain ⟨j, hj, hij⟩ := hC i refine ⟨j, hj, ?_⟩ rw [measureL2Dist_finiteSampleMeasure_eq_empiricalDist S (hmeas i).fun_neg (hmeas j).fun_neg] have heq : empiricalDist S (fun x => -F i x) (fun x => -F j x) = empiricalDist S (F i) (F j) := by unfold empiricalDist empiricalNorm congr 2 refine Finset.sum_congr rfl fun k _ => ?_ change (-F i (S k) - -F j (S k)) ^ 2 = (F i (S k) - F j (S k)) ^ 2 ring rw [heq] rwa [← measureL2Dist_finiteSampleMeasure_eq_empiricalDist S (hmeas i) (hmeas j)] -
empiricalNorm_le_of_envelopelemma — If the envelope level is nonnegative and every function is pointwise bounded in absolute value by that level, then each function's empirical L2 norm is at most the envelope level.hypotheses𝒳 :sharedType uι :sharedType vF :ι → 𝒳 → ℝU :ℝhU :0 ≤ Uhenvelope :∀ i x, |F i x| ≤ Un :ℕS :Fin n → 𝒳i :ιconclusionempiricalNorm S (F i) ≤ UProof (Lean source)
lemma empiricalNorm_le_of_envelope (F : ι → 𝒳 → ℝ) {U : ℝ} (hU : 0 ≤ U) (henvelope : ∀ i x, |F i x| ≤ U) {n : ℕ} (S : Fin n → 𝒳) (i : ι) : empiricalNorm S (F i) ≤ U := by simp only [causal_defs_simps] rw [Real.sqrt_le_iff] constructor · exact hU · by_cases hn : n = 0 · subst n simp [hU] · have hnR : 0 < (n : ℝ) := by positivity calc (1 / (n : ℝ)) * ∑ k : Fin n, F i (S k) ^ 2 ≤ (1 / (n : ℝ)) * ∑ _k : Fin n, U ^ 2 := by refine mul_le_mul_of_nonneg_left (Finset.sum_le_sum fun k _ => ?_) (by positivity) rw [sq_le_sq] simpa [abs_of_nonneg hU] using henvelope i (S k) _ = U ^ 2 := by simp [Finset.sum_const, nsmul_eq_mul] field_simp -
empiricalNorm_anchored_lelemma — If every function in the class has empirical L2 norm at most a common radius, then subtracting a fixed class member gives empirical L2 norm at most twice that radius.hypotheses𝒳 :sharedType uι :sharedType vF :ι → 𝒳 → ℝi₀ :ιn :ℕS :Fin n → 𝒳R :ℝhR :∀ i, empiricalNorm S (F i) ≤ Ri :ιconclusionempiricalNorm S (anchoredClass F i₀ i) ≤ 2 * RProof (Lean source)
lemma empiricalNorm_anchored_le (F : ι → 𝒳 → ℝ) (i₀ : ι) {n : ℕ} (S : Fin n → 𝒳) {R : ℝ} (hR : ∀ i, empiricalNorm S (F i) ≤ R) (i : ι) : empiricalNorm S (anchoredClass F i₀ i) ≤ 2 * R := by letI := empiricalPMet S calc empiricalNorm S (anchoredClass F i₀ i) = dist (F i) (F i₀) := by rfl _ ≤ dist (F i) 0 + dist 0 (F i₀) := dist_triangle _ _ _ _ = empiricalNorm S (F i) + empiricalNorm S (F i₀) := by simp only [dist_comm (0 : 𝒳 → ℝ)] change empiricalNorm S (F i - 0) + empiricalNorm S (F i₀ - 0) = _ simp _ ≤ R + R := add_le_add (hR i) (hR i₀) _ = 2 * R := by ring
VarianceAdaptive 1 core · 0 supporting This file assembles the conditional chaining and empirical-radius estimates into varianceAdaptiveRademacherComplexity_le, the countable-class maximal inequality with a population L² leading term and an envelope-dependent ★ varianceAdaptiveRademacherComplexity_le
Variance-adaptive Rademacher maximal inequality
This file assembles the conditional chaining and empirical-radius estimates
into varianceAdaptiveRademacherComplexity_le, the countable-class maximal
inequality with a population L² leading term and an envelope-dependent
second-order term.
The statement follows the constant-envelope specialization of the maximal
inequality recorded as Corollary 5.1 in Chernozhukov, Chetverikov, and Kato,
Gaussian approximation of suprema of empirical processes (2014). In that
corollary the empirical process is scaled by sqrt n; a constant envelope
has population L² norm and sample maximum both bounded by U, so dividing
their conclusion by sqrt n gives exactly the two terms below. The
canonical normalization there is A ≥ exp 1 and v ≥ 1.
Variance-adaptive Rademacher complexity bound. Let P be a probability measure on the sample space and F a countable family of real-valued functions on it. Suppose the population radius σ is strictly positive and strictly less than the envelope U, the covering-entropy base A is at least Euler's number and the exponent v is at least one, every function in F is measurable and bounded in absolute value by U, each function's population distance from the zero function is at most σ, F has polynomial empirical covering numbers with envelope U, base A, and exponent v, and the sample size n is positive. Then the Rademacher complexity of F under P with n i.i.d. observations is at most half the universal constant varianceAdaptiveVCConstant times the variance-adaptive rate σ √(v log(AU/σ)/n) + v U log(AU/σ)/n.