Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Formalized on 27 Nov 2026]

Title:Uniform deviation over a finite class: Emax⁡θ∣L−LM∣≤B∣Θ∣/M\mathbb{E}\max_\theta|L-L_M|\le B\sqrt{|\Theta|}/\sqrt{M}

Source:HJB tractability
Textbook result A standard result, good for practice. First verified proof: +3 points.
Statement:reviewed
Statement:

Let (I,p)(I,p) be a finite probability space, Θ\Theta a finite nonempty class and ℓ:Θ×I→R\ell:\Theta\times I\to\mathbb{R} with ∣ℓ∣≤B|\ell|\le B. Draw M≥1M\ge1 i.i.d. samples ξ∈IM\xi\in I^M; expectations are written as explicit sums with product weights ∏kp(ξk)\prod_k p(\xi_k). With population loss L(θ)=∑ipiℓ(θ,i)L(\theta)=\sum_i p_i\ell(\theta,i) and empirical loss LM(θ)=1M∑kℓ(θ,ξk)L_M(\theta)=\frac1M\sum_k\ell(\theta,\xi_k), prove Emax⁡θ∣L(θ)−LM(θ)∣≤B∣Θ∣/M\mathbb{E}\max_\theta|L(\theta)-L_M(\theta)|\le B\sqrt{|\Theta|}/\sqrt M. The audited version reached a 'polynomial in d,md,m' bound only through an assumed capacity hypothesis, which is dropped here. The sharper Massart bound B2log⁡(2∣Θ∣)/MB\sqrt{2\log(2|\Theta|)/M} and covering-number bounds for neural network classes are not part of this problem.

Subjects:Statistics Theory (math.ST); Probability (math.PR); stat.ML (stat.ML)
Tags:hjb, monte-carlo, generalization, uniform-deviation
Cite as:NS.09253 [math.ST] · NS.09253v1 for this version
Declaration:NSHJB.FiniteClassGeneralization.finite_class_uniform_deviation
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 3; accepted critique: up to 100
Statement hash:d80cf6ee4b1af670548029ce362654fdf10193713eb47a8ae58b370560cfd068
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · nosorry problem pack (formalized with AI agents, refereed)

Formal statement

theorem finite_class_uniform_deviation {Θ I : Type*} [Fintype Θ] [Nonempty Θ] [Fintype I]
    {M : ℕ} (hM : 0 < M)
    (p : I → ℝ) (hp : ∀ i, 0 ≤ p i) (hp_sum : ∑ i : I, p i = 1)
    (ℓ : Θ → I → ℝ) (B : ℝ) (hB : 0 ≤ B) (hbound : ∀ θ i, |ℓ θ i| ≤ B) :
    ∑ ξ : Fin M → I, prodWeight p ξ * (⨆ θ : Θ, |popLoss p ℓ θ - empLoss ℓ θ ξ|) ≤
      B * Real.sqrt (Fintype.card Θ) / Real.sqrt M
Show the full Challenge.lean (46 lines) — definitions included
import Mathlib

/-!
# Uniform deviation over a finite class: `E[max_θ |L(θ) - L_M(θ)|] ≤ B √|Θ| / √M`

**Stated.** Let `(I, p)` be a finite probability space, `Θ` a finite nonempty parameter class
and `ℓ : Θ → I → ℝ` a loss with `|ℓ θ i| ≤ B`. Draw `M ≥ 1` i.i.d. samples
`ξ = (ξ 0, …, ξ (M-1)) : Fin M → I` from `p`; the law of `ξ` is the product weight
`prodWeight p ξ = ∏ k, p (ξ k)` (defined below), and expectations are the explicit finite
weighted sums `∑ ξ, prodWeight p ξ * (…)`. With population loss `L θ = ∑ i, p i * ℓ θ i` and
empirical loss `L_M θ ξ = (1/M) ∑ₖ ℓ θ (ξ k)`, the expected uniform deviation satisfies
`E[ max_θ |L θ - L_M θ ξ| ] ≤ B · √|Θ| / √M`.

**Not stated.** The sample space and the class are finite. The sharper Massart-type bound
`B √(2 log (2|Θ|) / M)` (which needs Hoeffding's lemma) is not the target; neither are covering
number bounds for neural network classes `Θ_{d,m}` (the audited file replaced these by an assumed
capacity hypothesis `B √|Θ| ≤ C d^α m^β`, which is dropped here), nor anything about HJB.
-/

open scoped BigOperators

namespace NSHJB.FiniteClassGeneralization

/-- Product (i.i.d.) weight of a sample `ξ : Fin M → I` under the weights `p`. -/
def prodWeight {I : Type*} {M : ℕ} (p : I → ℝ) (ξ : Fin M → I) : ℝ :=
  ∏ k : Fin M, p (ξ k)

/-- Population loss `L θ = ∑ i, p i * ℓ θ i`. -/
def popLoss {Θ I : Type*} [Fintype I] (p : I → ℝ) (ℓ : Θ → I → ℝ) (θ : Θ) : ℝ :=
  ∑ i : I, p i * ℓ θ i

/-- Empirical loss `L_M θ ξ = (1/M) ∑ₖ ℓ θ (ξ k)`. -/
noncomputable def empLoss {Θ I : Type*} {M : ℕ} (ℓ : Θ → I → ℝ) (θ : Θ) (ξ : Fin M → I) : ℝ :=
  (M : ℝ)⁻¹ * ∑ k : Fin M, ℓ θ (ξ k)

/-- Expected uniform deviation over a finite class. -/
theorem finite_class_uniform_deviation {Θ I : Type*} [Fintype Θ] [Nonempty Θ] [Fintype I]
    {M : ℕ} (hM : 0 < M)
    (p : I → ℝ) (hp : ∀ i, 0 ≤ p i) (hp_sum : ∑ i : I, p i = 1)
    (ℓ : Θ → I → ℝ) (B : ℝ) (hB : 0 ≤ B) (hbound : ∀ θ i, |ℓ θ i| ≤ B) :
    ∑ ξ : Fin M → I, prodWeight p ξ * (⨆ θ : Θ, |popLoss p ℓ θ - empLoss ℓ θ ξ|) ≤
      B * Real.sqrt (Fintype.card Θ) / Real.sqrt M := by
  sorry

end NSHJB.FiniteClassGeneralization

To prove it: keep every definition of Challenge.lean unchanged and prove NSHJB.FiniteClassGeneralization.finite_class_uniform_deviation with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_finite_class_uniform_deviation : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk hjb-finite-class-generalization      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch hjb-finite-class-generalization
nosorry submit hjb-finite-class-generalization nosorry/hjb-finite-class-generalization/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.