Section 5, Eq. (1) — moment generating function of
ProvedTraceEstimation.Gaussian.mgf_formulaLet be an real symmetric matrix with eigenvalues (listed with multiplicity), let , let , and let be the Gaussian trace estimator with samples. Put . For every real with for all , the moment generating function of is
where .
This is the moment generating function on which the Chernoff argument for Theorem 5.2 rests.
Formalization Note The paper states the formula "as long as for all ". At the base is and the expectation is infinite, while Lean's real power 0 ^ (-M/2) is ; the statement therefore uses the open range , which is where the formula holds (it also covers negative and negative eigenvalues). The moment generating function is Mathlib's mgf, and the eigenvalues are Matrix.IsHermitian.eigenvalues.
import Mathlib import Definitions.Def_TraceEstimation_Shared_gaussianEstimator import Definitions.Def_TraceEstimation_Gaussian_hPoly
namespace TraceEstimation.Gaussian
open MeasureTheory ProbabilityTheory Matrix
/-- Section 5, Eq. (1) (Avron–Toledo, pp. 8:7–8:8). Let `A` be symmetric with eigenvalues
`λ_1, …, λ_n` (with multiplicity) and `τ = trace(A)`. If `2 λ_i t < 1` for every `i`, the
moment generating function of `Z = M · G_M` at `t` is
`∏_i (1 - 2 λ_i t)^{-M/2} = (1 - 2 τ t + h(t))^{-M/2}`.
The page's range `|λ_i t| ≤ 1/2` includes `1 - 2 λ_i t = 0`, where the mgf is infinite; the
strict inequality is the range where the formula holds. -/
theorem mgf_formula {n : ℕ} (A : Matrix (Fin n) (Fin n) ℝ) (hA : A.IsHermitian)
(M : ℕ) (hM : 0 < M) (t : ℝ) (ht : ∀ i, 2 * hA.eigenvalues i * t < 1) :
mgf (fun ω => (M : ℝ) * Shared.gaussianEstimator A M ω) (Shared.gaussianSampleMeasure n M) t =
∏ i : Fin n, (1 - 2 * hA.eigenvalues i * t) ^ (-(M : ℝ) / 2) ∧
mgf (fun ω => (M : ℝ) * Shared.gaussianEstimator A M ω) (Shared.gaussianSampleMeasure n M) t =
(1 - 2 * A.trace * t + hPoly hA.eigenvalues t) ^ (-(M : ℝ) / 2) := by sorry
end TraceEstimation.Gaussian
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.