Proof of Theorem 7.1, p. 8:11 — per-direction accuracy implies
ProvedTraceEstimation.Hutchinson.spectral_error_boundLet be an real matrix given with an eigendecomposition: orthogonal () and with every . Fix , and vectors ; put and let be its -th entry. If
then Hutchinson's estimator satisfies
This is the deterministic half of the proof of Theorem 7.1: it turns a bound on each eigen-direction into a relative error bound on the trace estimate. No probability is involved.
Formalization Note The page writes together with ; these fit together only for , which is the convention stated here. The eigenvalues are indexed by all and the hypothesis is required only for , which is the page's range after its reordering. Nonnegativity of the (positive semi-definiteness) is a hypothesis, as in the page's "A is symmetric and semidefinite".
import Mathlib import Definitions.Def_TraceEstimation_Hutchinson_hutchinsonEstimator
namespace TraceEstimation.Hutchinson
open MeasureTheory ProbabilityTheory Matrix
/-- Proof of Theorem 7.1 (Avron–Toledo, p. 8:11, last display), a deterministic step.
Let `A = U Λ Uᵀ` with `U` orthogonal and `Λ = diag(λ_1, …, λ_n)`, `λ_j ≥ 0` (the
eigendecomposition of a symmetric positive semi-definite `A`). Fix `M ≥ 1`, `ε > 0` and
vectors `z_1, …, z_M ∈ ℝⁿ`, and put `y_i = Uᵀ z_i` with entries `y_ij`. If
`|(1/M) ∑_{i=1}^M y_ij² - 1| ≤ ε` for every `j` with `λ_j ≠ 0`, then
`|H_M - trace(A)| ≤ ε · trace(A)`, where `H_M = (1/M) ∑_i z_iᵀ A z_i`.
The page writes `Λ = U A Uᵀ` and `y_i = Uᵀ z_i`; these are consistent only for
`A = U Λ Uᵀ`, the convention used here. -/
theorem spectral_error_bound {n : ℕ} (A U : Matrix (Fin n) (Fin n) ℝ)
(hU : U ∈ Matrix.orthogonalGroup (Fin n) ℝ) (lam : Fin n → ℝ) (hlam : ∀ j, 0 ≤ lam j)
(hA : A = U * diagonal lam * Uᵀ) (M : ℕ) (hM : 0 < M) (ε : ℝ) (hε : 0 < ε)
(ω : Fin M → Fin n → ℝ)
(hω : ∀ j, lam j ≠ 0 → |(M : ℝ)⁻¹ * ∑ i : Fin M, (Uᵀ *ᵥ ω i) j ^ 2 - 1| ≤ ε) :
|hutchinsonEstimator A M ω - A.trace| ≤ ε * A.trace := by sorry
end TraceEstimation.Hutchinson
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.