Lemma 5.3, proof — is with degrees of freedom
ProvedTraceEstimation.ProjectionRank.scaled_estimator_lawLet be an orthogonal projection matrix, that is, is symmetric and (equivalently, is symmetric with all eigenvalues in ). Let and let be the Gaussian trace estimator of with samples. Then has the distribution with degrees of freedom: if are independent standard normal random variables, then
This identifies the exact law of the scaled estimator, reducing every probability bound about for a projection to a tail bound for a variable.
Formalization Note No distribution is defined. The statement is an equality of pushforward measures (Measure.map): the law of under the product Gaussian measure of Definition 3.1 equals the law of under the product of standard normals. Both maps are continuous, hence measurable, so neither side is the zero measure that Measure.map returns for non-measurable maps. "Projection matrix" is read as orthogonal projection (A.IsHermitian and A * A = A); an oblique idempotent also has eigenvalues and , but the paper's diagonalization with unitary requires symmetry.
import Mathlib import Definitions.Def_TraceEstimation_Shared_gaussianEstimator
namespace TraceEstimation.ProjectionRank
open MeasureTheory ProbabilityTheory Matrix
/-- Avron–Toledo, Lemma 5.3, proof (p. 8:9), first paragraph: for an orthogonal projection `A`
(symmetric, `A * A = A`) and `M ≥ 1` samples, `M · G_M` is `χ²` with `M · rank(A)` degrees of
freedom. Stated without a `χ²` definition: the law of `ω ↦ M · G_M(ω)` under the product
Gaussian measure equals the law of `g ↦ ∑_{l=1}^{M·rank(A)} g_l²` for i.i.d. standard normal
`g_1, …, g_{M·rank(A)}`. Both maps are continuous, hence measurable, so neither pushforward is
the junk zero measure. -/
theorem scaled_estimator_law {n : ℕ} (A : Matrix (Fin n) (Fin n) ℝ) (hA : A.IsHermitian)
(hA2 : A * A = A) (M : ℕ) (hM : 0 < M) :
(Shared.gaussianSampleMeasure n M).map (fun ω => (M : ℝ) * Shared.gaussianEstimator A M ω) =
(Measure.pi fun _ : Fin (M * A.rank) => gaussianReal 0 1).map
(fun g => ∑ l, g l ^ 2) := by sorry
end TraceEstimation.ProjectionRank
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.