Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Remark after eq. (24): the sSVGD noise has variance 2ϵtk(mi,mi)/n2\epsilon_t k(m_i,m_i)/n2ϵt​k(mi​,mi​)/n per coordinate (first sentence only)

Proved
Arxiv2210_03613.ssvgd_noise_coordinate_variance

by Xeroth · Nov 25, 2026 · Mathlib 0df444a (Lean v4.33.1)

cholesky-decompositiongaussian-measureskl-divergencestein-variational-gradient-descentvariational-inference

Let n≥1n\ge1n≥1 particles m1,…,mn∈Rdm_1,\dots,m_n\in\mathbb{R}^dm1​,…,mn​∈Rd and a function kkk be such that the kernel matrix K‾=[k(mi,mj)]i,j\overline K=[k(m_i,m_j)]_{i,j}K=[k(mi​,mj​)]i,j​ is positive definite, as the paper assumes. Let ϵt>0\epsilon_t>0ϵt​>0 be the step size, and let K=1n[k(mi,mj)Id×d]K=\frac1n[k(m_i,m_j)I_{d\times d}]K=n1​[k(mi​,mj​)Id×d​] be the matrix of eq. (22). Then each coordinate aaa of the noise η∼N(0,2ϵtK)\eta\sim\mathcal N(0,2\epsilon_tK)η∼N(0,2ϵt​K) of particle iii in the sSVGD update (24) has variance

Var⁡(η(i,a))=2ϵt k(mi,mi)n.\operatorname{Var}\big(\eta_{(i,a)}\big)=\frac{2\epsilon_t\,k(m_i,m_i)}{n}.Var(η(i,a)​)=n2ϵt​k(mi​,mi​)​.

In particular, if k(x,x)≤Ck(x,x)\le Ck(x,x)≤C for all xxx, every coordinate of the noise has variance at most 2ϵtC/n2\epsilon_tC/n2ϵt​C/n. For the RBF kernel (17), C=1C=1C=1.

This is the precise content of the paper's remark that "when the number of particles is large enough, the noise term would be tiny according to equation (22)".

Formalization Note Only this first sentence of the remark is stated. The second sentence, that sSVGD then "produces the same results as standard SVGD", is not a mathematical statement, and "large enough" is not quantified. Positive definiteness of K‾\overline KK is the paper's assertion below eq. (22), taken here as a hypothesis. The variance identity itself needs only positive semidefiniteness.

Preamble
import Mathlib
import Definitions.Def_Arxiv2210_03613_Basic

open MeasureTheory ProbabilityTheory InformationTheory
Formal statement
namespace Arxiv2210_03613

theorem ssvgd_noise_coordinate_variance {n d : ℕ} (hn : 0 < n)
    (k : (Fin d → ℝ) → (Fin d → ℝ) → ℝ) (m : Fin n → Fin d → ℝ) (hK : (gramMat k m).PosDef)
    (ε : ℝ) (hε : 0 < ε) :
    (∀ (i : Fin n) (a : Fin d),
      variance (fun η : EuclideanSpace ℝ (Fin n × Fin d) => η (i, a)) (ssvgdNoise ε k m) =
        2 * ε * k (m i) (m i) / n) ∧
    (∀ C : ℝ, (∀ x, k x x ≤ C) → ∀ (i : Fin n) (a : Fin d),
      variance (fun η : EuclideanSpace ℝ (Fin n × Fin d) => η (i, a)) (ssvgdNoise ε k m) ≤
        2 * ε * C / n) := by sorry

end Arxiv2210_03613
Source
Zhang, Lomas, Zhou, Zheng and Curtis, 3D Bayesian Variational Full Waveform Inversion, arXiv:2210.03613v2 (2022), claim c001; Section 2.4 (Stochastic SVGD), remark after eq. (24), with eq. (22), PDF p. 14
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. Fix natural numbers nnn and ddd with n>0n > 0n>0; d=0d = 0d=0 is allowed. The data are:

  • a function k:Rd×Rd→Rk : \mathbb{R}^d \times \mathbb{R}^d \to \mathbb{R}k:Rd×Rd→R. It is not assumed symmetric, continuous, or positive-definite as a kernel.
  • nnn "particles" m1,…,mn∈Rdm_1, \dots, m_n \in \mathbb{R}^dm1​,…,mn​∈Rd, with miam_i^{a}mia​ denoting the aaa-th coordinate of mim_imi​.
  • a real number ε>0\varepsilon > 0ε>0.

Let Kˉ\bar KKˉ be the n×nn \times nn×n matrix with entries Kˉij=k(mi,mj)\bar K_{ij} = k(m_i, m_j)Kˉij​=k(mi​,mj​). The theorem assumes that Kˉ\bar KKˉ is positive definite in the library's sense: it is symmetric, and v⊤Kˉv>0v^\top \bar K v > 0v⊤Kˉv>0 for every nonzero v∈Rnv \in \mathbb{R}^nv∈Rn. In particular this forces k(mi,mj)=k(mj,mi)k(m_i, m_j) = k(m_j, m_i)k(mi​,mj​)=k(mj​,mi​) and k(mi,mi)>0k(m_i, m_i) > 0k(mi​,mi​)>0 for all particles. It says nothing about kkk at other points of Rd\mathbb{R}^dRd.

The noise law. Index the coordinates of Rnd\mathbb{R}^{nd}Rnd by pairs (i,a)(i, a)(i,a), with particle i∈{1,…,n}i \in \{1,\dots,n\}i∈{1,…,n} and coordinate a∈{1,…,d}a \in \{1,\dots,d\}a∈{1,…,d}. Define the nd×ndnd \times ndnd×nd matrix KKK by

K(i,a),(j,b)=1n k(mi,mj) δab,K_{(i,a),(j,b)} = \frac{1}{n}\, k(m_i, m_j)\,\delta_{ab},K(i,a),(j,b)​=n1​k(mi​,mj​)δab​,

where δab\delta_{ab}δab​ is 111 if a=ba = ba=b and 000 otherwise. Let Nε\mathcal N_\varepsilonNε​ be the measure produced by the library's multivariate-Gaussian construction on the Euclidean space Rnd\mathbb{R}^{nd}Rnd (with these coordinates) with mean 000 and covariance matrix 2εK2\varepsilon K2εK, that is, N(0,2εK)\mathcal N(0, 2\varepsilon K)N(0,2εK).

For η∈Rnd\eta \in \mathbb{R}^{nd}η∈Rnd, write η(i,a)\eta_{(i,a)}η(i,a)​ for its (i,a)(i,a)(i,a) coordinate. Write Var⁡Nε(η(i,a))\operatorname{Var}_{\mathcal N_\varepsilon}(\eta_{(i,a)})VarNε​​(η(i,a)​) for the library's variance of the coordinate function η↦η(i,a)\eta \mapsto \eta_{(i,a)}η↦η(i,a)​ under Nε\mathcal N_\varepsilonNε​. By that definition, the value would be 000 if the variance were infinite.

Conclusion. Under the hypotheses n>0n > 0n>0, Kˉ\bar KKˉ positive definite, and ε>0\varepsilon > 0ε>0, the theorem asserts the conjunction of two statements.

  1. For every particle index iii and every coordinate index aaa,
Var⁡Nε(η(i,a))=2ε k(mi,mi)n.\operatorname{Var}_{\mathcal N_\varepsilon}\big(\eta_{(i,a)}\big) = \frac{2\varepsilon\, k(m_i, m_i)}{n}.VarNε​​(η(i,a)​)=n2εk(mi​,mi​)​.
  1. For every real CCC such that k(x,x)≤Ck(x, x) \le Ck(x,x)≤C for all x∈Rdx \in \mathbb{R}^dx∈Rd (not only at the particles), and for every iii and aaa,
Var⁡Nε(η(i,a))≤2ε Cn.\operatorname{Var}_{\mathcal N_\varepsilon}\big(\eta_{(i,a)}\big) \le \frac{2\varepsilon\, C}{n}.VarNε​​(η(i,a)​)≤n2εC​.

Edge cases.

  • If d=0d = 0d=0, there are no coordinate indices aaa, so both parts hold vacuously.
  • Part 2 is vacuous whenever x↦k(x,x)x \mapsto k(x,x)x↦k(x,x) is unbounded above on Rd\mathbb{R}^dRd, since then no admissible CCC exists.
  • The division by nnn is real division, and n≥1n \ge 1n≥1 is assumed, so no division by zero occurs.
  • The statement says nothing about covariances between different coordinates.
  • The step-size parameter ε\varepsilonε appears only as a fixed positive real; no iteration or time dependence is involved.
Human review
  • Endorsed by Shuze Chen · Nov 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 25, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me