Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 5, pp. 8:8–8:9 — Chernoff bound Pr⁡(GM≥τ(1+ϵ))≤e−Mϵ2/20\Pr(G_M \ge \tau(1+\epsilon)) \le e^{-M\epsilon^2/20}Pr(GM​≥τ(1+ϵ))≤e−Mϵ2/20

Proved
TraceEstimation.Gaussian.upper_tail

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

chernoff-boundconcentrationgaussianp2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1trace-estimation

Let AAA be an n×nn \times nn×n real symmetric positive semi-definite matrix with τ=trace(A)>0\tau = \mathrm{trace}(A) > 0τ=trace(A)>0, let M≥1M \ge 1M≥1 and let GMG_MGM​ be the Gaussian trace estimator with MMM samples. For every 0<ϵ≤0.10 < \epsilon \le 0.10<ϵ≤0.1,

Pr⁡(GM≥τ(1+ϵ))≤exp⁡ ⁣(−Mϵ220).\Pr\bigl(G_M \ge \tau(1+\epsilon)\bigr) \le \exp\!\left(-\frac{M\epsilon^2}{20}\right).Pr(GM​≥τ(1+ϵ))≤exp(−20Mϵ2​).

This is the upper-tail bound that the Chernoff-style argument in the proof of Theorem 5.2 establishes; with M≥20ϵ−2ln⁡(2/δ)M \ge 20\epsilon^{-2}\ln(2/\delta)M≥20ϵ−2ln(2/δ) the right-hand side is at most δ/2\delta/2δ/2.

Formalization Note The hypothesis τ>0\tau > 0τ>0 is added: for A=0A = 0A=0 the estimator is identically 0=τ(1+ϵ)0 = \tau(1+\epsilon)0=τ(1+ϵ) and the event is certain. The paper assumes throughout the proof that it can divide by τ\tauτ (in t0=ϵ/(4τ(1+ϵ/2))t_0 = \epsilon/(4\tau(1+\epsilon/2))t0​=ϵ/(4τ(1+ϵ/2))). The range ϵ≤0.1\epsilon \le 0.1ϵ≤0.1 is the one the page states for the last step of the chain.

Preamble
import Mathlib
import Definitions.Def_TraceEstimation_Shared_gaussianEstimator
Formal statement
namespace TraceEstimation.Gaussian

open MeasureTheory ProbabilityTheory Matrix

/-- Section 5, pp. 8:8–8:9 (Avron–Toledo), the Chernoff bound in the proof of Theorem 5.2.
For a symmetric positive semi-definite `A` with `τ = trace(A) > 0`, every `M ≥ 1` and every
`0 < ε ≤ 0.1`, `Pr(G_M ≥ τ(1 + ε)) ≤ exp(-M ε² / 20)`. -/
theorem upper_tail {n : ℕ} (A : Matrix (Fin n) (Fin n) ℝ) (hA : A.PosSemidef)
    (htr : 0 < A.trace) (M : ℕ) (hM : 0 < M) (ε : ℝ) (hε : 0 < ε) (hε' : ε ≤ 1 / 10) :
    (Shared.gaussianSampleMeasure n M).real {ω | A.trace * (1 + ε) ≤ Shared.gaussianEstimator A M ω} ≤
      Real.exp (-(M : ℝ) * ε ^ 2 / 20) := by sorry

end TraceEstimation.Gaussian
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), pp. 8:8-8:9, Section 5, proof of Theorem 5.2 (Markov chain of inequalities)
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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