Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3 — T^η uniform pigeonholes give expected discrepancy O(T^{1/2−η/2} + T^{η/2}(log T)^{1/2})

Proved
PigeonholeDesign.Upper.lemma_3

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

discrepancyexperimental-designonline-matchingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1pigeonhole-designupper-bound

Fix η∈(0,1)\eta\in(0,1)η∈(0,1) and consider one continuous covariate (p=1p=1p=1, q=0q=0q=0) with values in [0,1][0,1][0,1]. Let the pigeonhole design use the uniform pigeonholes

P(S)={[0,T−η), [T−η,2T−η), …, [1−T−η,1]}.\mathcal P(S)=\bigl\{[0,T^{-\eta}),\,[T^{-\eta},2T^{-\eta}),\,\dots,\,[1-T^{-\eta},1]\bigr\}.P(S)={[0,T−η),[T−η,2T−η),…,[1−T−η,1]}.

Then there are a constant C>0C>0C>0 and a threshold T0T_0T0​, depending only on η\etaη, such that for every even T≥T0T\ge T_0T≥T0​ and every arrival sequence x∈[0,1]Tx\in[0,1]^Tx∈[0,1]T chosen in advance, the expected discrepancy of the design satisfies

E[dA,B] ≤ C(T12−η2+Tη2(log⁡T)12).\mathbb E\bigl[d_{A,B}\bigr]\ \le\ C\Bigl(T^{\frac12-\frac\eta2}+T^{\frac\eta2}(\log T)^{\frac12}\Bigr).E[dA,B​] ≤ C(T21​−2η​+T2η​(logT)21​).

This is the main upper bound of the paper for one covariate. The first term comes from subjects matched within a pigeonhole and the second from the balancing of the leftover subjects; at η=1/2\eta=1/2η=1/2 the bound is O(T1/4(log⁡T)1/2)O(T^{1/4}(\log T)^{1/2})O(T1/4(logT)1/2) (Corollary 1), against Θ(T1/2)\Theta(T^{1/2})Θ(T1/2) for the completely randomized design (Lemma 2).

Formalization Note The printed partition has TηT^{\eta}Tη cells, which is not an integer in general; the formalization uses K=⌈Tη⌉K=\lceil T^{\eta}\rceilK=⌈Tη⌉ cells of length 1/K≤T−η1/K\le T^{-\eta}1/K≤T−η, the last one closed, which coincides with the printed partition when TηT^\etaTη is an integer. The expectation is the average of the discrepancy over all 2T2^T2T coin vectors (not one run and not the best run), and the bound is uniform over all x∈[0,1]Tx\in[0,1]^Tx∈[0,1]T. "On the order of O(⋅)O(\cdot)O(⋅)" is read as ∃C>0,∃T0\exists C>0,\exists T_0∃C>0,∃T0​ before TTT and xxx. The logarithm is natural, and T0T_0T0​ also avoids the degenerate values T∈{0,1}T\in\{0,1\}T∈{0,1} where log⁡T≤0\log T\le0logT≤0.

Preamble
import Mathlib
import Definitions.Def_PigeonholeDesign_Upper_Setting
Formal statement
namespace PigeonholeDesign.Upper

theorem lemma_3 (η : ℝ) (hη0 : 0 < η) (hη1 : η < 1) :
    ∃ C : ℝ, 0 < C ∧ ∃ T₀ : ℕ, ∀ T : ℕ, T₀ ≤ T → Even T →
      ∀ x : Fin T → ℝ, (∀ t, x t ∈ Set.Icc (0 : ℝ) 1) →
        phdExp (uniformHole ⌈(T : ℝ) ^ η⌉₊) x
          ≤ C * ((T : ℝ) ^ (1 / 2 - η / 2) + (T : ℝ) ^ (η / 2) * Real.sqrt (Real.log T)) := by sorry

end PigeonholeDesign.Upper
Source
Zhao and Zhou, Pigeonhole Design: Balancing Sequential Experiments from an Online Matching Perspective, arXiv:2201.12936v6, p. 18, Lemma 3 (proof pp. ec7-ec10)
Human review
  • Endorsed by Shuze Chen · Oct 14, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 14, 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