Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(18), p. 28 — under correlation matrix P*_n and mean 0, E[(Σ_{i∈K} X_i)²] = σ²|K|(n−|K|)/(n−1); the max over K is σ²k*(n−k*)/(n−1)

Proved
JointMixND.QuadOT.eq_18

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

correlationjoint-mixoptimal-transportp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let n≥2n\ge 2n≥2 and let FFF have mean 000 and finite variance σ2=Var⁡(F)\sigma^2=\operatorname{Var}(F)σ2=Var(F). Let XE\mathbf X^{\mathrm E}XE have marginals FFF and correlation matrix Pn∗P^*_nPn∗​. Then for every K⊆[n]K\subseteq[n]K⊆[n],

E[(∑i∈KXiE)2]=Var⁡(∑i∈KXiE)=σ2 ∣K∣ (n−∣K∣)n−1,\mathbb E\Big[\Big(\sum_{i\in K}X^{\mathrm E}_i\Big)^2\Big]=\operatorname{Var}\Big(\sum_{i\in K}X^{\mathrm E}_i\Big)=\sigma^2\,\frac{|K|\,(n-|K|)}{n-1},E[(i∈K∑​XiE​)2]=Var(i∈K∑​XiE​)=σ2n−1∣K∣(n−∣K∣)​,

and consequently the objective of (12) at XE\mathbf X^{\mathrm E}XE is

max⁡K⊆[n]E[(∑i∈KXiE)2]=σ2max⁡k∈[n]k(n−k)n−1=σ2 k∗(n−k∗)n−1,k∗=⌊n/2⌋.\max_{K\subseteq[n]}\mathbb E\Big[\Big(\sum_{i\in K}X^{\mathrm E}_i\Big)^2\Big]=\sigma^2\max_{k\in[n]}\frac{k(n-k)}{n-1}=\sigma^2\,\frac{k^*(n-k^*)}{n-1},\qquad k^*=\lfloor n/2\rfloor .K⊆[n]max​E[(i∈K∑​XiE​)2]=σ2k∈[n]max​n−1k(n−k)​=σ2n−1k∗(n−k∗)​,k∗=⌊n/2⌋.

By Theorem 4 this is the optimal value of (12); the proof of Theorem 5 compares minimizers against it.

Formalization Note The paper normalizes Var⁡(F)=1\operatorname{Var}(F)=1Var(F)=1 "without loss of generality"; here the variance factor σ2\sigma^2σ2 is kept. The vector is only assumed to have marginals FFF and covariance −σ2/(n−1)-\sigma^2/(n-1)−σ2/(n−1) off the diagonal (this already makes it an NCD joint mix). All arithmetic is in R\mathbb RR with casts before subtraction; k∗k^*k∗ is natural-number division n / 2. The empty set contributes the value 000.

Preamble
import Mathlib
import Definitions.Def_JointMixND_QuadOT_Problems
Formal statement
namespace JointMixND.QuadOT

open MeasureTheory ProbabilityTheory

/-- (18), p. 28. Let `F` have mean `0` and finite variance `σ² = Var(F)`, and let `X^E` have
marginals `F` and correlation matrix `P*_n` (`n ≥ 2`). Then
`E[(∑_{i∈K} X^E_i)^2] = σ² |K|(n-|K|)/(n-1)` for every `K ⊆ [n]`, and the objective of (12) at
`X^E` is `max_{K⊆[n]} E[(∑_{i∈K} X^E_i)^2] = σ² k*(n-k*)/(n-1)` with `k* = ⌊n/2⌋`. -/
theorem eq_18 {n : ℕ} (hn : 2 ≤ n) (F : Measure ℝ) [IsProbabilityMeasure F]
    (hF2 : MemLp id 2 F) (hmean : ∫ t, t ∂F = 0)
    (P : Measure (Fin n → ℝ)) (hP : IsCoupling F P) (hC : HasCorrPstar F P) :
    (∀ K : Finset (Fin n), ∫ x, (∑ i ∈ K, x i) ^ 2 ∂P =
        variance id F * ((K.card : ℝ) * ((n : ℝ) - (K.card : ℝ))) / ((n : ℝ) - 1)) ∧
    maxCost P =
      variance id F * (((n / 2 : ℕ) : ℝ) * ((n : ℝ) - ((n / 2 : ℕ) : ℝ))) / ((n : ℝ) - 1) := by sorry

end JointMixND.QuadOT
Source
Koike, Lin & Wang, Joint mixability and notions of negative dependence, arXiv:2204.11438v4, p. 28, (18)
Human review
  • Endorsed by Shuze Chen · Oct 21, 2026

    Confirmed by the moderator at approval.

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