Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3.1, p. 13 β€” every design in 𝔸_opt = 𝔸_β„“ ∩ 𝔸_X ∩ 𝔸_U maximizes tr Prec(Ο„Μ‚) over all staggered designs

Proved
StaggeredRollout.TOpt.theorem_3_1

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

covariate-balancingexperimental-designp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1staggered-rolloutt-optimal-design

Theorem 3.1 (Optimality Conditions).

Consider NNN units, TTT periods and β„“β‰₯0\ell\ge0β„“β‰₯0 lags, a staggered design A∈([T]βˆͺ{∞})NA\in([T]\cup\{\infty\})^NA∈([T]βˆͺ{∞})N with treatment path zit=+1z_{it}=+1zit​=+1 if Ai≀tA_i\le tAi​≀t and βˆ’1-1βˆ’1 otherwise, observed covariates X∈RNΓ—dxX\in\mathbb R^{N\times d_x}X∈RNΓ—dx​ and latent covariates U∈RNΓ—duU\in\mathbb R^{N\times d_u}U∈RNΓ—du​. The effects Ο„0,…,Ο„β„“\tau_0,\dots,\tau_\ellΟ„0​,…,τℓ​ are estimated by the infeasible GLS with weight ∝(UΞ£vU⊀+σΡ2IN)βˆ’1\propto(U\Sigma_vU^\top+\sigma_\varepsilon^2I_N)^{-1}∝(UΞ£v​U⊀+σΡ2​IN​)βˆ’1, and tr⁑Prec⁑(Ο„^;A)\operatorname{tr}\operatorname{Prec}(\hat\tau;A)trPrec(Ο„^;A) is the trace of its precision under AAA. Suppose that

  1. σΡ2>0\sigma_\varepsilon^2>0σΡ2​>0 and Ξ£v=σΡ2Idu\Sigma_v=\sigma_\varepsilon^2I_{d_u}Ξ£v​=σΡ2​Idu​​;
  2. the rows of XXX and of UUU are centred, βˆ‘i=1NXi=0dx\sum_{i=1}^NX_i=0_{d_x}βˆ‘i=1N​Xi​=0dx​​ and βˆ‘i=1Nui=0du\sum_{i=1}^Nu_i=0_{d_u}βˆ‘i=1N​ui​=0du​​;
  3. XXX and UUU are orthogonal, βˆ‘i=1NXiui⊀=0dxΓ—du\sum_{i=1}^NX_iu_i^\top=0_{d_x\times d_u}βˆ‘i=1N​Xi​uiβŠ€β€‹=0dx​×du​​;
  4. if β„“>0\ell>0β„“>0, then T>(β„“3+13β„“2+7β„“+3)/(8β„“)T>(\ell^3+13\ell^2+7\ell+3)/(8\ell)T>(β„“3+13β„“2+7β„“+3)/(8β„“).

If A∈Aopt=Aβ„“βˆ©AX∩AUA\in\mathbb A_{\mathrm{opt}}=\mathbb A_\ell\cap\mathbb A_X\cap\mathbb A_UA∈Aopt​=Aβ„“β€‹βˆ©AXβ€‹βˆ©AU​, then AAA is a T-optimal design:

tr⁑Prec⁑(Ο„^;Aβ€²)≀tr⁑Prec⁑(Ο„^;A)forΒ everyΒ designΒ Aβ€²βˆˆ([T]βˆͺ{∞})N.\operatorname{tr}\operatorname{Prec}(\hat\tau;A')\le\operatorname{tr}\operatorname{Prec}(\hat\tau;A)\qquad\text{for every design }A'\in([T]\cup\{\infty\})^N.trPrec(Ο„^;Aβ€²)≀trPrec(Ο„^;A)forΒ everyΒ designΒ Aβ€²βˆˆ([T]βˆͺ{∞})N.

Here Aβ„“\mathbb A_\ellAℓ​ fixes the treated fraction at each period to (1+Ο‰β„“,tβˆ—)/2(1+\omega^*_{\ell,t})/2(1+Ο‰β„“,tβˆ—β€‹)/2 with the S-shaped Ο‰β„“βˆ—\omega^*_\ellΟ‰β„“βˆ—β€‹ of (3.4), and AX\mathbb A_XAX​, AU\mathbb A_UAU​ require every adoption cohort after the first period to have covariate sum zero.

The theorem turns the integer program (3.2) into explicit conditions: an S-shaped rollout of the treated fraction plus covariate balance of the adoption cohorts.

Formalization Note The precision is the deterministic GLS precision of (EC.2.1)–(EC.2.2), encoded junk-free in the definitions file; the probability model enters only through the error covariance IβŠ—Ξ¨I\otimes\PsiIβŠ—Ξ¨. The comparison design Aβ€²A'Aβ€² ranges over all of Fin N β†’ WithTop (Fin T). When Aopt\mathbb A_{\mathrm{opt}}Aopt​ is empty the statement is vacuous, as the page's "if" allows; it is nonempty for instance at β„“=0\ell=0β„“=0, T=2T=2T=2, N=4N=4N=4, A=(1,2,2,∞)A=(1,2,2,\infty)A=(1,2,2,∞) with X=(1,βˆ’1,1,βˆ’1)⊀X=(1,-1,1,-1)^\topX=(1,βˆ’1,1,βˆ’1)⊀, U=(1,1,βˆ’1,βˆ’1)⊀U=(1,1,-1,-1)^\topU=(1,1,βˆ’1,βˆ’1)⊀.

Differences from the source:

  • encoding: Assumptions 2.1, 2.2, 3.1 and the random model (3.1) with infeasible GLS weight W ∝ (UΞ£_vU⊀ + σ²_Ξ΅ I_N)⁻¹ β†’ a design A : Fin N β†’ WithTop (Fin T) with z_it = Β±1 by A_i ≀ t (irreversible adoption, known β„“) and the precision computed with Ξ£_e = I βŠ— Ξ¨, Ξ¨ = UΞ£_vU⊀ + σ²_Ξ΅ I_N; reason: these are the only ways the assumptions enter tr Prec(Ο„Μ‚) ((EC.2.1), Remark 3.2); the Gauss–Markov/Aitken theorem (VectorSpaceOpt.gauss_markov) gives Var of GLS = (W⊀Σ⁻¹W)⁻¹, and the proportionality constant of W does not change the estimator
  • generalization: Prec(Ο„Μ‚; A) from (EC.2.2), with nuisance matrix Ξ“ normalized by Ξ±_{Nβˆ’p+1:N} = 0 β†’ Ξ£_j min_Ξ³ of the Ξ£_e⁻¹-weighted residual sum of squares of the lag-j column on all N unit dummies and the per-period columns [1, X] (traceT); reason: same column span as Ξ“, so the same value whenever (EC.2.2) is defined; also defined (as the trace of the Fisher information of Ο„) when Ξ“βŠ€Ξ£_e⁻¹Γ is singular or the design makes Var(Ο„Μ‚) singular
  • reading: T > (β„“Β³ + 13β„“Β² + 7β„“ + 3)/(8β„“) β†’ 0 < β„“ β†’ (β„“Β³ + 13β„“Β² + 7β„“ + 3)/(8β„“) < T; reason: the expression is undefined at β„“ = 0, where Example 3.2 gives Ο‰* for every T and the proof needs no condition
  • encoding: periods 1, …, T and adoption time ∞ β†’ Fin T (0-based: period t is index t βˆ’ 1) and ⊀ of WithTop (Fin T); reason: Lean convention; same instances, and ⊀ keeps 'larger = later' (footnote 6)
  • encoding: σ²_Ξ΅ a variance, Ψ⁻¹ used as GLS weight β†’ hypothesis 0 < σ²_Ξ΅; reason: excludes only the case where Ξ¨ need not be invertible and the infeasible GLS weight is undefined
  • encoding: Ξ£_v = σ²_Ξ΅ Β· I_{d_u} β†’ a matrix parameter Sv with hypothesis Sv = σ²_Ξ΅ β€’ 1; reason: same instances
  • encoding: Ξ£_i X_i = 0_{d_x}, Ξ£_i u_i = 0_{d_u}, Ξ£_i X_i u_i⊀ = 0_{d_xΓ—d_u} β†’ βˆ€ k, Ξ£_i X i k = 0; βˆ€ k, Ξ£_i U i k = 0; Xα΅€ * U = 0; reason: same conditions, coordinatewise
  • encoding: N⁻¹ Ξ£_i 1{A_i ≀ t} and N⁻¹ Ξ£_i X_i 1{A_i = t} in 𝔸_β„“, 𝔸_X, 𝔸_U β†’ the same with Lean's (N : ℝ)⁻¹; reason: identical for N β‰₯ 1; at N = 0, where the page's N⁻¹ is undefined, 𝔸_β„“ is empty for T β‰₯ 1
Preamble
import Mathlib
import Definitions.Def_StaggeredRollout_TOpt_Setting
Formal statement
namespace StaggeredRollout.TOpt
open Matrix

theorem theorem_3_1 (N T β„“ dx du : β„•) (sig2 : ℝ) (hsig : 0 < sig2)
    (X : Matrix (Fin N) (Fin dx) ℝ) (U : Matrix (Fin N) (Fin du) ℝ)
    (Sv : Matrix (Fin du) (Fin du) ℝ)
    (hXc : βˆ€ k, βˆ‘ i, X i k = 0) (hUc : βˆ€ k, βˆ‘ i, U i k = 0) (hXU : Xα΅€ * U = 0)
    (hSv : Sv = sig2 β€’ (1 : Matrix (Fin du) (Fin du) ℝ))
    (hT : 0 < β„“ β†’ ((β„“ : ℝ) ^ 3 + 13 * (β„“ : ℝ) ^ 2 + 7 * (β„“ : ℝ) + 3) / (8 * (β„“ : ℝ)) < (T : ℝ))
    (A : Fin N β†’ WithTop (Fin T)) (hA : A ∈ Aell β„“ ∩ AX X ∩ AU U) :
    βˆ€ A' : Fin N β†’ WithTop (Fin T), traceT β„“ sig2 X U Sv A' ≀ traceT β„“ sig2 X U Sv A := by sorry

end StaggeredRollout.TOpt
Source
Xiong, Athey, Bayati, Imbens, Optimal Experimental Design for Staggered Rollouts, arXiv:1911.03764v6, p. 13, Theorem 3.1 and (3.5); objective (3.2) on p. 11; 𝔸_β„“, 𝔸_X, 𝔸_U on p. 13
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