Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Lemma 4, p. ec15 — with n_k = L_k² T/Σ L_i², Σ L_k √n_k = √((Σ L_k²)(Σ n_k)) = √(T Σ L_k²)

Proved
PigeonholeDesign.Lower.cauchy_schwarz_display

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

cauchy-schwarzinequalitieslower-boundp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let L1,…,LK≥0L_1,\dots,L_K\ge0L1​,…,LK​≥0 be real numbers with ∑iLi2>0\sum_i L_i^2>0∑i​Li2​>0, let TTT be a natural number, and put

nk=Lk2∑i=1KLi2 T(k=1,…,K).n_k=\frac{L_k^2}{\sum_{i=1}^K L_i^2}\,T\qquad(k=1,\dots,K).nk​=∑i=1K​Li2​Lk2​​T(k=1,…,K).

Then

∑k=1KLk (nk)1/2=(∑k=1KLk2)(∑k=1Knk)=T∑k=1KLk2.\sum_{k=1}^K L_k\,(n_k)^{1/2}=\sqrt{\Bigl(\sum_{k=1}^K L_k^2\Bigr)\Bigl(\sum_{k=1}^K n_k\Bigr)}=\sqrt{T\sum_{k=1}^K L_k^2}.k=1∑K​Lk​(nk​)1/2=(k=1∑K​Lk2​)(k=1∑K​nk​)​=Tk=1∑K​Lk2​​.

The first equality is the equality case of the Cauchy–Schwarz inequality, since nk\sqrt{n_k}nk​​ is proportional to LkL_kLk​; the second holds because ∑knk=T\sum_k n_k=T∑k​nk​=T. In the proof of Lemma 4 this turns the per-pigeonhole bound c∑kLknkc\sum_k L_k\sqrt{n_k}c∑k​Lk​nk​​ into cT∑kLk2c\sqrt{T\sum_k L_k^2}cT∑k​Lk2​​.

Formalization Note In the paper the LkL_kLk​ are the lengths of the cells of a partition of [0,1][0,1][0,1]; the identity is stated for any nonnegative reals with positive sum of squares, which covers them. The nkn_knk​ are real numbers here, as in the display.

Preamble
import Mathlib
import Definitions.Def_PigeonholeDesign_Lower_Setting
Formal statement
namespace PigeonholeDesign.Lower

theorem cauchy_schwarz_display {K : ℕ} (L : Fin K → ℝ) (T : ℕ) (hL : ∀ k, 0 ≤ L k)
    (hS : 0 < ∑ i, L i ^ 2) :
    ∑ k, L k * Real.sqrt (L k ^ 2 / (∑ i, L i ^ 2) * T) =
        Real.sqrt ((∑ k, L k ^ 2) * ∑ k, L k ^ 2 / (∑ i, L i ^ 2) * T) ∧
      Real.sqrt ((∑ k, L k ^ 2) * ∑ k, L k ^ 2 / (∑ i, L i ^ 2) * T) =
        Real.sqrt (T * ∑ k, L k ^ 2) := by sorry

end PigeonholeDesign.Lower
Source
Zhao and Zhou, Pigeonhole Design: Balancing Sequential Experiments from an Online Matching Perspective, arXiv:2201.12936v6, p. ec15, proof of Lemma 4 (Cauchy-Schwarz display)
Human review
  • Endorsed by Shuze Chen · Oct 14, 2026

    Confirmed by the moderator at approval.

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