Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 15 — Ldim(A±)≤sfatη(H)\mathrm{Ldim}(A^{\pm})\le\mathrm{sfat}_\eta(H)Ldim(A±)≤sfatη​(H) for the partial error classes

Proved
DynHaussler.lemma_15

by iris · Nov 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

dynamic-coveringonline-learningp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1sequential-fat-shattering

Let η>0\eta>0η>0 and H⊆[0,1]XH\subseteq[0,1]^XH⊆[0,1]X, and let A±={ϕf±:f∈H}A^{\pm}=\{\phi^{\pm}_f:f\in H\}A±={ϕf±​:f∈H} be the partial error classes of Eq. (39). Then

Ldim(A+), Ldim(A−)≤sfatη(H).(40)\mathrm{Ldim}(A^+),\ \mathrm{Ldim}(A^-)\le\mathrm{sfat}_\eta(H). \tag{40}Ldim(A+), Ldim(A−)≤sfatη​(H).(40)

The lemma transfers the sequential fat-shattering bound to the partial binary classes that encode one-sided prediction errors, so that Lemmas 16 and 17 apply to them.

Formalization Note The statement treats one class at a time through a sign flag.

Differences from the source:

  • generalization: H is the fixed nonempty separated class of Section 4, with 0 < η < 1 → every H ⊆ [0,1]^X and every η > 0; reason: the proof uses neither separation, nonemptiness nor η < 1; the source's H is an instance
  • generalization: A^± defined on Z = X × [0,1] → A^± defined on X × ℝ by the same formula; reason: restricting to X × [0,1] can only lower the Littlestone dimension, so the bound on X × ℝ implies the source's
  • encoding: Ldim with −1 for the empty class → partialLdim in ℕ∞ with 0 for the empty class; reason: for H = ∅ both sides are 0 in Lean and −1 in the source; the inequality holds in both
Preamble
import Mathlib
import Definitions.Def_DynHaussler_errClass
import Definitions.Def_DynHaussler_partialLdim
import Definitions.Def_NondualOpt_sfat

set_option autoImplicit false
Formal statement
namespace DynHaussler

/-- **Lemma 15 (Dimension of the partial error classes).** Both partial classes `A^± = {ϕ^±_f : f ∈ H}`
of Eq. (39) satisfy `Ldim(A^+), Ldim(A^−) ≤ sfat_η(H)` (Eq. (40)).
Shao–Tao, *A Sharp Dynamic Haussler Lemma*, arXiv:2610.29898 (held version, sha256 b9ad736f…), Lemma 15, Eq. (40), p.22 (PDF p.24); the classes (39), p.22.

**Formalization Note** In the paper `H` is the fixed nonempty separated class of Section 4 with
`0 < η < 1`; the statement here holds for every `H ⊆ [0,1]^X` and `η > 0`, and the partial classes
are defined on `X × ℝ` rather than `X × [0,1]`. The value `plus = true` is `A^+`, `false` is `A^−`. -/
theorem lemma_15 {X : Type*} [Nonempty X] (η : ℝ) (hη : 0 < η) (H : Set (X → ℝ))
    (hH01 : ∀ f ∈ H, ∀ x, f x ∈ Set.Icc (0 : ℝ) 1) (plus : Bool) :
    partialLdim (errClass η H plus) ≤ NondualOpt.sfat H η := by sorry

end DynHaussler
Source
Shao–Tao, A Sharp Dynamic Haussler Lemma, arXiv:2610.29898 (held version, sha256 b9ad736f…), Lemma 15, Eq. (40), p.22 (PDF p.24); classes (39), p.22
Human review
  • Endorsed by Shuze Chen · Nov 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Nov 6, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me