Estimation.NPIV.Primal.EmpiricalProcessEvent
The high-probability empirical-process events (Gram-matrix control, residual concentration) underlying the sieve NPIV rate.
Regime 2 core · 0 supporting This file bundles the localized empirical-process hypotheses required for the primal NPIV rate theorem.
Localized Empirical-Process Regimes
This file bundles the localized empirical-process hypotheses required for the
primal NPIV rate theorem. LocalizedRegimeBundle packages one abstract
localized loss class with its sample map, critical-radius certificate, and
radius-uniform boundedness/integrability assumptions. LocalizedRegimes
assembles the four concrete bundles used downstream, for H · F, m ∘ F,
F, and H, together with the law bridge, realizability, closedness, diameter,
pair-gap interpretation, and peeling-slack fields needed by the class-specific
deviation events and the empirical-process discharge.
A localized regime bundle packages a countable index set and a measurable family of loss functions on a nonempty covariate space, together with a localization norm, nonnegative on every class member and a measurable sample embedding into that covariate space. It further records a localized empirical-process regime whose critical radius is at most the target localization scale δ_n, is strictly positive, and is a fixed point of the process's expected-supremum function at that scale. Finally, uniformly over every radius at least δ_n, it requires that the empirical Rademacher process on the star-hull is almost-surely bounded and that the corresponding empirical Rademacher complexity is integrable.
Definition (Lean source)
This structure bundles four localized regime witnesses, one for each function class entering the empirical-process and centred-regulariser arguments — the product, moment, critic, and candidate classes, with the deterministic hypotheses that the observation variable has the stated law, that the population Tikhonov solution is realizable in the statistical candidate class, that the moment, candidate, and critic maps are almost-surely uniformly bounded, and that every candidate admits a critic whose L² lift realizes the projected residual. It also records that the empirical sup-min objective is bounded above by, and attained at, the population sup objective; diameter caps on the candidate class and the critic class; and nonnegative proportionality constants together with a matching radius lower bound for the moment-class pair differences and for the product-class cross terms. For the candidate class it further supplies an interpretation triple: an index into the H-bundle whose norm controls the pairwise loss gap, and whose composed evaluation equals the difference of squared candidate losses. For the product class it supplies both a single-candidate interpretation triple bounded by the localization scale and a pair-difference interpretation triple scaling with the candidate gap. For the moment class it likewise supplies a single-critic interpretation triple and a pair-difference interpretation triple.
Definition (Lean source)
Algebra 1 core · 0 supporting Collects deterministic algebra for the NPIV empirical-process master event. ★ young_cross_envelope
Collects deterministic algebra for the NPIV empirical-process master event. The lemmas turn localized deviation inequalities and regularizer bounds into the additive envelopes used by the primal rate proof.
Young / AM-GM cross-term envelope. For nonnegative reals R, δ, w, and κ, the mixed sum δ · (R + w + δ) + R · κ is bounded above by the quadratic envelope R² + δ · w + (3/2) · δ² + (1/2) · κ².
Formal statement
Proof (Lean source)
EPMasterEvent 1 core · 3 supporting States the explicit-rate empirical-process master event for the NPIV primal estimator. ★ ep_master_event_from_localized
States the explicit-rate empirical-process master event for the NPIV primal estimator. The module packages the localized deviation and centered-regularizer bounds in the form consumed by the rate proof.
Master localized empirical-process event for the primal NPIV analysis. Given, for every sample size n, a localized-regime bundle for the weak-norm, regularizer, and cross function classes at that fold-A sample size, and a confidence level ζ strictly between 0 and 1, there is a single event of probability at least 1 − ζ on which, simultaneously for every n with 1 ≤ split.n₁ n, the population weak-objective excess plus the empirical regularizer excess is bounded by the empirical sup-objective excess plus a localized envelope built from the regimes' critical radii and a √(log(1/ζ)/n) term.
Formal statement
Proof (Lean source)
3 supporting declarations (lemmas, instances)
-
population_closedness_critic_gap_eqlemma — Population curvature at the closedness critic. For a fixed candidate h, the closedness witness f_closed is the population maximizer of the quadratic adversarial criterion, and the drop at any critic f is exactly the squared L² critic gap.hypothesesS :h :S.𝒳 → ℝhh :h ∈ TC.Hf_closed :S.𝒵 → ℝhf_closed :f_closed ∈ TC.Ff :S.𝒵 → ℝhf :f ∈ TC.Fhcl :S.T (S.hL2 S.h₀_mem - S.hL2 (TC.H_subset hh)) = S.qL2 (TC.F_subset hf_closed)conclusion(2 * (∫ ω, S.m (S.W ω) f_closed ∂μ) - 2 * (∫ ω, h (S.xOf (S.W ω)) * f_closed (S.zOf (S.W ω)) ∂μ) - ∫ ω, (f_closed (S.zOf (S.W ω))) ^ 2 ∂μ)- (2 * (∫ ω, S.m (S.W ω) f ∂μ) - 2 * (∫ ω, h (S.xOf (S.W ω)) * f (S.zOf (S.W ω)) ∂μ) - ∫ ω, (f (S.zOf (S.W ω))) ^ 2 ∂μ)= ‖S.qL2 (TC.F_subset hf_closed) - S.qL2 (TC.F_subset hf)‖ ^ 2Proof (Lean source)
lemma population_closedness_critic_gap_eq {S : OperatorSystem Ω μ} {TC : TRAEClasses S} [IsProbabilityMeasure μ] {h : S.𝒳 → ℝ} (hh : h ∈ TC.H) {f_closed : S.𝒵 → ℝ} (hf_closed : f_closed ∈ TC.F) {f : S.𝒵 → ℝ} (hf : f ∈ TC.F) (hcl : S.T (S.hL2 S.h₀_mem - S.hL2 (TC.H_subset hh)) = S.qL2 (TC.F_subset hf_closed)) : (2 * (∫ ω, S.m (S.W ω) f_closed ∂μ) - 2 * (∫ ω, h (S.xOf (S.W ω)) * f_closed (S.zOf (S.W ω)) ∂μ) - ∫ ω, (f_closed (S.zOf (S.W ω))) ^ 2 ∂μ) - (2 * (∫ ω, S.m (S.W ω) f ∂μ) - 2 * (∫ ω, h (S.xOf (S.W ω)) * f (S.zOf (S.W ω)) ∂μ) - ∫ ω, (f (S.zOf (S.W ω))) ^ 2 ∂μ) = ‖S.qL2 (TC.F_subset hf_closed) - S.qL2 (TC.F_subset hf)‖ ^ 2 := by let qc := S.qL2 (TC.F_subset hf_closed) let q := S.qL2 (TC.F_subset hf) have hclosed := population_inner_eq_closedness_inner (S := S) (TC := TC) (hh := hh) (hf_closed := hf_closed) (hf := hf_closed) hcl have hf_eq := population_inner_eq_closedness_inner (S := S) (TC := TC) (hh := hh) (hf_closed := hf_closed) (hf := hf) hcl have hqc_self : inner ℝ qc qc = ‖qc‖ ^ 2 := real_inner_self_eq_norm_sq qc have hq_self : inner ℝ q q = ‖q‖ ^ 2 := real_inner_self_eq_norm_sq q have hnorm : ‖qc - q‖ ^ 2 = ‖qc‖ ^ 2 + ‖q‖ ^ 2 - 2 * inner ℝ qc q := by rw [norm_sub_sq_real] ring rw [hclosed, hf_eq, hnorm] dsimp [qc, q] at hqc_self hq_self nlinarith [hqc_self, hq_self] -
empirical_critic_argmax_localizedlemma — Deterministic argmax-localization bridge. If f_emp empirically beats the closedness witness for the same candidate h, and the population-vs-empirical loss difference is controlled by R, then the empirical critic is within squared L² distance R of the closedness witness.hypothesesS :split :OneShotSplit samplelambda :ℝh :S.𝒳 → ℝhh :h ∈ TC.Hf_closed :S.𝒵 → ℝhf_closed :f_closed ∈ TC.Ff_emp :S.𝒵 → ℝhf_emp :f_emp ∈ TC.Fn :ℕω :ΩR :ℝhcl :S.T (S.hL2 S.h₀_mem - S.hL2 (TC.H_subset hh)) = S.qL2 (TC.F_subset hf_closed)hopt :innerObjective S sample split lambda h f_closed n ω≤ innerObjective S sample split lambda h f_emp n ωhdev :(2 * (∫ ω', S.m (S.W ω') f_closed ∂μ) - 2 * (∫ ω', h (S.xOf (S.W ω')) * f_closed (S.zOf (S.W ω')) ∂μ) - ∫ ω', (f_closed (S.zOf (S.W ω'))) ^ 2 ∂μ)- (2 * (∫ ω', S.m (S.W ω') f_emp ∂μ) - 2 * (∫ ω', h (S.xOf (S.W ω')) * f_emp (S.zOf (S.W ω')) ∂μ) - ∫ ω', (f_emp (S.zOf (S.W ω'))) ^ 2 ∂μ)≤ innerObjective S sample split lambda h f_closed n ω- innerObjective S sample split lambda h f_emp n ω+ Rconclusion‖S.qL2 (TC.F_subset hf_closed) - S.qL2 (TC.F_subset hf_emp)‖ ^ 2 ≤ RProof (Lean source)
lemma empirical_critic_argmax_localized {S : OperatorSystem Ω μ} {TC : TRAEClasses S} {P_W : Measure S.𝒲} {sample : IIDSample Ω S.𝒲 μ P_W} {split : OneShotSplit sample} [IsProbabilityMeasure μ] {lambda : ℝ} {h : S.𝒳 → ℝ} (hh : h ∈ TC.H) {f_closed : S.𝒵 → ℝ} (hf_closed : f_closed ∈ TC.F) {f_emp : S.𝒵 → ℝ} (hf_emp : f_emp ∈ TC.F) {n : ℕ} {ω : Ω} {R : ℝ} (hcl : S.T (S.hL2 S.h₀_mem - S.hL2 (TC.H_subset hh)) = S.qL2 (TC.F_subset hf_closed)) (hopt : innerObjective S sample split lambda h f_closed n ω ≤ innerObjective S sample split lambda h f_emp n ω) (hdev : (2 * (∫ ω', S.m (S.W ω') f_closed ∂μ) - 2 * (∫ ω', h (S.xOf (S.W ω')) * f_closed (S.zOf (S.W ω')) ∂μ) - ∫ ω', (f_closed (S.zOf (S.W ω'))) ^ 2 ∂μ) - (2 * (∫ ω', S.m (S.W ω') f_emp ∂μ) - 2 * (∫ ω', h (S.xOf (S.W ω')) * f_emp (S.zOf (S.W ω')) ∂μ) - ∫ ω', (f_emp (S.zOf (S.W ω'))) ^ 2 ∂μ) ≤ innerObjective S sample split lambda h f_closed n ω - innerObjective S sample split lambda h f_emp n ω + R) : ‖S.qL2 (TC.F_subset hf_closed) - S.qL2 (TC.F_subset hf_emp)‖ ^ 2 ≤ R := by have hgap := population_closedness_critic_gap_eq (S := S) (TC := TC) (hh := hh) (hf_closed := hf_closed) (hf := hf_emp) hcl rw [← hgap] linarith [hdev, hopt] -
empirical_critic_argmax_localized_from_componentslemma — Componentwise version of empirical_critic_argmax_localized.hypothesesS :split :OneShotSplit samplelambda :ℝh :S.𝒳 → ℝhh :h ∈ TC.Hf_closed :S.𝒵 → ℝhf_closed :f_closed ∈ TC.Ff_emp :S.𝒵 → ℝhf_emp :f_emp ∈ TC.Fn :ℕω :ΩRm_closed RHF_closed RF_closed Rm_emp RHF_emp RF_emp :ℝhcl :S.T (S.hL2 S.h₀_mem - S.hL2 (TC.H_subset hh)) = S.qL2 (TC.F_subset hf_closed)hopt :innerObjective S sample split lambda h f_closed n ω≤ innerObjective S sample split lambda h f_emp n ωhmF_closed :|((split.n₁ n : ℕ) : ℝ)⁻¹ * ∑ k : Fin (split.n₁ n), S.m (sample.Z (k : ℕ) ω) f_closed- ∫ ω', S.m (S.W ω') f_closed ∂μ|≤ Rm_closedhHF_closed :|((split.n₁ n : ℕ) : ℝ)⁻¹ * ∑ k : Fin (split.n₁ n), h (S.xOf (sample.Z (k : ℕ) ω)) * f_closed (S.zOf (sample.Z (k : ℕ) ω))- ∫ ω', h (S.xOf (S.W ω')) * f_closed (S.zOf (S.W ω')) ∂μ|≤ RHF_closedhF_closed :|((split.n₁ n : ℕ) : ℝ)⁻¹ * ∑ k : Fin (split.n₁ n), (f_closed (S.zOf (sample.Z (k : ℕ) ω))) ^ 2- ∫ ω', (f_closed (S.zOf (S.W ω'))) ^ 2 ∂μ|≤ RF_closedhmF_emp :|((split.n₁ n : ℕ) : ℝ)⁻¹ * ∑ k : Fin (split.n₁ n), S.m (sample.Z (k : ℕ) ω) f_emp- ∫ ω', S.m (S.W ω') f_emp ∂μ|≤ Rm_emphHF_emp :|((split.n₁ n : ℕ) : ℝ)⁻¹ * ∑ k : Fin (split.n₁ n), h (S.xOf (sample.Z (k : ℕ) ω)) * f_emp (S.zOf (sample.Z (k : ℕ) ω))- ∫ ω', h (S.xOf (S.W ω')) * f_emp (S.zOf (S.W ω')) ∂μ|≤ RHF_emphF_emp :|((split.n₁ n : ℕ) : ℝ)⁻¹ * ∑ k : Fin (split.n₁ n), (f_emp (S.zOf (sample.Z (k : ℕ) ω))) ^ 2- ∫ ω', (f_emp (S.zOf (S.W ω'))) ^ 2 ∂μ|≤ RF_empconclusion‖S.qL2 (TC.F_subset hf_closed) - S.qL2 (TC.F_subset hf_emp)‖ ^ 2≤ (2 * Rm_closed + 2 * RHF_closed + RF_closed) + (2 * Rm_emp + 2 * RHF_emp + RF_emp)Proof (Lean source)
lemma empirical_critic_argmax_localized_from_components {S : OperatorSystem Ω μ} {TC : TRAEClasses S} {P_W : Measure S.𝒲} {sample : IIDSample Ω S.𝒲 μ P_W} {split : OneShotSplit sample} [IsProbabilityMeasure μ] {lambda : ℝ} {h : S.𝒳 → ℝ} (hh : h ∈ TC.H) {f_closed : S.𝒵 → ℝ} (hf_closed : f_closed ∈ TC.F) {f_emp : S.𝒵 → ℝ} (hf_emp : f_emp ∈ TC.F) {n : ℕ} {ω : Ω} {Rm_closed RHF_closed RF_closed Rm_emp RHF_emp RF_emp : ℝ} (hcl : S.T (S.hL2 S.h₀_mem - S.hL2 (TC.H_subset hh)) = S.qL2 (TC.F_subset hf_closed)) (hopt : innerObjective S sample split lambda h f_closed n ω ≤ innerObjective S sample split lambda h f_emp n ω) (hmF_closed : |((split.n₁ n : ℕ) : ℝ)⁻¹ * ∑ k : Fin (split.n₁ n), S.m (sample.Z (k : ℕ) ω) f_closed - ∫ ω', S.m (S.W ω') f_closed ∂μ| ≤ Rm_closed) (hHF_closed : |((split.n₁ n : ℕ) : ℝ)⁻¹ * ∑ k : Fin (split.n₁ n), h (S.xOf (sample.Z (k : ℕ) ω)) * f_closed (S.zOf (sample.Z (k : ℕ) ω)) - ∫ ω', h (S.xOf (S.W ω')) * f_closed (S.zOf (S.W ω')) ∂μ| ≤ RHF_closed) (hF_closed : |((split.n₁ n : ℕ) : ℝ)⁻¹ * ∑ k : Fin (split.n₁ n), (f_closed (S.zOf (sample.Z (k : ℕ) ω))) ^ 2 - ∫ ω', (f_closed (S.zOf (S.W ω'))) ^ 2 ∂μ| ≤ RF_closed) (hmF_emp : |((split.n₁ n : ℕ) : ℝ)⁻¹ * ∑ k : Fin (split.n₁ n), S.m (sample.Z (k : ℕ) ω) f_emp - ∫ ω', S.m (S.W ω') f_emp ∂μ| ≤ Rm_emp) (hHF_emp : |((split.n₁ n : ℕ) : ℝ)⁻¹ * ∑ k : Fin (split.n₁ n), h (S.xOf (sample.Z (k : ℕ) ω)) * f_emp (S.zOf (sample.Z (k : ℕ) ω)) - ∫ ω', h (S.xOf (S.W ω')) * f_emp (S.zOf (S.W ω')) ∂μ| ≤ RHF_emp) (hF_emp : |((split.n₁ n : ℕ) : ℝ)⁻¹ * ∑ k : Fin (split.n₁ n), (f_emp (S.zOf (sample.Z (k : ℕ) ω))) ^ 2 - ∫ ω', (f_emp (S.zOf (S.W ω'))) ^ 2 ∂μ| ≤ RF_emp) : ‖S.qL2 (TC.F_subset hf_closed) - S.qL2 (TC.F_subset hf_emp)‖ ^ 2 ≤ (2 * Rm_closed + 2 * RHF_closed + RF_closed) + (2 * Rm_emp + 2 * RHF_emp + RF_emp) := by let D_closed : ℝ := 2 * Rm_closed + 2 * RHF_closed + RF_closed let D_emp : ℝ := 2 * Rm_emp + 2 * RHF_emp + RF_emp have hclosed_upper : 2 * (∫ ω', S.m (S.W ω') f_closed ∂μ) - 2 * (∫ ω', h (S.xOf (S.W ω')) * f_closed (S.zOf (S.W ω')) ∂μ) - ∫ ω', (f_closed (S.zOf (S.W ω'))) ^ 2 ∂μ + lambda * (((split.n₁ n : ℕ) : ℝ)⁻¹ * ∑ k : Fin (split.n₁ n), (h (S.xOf (sample.Z (k : ℕ) ω))) ^ 2) ≤ innerObjective S sample split lambda h f_closed n ω + D_closed := by simpa [D_closed] using population_regularized_le_innerObjective_add_deviation split lambda h f_closed n ω hmF_closed hHF_closed hF_closed have hemp_upper : innerObjective S sample split lambda h f_emp n ω ≤ 2 * (∫ ω', S.m (S.W ω') f_emp ∂μ) - 2 * (∫ ω', h (S.xOf (S.W ω')) * f_emp (S.zOf (S.W ω')) ∂μ) - ∫ ω', (f_emp (S.zOf (S.W ω'))) ^ 2 ∂μ + lambda * (((split.n₁ n : ℕ) : ℝ)⁻¹ * ∑ k : Fin (split.n₁ n), (h (S.xOf (sample.Z (k : ℕ) ω))) ^ 2) + D_emp := by simpa [D_emp] using innerObjective_le_population_regularized_add_deviation split lambda h f_emp n ω hmF_emp hHF_emp hF_emp apply empirical_critic_argmax_localized (S := S) (TC := TC) (sample := sample) (split := split) (lambda := lambda) (hh := hh) (hf_closed := hf_closed) (hf_emp := hf_emp) (n := n) (ω := ω) (R := D_closed + D_emp) hcl hopt linarith [hclosed_upper, hemp_upper]
EPPerN 2 core · 1 supporting This file states the per-sample-size empirical-process control used by the primal NPIV rate theorem. ★ ep_per_n_inequality_from_deviations★ ep_inequality_from_localized
Per-Sample Empirical-Process Bound
This file states the per-sample-size empirical-process control used by the primal NPIV rate theorem. It packages the master localized event into the form consumed by the estimator analysis at a fixed sample size.
EP per-n inequality from an objective-level localized modulus (Helper B). Pure analytic per-n step, with no probability statement. Given a sample size n with 1 ≤ split.n₁ n, a localized-regime bundle at that fold-A sample size, a confidence level ζ strictly between 0 and 1, and the pointwise objective-level inequality, at sample point ω, bounding the population weak-objective-plus-regularizer excess by the empirical sup-objective excess plus the localized envelope, the weak-norm estimation excess is bounded by the empirical regularizer gap plus the same localized envelope, the empirical sup-objective excess having been eliminated using the optimality of ĥ_n (is_estimator.opt) against tb.h_lambda_star_fun. This statement is intentionally not vacuous: the hypothesis still contains the empirical sup-objective excess, which the proof cancels rather than assumes away.
Formal statement
Proof (Lean source)
Localized empirical-process inequality for the primal NPIV estimator. Given, for every n, a localized-regime bundle for the weak-norm, regularizer, and cross function classes at that fold-A sample size, and a confidence level ζ strictly between 0 and 1, there is an event of probability at least 1 − ζ on which, simultaneously for every n with 1 ≤ split.n₁ n, the weak-norm estimation excess ‖T(ĥ_n − h_0)‖² − ‖T(h*_λ − h_0)‖² is bounded by the empirical regularizer gap λ · (‖h*‖²_{A(n)} − ‖ĥ‖²_{A(n)}) plus a localized envelope built from the per-n critical radii scaled by δ_n and a √(log(1/ζ)/n) deviation term, where ‖h‖²_{A(n)} := (split.n₁ n)⁻¹ ∑_{k < split.n₁ n} h(X_k)² is the fold-A empirical second moment.
Formal statement
Proof (Lean source)
1 supporting declaration (lemmas, instances)
-
ep_pop_inner_at_closedness_witnesslemma — EP closedness-witness population identity (Helper B1).hypothesesS :h :S.𝒳 → ℝhh :h ∈ TC.Hf :S.𝒵 → ℝhf :f ∈ TC.Fhcl :S.T (S.hL2 S.h₀_mem - S.hL2 (TC.H_subset hh)) = S.qL2 (TC.F_subset hf)conclusion2 * (∫ ω, S.m (S.W ω) f ∂μ)- 2 * (∫ ω, h (S.xOf (S.W ω)) * f (S.zOf (S.W ω)) ∂μ)- ∫ ω, (f (S.zOf (S.W ω))) ^ 2 ∂μ= (S.weakNorm (S.hL2 (TC.H_subset hh) - S.hL2 S.h₀_mem)) ^ 2Proof (Lean source)
lemma ep_pop_inner_at_closedness_witness {S : OperatorSystem Ω μ} {TC : TRAEClasses S} [IsProbabilityMeasure μ] {h : S.𝒳 → ℝ} (hh : h ∈ TC.H) {f : S.𝒵 → ℝ} (hf : f ∈ TC.F) (hcl : S.T (S.hL2 S.h₀_mem - S.hL2 (TC.H_subset hh)) = S.qL2 (TC.F_subset hf)) : 2 * (∫ ω, S.m (S.W ω) f ∂μ) - 2 * (∫ ω, h (S.xOf (S.W ω)) * f (S.zOf (S.W ω)) ∂μ) - ∫ ω, (f (S.zOf (S.W ω))) ^ 2 ∂μ = (S.weakNorm (S.hL2 (TC.H_subset hh) - S.hL2 S.h₀_mem)) ^ 2 := by haveI := S.isFiniteMeasure haveI := S.Qbar_L2_hasProj -- Step 1: ⟨T(hL2 h₀ - hL2 hh), qL2 hf⟩ = ∫ (h₀ - h)·f via T_inner_eq_integral. have h_inner_int : inner ℝ (S.T (S.hL2 S.h₀_mem - S.hL2 (TC.H_subset hh))) (S.qL2 (TC.F_subset hf)) = ∫ ω, (S.h₀ (S.xOf (S.W ω)) - h (S.xOf (S.W ω))) * f (S.zOf (S.W ω)) ∂μ := S.T_inner_eq_integral S.h₀_mem (TC.H_subset hh) (TC.F_subset hf) -- Step 2: primal_moment: ∫ m(W;f) = ∫ h₀(X)·f(Z). have h_moment : ∫ ω, S.m (S.W ω) f ∂μ = ∫ ω, S.h₀ (S.xOf (S.W ω)) * f (S.zOf (S.W ω)) ∂μ := S.primal_moment f (TC.F_subset hf) -- Step 3: ∫ (h₀ - h)·f = ∫ h₀·f - ∫ h·f via integral_sub. have hh₀f_int : Integrable (fun ω => S.h₀ (S.xOf (S.W ω)) * f (S.zOf (S.W ω))) μ := by have := S.integrable_qh S.h₀ S.h₀_mem f (TC.F_subset hf) simpa [mul_comm] using this have hhf_int : Integrable (fun ω => h (S.xOf (S.W ω)) * f (S.zOf (S.W ω))) μ := by have := S.integrable_qh h (TC.H_subset hh) f (TC.F_subset hf) simpa [mul_comm] using this have h_int_diff : ∫ ω, (S.h₀ (S.xOf (S.W ω)) - h (S.xOf (S.W ω))) * f (S.zOf (S.W ω)) ∂μ = (∫ ω, S.h₀ (S.xOf (S.W ω)) * f (S.zOf (S.W ω)) ∂μ) - ∫ ω, h (S.xOf (S.W ω)) * f (S.zOf (S.W ω)) ∂μ := by have : (fun ω => (S.h₀ (S.xOf (S.W ω)) - h (S.xOf (S.W ω))) * f (S.zOf (S.W ω))) = fun ω => S.h₀ (S.xOf (S.W ω)) * f (S.zOf (S.W ω)) - h (S.xOf (S.W ω)) * f (S.zOf (S.W ω)) := by funext ω; ring rw [this] exact integral_sub hh₀f_int hhf_int -- Combine 1+2+3: have h_diff_eq_inner : (∫ ω, S.m (S.W ω) f ∂μ) - ∫ ω, h (S.xOf (S.W ω)) * f (S.zOf (S.W ω)) ∂μ = inner ℝ (S.T (S.hL2 S.h₀_mem - S.hL2 (TC.H_subset hh))) (S.qL2 (TC.F_subset hf)) := by rw [h_moment, h_inner_int, h_int_diff] -- Step 4: ⟨qL2 hf, qL2 hf⟩ = ∫ f². have h_qL2_self : inner ℝ (S.qL2 (TC.F_subset hf)) (S.qL2 (TC.F_subset hf)) = ∫ ω, (f (S.zOf (S.W ω))) ^ 2 ∂μ := by rw [MeasureTheory.L2.inner_def] refine integral_congr_ae ?_ filter_upwards [(S.toQbarL2 f (TC.F_subset hf)).coeFn_toLp] with ω hω simp [OperatorSystem.qL2, hω, pow_two] -- Step 5: substitute hcl in the inner-product side, then close with norm. have h_diff_eq_int_fsq : (∫ ω, S.m (S.W ω) f ∂μ) - ∫ ω, h (S.xOf (S.W ω)) * f (S.zOf (S.W ω)) ∂μ = ∫ ω, (f (S.zOf (S.W ω))) ^ 2 ∂μ := by rw [h_diff_eq_inner, hcl, h_qL2_self] -- Step 6: weakNorm of the negated argument. have h_T_neg : S.T (S.hL2 (TC.H_subset hh) - S.hL2 S.h₀_mem) = - S.qL2 (TC.F_subset hf) := by rw [S.T_sub] have hcl' : S.T (S.hL2 S.h₀_mem) - S.T (S.hL2 (TC.H_subset hh)) = S.qL2 (TC.F_subset hf) := by rw [← S.T_sub]; exact hcl rw [← hcl'] abel have h_weak_eq_intf : (S.weakNorm (S.hL2 (TC.H_subset hh) - S.hL2 S.h₀_mem)) ^ 2 = ∫ ω, (f (S.zOf (S.W ω))) ^ 2 ∂μ := by rw [OperatorSystem.weakNorm, h_T_neg, norm_neg] have : ‖S.qL2 (TC.F_subset hf)‖ ^ 2 = inner ℝ (S.qL2 (TC.F_subset hf)) (S.qL2 (TC.F_subset hf)) := by rw [real_inner_self_eq_norm_sq] rw [this, h_qL2_self] -- Final algebraic close: -- 2·∫m - 2·∫h·f - ∫f² = 2·(∫m - ∫h·f) - ∫f² -- = 2·∫f² - ∫f² = ∫f² = (weakNorm)². rw [h_weak_eq_intf] linarith [h_diff_eq_int_fsq]
EventAssembly 4 core · 1 supporting Assembles the localized empirical-process and centered-regularizer events into the final NPIV primal-rate event. ★ empirical_process_event_from_localized★ empirical_process_event_of_absorption
Assembles the localized empirical-process and centered-regularizer events into the final NPIV primal-rate event. The module exposes the event-level implication used by the headline primal estimator theorem.
Discharge of empirical_process_event from localized_uniform_deviation — explicit-rate form. Given a localized-regime bundle for the weak-norm, regularizer, and cross function classes at each fold-A sample size and a nonnegative Tikhonov regularization weight lambda, for every confidence level ζ strictly between 0 and 1 there is an event of probability at least 1 − ζ on which, simultaneously for every n with 1 ≤ split.n₁ n, the weak-norm estimation excess plus lambda times the strong-norm estimation excess is bounded by the sum of the explicit per-n empirical-process rate and the explicit per-n centred-regularizer rate — each an additive combination of critical radii and a √(log/n) deviation term.
Formal statement
Proof (Lean source)
Per-n explicit rate appearing on the RHS of empirical_process_event_from_localized, packaged as a function of (ω, n, ζ) for use as the LHS of the absorption hypothesis below.
Definition (Lean source)
Population shape appearing on the RHS of TRAERatePrimalAbstractHyps.empirical_process_event (Rate.lean, line 167):
Definition (Lean source)
Empirical-process event in the Rate.lean shape, conditional on absorption. Given a localized-regime bundle for the weak-norm, regularizer, and cross classes at each fold-A sample size, a nonnegative regularization weight lambda, an absorption hypothesis providing, for every confidence level ζ in (0, 1), a nonnegative constant K_ep bounding the explicit per-n empirical-process rate by K_ep times the population shape R² + δ_n·y + δ_n² + λ·δ_n·x + λ·δ_n², for every ω and every n with 1 ≤ split.n₁ n, and a small-n slack hypothesis extending the same K_ep-domination, for every set Aζ and every nonnegative K_ep, to every n with split.n₁ n = 0 and every ω ∈ Aζ, then for every confidence level ζ in (0, 1) there is an event of probability at least 1 − ζ and a nonnegative constant K_ep such that, for every ω in the event and every n, the weak-norm estimation excess plus lambda times the strong-norm estimation excess is bounded by K_ep times the population shape.
Formal statement
Proof (Lean source)
1 supporting declaration (lemmas, instances)
-
measure_inter_ge_one_sub_add_of_gelemma — The intersection of two high-probability events has probability at least one minus the sum of their two failure probabilities.hypothesesconclusionμ (A ∩ B) ≥ 1 - (a + b)Proof (Lean source)
lemma measure_inter_ge_one_sub_add_of_ge [IsProbabilityMeasure μ] {A B : Set Ω} {a b : ENNReal} (hA_meas : MeasurableSet A) (hB_meas : MeasurableSet B) (hA : μ A ≥ 1 - a) (hB : μ B ≥ 1 - b) : μ (A ∩ B) ≥ 1 - (a + b) := by have hA_compl : μ Aᶜ ≤ a := by have hone_le : (1 : ENNReal) ≤ a + μ A := tsub_le_iff_left.mp hA rw [measure_compl hA_meas (measure_ne_top _ _), measure_univ] exact tsub_le_iff_right.mpr (by simpa [add_comm] using hone_le) have hB_compl : μ Bᶜ ≤ b := by have hone_le : (1 : ENNReal) ≤ b + μ B := tsub_le_iff_left.mp hB rw [measure_compl hB_meas (measure_ne_top _ _), measure_univ] exact tsub_le_iff_right.mpr (by simpa [add_comm] using hone_le) have hbad_le : μ (A ∩ B)ᶜ ≤ a + b := by rw [Set.compl_inter] exact (measure_union_le Aᶜ Bᶜ).trans (add_le_add hA_compl hB_compl) have hAB_meas : MeasurableSet (A ∩ B) := hA_meas.inter hB_meas rw [measure_compl hAB_meas (measure_ne_top _ _), measure_univ] at hbad_le have hone_le : (1 : ENNReal) ≤ (a + b) + μ (A ∩ B) := tsub_le_iff_right.mp hbad_le exact tsub_le_iff_left.mpr hone_le
LocalizedEventF 1 core · 2 supporting This file constructs high-probability sample-space events that control the empirical fluctuation of squared critic functions in the primal NPIV analysis. ★ localized_omega_event_for_F_pair_peeled
Localized Deviation for the Critic Class F
This file constructs high-probability sample-space events that control the
empirical fluctuation of squared critic functions in the primal NPIV analysis.
Here F is the critic/test-function class TC.F; the event is pulled back from
the product sample law to the underlying probability space used by the
estimator.
Peeled pair-form localized deviation event for the squared critic class star(F). Given a positive sample size n and a confidence level δ in (0, 1], there is a single event of probability at least 1 − δ, valid simultaneously for every pair f₁, f₂ in the critic class TC.F, on which the gap between the empirical and population second-moment differences of f₁ and f₂ is bounded by 8 · F_L2_const · ‖f₁ − f₂‖_strong · δ_n + 5 · δ_n², where the strong norm is taken in the critic's L² embedding and F_L2_const comes from the supplied localized-regime witness.
Formal statement
Proof (Lean source)
2 supporting declarations (lemmas, instances)
-
localized_omega_event_for_Flemma — Ω-side localized deviation event for the critic class star(F) — controls |(1/n) Σ f(Z_i)² − E[f(Z)²]| uniformly over f ∈ TC.F.hypothesesS :β lambda :n :ℕδ_n :ℝregime :LocalizedRegimes S TC sample sc tb n δ_nhn :0 < nδ :ℝhδ_pos :0 < δhδ_le :δ ≤ 1conclusion∃ E : Set Ω,MeasurableSet E ∧μ E ≥ 1 - ofReal δ ∧∀ ω ∈ E,∀ f ∈ TC.F,|(n : ℝ)⁻¹ * ∑ k : Fin n, (f (S.zOf (sample.Z k ω))) ^ 2- ∫ ω', (f (S.zOf (S.W ω'))) ^ 2 ∂μ|≤ 4 * δ_n * criticalRadius (regime.bundle_F.regime.ψ n)Proof (Lean source)
lemma localized_omega_event_for_F {S : OperatorSystem Ω μ} {TC : TRAEClasses S} {P_W : Measure S.𝒲} {sample : IIDSample Ω S.𝒲 μ P_W} [IsProbabilityMeasure μ] {β lambda : ℝ} {sc : SourceCondition S β} {tb : TikhonovBiasBound S β lambda sc} {n : ℕ} {δ_n : ℝ} (regime : LocalizedRegimes S TC sample sc tb n δ_n) (hn : 0 < n) {δ : ℝ} (hδ_pos : 0 < δ) (hδ_le : δ ≤ 1) : ∃ E : Set Ω, MeasurableSet E ∧ μ E ≥ 1 - ofReal δ ∧ ∀ ω ∈ E, ∀ f ∈ TC.F, |(n : ℝ)⁻¹ * ∑ k : Fin n, (f (S.zOf (sample.Z k ω))) ^ 2 - ∫ ω', (f (S.zOf (S.W ω'))) ^ 2 ∂μ| ≤ 4 * δ_n * criticalRadius (regime.bundle_F.regime.ψ n) + regime.bundle_F.regime.b * sqrt (2 * log (1 / δ) / n) := by classical let B := regime.bundle_F haveI : IsProbabilityMeasure P_W := by rw [← regime.law_W] exact Measure.isProbabilityMeasure_map S.meas_W.aemeasurable obtain ⟨E₀, hE₀_meas, hE₀_prob, hE₀_bound⟩ := localized_uniform_deviation B.F B.norm P_W B.X B.X_meas B.F_meas B.regime hδ_pos hδ_le n hn B.crit_le B.crit_pos B.crit_fp (B.rad_bdd δ_n le_rfl) (B.rad_int δ_n le_rfl) let Ψ : Ω → (Fin n → S.𝒲) := fun ω k => sample.Z k ω let E : Set Ω := Ψ ⁻¹' E₀ have hpull := event_pullback_along_iidSample sample n hE₀_meas hE₀_prob refine ⟨E, ?_, ?_, ?_⟩ · simpa [E, Ψ] using hpull.1 · simpa [E, Ψ] using hpull.2 · intro ω hω f hf let i : B.ι := regime.interp_F_idx f hf have hω₀ : Ψ ω ∈ E₀ := by simpa [E, Ψ] using hω have hi_norm : B.norm (B.F i) ≤ δ_n := by simpa [B, i] using regime.interp_F_norm f hf have hdev := hE₀_bound (Ψ ω) hω₀ i hi_norm have hpop : ∫ w, B.F i (B.X w) ∂P_W = ∫ ω', B.F i (B.X (S.W ω')) ∂μ := by exact integral_comp_law_W regime.law_W ((B.F_meas i).comp B.X_meas) have heval_sample : (Finset.univ.sum fun k : Fin n => B.F i (B.X (sample.Z k ω))) = ∑ k : Fin n, (f (S.zOf (sample.Z k ω))) ^ 2 := by apply Finset.sum_congr rfl intro k _ simpa [B, i] using regime.interp_F_eval f hf (sample.Z k ω) have heval_pop : (fun ω' => B.F i (B.X (S.W ω'))) = fun ω' => (f (S.zOf (S.W ω'))) ^ 2 := by funext ω' simpa [B, i] using regime.interp_F_eval f hf (S.W ω') simpa [Ψ, hpop, heval_sample, heval_pop] using hdev -
localized_omega_event_for_F_pairlemma — Ω-side fixed-diameter pair-form localized deviation event for the squared critic class star(F). This is the non-peeled building block for the Foster pair-gap bridge.hypothesesS :β lambda :n :ℕδ_n :ℝregime :LocalizedRegimes S TC sample sc tb n δ_nhn :0 < nδ :ℝhδ_pos :0 < δhδ_le :δ ≤ 1conclusion∃ E : Set Ω,MeasurableSet E ∧μ E ≥ 1 - ofReal δ ∧∀ ω ∈ E,∀ f₁,∀ _hf₁ : f₁ ∈ TC.F,∀ f₂,∀ _hf₂ : f₂ ∈ TC.F,|(n : ℝ)⁻¹ * ∑ k : Fin n, ((f₁ (S.zOf (sample.Z k ω))) ^ 2 - (f₂ (S.zOf (sample.Z k ω))) ^ 2)- ∫ ω', ((f₁ (S.zOf (S.W ω'))) ^ 2 - (f₂ (S.zOf (S.W ω'))) ^ 2) ∂μ|≤ 4 * (regime.F_L2_const * regime.F_diameter) * criticalRadius (regime.bundle_F.regime.ψ n)Proof (Lean source)
lemma localized_omega_event_for_F_pair {S : OperatorSystem Ω μ} {TC : TRAEClasses S} {P_W : Measure S.𝒲} {sample : IIDSample Ω S.𝒲 μ P_W} [IsProbabilityMeasure μ] {β lambda : ℝ} {sc : SourceCondition S β} {tb : TikhonovBiasBound S β lambda sc} {n : ℕ} {δ_n : ℝ} (regime : LocalizedRegimes S TC sample sc tb n δ_n) (hn : 0 < n) {δ : ℝ} (hδ_pos : 0 < δ) (hδ_le : δ ≤ 1) : ∃ E : Set Ω, MeasurableSet E ∧ μ E ≥ 1 - ofReal δ ∧ ∀ ω ∈ E, ∀ f₁, ∀ _hf₁ : f₁ ∈ TC.F, ∀ f₂, ∀ _hf₂ : f₂ ∈ TC.F, |(n : ℝ)⁻¹ * ∑ k : Fin n, ((f₁ (S.zOf (sample.Z k ω))) ^ 2 - (f₂ (S.zOf (sample.Z k ω))) ^ 2) - ∫ ω', ((f₁ (S.zOf (S.W ω'))) ^ 2 - (f₂ (S.zOf (S.W ω'))) ^ 2) ∂μ| ≤ 4 * (regime.F_L2_const * regime.F_diameter) * criticalRadius (regime.bundle_F.regime.ψ n) + regime.bundle_F.regime.b * sqrt (2 * log (1 / δ) / n) := by classical let B := regime.bundle_F let r : ℝ := regime.F_L2_const * regime.F_diameter haveI : IsProbabilityMeasure P_W := by rw [← regime.law_W] exact Measure.isProbabilityMeasure_map S.meas_W.aemeasurable have hr_delta : δ_n ≤ r := by simpa [r] using regime.F_pair_radius_lb have hr_lb : criticalRadius (B.regime.ψ n) ≤ r := B.crit_le.trans hr_delta obtain ⟨E₀, hE₀_meas, hE₀_prob, hE₀_bound⟩ := localized_uniform_deviation B.F B.norm P_W B.X B.X_meas B.F_meas B.regime hδ_pos hδ_le n hn hr_lb B.crit_pos B.crit_fp (B.rad_bdd r hr_delta) (B.rad_int r hr_delta) let Ψ : Ω → (Fin n → S.𝒲) := fun ω k => sample.Z k ω let E : Set Ω := Ψ ⁻¹' E₀ have hpull := event_pullback_along_iidSample sample n hE₀_meas hE₀_prob refine ⟨E, ?_, ?_, ?_⟩ · simpa [E, Ψ] using hpull.1 · simpa [E, Ψ] using hpull.2 · intro ω hω f₁ hf₁ f₂ hf₂ let i : B.ι := regime.interp_F_idx_pair f₁ f₂ hf₁ hf₂ have hω₀ : Ψ ω ∈ E₀ := by simpa [E, Ψ] using hω have hpair : S.strongNorm (S.qL2 (TC.F_subset hf₁) - S.qL2 (TC.F_subset hf₂)) ≤ regime.F_diameter := regime.F_diameter_bound f₁ f₂ hf₁ hf₂ have hi_norm : B.norm (B.F i) ≤ r := by exact (regime.interp_F_norm_pair f₁ f₂ hf₁ hf₂).trans (mul_le_mul_of_nonneg_left hpair regime.F_L2_const_nonneg) have hdev := hE₀_bound (Ψ ω) hω₀ i hi_norm have hpop : ∫ w, B.F i (B.X w) ∂P_W = ∫ ω', B.F i (B.X (S.W ω')) ∂μ := by exact integral_comp_law_W regime.law_W ((B.F_meas i).comp B.X_meas) have heval_sample : (Finset.univ.sum fun k : Fin n => B.F i (B.X (sample.Z k ω))) = ∑ k : Fin n, ((f₁ (S.zOf (sample.Z k ω))) ^ 2 - (f₂ (S.zOf (sample.Z k ω))) ^ 2) := by apply Finset.sum_congr rfl intro k _ simpa [B, i] using regime.interp_F_eval_pair f₁ f₂ hf₁ hf₂ (sample.Z k ω) have heval_pop : (fun ω' => B.F i (B.X (S.W ω'))) = fun ω' => (f₁ (S.zOf (S.W ω'))) ^ 2 - (f₂ (S.zOf (S.W ω'))) ^ 2 := by funext ω' simpa [B, i] using regime.interp_F_eval_pair f₁ f₂ hf₁ hf₂ (S.W ω') simpa [Ψ, r, hpop, heval_sample, heval_pop] using hdev
LocalizedEventH 1 core · 0 supporting This file constructs high-probability events controlling empirical fluctuations over pairs of candidate primal functions in the NPIV primal rate argument. ★ localized_omega_event_for_H
Localized Deviation for the Primal Class H
This file constructs high-probability events controlling empirical fluctuations
over pairs of candidate primal functions in the NPIV primal rate argument. Here
H is the primal hypothesis class TC.H. The event is one component of the
localized empirical-process control needed for the Tikhonov-regularized
adversarial estimator.
Fixed-diameter localized deviation event for the candidate class star(H). Given a positive sample size n and a confidence level δ in (0, 1], there is a single event of probability at least 1 − δ, valid simultaneously for every pair h₁, h₂ in the primal hypothesis class TC.H, on which the gap between the fold's empirical second-moment difference (1/n) Σ_k h₁(X_k)² − (1/n) Σ_k h₂(X_k)² and its population counterpart E[h₁(X)²] − E[h₂(X)²] is bounded by 4 · (H_diameter + δ_n) · criticalRadius(ψ n) plus a √(2·log(1/δ)/n) deviation term, where H_diameter and the critical-radius regime come from the supplied localized-regime witness.
Formal statement
Proof (Lean source)
LocalizedEventHF 1 core · 2 supporting This file constructs the high-probability event controlling empirical fluctuations of products of candidate primal functions and critic functions in the primal NPIV analysis. ★ localized_omega_event_for_HF_pair_peeled
Localized Deviation for Products from H and F
This file constructs the high-probability event controlling empirical
fluctuations of products of candidate primal functions and critic functions in
the primal NPIV analysis. Here HF denotes the product class formed from
h ∈ TC.H and f ∈ TC.F; the result supplies the product-class component of
the localized empirical-process event used in the rate proof.
Peeled pair-form localized deviation event for the cross class star(H · F). Given a positive sample size n and a confidence level δ in (0, 1], there is a single event of probability at least 1 − δ, valid simultaneously for every pair h₁, h₂ in the primal class TC.H and every critic f in TC.F, on which the gap between the empirical and population means of (h₁ − h₂) · f is bounded by 8 · HF_pair_const · δ_n² · ‖h₁ − h₂‖_strong + 5 · δ_n², where the strong norm is taken in the primal L² embedding and HF_pair_const comes from the supplied localized-regime witness.
Formal statement
Proof (Lean source)
2 supporting declarations (lemmas, instances)
-
localized_omega_event_for_HFlemma — Ω-side localized deviation event for the product class star(H · F) — controls |(1/n) Σ h(X_i) f(Z_i) − E[h(X) f(Z)]| uniformly over h ∈ TC.H, f ∈ TC.F.hypothesesS :β lambda :n :ℕδ_n :ℝregime :LocalizedRegimes S TC sample sc tb n δ_nhn :0 < nδ :ℝhδ_pos :0 < δhδ_le :δ ≤ 1conclusion∃ E : Set Ω,MeasurableSet E ∧μ E ≥ 1 - ofReal δ ∧∀ ω ∈ E,∀ h ∈ TC.H,∀ f ∈ TC.F,|(n : ℝ)⁻¹ * ∑ k : Fin n, h (S.xOf (sample.Z k ω)) * f (S.zOf (sample.Z k ω))- ∫ ω', h (S.xOf (S.W ω')) * f (S.zOf (S.W ω')) ∂μ|≤ 4 * δ_n * criticalRadius (regime.bundle_HF.regime.ψ n)Proof (Lean source)
lemma localized_omega_event_for_HF {S : OperatorSystem Ω μ} {TC : TRAEClasses S} {P_W : Measure S.𝒲} {sample : IIDSample Ω S.𝒲 μ P_W} [IsProbabilityMeasure μ] {β lambda : ℝ} {sc : SourceCondition S β} {tb : TikhonovBiasBound S β lambda sc} {n : ℕ} {δ_n : ℝ} (regime : LocalizedRegimes S TC sample sc tb n δ_n) (hn : 0 < n) {δ : ℝ} (hδ_pos : 0 < δ) (hδ_le : δ ≤ 1) : ∃ E : Set Ω, MeasurableSet E ∧ μ E ≥ 1 - ofReal δ ∧ ∀ ω ∈ E, ∀ h ∈ TC.H, ∀ f ∈ TC.F, |(n : ℝ)⁻¹ * ∑ k : Fin n, h (S.xOf (sample.Z k ω)) * f (S.zOf (sample.Z k ω)) - ∫ ω', h (S.xOf (S.W ω')) * f (S.zOf (S.W ω')) ∂μ| ≤ 4 * δ_n * criticalRadius (regime.bundle_HF.regime.ψ n) + regime.bundle_HF.regime.b * sqrt (2 * log (1 / δ) / n) := by classical let B := regime.bundle_HF haveI : IsProbabilityMeasure P_W := by rw [← regime.law_W] exact Measure.isProbabilityMeasure_map S.meas_W.aemeasurable obtain ⟨E₀, hE₀_meas, hE₀_prob, hE₀_bound⟩ := localized_uniform_deviation B.F B.norm P_W B.X B.X_meas B.F_meas B.regime hδ_pos hδ_le n hn B.crit_le B.crit_pos B.crit_fp (B.rad_bdd δ_n le_rfl) (B.rad_int δ_n le_rfl) let Ψ : Ω → (Fin n → S.𝒲) := fun ω k => sample.Z k ω let E : Set Ω := Ψ ⁻¹' E₀ have hpull := event_pullback_along_iidSample sample n hE₀_meas hE₀_prob refine ⟨E, ?_, ?_, ?_⟩ · simpa [E, Ψ] using hpull.1 · simpa [E, Ψ] using hpull.2 · intro ω hω h hh f hf let i : B.ι := regime.interp_HF_idx h hh f hf have hω₀ : Ψ ω ∈ E₀ := by simpa [E, Ψ] using hω have hi_norm : B.norm (B.F i) ≤ δ_n := by simpa [B, i] using regime.interp_HF_norm h hh f hf have hdev := hE₀_bound (Ψ ω) hω₀ i hi_norm have hpop : ∫ w, B.F i (B.X w) ∂P_W = ∫ ω', B.F i (B.X (S.W ω')) ∂μ := by exact integral_comp_law_W regime.law_W ((B.F_meas i).comp B.X_meas) have heval_sample : (Finset.univ.sum fun k : Fin n => B.F i (B.X (sample.Z k ω))) = ∑ k : Fin n, h (S.xOf (sample.Z k ω)) * f (S.zOf (sample.Z k ω)) := by apply Finset.sum_congr rfl intro k _ simpa [B, i] using regime.interp_HF_eval h hh f hf (sample.Z k ω) have heval_pop : (fun ω' => B.F i (B.X (S.W ω'))) = fun ω' => h (S.xOf (S.W ω')) * f (S.zOf (S.W ω')) := by funext ω' simpa [B, i] using regime.interp_HF_eval h hh f hf (S.W ω') simpa [Ψ, hpop, heval_sample, heval_pop] using hdev -
localized_omega_event_for_HF_pairlemma — Ω-side fixed-diameter pair-form localized deviation event for the cross class star(H · F) — produces a *single* μ-event simultaneously valid for every triple (h₁, h₂, f) ∈ TC.H × TC.H × TC.F.hypothesesS :β lambda :n :ℕδ_n :ℝregime :LocalizedRegimes S TC sample sc tb n δ_nhn :0 < nδ :ℝhδ_pos :0 < δhδ_le :δ ≤ 1conclusion∃ E : Set Ω,MeasurableSet E ∧μ E ≥ 1 - ofReal δ ∧∀ ω ∈ E,∀ h₁,∀ _hh₁ : h₁ ∈ TC.H,∀ h₂,∀ _hh₂ : h₂ ∈ TC.H,∀ f,∀ _hf : f ∈ TC.F,|(n : ℝ)⁻¹ * ∑ k : Fin n, (h₁ (S.xOf (sample.Z k ω)) - h₂ (S.xOf (sample.Z k ω))) * f (S.zOf (sample.Z k ω))- ∫ ω', (h₁ (S.xOf (S.W ω')) - h₂ (S.xOf (S.W ω'))) * f (S.zOf (S.W ω')) ∂μ|≤ 4 * (regime.HF_pair_const * regime.H_diameter * δ_n + δ_n) * criticalRadius (regime.bundle_HF.regime.ψ n)Proof (Lean source)
lemma localized_omega_event_for_HF_pair {S : OperatorSystem Ω μ} {TC : TRAEClasses S} {P_W : Measure S.𝒲} {sample : IIDSample Ω S.𝒲 μ P_W} [IsProbabilityMeasure μ] {β lambda : ℝ} {sc : SourceCondition S β} {tb : TikhonovBiasBound S β lambda sc} {n : ℕ} {δ_n : ℝ} (regime : LocalizedRegimes S TC sample sc tb n δ_n) (hn : 0 < n) {δ : ℝ} (hδ_pos : 0 < δ) (hδ_le : δ ≤ 1) : ∃ E : Set Ω, MeasurableSet E ∧ μ E ≥ 1 - ofReal δ ∧ ∀ ω ∈ E, ∀ h₁, ∀ _hh₁ : h₁ ∈ TC.H, ∀ h₂, ∀ _hh₂ : h₂ ∈ TC.H, ∀ f, ∀ _hf : f ∈ TC.F, |(n : ℝ)⁻¹ * ∑ k : Fin n, (h₁ (S.xOf (sample.Z k ω)) - h₂ (S.xOf (sample.Z k ω))) * f (S.zOf (sample.Z k ω)) - ∫ ω', (h₁ (S.xOf (S.W ω')) - h₂ (S.xOf (S.W ω'))) * f (S.zOf (S.W ω')) ∂μ| ≤ 4 * (regime.HF_pair_const * regime.H_diameter * δ_n + δ_n) * criticalRadius (regime.bundle_HF.regime.ψ n) + regime.bundle_HF.regime.b * sqrt (2 * log (1 / δ) / n) := by classical let B := regime.bundle_HF let r : ℝ := regime.HF_pair_const * regime.H_diameter * δ_n + δ_n haveI : IsProbabilityMeasure P_W := by rw [← regime.law_W] exact Measure.isProbabilityMeasure_map S.meas_W.aemeasurable have hδn_pos : 0 < δ_n := lt_of_lt_of_le B.crit_pos B.crit_le have hδn_nonneg : 0 ≤ δ_n := le_of_lt hδn_pos have hdiam_nonneg : 0 ≤ regime.H_diameter := hδn_nonneg.trans regime.H_diameter_lb have hpair_nonneg : 0 ≤ regime.HF_pair_const := regime.HF_pair_const_nonneg have hr_delta : δ_n ≤ r := by dsimp [r] have hpair_term_nonneg : 0 ≤ regime.HF_pair_const * regime.H_diameter * δ_n := by positivity linarith have hr_lb : criticalRadius (B.regime.ψ n) ≤ r := by dsimp [r] nlinarith [B.crit_le, hr_delta] obtain ⟨E₀, hE₀_meas, hE₀_prob, hE₀_bound⟩ := localized_uniform_deviation B.F B.norm P_W B.X B.X_meas B.F_meas B.regime hδ_pos hδ_le n hn hr_lb B.crit_pos B.crit_fp (B.rad_bdd r hr_delta) (B.rad_int r hr_delta) let Ψ : Ω → (Fin n → S.𝒲) := fun ω k => sample.Z k ω let E : Set Ω := Ψ ⁻¹' E₀ have hpull := event_pullback_along_iidSample sample n hE₀_meas hE₀_prob refine ⟨E, ?_, ?_, ?_⟩ · simpa [E, Ψ] using hpull.1 · simpa [E, Ψ] using hpull.2 · intro ω hω h₁ hh₁ h₂ hh₂ f hf let i : B.ι := regime.interp_HF_idx_pair h₁ h₂ hh₁ hh₂ f hf have hω₀ : Ψ ω ∈ E₀ := by simpa [E, Ψ] using hω have hpair : S.strongNorm (S.hL2 (TC.H_subset hh₁) - S.hL2 (TC.H_subset hh₂)) ≤ regime.H_diameter := regime.H_diameter_bound h₁ h₂ hh₁ hh₂ have hi_norm : B.norm (B.F i) ≤ r := by have hi_gap := regime.interp_HF_norm_pair h₁ h₂ hh₁ hh₂ f hf have hpair_mult : regime.HF_pair_const * S.strongNorm (S.hL2 (TC.H_subset hh₁) - S.hL2 (TC.H_subset hh₂)) * δ_n ≤ regime.HF_pair_const * regime.H_diameter * δ_n := by have hmul : regime.HF_pair_const * S.strongNorm (S.hL2 (TC.H_subset hh₁) - S.hL2 (TC.H_subset hh₂)) ≤ regime.HF_pair_const * regime.H_diameter := mul_le_mul_of_nonneg_left hpair hpair_nonneg simpa [mul_assoc, mul_comm, mul_left_comm] using (mul_le_mul_of_nonneg_left hmul hδn_nonneg) have hpair_nonneg' : 0 ≤ regime.HF_pair_const * regime.H_diameter * δ_n := by positivity dsimp [r] have hpair_bound : B.norm (B.F i) ≤ regime.HF_pair_const * regime.H_diameter * δ_n := le_trans hi_gap hpair_mult linarith [hpair_nonneg'] have hdev := hE₀_bound (Ψ ω) hω₀ i hi_norm have hpop : ∫ w, B.F i (B.X w) ∂P_W = ∫ ω', B.F i (B.X (S.W ω')) ∂μ := by exact integral_comp_law_W regime.law_W ((B.F_meas i).comp B.X_meas) have heval_sample : (Finset.univ.sum fun k : Fin n => B.F i (B.X (sample.Z k ω))) = ∑ k : Fin n, (h₁ (S.xOf (sample.Z k ω)) - h₂ (S.xOf (sample.Z k ω))) * f (S.zOf (sample.Z k ω)) := by apply Finset.sum_congr rfl intro k _ simpa [B, i] using regime.interp_HF_eval_pair h₁ h₂ hh₁ hh₂ f hf (sample.Z k ω) have heval_pop : (fun ω' => B.F i (B.X (S.W ω'))) = fun ω' => (h₁ (S.xOf (S.W ω')) - h₂ (S.xOf (S.W ω'))) * f (S.zOf (S.W ω')) := by funext ω' simpa [B, i] using regime.interp_HF_eval_pair h₁ h₂ hh₁ hh₂ f hf (S.W ω') simpa [Ψ, r, hpop, heval_sample, heval_pop] using hdev
LocalizedEventMF 1 core · 2 supporting This file constructs the high-probability event controlling empirical fluctuations of the moment map multiplied by critic functions in the primal NPIV analysis. ★ localized_omega_event_for_mF_pair_peeled
Localized Deviation for Moment-Critic Products mF
This file constructs the high-probability event controlling empirical
fluctuations of the moment map multiplied by critic functions in the primal
NPIV analysis. Here mF denotes the class W ↦ m(W; f) indexed by
f ∈ TC.F; it supplies the moment-class component of the localized
empirical-process event used downstream.
Peeled pair-form localized deviation event for the moment class star(m ∘ F). Given a positive sample size n and a confidence level δ in (0, 1], there is a single event of probability at least 1 − δ, valid simultaneously for every pair f₁, f₂ in the critic class TC.F, on which the gap between the empirical and population means of m(·; f₁) − m(·; f₂) is bounded by 8 · mF_L2_const · δ_n · ‖f₁ − f₂‖_strong + 5 · δ_n², where the strong norm is taken in the critic's L² embedding and mF_L2_const comes from the supplied localized-regime witness.
Formal statement
Proof (Lean source)
2 supporting declarations (lemmas, instances)
-
localized_omega_event_for_mFlemma — Ω-side localized deviation event for the moment class star(m ∘ F) — controls |(1/n) Σ m(W_i; f) − E[m(W; f)]| uniformly over f ∈ TC.F.hypothesesS :β lambda :n :ℕδ_n :ℝregime :LocalizedRegimes S TC sample sc tb n δ_nhn :0 < nδ :ℝhδ_pos :0 < δhδ_le :δ ≤ 1conclusion∃ E : Set Ω,MeasurableSet E ∧μ E ≥ 1 - ofReal δ ∧∀ ω ∈ E,∀ f ∈ TC.F,|(n : ℝ)⁻¹ * ∑ k : Fin n, S.m (sample.Z k ω) f - ∫ ω', S.m (S.W ω') f ∂μ|≤ 4 * δ_n * criticalRadius (regime.bundle_mF.regime.ψ n)Proof (Lean source)
lemma localized_omega_event_for_mF {S : OperatorSystem Ω μ} {TC : TRAEClasses S} {P_W : Measure S.𝒲} {sample : IIDSample Ω S.𝒲 μ P_W} [IsProbabilityMeasure μ] {β lambda : ℝ} {sc : SourceCondition S β} {tb : TikhonovBiasBound S β lambda sc} {n : ℕ} {δ_n : ℝ} (regime : LocalizedRegimes S TC sample sc tb n δ_n) (hn : 0 < n) {δ : ℝ} (hδ_pos : 0 < δ) (hδ_le : δ ≤ 1) : ∃ E : Set Ω, MeasurableSet E ∧ μ E ≥ 1 - ofReal δ ∧ ∀ ω ∈ E, ∀ f ∈ TC.F, |(n : ℝ)⁻¹ * ∑ k : Fin n, S.m (sample.Z k ω) f - ∫ ω', S.m (S.W ω') f ∂μ| ≤ 4 * δ_n * criticalRadius (regime.bundle_mF.regime.ψ n) + regime.bundle_mF.regime.b * sqrt (2 * log (1 / δ) / n) := by classical let B := regime.bundle_mF haveI : IsProbabilityMeasure P_W := by rw [← regime.law_W] exact Measure.isProbabilityMeasure_map S.meas_W.aemeasurable obtain ⟨E₀, hE₀_meas, hE₀_prob, hE₀_bound⟩ := localized_uniform_deviation B.F B.norm P_W B.X B.X_meas B.F_meas B.regime hδ_pos hδ_le n hn B.crit_le B.crit_pos B.crit_fp (B.rad_bdd δ_n le_rfl) (B.rad_int δ_n le_rfl) let Ψ : Ω → (Fin n → S.𝒲) := fun ω k => sample.Z k ω let E : Set Ω := Ψ ⁻¹' E₀ have hpull := event_pullback_along_iidSample sample n hE₀_meas hE₀_prob refine ⟨E, ?_, ?_, ?_⟩ · simpa [E, Ψ] using hpull.1 · simpa [E, Ψ] using hpull.2 · intro ω hω f hf let i : B.ι := regime.interp_mF_idx f hf have hω₀ : Ψ ω ∈ E₀ := by simpa [E, Ψ] using hω have hi_norm : B.norm (B.F i) ≤ δ_n := by simpa [B, i] using regime.interp_mF_norm f hf have hdev := hE₀_bound (Ψ ω) hω₀ i hi_norm have hpop : ∫ w, B.F i (B.X w) ∂P_W = ∫ ω', B.F i (B.X (S.W ω')) ∂μ := by exact integral_comp_law_W regime.law_W ((B.F_meas i).comp B.X_meas) have heval_sample : (Finset.univ.sum fun k : Fin n => B.F i (B.X (sample.Z k ω))) = ∑ k : Fin n, S.m (sample.Z k ω) f := by apply Finset.sum_congr rfl intro k _ simpa [B, i] using regime.interp_mF_eval f hf (sample.Z k ω) have heval_pop : (fun ω' => B.F i (B.X (S.W ω'))) = fun ω' => S.m (S.W ω') f := by funext ω' simpa [B, i] using regime.interp_mF_eval f hf (S.W ω') simpa [Ψ, hpop, heval_sample, heval_pop] using hdev -
localized_omega_event_for_mF_pairlemma — Ω-side fixed-diameter pair-form localized deviation event for the moment class star(m ∘ F). This is the non-peeled building block for the Foster pair-gap bridge; the peeled variant can reuse the same interpretation at dyadic radii below mF_L2_const * F_diameter.hypothesesS :β lambda :n :ℕδ_n :ℝregime :LocalizedRegimes S TC sample sc tb n δ_nhn :0 < nδ :ℝhδ_pos :0 < δhδ_le :δ ≤ 1conclusion∃ E : Set Ω,MeasurableSet E ∧μ E ≥ 1 - ofReal δ ∧∀ ω ∈ E,∀ f₁,∀ _hf₁ : f₁ ∈ TC.F,∀ f₂,∀ _hf₂ : f₂ ∈ TC.F,|(n : ℝ)⁻¹ * ∑ k : Fin n, (S.m (sample.Z k ω) f₁ - S.m (sample.Z k ω) f₂)- ∫ ω', (S.m (S.W ω') f₁ - S.m (S.W ω') f₂) ∂μ|≤ 4 * (regime.mF_L2_const * regime.F_diameter) * criticalRadius (regime.bundle_mF.regime.ψ n)Proof (Lean source)
lemma localized_omega_event_for_mF_pair {S : OperatorSystem Ω μ} {TC : TRAEClasses S} {P_W : Measure S.𝒲} {sample : IIDSample Ω S.𝒲 μ P_W} [IsProbabilityMeasure μ] {β lambda : ℝ} {sc : SourceCondition S β} {tb : TikhonovBiasBound S β lambda sc} {n : ℕ} {δ_n : ℝ} (regime : LocalizedRegimes S TC sample sc tb n δ_n) (hn : 0 < n) {δ : ℝ} (hδ_pos : 0 < δ) (hδ_le : δ ≤ 1) : ∃ E : Set Ω, MeasurableSet E ∧ μ E ≥ 1 - ofReal δ ∧ ∀ ω ∈ E, ∀ f₁, ∀ _hf₁ : f₁ ∈ TC.F, ∀ f₂, ∀ _hf₂ : f₂ ∈ TC.F, |(n : ℝ)⁻¹ * ∑ k : Fin n, (S.m (sample.Z k ω) f₁ - S.m (sample.Z k ω) f₂) - ∫ ω', (S.m (S.W ω') f₁ - S.m (S.W ω') f₂) ∂μ| ≤ 4 * (regime.mF_L2_const * regime.F_diameter) * criticalRadius (regime.bundle_mF.regime.ψ n) + regime.bundle_mF.regime.b * sqrt (2 * log (1 / δ) / n) := by classical let B := regime.bundle_mF let r : ℝ := regime.mF_L2_const * regime.F_diameter haveI : IsProbabilityMeasure P_W := by rw [← regime.law_W] exact Measure.isProbabilityMeasure_map S.meas_W.aemeasurable have hδn_pos : 0 < δ_n := lt_of_lt_of_le B.crit_pos B.crit_le have hr_delta : δ_n ≤ r := by simpa [r] using regime.mF_pair_radius_lb have hr_lb : criticalRadius (B.regime.ψ n) ≤ r := by exact B.crit_le.trans hr_delta obtain ⟨E₀, hE₀_meas, hE₀_prob, hE₀_bound⟩ := localized_uniform_deviation B.F B.norm P_W B.X B.X_meas B.F_meas B.regime hδ_pos hδ_le n hn hr_lb B.crit_pos B.crit_fp (B.rad_bdd r hr_delta) (B.rad_int r hr_delta) let Ψ : Ω → (Fin n → S.𝒲) := fun ω k => sample.Z k ω let E : Set Ω := Ψ ⁻¹' E₀ have hpull := event_pullback_along_iidSample sample n hE₀_meas hE₀_prob refine ⟨E, ?_, ?_, ?_⟩ · simpa [E, Ψ] using hpull.1 · simpa [E, Ψ] using hpull.2 · intro ω hω f₁ hf₁ f₂ hf₂ let i : B.ι := regime.interp_mF_idx_pair f₁ f₂ hf₁ hf₂ have hω₀ : Ψ ω ∈ E₀ := by simpa [E, Ψ] using hω have hpair : S.strongNorm (S.qL2 (TC.F_subset hf₁) - S.qL2 (TC.F_subset hf₂)) ≤ regime.F_diameter := regime.F_diameter_bound f₁ f₂ hf₁ hf₂ have hi_norm : B.norm (B.F i) ≤ r := by exact (regime.interp_mF_norm_pair f₁ f₂ hf₁ hf₂).trans (mul_le_mul_of_nonneg_left hpair regime.mF_L2_const_nonneg) have hdev := hE₀_bound (Ψ ω) hω₀ i hi_norm have hpop : ∫ w, B.F i (B.X w) ∂P_W = ∫ ω', B.F i (B.X (S.W ω')) ∂μ := by exact integral_comp_law_W regime.law_W ((B.F_meas i).comp B.X_meas) have heval_sample : (Finset.univ.sum fun k : Fin n => B.F i (B.X (sample.Z k ω))) = ∑ k : Fin n, (S.m (sample.Z k ω) f₁ - S.m (sample.Z k ω) f₂) := by apply Finset.sum_congr rfl intro k _ simpa [B, i] using regime.interp_mF_eval_pair f₁ f₂ hf₁ hf₂ (sample.Z k ω) have heval_pop : (fun ω' => B.F i (B.X (S.W ω'))) = fun ω' => S.m (S.W ω') f₁ - S.m (S.W ω') f₂ := by funext ω' simpa [B, i] using regime.interp_mF_eval_pair f₁ f₂ hf₁ hf₂ (S.W ω') simpa [Ψ, r, hpop, heval_sample, heval_pop] using hdev
LocalizedEventsBase 1 core · 1 supporting This file supplies the shared Ω-side infrastructure for turning product-space localized deviation inequalities into events on the ambient sample space. ★ localized_omega_event_sharp_for_bundle
Base Localized Events for Primal NPIV
This file supplies the shared Ω-side infrastructure for turning product-space
localized deviation inequalities into events on the ambient sample space. The
law bridge integral_comp_law_W rewrites population means under the observation
law as integrals over S.W, and localized_omega_event_sharp_for_bundle
pulls the sharp localized event for an abstract LocalizedRegimeBundle back
along an IID sample. The class-specific event files for H, F, H · F, and
m ∘ F instantiate this wrapper through their LocalizedRegimes
interpretation fields.
Ω-side Foster–Syrgkanis sharp localized event for a single NPIV LocalizedRegimeBundle. Consider an IID sample drawn from a probability space, where the pushforward of the ambient measure under the observed-variable map equals the stated observation law and the sample size n is positive. Fix a confidence parameter ζ with , a localized rate with , and a radius Rmax with δ_n ≤ Rmax. If for every dyadic level K with Rmax ≤ δ_n · 2 ^ K, the corresponding complexity term stays below δ_n ^ 2, then there is an event of probability at least 1 - ζ on which, for every index in the regime bundle whose function norm is at most Rmax, the empirical average of that function over the first n sample draws deviates from its population mean by at most 8 * δ_n * norm + 5 * δ_n ^ 2.
Formal statement
Proof (Lean source)
1 supporting declaration (lemmas, instances)
-
integral_comp_law_Wlemma — Integrating a measurable function under the law of the observed variable is the same as integrating its pullback over the ambient sample space.hypothesesconclusion∫ w, g w ∂P_W = ∫ ω, g (S.W ω) ∂μProof (Lean source)
lemma integral_comp_law_W {S : OperatorSystem Ω μ} {P_W : Measure S.𝒲} (hlaw : μ.map S.W = P_W) {g : S.𝒲 → ℝ} (hg : Measurable g) : ∫ w, g w ∂P_W = ∫ ω, g (S.W ω) ∂μ := by rw [← hlaw] exact MeasureTheory.integral_map S.meas_W.aemeasurable hg.aestronglyMeasurable
Regulariser 1 core · 1 supporting This file derives the localized empirical-process event needed to compare the empirical regularized objective at the estimator with the objective at a population Tikhonov candidate. ★ centred_regulariser_bound_from_localized
Regularizer Event for the Primal NPIV Rate
This file derives the localized empirical-process event needed to compare the empirical regularized objective at the estimator with the objective at a population Tikhonov candidate. The bounds connect the localized deviation events to the regularization terms in the primal NPIV rate proof, producing an all-sample-size centred empirical regularizer bound from the localized event for the squared candidate-difference class.
The centred empirical regularizer gap is bounded uniformly over all sample sizes by the localized rate from the squared candidate-difference event. For every sample size n, suppose a localized-regimes witness at the corresponding fold size and localization rate delta n is available, the regularization weight satisfies lambda ≥ 0, and the confidence level satisfies 0 < ζ < 1. Then there is an event of probability at least 1 - ζ on which, for every split size with at least one fold-A observation, the empirical-vs- population regularizer discrepancy between the estimator and the population Tikhonov candidate is controlled by an explicit bound built from the fold's diameter, critical radius, and localization rate.
Formal statement
Proof (Lean source)
1 supporting declaration (lemmas, instances)
-
measure_iInter_nat_ge_one_sub_tsum_of_gelemma — If each event in a countable family has probability at least one minus its assigned error, then their intersection has probability at least one minus the sum of those errors.hypothesesconclusionμ (⋂ n, E n) ≥ 1 - ∑' n, a nProof (Lean source)
lemma measure_iInter_nat_ge_one_sub_tsum_of_ge [IsProbabilityMeasure μ] {E : ℕ → Set Ω} {a : ℕ → ENNReal} (hE_meas : ∀ n, MeasurableSet (E n)) (hE : ∀ n, μ (E n) ≥ 1 - a n) : μ (⋂ n, E n) ≥ 1 - ∑' n, a n := by have hE_compl : ∀ n, μ (E n)ᶜ ≤ a n := by intro n have hone_le : (1 : ENNReal) ≤ a n + μ (E n) := tsub_le_iff_left.mp (hE n) rw [measure_compl (hE_meas n) (measure_ne_top _ _), measure_univ] exact tsub_le_iff_right.mpr (by simpa [add_comm] using hone_le) have hbad_subset : (⋂ n, E n)ᶜ ⊆ ⋃ n, (E n)ᶜ := by simp have hbad_le : μ (⋂ n, E n)ᶜ ≤ ∑' n, a n := by calc μ (⋂ n, E n)ᶜ ≤ μ (⋃ n, (E n)ᶜ) := measure_mono hbad_subset _ ≤ ∑' n, μ (E n)ᶜ := measure_iUnion_le fun n => (E n)ᶜ _ ≤ ∑' n, a n := ENNReal.tsum_le_tsum hE_compl have hA_meas : MeasurableSet (⋂ n, E n) := MeasurableSet.iInter hE_meas rw [measure_compl hA_meas (measure_ne_top _ _), measure_univ] at hbad_le have hone_le : (1 : ENNReal) ≤ (∑' n, a n) + μ (⋂ n, E n) := tsub_le_iff_right.mp hbad_le exact tsub_le_iff_left.mpr hone_le