Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Lemma 3, Component 1, p. ec8 — the matched subjects contribute O(T^{1/2−η/2})

Proved
PigeonholeDesign.Upper.component_1

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

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

There is an absolute constant C>0C>0C>0 with the following property. For every η∈(0,1)\eta\in(0,1)η∈(0,1), every even T≥1T\ge1T≥1 and every arrival sequence x∈[0,1]Tx\in[0,1]^Tx∈[0,1]T, run the pigeonhole design with the ⌈Tη⌉\lceil T^{\eta}\rceil⌈Tη⌉ uniform pigeonholes of [0,1][0,1][0,1], and let TM\mathcal T_MTM​ be the (coin-dependent) set of matched subjects. Then the expected discrepancy between the control and the treated subjects of TM\mathcal T_MTM​ satisfies

E[dA∩TM, B∩TM] ≤ C T12−η2.\mathbb E\bigl[d_{A\cap\mathcal T_M,\ B\cap\mathcal T_M}\bigr]\ \le\ C\,T^{\frac12-\frac\eta2}.E[dA∩TM​, B∩TM​​] ≤ CT21​−2η​.

This is the first of the two components of the proof of Lemma 3: subjects paired inside a short pigeonhole are cheap to match.

Formalization Note The expectation is the average over all 2T2^T2T coin vectors of the minimum-weight perfect matching between the matched control and matched treated subjects; these two sets have equal size on every run (see the milestone on unmatched subjects), so the junk value of an unbalanced matching is never used. CCC is chosen before η\etaη, TTT and xxx, as the page's "absolute constant".

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

theorem component_1 :
    ∃ C : ℝ, 0 < C ∧ ∀ η : ℝ, 0 < η → η < 1 → ∀ T : ℕ, 1 ≤ T → Even T →
      ∀ x : Fin T → ℝ, (∀ t, x t ∈ Set.Icc (0 : ℝ) 1) →
        (∑ coin : Fin T → Bool,
            discrepancyOn x (assign (uniformHole ⌈(T : ℝ) ^ η⌉₊) x coin)
              (matched (uniformHole ⌈(T : ℝ) ^ η⌉₊) x coin)) / 2 ^ T
          ≤ C * (T : ℝ) ^ (1 / 2 - η / 2) := by sorry

end PigeonholeDesign.Upper
Source
Zhao and Zhou, Pigeonhole Design: Balancing Sequential Experiments from an Online Matching Perspective, arXiv:2201.12936v6, p. ec8 (PDF p. 46), proof of Lemma 3, Component 1
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