Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 7.1, p. 8:11 — per-direction tail ≤δ/rank(A)\le \delta/\mathrm{rank}(A)≤δ/rank(A) for M≥6ϵ−2ln⁡(2 rank(A)/δ)M \ge 6\epsilon^{-2}\ln(2\,\mathrm{rank}(A)/\delta)M≥6ϵ−2ln(2rank(A)/δ)

Proved
TraceEstimation.Hutchinson.coordinate_tail

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

concentration-inequalityp2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1rademachertrace-estimation

Let α∈Rn\alpha \in \mathbb{R}^nα∈Rn be a unit vector, r≥1r \ge 1r≥1 an integer, 0<ϵ≤1/20 < \epsilon \le 1/20<ϵ≤1/2 and 0<δ<10 < \delta < 10<δ<1. Let z1,…,zM∈Rnz_1, \ldots, z_M \in \mathbb{R}^nz1​,…,zM​∈Rn be independent random vectors with independent Rademacher entries and put yi=αTziy_i = \alpha^T z_iyi​=αTzi​. If the number of samples satisfies

M≥6ϵ−2ln⁡ ⁣(2rδ),M \ge 6\epsilon^{-2}\ln\!\left(\frac{2r}{\delta}\right),M≥6ϵ−2ln(δ2r​),

then

Pr⁡(∣1M∑i=1Myi2−1∣≥ϵ)≤δr.\Pr\left(\left|\frac{1}{M}\sum_{i=1}^{M} y_i^2 - 1\right| \ge \epsilon\right) \le \frac{\delta}{r}.Pr(​M1​i=1∑M​yi2​−1​≥ϵ)≤rδ​.

In the proof of Theorem 7.1, α\alphaα is one of the orthonormal eigenvectors of AAA and r=rank(A)r = \mathrm{rank}(A)r=rank(A); a union bound over the rank(A)\mathrm{rank}(A)rank(A) eigenvectors with nonzero eigenvalue then controls all directions at once.

Formalization Note The page states this step without a range on ϵ\epsilonϵ; it follows from Lemma 7.2 because M2(ϵ22−ϵ33)≥Mϵ26\frac{M}{2}\bigl(\frac{\epsilon^2}{2} - \frac{\epsilon^3}{3}\bigr) \ge \frac{M\epsilon^2}{6}2M​(2ϵ2​−3ϵ3​)≥6Mϵ2​, which holds exactly when ϵ≤1/2\epsilon \le 1/2ϵ≤1/2, so ϵ≤1/2\epsilon \le 1/2ϵ≤1/2 is stated (the same correction as in Theorem 7.1). The page's yijy_{ij}yij​, the jjj-th entry of UTziU^Tz_iUTzi​, is written here as αTzi\alpha^Tz_iαTzi​ for a unit vector α\alphaα, which avoids the page's inconsistent indexing of UUU. The integer rrr replaces rank(A)\mathrm{rank}(A)rank(A) so that the statement does not depend on a matrix. MMM is a natural number; the hypothesis forces M≥1M \ge 1M≥1.

Preamble
import Mathlib
import Definitions.Def_TraceEstimation_Hutchinson_hutchinsonEstimator
Formal statement
namespace TraceEstimation.Hutchinson

open MeasureTheory ProbabilityTheory Matrix

/-- Proof of Theorem 7.1 (Avron–Toledo, p. 8:11, second display), in the corrected form the
proof establishes. Let `α ∈ ℝⁿ` be a unit vector (`αᵀα = 1`; in the proof, a row of the
eigenvector matrix), `r ≥ 1` an integer (in the proof, `rank(A)`), `0 < ε ≤ 1/2`,
`0 < δ < 1`, and let `z_1, …, z_M ∈ ℝⁿ` be independent with i.i.d. Rademacher entries,
`y_i = αᵀ z_i`. If `M ≥ 6 ε⁻² ln(2r/δ)` then
`Pr(|(1/M) ∑_{i=1}^M y_i² - 1| ≥ ε) ≤ δ / r`.
The page states no range for `ε`; the step from Lemma 7.2 needs
`(M/2)(ε²/2 - ε³/3) ≥ M ε²/6`, which holds exactly when `ε ≤ 1/2`. -/
theorem coordinate_tail {n : ℕ} (α : Fin n → ℝ) (hα : α ⬝ᵥ α = 1) (r : ℕ) (hr : 1 ≤ r)
    (ε δ : ℝ) (hε : 0 < ε) (hε' : ε ≤ 1 / 2) (hδ : 0 < δ) (hδ' : δ < 1) (M : ℕ)
    (hMbound : 6 * ε⁻¹ ^ 2 * Real.log (2 * (r : ℝ) / δ) ≤ (M : ℝ)) :
    (hutchinsonSampleMeasure n M).real
        {ω | ε ≤ |(M : ℝ)⁻¹ * ∑ i : Fin M, (α ⬝ᵥ ω i) ^ 2 - 1|} ≤ δ / r := by sorry

end TraceEstimation.Hutchinson
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:11, Section 7, proof of Theorem 7.1, second display
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