Stat.Concentration.VarianceAdaptiveVCExpectedMaximal
Umbrella import for the countable-class variance-adaptive VC-type expected maximal inequality and its polynomial-cover adapter.
Basic 6 core · 4 supporting 6 to review This module defines the empirical-measure polynomial covering hypothesis, the countable empirical supremum, and the normalized logarithmic rate used by the variance-adaptive expected maximal inequality. ★ hasPolynomialEmpiricalL2Cover
Data for variance-adaptive VC-type maximal inequalities
This module defines the empirical-measure polynomial covering hypothesis, the countable empirical supremum, and the normalized logarithmic rate used by the variance-adaptive expected maximal inequality. The covering hypothesis only asks about positive-size finite empirical laws, which is the exact input needed by empirical-metric chaining.
A class has empirical polynomial L² covering numbers with constants A and v when every positive-size finite empirical law admits a cover of relative radius ε with cardinality at most the real power (A / ε) ^ v.
Definition (Lean source)
The logarithmic complexity used by the maximal inequality is the log of the larger of Euler's number and the envelope-to-radius ratio A U / σ. This normalization keeps the logarithm at least one.
Definition (Lean source)
The variance-adaptive VC-type rate is the sum of a leading σ √(v log(AU/σ)/n) term and a second-order v U log(AU/σ)/n term, with a logarithm normalized to be at least one.
Definition (Lean source)
The fixed numerical constant used by the variance-adaptive VC-type expected maximal inequality. Its value is deliberately non-optimized.
Definition (Lean source)
The empirical supremum of a countable real-valued class is the largest absolute difference between its sample average and population mean.
Definition (Lean source)
Empirical covering from population covering. If a family F of real-valued functions with envelope U admits a uniform polynomial covering-number bound over every probability measure, then there exist a base A at least Euler's number and an exponent v at least one such that F has polynomial empirical covering numbers with envelope U, base A, and exponent v.
Formal statement
Proof (Lean source)
4 supporting declarations (lemmas, instances)
-
enlargeEnvelopetheorem — Enlarging the envelope of an empirical polynomial cover preserves its entropy witnesses.hypothesesconclusionHasPolynomialEmpiricalL2Cover F V A vProof (Lean source)
-- @node: HasPolynomialEmpiricalL2Cover.enlargeEnvelope theorem HasPolynomialEmpiricalL2Cover.enlargeEnvelope {F : ι → 𝒳 → ℝ} {U V A v : ℝ} (hF : HasPolynomialEmpiricalL2Cover F U A v) (hUV : U ≤ V) : HasPolynomialEmpiricalL2Cover F V A v := by intro m S hm ε hε hε1 obtain ⟨C, hCcover, hCcard⟩ := hF S hm ε hε hε1 refine ⟨C, ?_, hCcard⟩ intro i obtain ⟨j, hjC, hij⟩ := hCcover i exact ⟨j, hjC, hij.trans_le (mul_le_mul_of_nonneg_left hUV hε.le)⟩ -
pullbacktheorem — Restricting a measurable polynomial empirical-cover class along a nonempty parameter map preserves its exponent and costs only a factor two in the entropy base. The replacement centers are chosen inside the restricted class.hypothesesκ :Type wNonempty κF :ι → 𝒳 → ℝU A v :ℝhF :HasPolynomialEmpiricalL2Cover F U A vhmeas :∀ i, Measurable (F i)e :κ → ιconclusionHasPolynomialEmpiricalL2Cover (fun k => F (e k)) U (2 * A) vProof (Lean source)
theorem HasPolynomialEmpiricalL2Cover.pullback {κ : Type w} [Nonempty κ] {F : ι → 𝒳 → ℝ} {U A v : ℝ} (hF : HasPolynomialEmpiricalL2Cover F U A v) (hmeas : ∀ i, Measurable (F i)) (e : κ → ι) : HasPolynomialEmpiricalL2Cover (fun k => F (e k)) U (2 * A) v := by intro m S hm ε hε hε1 have hhalf : 0 < ε / 2 := by positivity have hhalf1 : ε / 2 ≤ 1 := by linarith obtain ⟨D, hDcover, hDcard⟩ := hF S hm (ε / 2) hhalf hhalf1 classical choose center hcenter_mem hcenter_dist using fun k => hDcover (e k) let occupied : Finset ι := D.filter fun i => ∃ k, center k = i let representative : ι → κ := fun i => if hi : ∃ k, center k = i then choose hi else Classical.choice inferInstance refine ⟨occupied.image representative, ?_, ?_⟩ · intro k have hocc : center k ∈ occupied := by simp only [occupied, mem_filter] exact ⟨hcenter_mem k, ⟨k, rfl⟩⟩ have hrep_center : center (representative (center k)) = center k := by dsimp only [representative] split · next h => exact Classical.choose_spec h · next h => exact (h ⟨k, rfl⟩).elim refine ⟨representative (center k), Finset.mem_image.mpr ⟨center k, hocc, rfl⟩, ?_⟩ have htriangle : measureL2Dist (finiteSampleMeasure S) (F (e k)) (F (e (representative (center k)))) ≤ measureL2Dist (finiteSampleMeasure S) (F (e k)) (F (center k)) + measureL2Dist (finiteSampleMeasure S) (F (center k)) (F (e (representative (center k)))) := by rw [measureL2Dist_finiteSampleMeasure_eq_empiricalDist S hm (hmeas (e k)) (hmeas (e (representative (center k)))), measureL2Dist_finiteSampleMeasure_eq_empiricalDist S hm (hmeas (e k)) (hmeas (center k)), measureL2Dist_finiteSampleMeasure_eq_empiricalDist S hm (hmeas (center k)) (hmeas (e (representative (center k))))] exact @dist_triangle _ (empiricalPMet S) (F (e k)) (F (center k)) (F (e (representative (center k)))) have hrep_dist : measureL2Dist (finiteSampleMeasure S) (F (e (representative (center k)))) (F (center k)) < ε / 2 * U := by simpa only [hrep_center] using hcenter_dist (representative (center k)) have hsymm : measureL2Dist (finiteSampleMeasure S) (F (center k)) (F (e (representative (center k)))) = measureL2Dist (finiteSampleMeasure S) (F (e (representative (center k)))) (F (center k)) := by simp only [measureL2Dist] congr 2 funext x ring rw [hsymm] at htriangle nlinarith [htriangle, hcenter_dist k, hrep_dist] · calc ((occupied.image representative).card : ℝ) ≤ (occupied.card : ℝ) := by exact_mod_cast Finset.card_image_le _ ≤ (D.card : ℝ) := by exact_mod_cast Finset.card_filter_le _ _ _ ≤ rpow (A / (ε / 2)) v := hDcard _ = rpow ((2 * A) / ε) v := by congr 1 field_simp -
monoEnvelopetheorem — Enlarging the envelope in a polynomial empirical-cover certificate keeps the same centers, entropy base, and exponent.hypothesesconclusionHasPolynomialEmpiricalL2Cover F V A vProof (Lean source)
theorem HasPolynomialEmpiricalL2Cover.monoEnvelope {F : ι → 𝒳 → ℝ} {U V A v : ℝ} (hF : HasPolynomialEmpiricalL2Cover F U A v) (hUV : U ≤ V) : HasPolynomialEmpiricalL2Cover F V A v := by intro m S hm ε hε hε1 obtain ⟨C, hCcover, hCcard⟩ := hF S hm ε hε hε1 refine ⟨C, ?_, hCcard⟩ intro i obtain ⟨j, hjC, hij⟩ := hCcover i exact ⟨j, hjC, hij.trans_le (mul_le_mul_of_nonneg_left hUV hε.le)⟩ -
hasPolynomialEmpiricalL2Covertheorem — Named arbitrary-law entropy witnesses give correspondingly named empirical witnesses after the canonical Euler-base and positive-exponent normalization.hypothesesconclusionProof (Lean source)
theorem HasPolynomialL2CoverWith.hasPolynomialEmpiricalL2Cover {F : ι → 𝒳 → ℝ} {U A₀ : ℝ} {p : ℕ} (hF : HasPolynomialL2CoverWith F U A₀ p) : HasPolynomialEmpiricalL2Cover F U (max (exp 1) (2 * A₀)) ((p + 1 : ℕ) : ℝ) := by intro m S hm ε hε hε1 letI : IsProbabilityMeasure (finiteSampleMeasure S) := finiteSampleMeasure_isProbabilityMeasure S hm obtain ⟨C, hCcard, hCcover⟩ := hF.entropy (finiteSampleMeasure S) inferInstance ε hε hε1 refine ⟨C, hCcover, ?_⟩ have hx : 1 ≤ A₀ / ε := (one_le_div hε).2 (hε1.trans hF.one_le_base) have hceil : (ceil ((A₀ / ε) ^ p) : ℝ) < (A₀ / ε) ^ p + 1 := Nat.ceil_lt_add_one (by positivity) have hxpow : 1 ≤ (A₀ / ε) ^ p := one_le_pow₀ hx have hbase : A₀ / ε ≤ max (exp 1) (2 * A₀) / ε := by apply div_le_div_of_nonneg_right _ hε.le exact (by linarith [hF.one_le_base] : A₀ ≤ 2 * A₀) |>.trans (le_max_right _ _) have htwo : 2 ≤ max (exp 1) (2 * A₀) / ε := by apply (le_div_iff₀ hε).2 calc 2 * ε ≤ 2 * 1 := by gcongr _ ≤ 2 * A₀ := mul_le_mul_of_nonneg_left hF.one_le_base (by norm_num) _ ≤ max (exp 1) (2 * A₀) := le_max_right _ _ calc (C.card : ℝ) ≤ (ceil ((A₀ / ε) ^ p) : ℝ) := by exact_mod_cast hCcard _ ≤ 2 * (A₀ / ε) ^ p := by linarith _ ≤ (max (exp 1) (2 * A₀) / ε) ^ (p + 1) := by have hp := pow_le_pow_left₀ (by positivity : 0 ≤ A₀ / ε) hbase p calc 2 * (A₀ / ε) ^ p ≤ (max (exp 1) (2 * A₀) / ε) * (A₀ / ε) ^ p := mul_le_mul_of_nonneg_right htwo (by positivity) _ ≤ (max (exp 1) (2 * A₀) / ε) * (max (exp 1) (2 * A₀) / ε) ^ p := mul_le_mul_of_nonneg_left hp (by positivity) _ = (max (exp 1) (2 * A₀) / ε) ^ (p + 1) := by rw [pow_succ] ring _ = rpow (max (exp 1) (2 * A₀) / ε) ((p + 1 : ℕ) : ℝ) := by exact (Real.rpow_natCast _ _).symm
EmpiricalCover 1 core · 1 supporting 1 to review This module translates the finite-cover certificate used by the variance-adaptive maximal inequality into total boundedness and a numerical covering-number bound for Causalean's empirical function space. ★ coveringNumber_le
Polynomial empirical covers in Dudley's metric space
This module translates the finite-cover certificate used by the variance-adaptive maximal inequality into total boundedness and a numerical covering-number bound for Causalean's empirical function space. These are the two deterministic inputs expected by the existing Dudley theorem.
Covering-number bound from an empirical cover. Suppose F has polynomial empirical covering numbers with envelope U, base A, and exponent v, every member of F is measurable, the envelope U is strictly positive, the sample S has positive size n, and the relative scale ε lies in the interval ; then Dudley's empirical covering number of the class at radius ε * U, taken in the totally bounded empirical pseudometric space this cover furnishes, is at most the real power (A / ε) ^ v.
Formal statement
Proof (Lean source)
1 supporting declaration (lemmas, instances)
-
totallyBoundedtheorem — A positive-envelope polynomial empirical covering certificate makes the class image totally bounded in the empirical root-mean-square pseudometric on every nonempty finite sample.hypothesesF :ι → 𝒳 → ℝU A v :ℝhcover :HasPolynomialEmpiricalL2Cover F U A vhmeas :∀ i, Measurable (F i)hU :0 < Un :ℕS :Fin n → 𝒳hn :0 < nconclusionProof (Lean source)
theorem HasPolynomialEmpiricalL2Cover.totallyBounded {F : ι → 𝒳 → ℝ} {U A v : ℝ} (hcover : HasPolynomialEmpiricalL2Cover F U A v) (hmeas : ∀ i, Measurable (F i)) (hU : 0 < U) {n : ℕ} (S : Fin n → 𝒳) (hn : 0 < n) : TotallyBounded (Set.univ : Set (EmpiricalFunctionSpace F S)) := by /- Follow `real_vcSubgraph_empirical_totallyBounded`: at an arbitrary radius `r > 0`, use relative scale `min 1 (r/U)`, map the finite index cover into `EmpiricalFunctionSpace F S`, and rewrite its `L²(Pₙ)` distances with `measureL2Dist_finiteSampleMeasure_eq_empiricalDist`. -/ classical rw [Metric.totallyBounded_iff] intro r hr let ε : ℝ := min 1 (r / U) have hε : 0 < ε := lt_min (by norm_num) (div_pos hr hU) have hε1 : ε ≤ 1 := min_le_left _ _ obtain ⟨C, hCcover, _hCcard⟩ := hcover S hn ε hε hε1 let T : Finset (EmpiricalFunctionSpace F S) := C.image fun j => ⟨j⟩ refine ⟨(T : Set (EmpiricalFunctionSpace F S)), T.finite_toSet, ?_⟩ intro q hq obtain ⟨j, hjC, hj⟩ := hCcover q.index have hεU : ε * U ≤ r := by calc ε * U ≤ (r / U) * U := mul_le_mul_of_nonneg_right (min_le_right _ _) (le_of_lt hU) _ = r := by field_simp have hj' : empiricalDist S (F q.index) (F j) < r := by rw [← measureL2Dist_finiteSampleMeasure_eq_empiricalDist S hn (hmeas q.index) (hmeas j)] exact lt_of_lt_of_le hj hεU refine Set.mem_iUnion_of_mem (⟨j⟩ : EmpiricalFunctionSpace F S) ?_ refine Set.mem_iUnion_of_mem ?_ ?_ · exact Finset.mem_coe.mpr (Finset.mem_image.mpr ⟨j, hjC, rfl⟩) · exact hj'
EntropyChaining 3 core · 0 supporting 3 to review This file packages the measurable envelope, population-radius, and uniform polynomial-cover hypotheses needed by the variance-adaptive expected maximal inequality, and derives the corresponding countable chaining bound. ★ vcEntropy_chaining_bound
VC entropy chaining for expected empirical maxima
This file packages the measurable envelope, population-radius, and uniform polynomial-cover hypotheses needed by the variance-adaptive expected maximal inequality, and derives the corresponding countable chaining bound.
A function class has uniform VC-type entropy when it has a measurable uniform envelope, a strict population L2 radius, and polynomial empirical L2 covers along every countable enumeration.
Definition (Lean source)
Countable empirical-process supremum associated with an enumeration.
Definition (Lean source)
Dudley chaining bound for VC-type entropy. Let μ be a probability measure on Ω, g : ι → Ω → ℝ a family of functions, and g0 : ℕ → ι a countable enumeration of the index set. If g has uniform VC-type entropy relative to μ, with envelope U, population radius σ, covering-entropy base A, and exponent v, then there is a universal constant C > 0 such that, for every sample size n ≥ 1, the expectation of the countable empirical-process supremum along the enumeration g0 over the n-fold product of μ is at most C · (σ √(log(U/σ)/n) + U log(U/σ)/n).
Formal statement
Proof (Lean source)
ExpectedMaximal 1 core · 1 supporting 1 to review This module proves the countable-class expected empirical-supremum bound from the variance-adaptive Rademacher chaining estimate and symmetrization. ★ varianceAdaptiveExpectedMaximal_le
Variance-adaptive expected maximal inequality for countable VC-type classes
This module proves the countable-class expected empirical-supremum bound from
the variance-adaptive Rademacher chaining estimate and symmetrization. It
also provides an adapter for Causalean's existing uniform polynomial L²
covering certificate.
Variance-adaptive expected maximal inequality. 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 expected empirical supremum of F over an n-point i.i.d. sample drawn from P is at most the universal constant varianceAdaptiveVCConstant times the variance-adaptive rate σ √(v log(AU/σ)/n) + v U log(AU/σ)/n.
Formal statement
Proof (Lean source)
1 supporting declaration (lemmas, instances)
-
varianceAdaptiveExpectedMaximal_letheorem — An existing HasPolynomialL2Cover certificate yields some explicit polynomial constants for which the countable class satisfies the variance-adaptive expected maximal inequality at every positive sample size.hypothesesNonempty ιCountable ιP :F :ι → 𝒳 → ℝU σ :ℝhF :hσ :0 < σhσU :σ < UhL2 :∀ i, measureL2Dist P (F i) (fun _ => 0) ≤ σconclusion∃ A v : ℝifexp 1 ≤ A ∧ 1 ≤ v ∧ ∀ n : ℕ, 0 < nand∫ S : Fin nthen𝒳, countableEmpiricalSup P F S ∂Measure.pi (fun _ : Fin n => P)≤ varianceAdaptiveVCConstant * vcExpectedMaximalRate U σ A v nProof (Lean source)
theorem HasPolynomialL2Cover.varianceAdaptiveExpectedMaximal_le [Nonempty ι] [Countable ι] (P : Measure 𝒳) [IsProbabilityMeasure P] (F : ι → 𝒳 → ℝ) {U σ : ℝ} (hF : HasPolynomialL2Cover F U) (hσ : 0 < σ) (hσU : σ < U) (hL2 : ∀ i, measureL2Dist P (F i) (fun _ => 0) ≤ σ) : ∃ A v : ℝ, exp 1 ≤ A ∧ 1 ≤ v ∧ ∀ n : ℕ, 0 < n → ∫ S : Fin n → 𝒳, countableEmpiricalSup P F S ∂Measure.pi (fun _ : Fin n => P) ≤ varianceAdaptiveVCConstant * vcExpectedMaximalRate U σ A v n := by /- Obtain empirical constants from `HasPolynomialL2Cover.hasPolynomialEmpiricalL2Cover` and invoke the main theorem using the measurability and envelope fields of `hF`. -/ obtain ⟨A, v, hA, hv, hcover⟩ := hF.hasPolynomialEmpiricalL2Cover refine ⟨A, v, hA, hv, ?_⟩ intro n hn exact varianceAdaptiveExpectedMaximal_le P F hσ hσU hA hv hF.measurable hF.envelope hL2 hcover n hn
Rademacher 1 core · 0 supporting 1 to review This module contains the chaining core of the countable-class maximal inequality. ★ varianceAdaptiveRademacherComplexity_le
Variance-adaptive Rademacher chaining
This module contains the chaining core of the countable-class maximal
inequality. It combines empirical L² polynomial covers with Dudley
chaining and a self-bounding empirical-radius argument, retaining the
population L² radius in the leading 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.
Formal statement
Proof (Lean source)
Separability 3 core · 0 supporting 3 to review This file gives a paper-neutral criterion reducing an uncountable empirical supremum to a fixed countable, pointwise-dense subfamily under every finite product law. ★ hasCountableEmpiricalSupReduction_of_pointwise_dense
Countable reduction of empirical suprema
This file gives a paper-neutral criterion reducing an uncountable empirical supremum to a fixed countable, pointwise-dense subfamily under every finite product law.
The centered empirical average is the sample average of a function minus its population integral.
Definition (Lean source)
A countable subfamily realizes the continuum empirical-process supremum almost surely under every finite product law.
Definition (Lean source)
Countable supremum reduction from pointwise density. Let μ be a σ-finite measure on Ω, g : ι → Ω → ℝ a family of functions, and g0 : ℕ → ι a countable subfamily. Suppose S is a μ-conull subset of Ω, on S, every g i is the pointwise limit, along some subsequence, of the countable subfamily g ∘ g0, each g i is measurable, and there is a single μ-integrable envelope G dominating |g i| uniformly in i. Then the countable subfamily indexed by g0 realizes the full continuum empirical-process supremum of g almost surely under every finite product law of μ.