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 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.
Given a real-valued function class on an observation space, an envelope , an entropy base , and an exponent , the polynomial empirical covering property holds exactly when, for every positive sample size and every sample of that size, and for every radius with , there is a finite index set forming an cover under the empirical measure at radius and its cardinality is at most .
Definition (Lean source)
Given an entropy base , an envelope , and a variance scale , the normalized logarithmic complexity is . This normalization makes the logarithm at least one.
Given an envelope , a variance scale , an entropy base , an exponent , and a sample size , the variance-adaptive VC-type rate is , where .
Definition (Lean source)
The fixed numerical constant for the variance-adaptive VC-type expected maximal inequality is .
Definition (Lean source)
Given a measure on an observation space, a real-valued function class indexed by a set , and a sample of observations, the countable empirical supremum is the supremum, over the class, of the absolute difference between the sample average and the population mean.
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.hypotheses𝒳 :sharedType uι :sharedType vι → 𝒳 → ℝU V A v :ℝhF :HasPolynomialEmpiricalL2Cover F U A vhUV :U ≤ VconclusionHasPolynomialEmpiricalL2Cover 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𝒳 :sharedType uι :sharedType vκ :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 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.hypotheses𝒳 :sharedType uι :sharedType vι → 𝒳 → ℝU V A v :ℝhF :HasPolynomialEmpiricalL2Cover F U A vhUV :U ≤ VconclusionHasPolynomialEmpiricalL2Cover 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 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.hypotheses𝒳 :sharedType uι :sharedType vι → 𝒳 → ℝ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 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.
For a measure on a measurable sample space, a class of real-valued functions indexed by a set, an envelope bound, a radius, a covering constant, and an entropy exponent, the class has uniform VC-type entropy exactly when (1) the radius is positive, (2) the radius is strictly smaller than the envelope bound, (3) the covering constant is at least , (4) the entropy exponent is at least one, (5) every function in the class is measurable, (6) every function is bounded in absolute value by the envelope bound at every sample point, (7) every function has population distance at most the radius from the zero function, and (8) for every sequence of indices, the resulting sequence of functions has the stipulated polynomial empirical covering property.
Definition (Lean source)
For a measure on a measurable sample space, a class of real-valued functions, a countable enumeration of that class, and a finite sample, the countable empirical-process supremum is the extended nonnegative real supremum, over the enumerated functions, of the absolute centered empirical average.
Definition (Lean source)
Dudley chaining bound for VC-type entropy. Let μ be a probability measure on Ω, g : ι → Ω → ℝ a family of functions, and g0 : ℕ → ι a sequence of indices (for example an enumeration of a countable dense subfamily). 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 constant C > 0, which may depend on U, σ, A and v, 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 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.hypotheses𝒳 :sharedType uι :sharedType vNonempty ιCountable ιP :F :ι → 𝒳 → ℝU σ :ℝhF :hσ :0 < σhσU :σ < UhL2 :∀ i, measureL2Dist P (F i) (fun _ => 0) ≤ σconclusion∃ A v : ℝ,exp 1 ≤ A1 ≤ vProof (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 · 2 supporting 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)
2 supporting declarations (lemmas, instances)
-
empiricalRademacherComplexity_measurable_countablelemma — For a countably indexed family of measurable functions, the empirical Rademacher complexity of the family is a measurable 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 -
empiricalL2Radius_measurablelemma — For a countably indexed family of measurable functions, the largest empirical L² norm attained over the family is a measurable function of the sample.hypothesesconclusionMeasurable (fun S : Fin n → 𝒳 => empiricalL2Radius F S)Proof (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
Separability 3 core · 0 supporting 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.
Given a measure on an observation space, a sample of observations, and a real-valued function, the centered empirical average is its sample average minus its integral with respect to . For an empty sample the average term is zero by the inverse-of-zero convention, so the value is minus the integral.
Definition (Lean source)
Given a measure on an observation space and a family of real-valued functions indexed by a set , the countable empirical-supremum reduction property holds exactly when every member of the family is measurable and there is a sequence of indices whose associated countable subfamily has, for every sample size, the same supremum of absolute centered empirical averages as the full family almost surely under the corresponding product measure.
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 μ.