Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 6.1, proof — 0≤zTAz≤nλn≤nrank(A)trace(A)κf(A)0 \le z^TAz \le n\lambda_n \le \frac{n}{\mathrm{rank}(A)}\mathrm{trace}(A)\kappa_f(A)0≤zTAz≤nλn​≤rank(A)n​trace(A)κf​(A) when zTz=nz^Tz = nzTz=n

Proved
TraceEstimation.Rayleigh.quadratic_form_range

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

eigenvaluesp2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1trace-estimation

Let A∈Rn×nA \in \mathbb{R}^{n\times n}A∈Rn×n be a nonzero symmetric positive semi-definite matrix with largest eigenvalue λn\lambda_nλn​, and let κf(A)\kappa_f(A)κf​(A) be the ratio between its largest and smallest nonzero eigenvalue. For every vector z∈Rnz \in \mathbb{R}^nz∈Rn with zTz=nz^Tz = nzTz=n,

0  ≤  zTAz  ≤  λn zTz  =  nλn  ≤  nrank(A) trace(A)⋅κf(A).0 \;\le\; z^T A z \;\le\; \lambda_n\, z^T z \;=\; n\lambda_n \;\le\; \frac{n}{\mathrm{rank}(A)}\,\mathrm{trace}(A)\cdot\kappa_f(A).0≤zTAz≤λn​zTz=nλn​≤rank(A)n​trace(A)⋅κf​(A).

Applied to each sample vector ziz_izi​ of a normalized Rayleigh-quotient estimator, this says every summand ziTAziz_i^TAz_iziT​Azi​ lies in the fixed interval [0, nrank(A)trace(A)κf(A)][0,\ \tfrac{n}{\mathrm{rank}(A)}\mathrm{trace}(A)\kappa_f(A)][0, rank(A)n​trace(A)κf​(A)], which is what makes Hoeffding's inequality applicable.

Formalization Note The statement is deterministic (a single vector zzz) and records all four links of the displayed chain as a conjunction. A≠0A \ne 0A=0 guarantees rank(A)≥1\mathrm{rank}(A) \ge 1rank(A)≥1, so the division by rank(A)\mathrm{rank}(A)rank(A) is genuine.

Preamble
import Mathlib
import Definitions.Def_TraceEstimation_Rayleigh_kappaF
Formal statement
namespace TraceEstimation.Rayleigh

open Matrix

/-- Avron–Toledo, proof of Theorem 6.1 (p. 8:10), second display: for a symmetric positive
semi-definite `A ≠ 0` with largest eigenvalue `λ_n`, and every `z ∈ ℝⁿ` with `zᵀz = n`,
`0 ≤ zᵀAz ≤ λ_n zᵀz = n λ_n ≤ (n / rank(A)) · trace(A) · κ_f(A)`.
This is the deterministic range of one sample of a normalized Rayleigh-quotient estimator. -/
theorem quadratic_form_range {n : ℕ} (A : Matrix (Fin n) (Fin n) ℝ) (hA : A.PosSemidef)
    (hA0 : A ≠ 0) (z : Fin n → ℝ) (hz : z ⬝ᵥ z = (n : ℝ)) :
    0 ≤ z ⬝ᵥ (A *ᵥ z) ∧
      z ⬝ᵥ (A *ᵥ z) ≤ lambdaMax hA.isHermitian * (z ⬝ᵥ z) ∧
      lambdaMax hA.isHermitian * (z ⬝ᵥ z) = (n : ℝ) * lambdaMax hA.isHermitian ∧
      (n : ℝ) * lambdaMax hA.isHermitian ≤
        (n : ℝ) / (A.rank : ℝ) * A.trace * kappaF hA.isHermitian := by sorry

end TraceEstimation.Rayleigh
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:10, Section 6, proof of Theorem 6.1, display 2
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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me