Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 5, p. 8:9 — both tails of GMG_MGM​ are at most δ/2\delta/2δ/2

Proved
TraceEstimation.Gaussian.two_tails

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

concentrationgaussianp2o-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 0<ϵ≤0.10 < \epsilon \le 0.10<ϵ≤0.1 and 0<δ<10 < \delta < 10<δ<1, and let MMM be a natural number with

M≥20ϵ−2ln⁡(2/δ).M \ge 20\epsilon^{-2}\ln(2/\delta).M≥20ϵ−2ln(2/δ).

Then the Gaussian trace estimator GMG_MGM​ satisfies

  1. Pr⁡(GM≥τ(1+ϵ))≤δ/2\Pr\bigl(G_M \ge \tau(1+\epsilon)\bigr) \le \delta/2Pr(GM​≥τ(1+ϵ))≤δ/2, and
  2. Pr⁡(GM≤τ(1−ϵ))≤δ/2\Pr\bigl(G_M \le \tau(1-\epsilon)\bigr) \le \delta/2Pr(GM​≤τ(1−ϵ))≤δ/2.

These are the two one-sided bounds that, combined with a union bound, give Theorem 5.2.

Formalization Note The closing sentence of the paper's proof reads "if M≥20ϵ−2ln⁡(2/δ)M \ge 20\epsilon^{-2}\ln(2/\delta)M≥20ϵ−2ln(2/δ) then Pr⁡(GM≤τ(1+ϵ))≤δ/2\Pr(G_M \le \tau(1+\epsilon)) \le \delta/2Pr(GM​≤τ(1+ϵ))≤δ/2. Using the same technique, a lower bound can be shown". The first inequality is a misprint for the upper tail Pr⁡(GM≥τ(1+ϵ))≤δ/2\Pr(G_M \ge \tau(1+\epsilon)) \le \delta/2Pr(GM​≥τ(1+ϵ))≤δ/2, which is part 1; the lower bound the page announces without a constant is stated in part 2 with the same threshold on MMM, which is what the union bound requires. The hypothesis τ>0\tau > 0τ>0 excludes A=0A = 0A=0, for which both events are certain.

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

open MeasureTheory ProbabilityTheory Matrix

/-- Section 5, p. 8:9 (Avron–Toledo), the closing sentence of the proof of Theorem 5.2, with
its two misprints corrected. For a symmetric positive semi-definite `A` with
`τ = trace(A) > 0`, `0 < ε ≤ 0.1`, `0 < δ < 1` and `M ≥ 20 ε⁻² ln(2/δ)`:
`Pr(G_M ≥ τ(1 + ε)) ≤ δ/2` (the upper tail) and `Pr(G_M ≤ τ(1 - ε)) ≤ δ/2` (the lower tail,
"shown using the same technique"). The page prints `Pr(G_M ≤ τ(1+ε)) ≤ δ/2` for the first. -/
theorem two_tails {n : ℕ} (A : Matrix (Fin n) (Fin n) ℝ) (hA : A.PosSemidef)
    (htr : 0 < A.trace) (ε δ : ℝ) (hε : 0 < ε) (hε' : ε ≤ 1 / 10) (hδ : 0 < δ) (hδ' : δ < 1)
    (M : ℕ) (hM : 0 < M) (hMbound : 20 * ε⁻¹ ^ 2 * Real.log (2 / δ) ≤ (M : ℝ)) :
    (Shared.gaussianSampleMeasure n M).real {ω | A.trace * (1 + ε) ≤ Shared.gaussianEstimator A M ω} ≤
      δ / 2 ∧
    (Shared.gaussianSampleMeasure n M).real {ω | Shared.gaussianEstimator A M ω ≤ A.trace * (1 - ε)} ≤
      δ / 2 := 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), p. 8:9, Section 5, end of the proof of Theorem 5.2
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