Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma EC.5 — ALG^C is invariant under permutations of the arrival sequence

Proved
PigeonholeDesign.Upper.lemma_EC_5

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

completely-randomized-designdiscrepancyexperimental-designp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1symmetry

Let x′,x′′∈RTx',x''\in\mathbb R^Tx′,x′′∈RT be two arrival sequences and σ:[T]→[T]\sigma:[T]\to[T]σ:[T]→[T] a bijection with xt′=xσ(t)′′x'_t=x''_{\sigma(t)}xt′​=xσ(t)′′​ for every t∈[T]t\in[T]t∈[T]. Then the completely randomized design has the same expected discrepancy on both sequences:

ALGC(x′)=ALGC(x′′).\mathrm{ALG}^{\mathsf C}(x')=\mathrm{ALG}^{\mathsf C}(x'').ALGC(x′)=ALGC(x′′).

The completely randomized design ignores arrival order, so its performance depends only on the multiset of covariates. This reduces the worst case of Lemma 2 to sorted instances.

Formalization Note The sequences are functions on Fin T and x′=x′′∘σx'=x''\circ\sigmax′=x′′∘σ. No range restriction on the covariates is needed.

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

theorem lemma_EC_5 {T : ℕ} (σ : Equiv.Perm (Fin T)) (x : Fin T → ℝ) :
    crdExp (x ∘ σ) = crdExp x := by sorry

end PigeonholeDesign.Upper
Source
Zhao and Zhou, Pigeonhole Design: Balancing Sequential Experiments from an Online Matching Perspective, arXiv:2201.12936v6, p. ec4 (PDF p. 42), Lemma EC.5
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