Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary 2.4.6 — a chi-square bound: Pr⁡[∥x∥≥3dln⁡n σ]≤n−2.9d\Pr[\|x\|\ge 3\sqrt{d\ln n}\,\sigma]\le n^{-2.9d}Pr[∥x∥≥3dlnn​σ]≤n−2.9d

Proved
SmoothedSimplex.Shadow.chi_square_bound

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

gaussianp2o-batch-pfp1ap2o-gran-per-chapterp2o-plan-paperp2o-v1probabilitysmoothed-analysis

Let xxx be a Gaussian random vector in Rd\mathbb R^dRd of standard deviation σ>0\sigma>0σ>0 centered at the origin. Then, for every integer n≥3n\ge 3n≥3,

Pr⁡[∥x∥≥3dln⁡n σ]≤n−2.9d.\Pr\big[\|x\|\ge 3\sqrt{d\ln n}\,\sigma\big]\le n^{-2.9d}.Pr[∥x∥≥3dlnn​σ]≤n−2.9d.

Moreover, if n>d≥3n>d\ge3n>d≥3 and x1,…,xnx_1,\dots,x_nx1​,…,xn​ are such vectors, then

Pr⁡[max⁡i∥xi∥≥3dln⁡n σ]≤n−2.9d+1≤0.0015(nd)−1.\Pr\Big[\max_i\|x_i\|\ge 3\sqrt{d\ln n}\,\sigma\Big]\le n^{-2.9d+1}\le 0.0015\binom{n}{d}^{-1}.Pr[imax​∥xi​∥≥3dlnn​σ]≤n−2.9d+1≤0.0015(dn​)−1.

The corollary says that a perturbation of standard deviation σ≤1/(3dln⁡n)\sigma\le 1/(3\sqrt{d\ln n})σ≤1/(3dlnn​) moves no data point by more than 111, except with probability small enough to absorb the trivial bound (nd)\binom nd(dn​) on the shadow size.

Formalization Note In the second part the vectors live on an arbitrary probability space, each with the Gaussian law; no independence is assumed (the bound is a union bound). max⁡i∥xi∥≥r\max_i\|x_i\|\ge rmaxi​∥xi​∥≥r is written "some ∥xi∥≥r\|x_i\|\ge r∥xi​∥≥r".

Preamble
import Mathlib
import Definitions.Def_SmoothedSimplex_Shadow_gaussian
Formal statement
namespace SmoothedSimplex.Shadow

open MeasureTheory ProbabilityTheory
open scoped RealInnerProductSpace

/-- **Corollary 2.4.6 (A chi-square bound)** (Spielman & Teng, *Smoothed Analysis of Algorithms*,
arXiv:cs/0111050v7, Corollary 2.4.6, printed p. 21, PDF p. 21). Let `x` be a Gaussian random
vector in `ℝ^d` of standard deviation `σ` centered at the origin. Then, for `n ≥ 3`,
`Pr[‖x‖ ≥ 3√(d ln n) σ] ≤ n^{−2.9d}`. Moreover, if `n > d ≥ 3` and `x₁, …, xₙ` are such
vectors, then `Pr[maxᵢ ‖xᵢ‖ ≥ 3√(d ln n) σ] ≤ n^{−2.9d+1} ≤ 0.0015 · C(n, d)^{−1}`.

**Formalization Note.** `σ > 0`. The vectors `x₁, …, xₙ` of the second part live on an
arbitrary probability space, each with law `gaussian 0 σ`; no independence is assumed (the page
assumes none; the bound is a union bound). `maxᵢ ‖xᵢ‖ ≥ r` is written `∃ i, ‖xᵢ‖ ≥ r`.
`n^{−2.9d}` is the real power `(n : ℝ) ^ (−(29/10) d)`, and `ln` is `Real.log` (positive for
`n ≥ 3`). -/
theorem chi_square_bound {d : ℕ} {Ω : Type*} [MeasurableSpace Ω] (σ : ℝ) (hσ : 0 < σ) :
    (∀ n : ℕ, 3 ≤ n →
      gaussian (0 : EuclideanSpace ℝ (Fin d)) σ
          {x | 3 * Real.sqrt ((d : ℝ) * Real.log n) * σ ≤ ‖x‖}
        ≤ ENNReal.ofReal ((n : ℝ) ^ (-(29 / 10 : ℝ) * d))) ∧
    (∀ n : ℕ, d < n → 3 ≤ d →
      ∀ (P : Measure Ω) [IsProbabilityMeasure P] (x : Fin n → Ω → EuclideanSpace ℝ (Fin d)),
        (∀ i, AEMeasurable (x i) P) → (∀ i, P.map (x i) = gaussian 0 σ) →
        P {ω | ∃ i, 3 * Real.sqrt ((d : ℝ) * Real.log n) * σ ≤ ‖x i ω‖}
            ≤ ENNReal.ofReal ((n : ℝ) ^ (-(29 / 10 : ℝ) * d + 1)) ∧
          (n : ℝ) ^ (-(29 / 10 : ℝ) * d + 1) ≤ (15 / 10000 : ℝ) * ((n.choose d : ℕ) : ℝ)⁻¹) := by sorry

end SmoothedSimplex.Shadow
Source
Spielman & Teng, Smoothed Analysis of Algorithms, arXiv:cs/0111050v7, Corollary 2.4.6, printed p. 21 (PDF p. 21)
Human review
  • Endorsed by Shuze Chen · Oct 4, 2026

    Confirmed by the moderator at approval.

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