Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 5.3, proof — two-sided χ2(k)\chi^2(k)χ2(k) tail bound 2exp⁡(−kϵ2/6)2\exp(-k\epsilon^2/6)2exp(−kϵ2/6) for 0<ϵ≤1/20<\epsilon\le 1/20<ϵ≤1/2

Proved
TraceEstimation.ProjectionRank.chi_squared_tail

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

chi-squaredconcentration-inequalitygaussianp2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let k≥1k \ge 1k≥1, let g1,…,gkg_1, \ldots, g_kg1​,…,gk​ be independent standard normal random variables, and let X=∑l=1kgl2X = \sum_{l=1}^k g_l^2X=∑l=1k​gl2​, so that X∼χ2(k)X \sim \chi^2(k)X∼χ2(k). For every ϵ\epsilonϵ with 0<ϵ≤120 < \epsilon \le \tfrac120<ϵ≤21​,

Pr⁡(∣X−k∣≥ϵk)≤2exp⁡ ⁣(−kϵ26).\Pr\bigl(|X - k| \ge \epsilon k\bigr) \le 2\exp\!\left(-\frac{k\epsilon^2}{6}\right).Pr(∣X−k∣≥ϵk)≤2exp(−6kϵ2​).

This is the χ2\chi^2χ2 concentration inequality that Avron and Toledo cite from Li, Hastie and Church (2007) and apply to MGMM G_MMGM​ in the proof of Lemma 5.3.

Formalization Note Two corrections to the printed display. The paper prints Pr⁡(∣X−k∣≤ϵk)≤2exp⁡(−kϵ2/6)\Pr(|X-k| \le \epsilon k) \le 2\exp(-k\epsilon^2/6)Pr(∣X−k∣≤ϵk)≤2exp(−kϵ2/6); the inner ≤\le≤ is a misprint for ≥\ge≥, as the next display, which applies the bound, shows. The paper gives no range for ϵ\epsilonϵ, and the bound is false for ϵ=1\epsilon = 1ϵ=1 and large kkk: the upper tail Pr⁡(X≥2k)\Pr(X \ge 2k)Pr(X≥2k) decays like e−k(1−ln⁡2)/2≈e−0.153ke^{-k(1-\ln 2)/2} \approx e^{-0.153k}e−k(1−ln2)/2≈e−0.153k, slower than e−k/6e^{-k/6}e−k/6. The statement is therefore restricted to 0<ϵ≤1/20 < \epsilon \le 1/20<ϵ≤1/2, which contains the only value the proof uses, ϵ=1/(2 rank(A))\epsilon = 1/(2\,\mathrm{rank}(A))ϵ=1/(2rank(A)). The χ2(k)\chi^2(k)χ2(k) variable is modelled as the sum of squares on the product space Fin k → ℝ with Measure.pi (fun _ => gaussianReal 0 1), and the probability is Measure.real.

Preamble
import Mathlib
Formal statement
namespace TraceEstimation.ProjectionRank

open MeasureTheory ProbabilityTheory

/-- The `χ²` tail bound Avron–Toledo cite from [Li et al. 2007] (Lemma 5.3, proof, p. 8:9):
if `X = ∑_{l=1}^k g_l²` with `g_1, …, g_k` i.i.d. standard normal (`X ∼ χ²(k)`), `k ≥ 1`,
and `0 < ε ≤ 1/2`, then `Pr(|X - k| ≥ ε k) ≤ 2 exp(-k ε² / 6)`.

Two corrections to the printed display `Pr(|X - k| ≤ ε k) ≤ 2 exp(-k ε²/6)`: the `≤` inside
the probability is a misprint for `≥` (the next display, which applies the bound, has `≥`);
and the page gives no range for `ε`, while the bound fails for `ε = 1` and large `k` (the
upper tail decays like `exp(-k (1 - ln 2)/2)`, slower than `exp(-k/6)`). It holds for
`0 < ε ≤ 1/2`, which covers the only value the proof uses, `ε = 1/(2 rank(A))`. -/
theorem chi_squared_tail (k : ℕ) (hk : 0 < k) (ε : ℝ) (hε : 0 < ε) (hε2 : ε ≤ 1 / 2) :
    (Measure.pi fun _ : Fin k => gaussianReal 0 1).real
        {g | ε * k ≤ |∑ l, g l ^ 2 - k|} ≤ 2 * Real.exp (-(k * ε ^ 2 / 6)) := by sorry

end TraceEstimation.ProjectionRank
Source
Avron and Toledo, Randomized algorithms for estimating the trace of an implicit symmetric positive semi-definite matrix, J. ACM 58(2), Article 8 (2011), p. 8:9, proof of Lemma 5.3, tail bound cited from [Li et al. 2007]
Human review
  • Endorsed by Shuze Chen · Oct 1, 2026

    Confirmed by the moderator at approval.

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