Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§E.2.2 — the full independent squared-error comparison

Proved
StatComplexityDMFull.Disagreement.sq_shift_le_four

by mikedeng1 · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

bandit-algorithmsmachine-learningstatistics

Let μ\muμ be any Radon prior on the discrete model class, and let fM:Π→[0,1]f^M:\Pi\to[0,1]fM:Π→[0,1] be its mean-reward data. Fix a decision π∈Π\pi\in\Piπ∈Π and a reference value fˉ(π)∈R\bar f(\pi)\in\mathbb Rfˉ​(π)∈R. For independent M,M~∼μM,\widetilde M\sim\muM,M∼μ,

EMEM~(fM(π)−fM~(π))2≤2EM(fM(π)−fˉ(π))2+2EM~(fˉ(π)−fM~(π))2=4EM(fM(π)−fˉ(π))2.\mathbb E_M\mathbb E_{\widetilde M}(f^M(\pi)-f^{\widetilde M}(\pi))^2 \le2\mathbb E_M(f^M(\pi)-\bar f(\pi))^2 +2\mathbb E_{\widetilde M}(\bar f(\pi)-f^{\widetilde M}(\pi))^2 =4\mathbb E_M(f^M(\pi)-\bar f(\pi))^2.EM​EM​(fM(π)−fM(π))2≤2EM​(fM(π)−fˉ​(π))2+2EM​(fˉ​(π)−fM(π))2=4EM​(fM(π)−fˉ​(π))2.

The statement retains both the comparison and the equality in the source display. It relates the independent-copy squared error to the squared error against the external reference. Expectations use the entire prior, including infinite support.

Differences from the source:

  • generalization: reward-observation probability kernels with bounded means and selected maximizers → arbitrary measurable mean data in [0,1] with selected maximizers; reason: each source kernel supplies its bounded measurable expectation and selected optimizer; no other kernel data enter these formulas
  • encoding: Radon probability laws with the Borel convention and discrete model topology → RadonLaw packages a probability measure and compact inner regularity; source model indices have the discrete topology; reason: these are the source probability class and default model topology, with no support bound or decision-space discreteness
  • generalization: the reference mean belongs to [0,1] → the fixed reference value may be any real number; reason: only a fixed value is used, its squared errors remain bounded in the model variable, and every source reference is included
Preamble
import Mathlib
import Definitions.Def_StatComplexityDMFull_Disagreement_RadonLaw
import Definitions.Def_StatComplexityDMFull_Disagreement_MeanModel

set_option autoImplicit false
Formal statement
namespace StatComplexityDMFull.Disagreement

/-- Section E.2.2, first squared-error display, p. 106; both the inequality and equality. -/
theorem sq_shift_le_four {M A : Type*} [TopologicalSpace M] [DiscreteTopology M]
    [MeasurableSpace M] [BorelSpace M] [MeasurableSpace A]
    (μ : RadonLaw M) (D : MeanModel M A) (g : A → ℝ) (a : A) :
    (∫ m, (∫ n, (D.mean m a - D.mean n a) ^ 2 ∂μ.val) ∂μ.val) ≤
      2 * (∫ m, (D.mean m a - g a) ^ 2 ∂μ.val) +
      2 * (∫ n, (g a - D.mean n a) ^ 2 ∂μ.val) ∧
    2 * (∫ m, (D.mean m a - g a) ^ 2 ∂μ.val) +
      2 * (∫ n, (g a - D.mean n a) ^ 2 ∂μ.val) =
      4 * (∫ m, (D.mean m a - g a) ^ 2 ∂μ.val) := by sorry

end StatComplexityDMFull.Disagreement
Source
Foster, Kakade, Qian and Rakhlin, The Statistical Complexity of Interactive Decision Making, arXiv:2112.13487v3, p. 106, Section E.2.2, first displayed squared-error inequality in the proof of Theorem 6.2 (unnumbered)

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me