Theorem 6.1 (corrected) — is an -approximator for
ProvedTraceEstimation.Rayleigh.rayleigh_estimator_approximatorLet be a nonzero symmetric positive semi-definite matrix, and let be the ratio between its largest and smallest nonzero eigenvalue. Let and . Let be a normalized Rayleigh-quotient trace estimator of : are independent random vectors with and . If
then is an -approximator of , that is,
The bound holds for every estimator in the class at once — Hutchinson's, the unit vector estimator, and any other normalized one — and needs no assumption on the distribution of the beyond normalization and unbiasedness. Its price is the factor , so it is informative for well-conditioned matrices.
Formalization Note The paper prints the threshold as (Theorem 6.1 and Table I); its proof on p. 8:10 ends with , with the exponents of and swapped. The printed version is false: for , , with uniform on , and , it admits , while is never within of . The statement here is the one the proof establishes. The probabilistic model is a general probability space with IsNormalizedRayleighSample P A z (measurable, mutually independent, almost surely, unbiased for this ); the hypotheses are satisfiable (Rademacher vectors, or with uniform). The assumptions and are implicit on the page ( and must make sense).
import Mathlib import Definitions.Def_TraceEstimation_Shared_IsApproximator import Definitions.Def_TraceEstimation_Rayleigh_kappaF import Definitions.Def_TraceEstimation_Rayleigh_rayleighEstimator
namespace TraceEstimation.Rayleigh
open MeasureTheory ProbabilityTheory Matrix
/-- Avron–Toledo, **Theorem 6.1** (p. 8:10), in the form its proof establishes. Let `A ≠ 0` be a
symmetric positive semi-definite `n × n` matrix, `κ_f(A)` the ratio between its largest and
smallest nonzero eigenvalue, `0 < ε`, `0 < δ < 1`, and `R_M` a normalized Rayleigh-quotient trace
estimator of `A` with `M ≥ 1` samples (Definition 3.2). If
`M ≥ ln(2/δ) · n² κ_f²(A) / (2 rank²(A) ε²)`
(the last display of the proof, p. 8:10), then `R_M` is an `(ε, δ)`-approximator of `trace(A)`.
The paper prints the threshold as `½ ε⁻² n⁻² rank²(A) ln(2/δ) κ_f²(A)`, with the exponents of `n`
and `rank(A)` swapped relative to its proof; the printed version is false (`n = 2`,
`A = e₁e₁ᵀ`, `z = √2 e_k` with `k` uniform, `ε = δ = 1/2`, `M = 1`). -/
theorem rayleigh_estimator_approximator {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
[IsProbabilityMeasure P] {n M : ℕ} (A : Matrix (Fin n) (Fin n) ℝ) (hA : A.PosSemidef)
(hA0 : A ≠ 0) (hM : 0 < M) (z : Fin M → Ω → Fin n → ℝ)
(hz : IsNormalizedRayleighSample P A z) (ε δ : ℝ) (hε : 0 < ε) (hδ : 0 < δ) (hδ1 : δ < 1)
(hMbound : Real.log (2 / δ) * (n : ℝ) ^ 2 * kappaF hA.isHermitian ^ 2 /
(2 * (A.rank : ℝ) ^ 2 * ε ^ 2) ≤ (M : ℝ)) :
Shared.IsApproximator P (rayleighEstimator A z) A ε δ := by sorry
end TraceEstimation.Rayleigh
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.