Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 3.1, p. 13 — optimal experiments with equal-sized clusters: σ, worst cases, V^OPT = n²/(4(n−1)), (n+1)/4, h* + h*(h*−1)σ, and 4V^OPT/n → 1

Proved
CorrClusterExp.IBR.proposition_3_1

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

cluster-randomizationcorrelation-matrixexperimental-designp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1worst-case-variance

Let 0<q≤120<q\le\tfrac120<q≤21​ and consider n≥2n\ge 2n≥2 clusters of equal size wi=1w_i=1wi​=1. Let PPP be the experiment that, with probability p=⌈qn⌉−qnp=\lceil qn\rceil-qnp=⌈qn⌉−qn, treats a uniformly random set of ⌊qn⌋\lfloor qn\rfloor⌊qn⌋ clusters and, with probability 1−p1-p1−p, a uniformly random set of ⌈qn⌉\lceil qn\rceil⌈qn⌉ clusters. Then PPP is an experiment with marginals qqq that solves (1), i.e. its worst-case variance equals VOPTV^{\mathrm{OPT}}VOPT, and:

  1. When qn∈Nqn\in\mathbb Nqn∈N (p=0p=0p=0: a uniformly random set of qnqnqn clusters is treated). The correlation of any two distinct assignments is σ=−1n−1\sigma=-\frac{1}{n-1}σ=−n−11​. If nnn is even, every yyy with n/2n/2n/2 coordinates equal to 111 and the rest 000 is a worst case and
VOPT=14 n2n−1;V^{\mathrm{OPT}}=\frac14\,\frac{n^2}{n-1};VOPT=41​n−1n2​;

if nnn is odd, every yyy with (n+1)/2(n+1)/2(n+1)/2 or (n−1)/2(n-1)/2(n−1)/2 coordinates equal to 111 and the rest 000 is a worst case and VOPT=n+14V^{\mathrm{OPT}}=\frac{n+1}{4}VOPT=4n+1​. 2. When qn∉Nqn\notin\mathbb Nqn∈/N. The correlation of any two distinct assignments is

σ=−nq(1−q)−p(1−p)n(n−1)q(1−q)∈(−1n−1,0).\sigma=-\frac{nq(1-q)-p(1-p)}{n(n-1)q(1-q)}\in\Big(-\frac1{n-1},0\Big).σ=−n(n−1)q(1−q)nq(1−q)−p(1−p)​∈(−n−11​,0).

If h∗∈Nh^*\in\mathbb Nh∗∈N is an integer closest to min⁡{−12σ+12, n}\min\{-\frac{1}{2\sigma}+\frac12,\ n\}min{−2σ1​+21​, n}, then every yyy with h∗h^*h∗ coordinates equal to 111 and the rest 000 is a worst case and VOPT=h∗+h∗(h∗−1)σV^{\mathrm{OPT}}=h^*+h^*(h^*-1)\sigmaVOPT=h∗+h∗(h∗−1)σ.

Moreover, lim⁡n→∞4VOPT/n=1\lim_{n\to\infty}4V^{\mathrm{OPT}}/n=1limn→∞​4VOPT/n=1.

The proposition shows that for equal sizes the best experiment treats all clusters symmetrically, and that its worst-case variance is about n/4n/4n/4, a factor 444 below the independent assignment.

Formalization Note "hhh clusters take yi=1y_i=1yi​=1 in the worst case" is stated as: the indicator of every hhh-element set of clusters maximizes y⊤Σ(P)yy^\top\Sigma(P)yy⊤Σ(P)y over the box [0,1]n[0,1]^n[0,1]n (IsMaxOn); the experiment is exchangeable, so all such indicators have the same value, and other maximizers are not excluded. ppp and σ\sigmaσ are given as variables equal to their defining expressions.

Differences from the source:

  • encoding: nnn clusters → n≥2n\ge 2n≥2; reason: σ\sigmaσ has n−1n-1n−1 in a denominator and for n=1n=1n=1 the statement is undefined (no pair of clusters).
  • reading: "in the worst case, hhh clusters take yi=1y_i=1yi​=1 and the rest yi=0y_i=0yi​=0" → the indicator of every hhh-subset is a maximizer on the box; reason: the experiment is exchangeable, so the page names no particular subset; uniqueness is not claimed.
  • reading: "the integer closest to xxx" → any natural h∗h^*h∗ with ∣h∗−x∣≤∣h−x∣|h^*-x|\le|h-x|∣h∗−x∣≤∣h−x∣ for all integers hhh; reason: at a tie two integers are closest and both give the same value.
  • encoding: the two experiments of cases 1 and 2 → one law fracLaw q n; reason: for qn∈Nqn\in\mathbb Nqn∈N, p=0p=0p=0 and it is the uniform qnqnqn-subset of case 1.
Preamble
import Mathlib
import Definitions.Def_CorrClusterExp_IBR_Setting
Formal statement
namespace CorrClusterExp.IBR

open Matrix Finset

theorem proposition_3_1 (q : ℝ) (hq0 : 0 < q) (hq : q ≤ 1 / 2) :
    (∀ n : ℕ, 2 ≤ n →
      IsExperiment q (fracLaw q n) ∧
      worstCase (corr q (fracLaw q n)) (fun _ : Fin n => (1 : ℝ)) =
        VOPT q (fun _ : Fin n => (1 : ℝ)) ∧
      ((∃ m : ℕ, q * n = m) →
        (∀ i k : Fin n, i ≠ k → corr q (fracLaw q n) i k = -1 / ((n : ℝ) - 1)) ∧
        (Even n →
          (∀ s : Finset (Fin n), 2 * s.card = n →
            IsMaxOn (fun y => y ⬝ᵥ (corr q (fracLaw q n) *ᵥ y)) (box fun _ : Fin n => (1 : ℝ))
              (fun i => if i ∈ s then (1 : ℝ) else 0)) ∧
          VOPT q (fun _ : Fin n => (1 : ℝ)) = 1 / 4 * ((n : ℝ) ^ 2 / ((n : ℝ) - 1))) ∧
        (Odd n →
          (∀ s : Finset (Fin n), (2 * s.card = n + 1 ∨ 2 * s.card + 1 = n) →
            IsMaxOn (fun y => y ⬝ᵥ (corr q (fracLaw q n) *ᵥ y)) (box fun _ : Fin n => (1 : ℝ))
              (fun i => if i ∈ s then (1 : ℝ) else 0)) ∧
          VOPT q (fun _ : Fin n => (1 : ℝ)) = ((n : ℝ) + 1) / 4)) ∧
      ((¬ ∃ m : ℕ, q * n = m) →
        ∀ p σ : ℝ, p = (⌈q * n⌉₊ : ℝ) - q * n →
          σ = -((n * q * (1 - q) - p * (1 - p)) / (n * (n - 1) * q * (1 - q))) →
          (∀ i k : Fin n, i ≠ k → corr q (fracLaw q n) i k = σ) ∧
          -1 / ((n : ℝ) - 1) < σ ∧ σ < 0 ∧
          ∀ hstar : ℕ,
            (∀ h : ℤ, |(hstar : ℝ) - min (-1 / (2 * σ) + 1 / 2) (n : ℝ)| ≤
              |(h : ℝ) - min (-1 / (2 * σ) + 1 / 2) (n : ℝ)|) →
            (∀ s : Finset (Fin n), s.card = hstar →
              IsMaxOn (fun y => y ⬝ᵥ (corr q (fracLaw q n) *ᵥ y)) (box fun _ : Fin n => (1 : ℝ))
                (fun i => if i ∈ s then (1 : ℝ) else 0)) ∧
            VOPT q (fun _ : Fin n => (1 : ℝ)) = hstar + hstar * ((hstar : ℝ) - 1) * σ)) ∧
    Filter.Tendsto (fun n : ℕ => 4 * VOPT q (fun _ : Fin n => (1 : ℝ)) / n)
      Filter.atTop (nhds 1) := by sorry

end CorrClusterExp.IBR
Source
Candogan, Chen, Niazadeh, Correlated Cluster-Based Randomized Experiments: Robust Variance Minimization, SSRN 3852100 (version of March 22, 2023), p. 13, Proposition 3.1
Human review
  • Endorsed by Shuze Chen · Oct 23, 2026

    Confirmed by the moderator at approval.

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