Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem A.1 — lazy weighted sampling satisfies strong independence

Open
WeightedMajority.Shifting.Supplement.theorem_A_1

by mikedeng1 · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

online-learningp2o-batch-supp500p2o-gran-per-chapterp2o-plan-paperp2o-v1prediction-with-expert-adviceweighted-majority

Let a binary pool with arbitrary positive initial weights be run with the lazy implementation of WMR: weights update on every trial at β=0\beta=0β=0, while the selected member is resampled only initially and immediately after a master mistake. Fresh selections use the current cumulative normalized weights and independent uniform numbers on [0,1][0,1][0,1]. All these choices are jointly independent of the full external sequence. Then the implementation satisfies the strong independence condition:

P[λj∣G∨σ(λ0,…,λj−1)]=γjalmost surely for every j<t,P[\lambda^j\mid G\vee\sigma(\lambda^0,\ldots,\lambda^{j-1})]=\gamma^j\quad\text{almost surely for every }j<t,P[λj∣G∨σ(λ0,…,λj−1)]=γjalmost surely for every j<t,

where GGG contains all external prediction vectors and labels, including future ones, and γj\gamma^jγj is the published WMR weighted average. This justifies using the conditional tail theorem for the lazy implementation without assuming independent master predictions.

Formalization Note The source's sampling ratios require positive pre-trial totals almost surely. Exhaustion after the final prediction is allowed, and consistency with a fixed pool member is not assumed.

Differences from the source:

  • encoding: independent uniform draws when resampling occurs → jointly independent uniform coins for all finite trials, ignoring unused coins; reason: pre-sampling independent unused randomness preserves the law of every run
  • reading: normalized cumulative intervals in the implementation → positive pre-trial totals, with arbitrary selection on the null event r=0; reason: normalization is undefined after exhaustion; p. 258 explicitly permits arbitrary selection at r=0
  • encoding: source trials indexed from 1 and almost-sure equalities → zero-based trials and almost-sure implementation relations; reason: the initial case and the immediately-after-mistake transition are explicit
Preamble
import Definitions.Def_WeightedMajority_Shifting_Supplement_LazySampling

open MeasureTheory
Formal statement
namespace WeightedMajority.Shifting.Supplement

theorem theorem_A_1 {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
    [IsProbabilityMeasure P] {n : ℕ} (t : ℕ) (w1 : Fin n → ℝ)
    (F : ℕ → Fin n → ℝ → ℝ → ℝ) (x : ℕ → Fin n → Ω → ℝ)
    (ρ lam r : ℕ → Ω → ℝ) (selected : ℕ → Ω → Fin n)
    (hrun : IsLazyWMRRun P t w1 F x ρ lam r selected) :
    StrongIndependence P t w1 F x ρ lam := by sorry

end WeightedMajority.Shifting.Supplement
Source
Littlestone, Warmuth, The Weighted Majority Algorithm, Inform. and Comput. 108 (1994), DOI 10.1006/inco.1994.1009, p. 257, Theorem A.1

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