Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 3.1, p. ec25 (corrected: f_{j,X} as in corrected Lemma EC.1.2) — f_{j,X}, f_{j,U} ≥ 0, with value 0 when X⊤z_t, U⊤z_t are constant in t

Proved
StaggeredRollout.TOpt.covariate_terms

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

covariate-balancingexperimental-designp2o-batch-pfp2ap2o-correctedp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1quadratic-formstaggered-rollout

The covariate terms (proof of Theorem 3.1, p. ec25).

Let z∈RN×Tz\in\mathbb R^{N\times T}z∈RN×T be any array, X∈RN×dxX\in\mathbb R^{N\times d_x}X∈RN×dx​, U∈RN×duU\in\mathbb R^{N\times d_u}U∈RN×du​, ℓ≥0\ell\ge0ℓ≥0, and let fj,Xf_{j,X}fj,X​, fj,Uf_{j,U}fj,U​ be the covariate terms of the (corrected) Lemma EC.1.2,

fj,X(z)=1N zj:jℓ⊤(P1Tℓ⊗HX)zj:jℓ,fj,U(z)=1N zj:jℓ⊤(P1Tℓ⊗U(Idu+U⊤U)−1U⊤)zj:jℓ.f_{j,X}(z)=\tfrac1N\,z_{j:j_\ell}^\top\big(P_{1_{T_\ell}}\otimes H_X\big)z_{j:j_\ell},\qquad f_{j,U}(z)=\tfrac1N\,z_{j:j_\ell}^\top\big(P_{1_{T_\ell}}\otimes U(I_{d_u}+U^\top U)^{-1}U^\top\big)z_{j:j_\ell}.fj,X​(z)=N1​zj:jℓ​⊤​(P1Tℓ​​​⊗HX​)zj:jℓ​​,fj,U​(z)=N1​zj:jℓ​⊤​(P1Tℓ​​​⊗U(Idu​​+U⊤U)−1U⊤)zj:jℓ​​.

Then for every window jjj:

  1. fj,X(z)≥0f_{j,X}(z)\ge0fj,X​(z)≥0 and fj,U(z)≥0f_{j,U}(z)\ge0fj,U​(z)≥0;
  2. if X⊤ztX^\top z_tX⊤zt​ is the same vector μX\mu_XμX​ for all ttt, then fj,X(z)=0f_{j,X}(z)=0fj,X​(z)=0;
  3. if U⊤ztU^\top z_tU⊤zt​ is the same vector μU\mu_UμU​ for all ttt, then fj,U(z)=0f_{j,U}(z)=0fj,U​(z)=0.

So the minimum value 000 of each covariate term is attained by every design whose cohorts balance the covariates, which is where the sets AX\mathbb A_XAX​ and AU\mathbb A_UAU​ of Theorem 3.1 come from.

Formalization Note The statement is for real arrays zzz and arbitrary XXX, UUU; windows are 0-based.

Differences from the source:

  • correction: f_{j,X}(Z) = Σ_k (ω^{x_k}{j:j_ℓ})⊤ P{1_{T_ℓ}} ω^{x_k}{j:j_ℓ} → f{j,X} = (1/N) z⊤(P_{1_{T_ℓ}} ⊗ H_X) z (fXj), as in the corrected Lemma EC.1.2; reason: the printed form is not the X-term of tr Prec(τ̂) unless X⊤X = N·I (counterexample in Lemma EC.1.2: N = 4, T = 2, ℓ = 0, X = (2, −2, 1, −1)⊤, A = (1, 2, ∞, 2)); the page's claims (≥ 0, zero when X⊤z_t is constant) hold for the corrected term
  • reading: '(·) ≥ 0 for all z and the minimum value is attained when X⊤z_t is the same for all t' → 0 ≤ fXj, and (∃ μX, ∀ t, X⊤z_t = μX) → fXj = 0 (and the same for U); reason: the minimum value of a nonnegative term attained under the condition is 0
  • generalization: z ∈ {−1, +1}^{N×T} from a staggered design, X and U centred and orthogonal (hypotheses of Theorem 3.1) → any real array z, any X and U; reason: the claims hold without these conditions and specialize to the page's
  • 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)
Preamble
import Mathlib
import Definitions.Def_StaggeredRollout_TOpt_Quadratic
Formal statement
namespace StaggeredRollout.TOpt
open Matrix

theorem covariate_terms (N T ℓ dx du : ℕ)
    (X : Matrix (Fin N) (Fin dx) ℝ) (U : Matrix (Fin N) (Fin du) ℝ)
    (z : Fin N → Fin T → ℝ) :
    (∀ j, 0 ≤ fXj ℓ X z j) ∧ (∀ j, 0 ≤ fUj ℓ U z j) ∧
    ((∃ μX : Fin dx → ℝ, ∀ t, Xᵀ *ᵥ (fun i => z i t) = μX) → ∀ j, fXj ℓ X z j = 0) ∧
    ((∃ μU : Fin du → ℝ, ∀ t, Uᵀ *ᵥ (fun i => z i t) = μU) → ∀ j, fUj ℓ U z j = 0) := by sorry

end StaggeredRollout.TOpt
Source
Xiong, Athey, Bayati, Imbens, Optimal Experimental Design for Staggered Rollouts, arXiv:1911.03764v6, p. ec25 (PDF 61), proof of Theorem 3.1, the two paragraphs after Case 3
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