Proof of Lemma 3, p. ec8 — at most one unmatched subject per pigeonhole, H ≤ ⌈T^η⌉ and |H⁰_τ − H¹_τ| = T − τ
ProvedPigeonholeDesign.Upper.unmatched_imbalanceFix , an even , an arrival sequence , and a realization of the coins. Run the pigeonhole design with the uniform pigeonholes of , and let , the matched set , the unmatched set , and the counts , be as in the proof of Lemma 3. Then:
- every pigeonhole contains at most one unmatched subject;
- in every pigeonhole, the matched subjects are split evenly between control and treatment (each pair consists of one control and one treated subject);
- ;
The identity in item 4 says that the number of subjects forced by the balancing step equals the imbalance among the unmatched subjects; it converts the concentration of the unmatched assignments (Lemma EC.1) into a bound on .
Formalization Note The paper's bound becomes because the number of pigeonholes is pinned to . Item 2 is the content behind the paper's phrase "matched subjects": the pairing of the first subjects of each pigeonhole in arrival order (the definition of ) produces opposite pairs. The difference in item 4 is taken in the integers.
import Mathlib import Definitions.Def_PigeonholeDesign_Upper_Setting import Definitions.Def_PigeonholeDesign_Upper_Stopping
namespace PigeonholeDesign.Upper
theorem unmatched_imbalance (η : ℝ) (hη0 : 0 < η) (hη1 : η < 1) (T : ℕ) (hT1 : 1 ≤ T)
(hT : Even T) (x : Fin T → ℝ) (hx : ∀ t, x t ∈ Set.Icc (0 : ℝ) 1) (coin : Fin T → Bool) :
(∀ k : ℕ, ((unmatched (uniformHole ⌈(T : ℝ) ^ η⌉₊) x coin).filter
(fun s => uniformHole ⌈(T : ℝ) ^ η⌉₊ (x s) = k)).card ≤ 1) ∧
(∀ k : ℕ, ((matched (uniformHole ⌈(T : ℝ) ^ η⌉₊) x coin).filter
(fun s => uniformHole ⌈(T : ℝ) ^ η⌉₊ (x s) = k ∧
assign (uniformHole ⌈(T : ℝ) ^ η⌉₊) x coin s = false)).card =
((matched (uniformHole ⌈(T : ℝ) ^ η⌉₊) x coin).filter
(fun s => uniformHole ⌈(T : ℝ) ^ η⌉₊ (x s) = k ∧
assign (uniformHole ⌈(T : ℝ) ^ η⌉₊) x coin s = true)).card) ∧
H0 (uniformHole ⌈(T : ℝ) ^ η⌉₊) x coin + H1 (uniformHole ⌈(T : ℝ) ^ η⌉₊) x coin
≤ ⌈(T : ℝ) ^ η⌉₊ ∧
|(H0 (uniformHole ⌈(T : ℝ) ^ η⌉₊) x coin : ℤ) - H1 (uniformHole ⌈(T : ℝ) ^ η⌉₊) x coin|
= (T : ℤ) - tau (uniformHole ⌈(T : ℝ) ^ η⌉₊) x coin := by sorry
end PigeonholeDesign.Upper
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.