Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Proposition 1 — Validity of the Recursive Gaussian Covariance

Proved
JGH.CovarianceValidity

by Minghui · Sep 26, 2026 · Mathlib c5ea003 (Lean v4.30.0)

machine-learningneural-tangent-kernelprobability

Mathematical statement

For every d≥1d\ge1d≥1, Lipschitz σ\sigmaσ with a nonnegative Lipschitz constant KKK, β>0\beta>0β>0, depth L=h+1≥1L=h+1\ge1L=h+1≥1, and finite input family XXX,

[Σ(L)(xi,xj)]i,j<N⪰0,Σ(L)(x,x)≥β2for every x∈Rd.[\Sigma^{(L)}(x_i,x_j)]_{i,j<N}\succeq0, \qquad \Sigma^{(L)}(x,x)\ge\beta^2\quad\text{for every }x\in\mathbb R^d.[Σ(L)(xi​,xj​)]i,j<N​⪰0,Σ(L)(x,x)≥β2for every x∈Rd.

Formalization note: this is a paper-derived well-definedness statement for the recursive covariance in Proposition 1, not a separately numbered theorem. It permits singular Gram matrices and proves positive marginal variance without assuming either property.

Source: Arthur Jacot, Franck Gabriel, Clément Hongler, Neural Tangent Kernel: Convergence and Generalization in Neural Networks, NeurIPS 2018, arXiv:1806.07572v4, https://arxiv.org/abs/1806.07572v4; Section 4.1, PDF p. 5, Proposition 1 and Remark 2; Appendix A.1, PDF p. 11 and PDF p. 12, Proposition 1. Displays are unnumbered.

Notation and probability model

Let d,q≥1d,q\ge1d,q≥1 be the input and output dimensions, h≥0h\ge0h≥0 the number of hidden layers, L=h+1L=h+1L=h+1, β>0\beta>0β>0, and σ:R→R\sigma:\mathbb R\to\mathbb Rσ:R→R a Lipschitz activation with a nonnegative Lipschitz constant KKK. For widths n0=dn_0=dn0​=d, nL=qn_L=qnL​=q, and nℓ=wℓ−1+1n_\ell=w_{\ell-1}+1nℓ​=wℓ−1​+1 with wi∈Nw_i\in\mathbb Nwi​∈N, the probability space Ωw\Omega_wΩw​ is the finite real parameter space with every weight and bias coordinate independently N(0,1)\mathcal N(0,1)N(0,1). Its law is Pw\mathbb P_wPw​. The network has the recursion

zj(ℓ+1)(x)=1nℓ∑iWji(ℓ)ai(ℓ)(x)+βbj(ℓ),a(0)(x)=x,a(ℓ)(x)=σ(z(ℓ)(x)) (1≤ℓ≤h),z^{(\ell+1)}_j(x)=\frac{1}{\sqrt{n_\ell}}\sum_i W^{(\ell)}_{ji} a^{(\ell)}_i(x)+\beta b^{(\ell)}_j,\qquad a^{(0)}(x)=x,\quad a^{(\ell)}(x)=\sigma(z^{(\ell)}(x))\ (1\le\ell\le h),zj(ℓ+1)​(x)=nℓ​​1​i∑​Wji(ℓ)​ai(ℓ)​(x)+βbj(ℓ)​,a(0)(x)=x,a(ℓ)(x)=σ(z(ℓ)(x)) (1≤ℓ≤h),

with output fθ=z(L)f_\theta=z^{(L)}fθ​=z(L). The full kernel, including all weights and biases, is

Θkk′(L)(θ;x,y)=∑p∂θpfθ,k(x)∂θpfθ,k′(y).\Theta^{(L)}_{kk'}(\theta;x,y)=\sum_p \partial_{\theta_p}f_{\theta,k}(x)\partial_{\theta_p}f_{\theta,k'}(y).Θkk′(L)​(θ;x,y)=p∑​∂θp​​fθ,k​(x)∂θp​​fθ,k′​(y).

For a centered Gaussian pair (U,V)(U,V)(U,V) with covariance induced by Σ(ℓ)\Sigma^{(\ell)}Σ(ℓ) on (x,y)(x,y)(x,y), put

Σ(1)(x,y)=⟨x,y⟩/d+β2,Σ(ℓ+1)(x,y)=E[σ(U)σ(V)]+β2,\Sigma^{(1)}(x,y)=\langle x,y\rangle/d+\beta^2,\qquad \Sigma^{(\ell+1)}(x,y)=\mathbb E[\sigma(U)\sigma(V)]+\beta^2,Σ(1)(x,y)=⟨x,y⟩/d+β2,Σ(ℓ+1)(x,y)=E[σ(U)σ(V)]+β2, Σ˙(ℓ+1)(x,y)=E[σ′(U)σ′(V)],Θ∞(1)=Σ(1),Θ∞(ℓ+1)=Θ∞(ℓ)Σ˙(ℓ+1)+Σ(ℓ+1).\dot\Sigma^{(\ell+1)}(x,y)=\mathbb E[\sigma'(U)\sigma'(V)],\qquad \Theta_\infty^{(1)}=\Sigma^{(1)},\quad \Theta_\infty^{(\ell+1)}=\Theta_\infty^{(\ell)}\dot\Sigma^{(\ell+1)}+\Sigma^{(\ell+1)}.Σ˙(ℓ+1)(x,y)=E[σ′(U)σ′(V)],Θ∞(1)​=Σ(1),Θ∞(ℓ+1)​=Θ∞(ℓ)​Σ˙(ℓ+1)+Σ(ℓ+1).

All kernel products in the last expression are pointwise. Local index hhh in covarianceKernel and limitingNTK denotes paper depth h+1h+1h+1. The dataset X=(xi)i<NX=(x_i)_{i<N}X=(xi​)i<N​ is any fixed finite family; repetitions and N=0N=0N=0 are allowed. δkk′\delta_{kk'}δkk′​ is the Kronecker delta.

The limit takes n1n_1n1​ to infinity first and nhn_hnh​ last. More precisely, for any required error tolerance, the width condition is ∀eventuallywh−1⋯∀eventuallyw0\forall^{\mathrm{eventually}}w_{h-1}\cdots \forall^{\mathrm{eventually}}w_0∀eventuallywh−1​⋯∀eventuallyw0​; each inner threshold may depend on the fixed outer widths. For h=0h=0h=0 the filter is concentrated on the unique empty width vector, so the statements require the exact affine base case. This is not a simultaneous-width or whole-input-space uniform limit.

Formalization note: Gaussian measures are concrete Mathlib measures, including singular covariance. The covariance-validity milestone establishes their covariance interpretation; it is not a hypothesis of either convergence target. The activation assumption is only Lipschitz. Derivatives take Mathlib's zero value at points without derivatives, and proofs must justify the null exceptional set under positive Gaussian bias. Native convergence in distribution includes almost-everywhere measurability and weak convergence of probability laws. Primary source conventions: Jacot–Gabriel–Hongler, Section 2, PDF pp. 2–3; Section 4.1, PDF p. 5, Proposition 1, Theorem 1 and Remarks 2–3; Appendix A opening paragraphs, PDF p. 11, and Appendix A.1, PDF pp. 11–13. The relevant displays have no equation numbers.

Preamble
import Definitions.Def_JGH_NTK_Model
open MeasureTheory Filter
open scoped Topology NNReal
Formal statement
namespace JGH
theorem CovarianceValidity :
  ∀ (d : ℕ), 0 < d → ∀ (σ : ℝ → ℝ) (K : ℝ≥0), LipschitzWith K σ →
    ∀ (β : ℝ), 0 < β → ∀ (h N : ℕ) (X : Fin N → Input d),
      (Matrix.of (fun i j ↦ covarianceKernel d σ β h (X i) (X j))).PosSemidef ∧
        ∀ x : Input d, β ^ 2 ≤ covarianceKernel d σ β h x x := by sorry
end JGH
Source
Arthur Jacot, Franck Gabriel, Clément Hongler, Neural Tangent Kernel: Convergence and Generalization in Neural Networks, NeurIPS 2018, arXiv:1806.07572v4, https://arxiv.org/abs/1806.07572v4; Section 4.1, PDF p. 5, Proposition 1 and Remark 2; Appendix A.1, PDF p. 11 and PDF p. 12, Proposition 1. Displays are unnumbered.
Read-back

What the Lean code literally says, in plain math · gpt-6

For every positive integer ddd, every function σ:R→R\sigma:\mathbb R\to\mathbb Rσ:R→R, every nonnegative real number KKK such that ∣σ(s)−σ(t)∣≤K∣s−t∣|\sigma(s)-\sigma(t)|\le K|s-t|∣σ(s)−σ(t)∣≤K∣s−t∣ for all s,t∈Rs,t\in\mathbb Rs,t∈R, every real β>0\beta>0β>0, every pair of natural numbers h,N≥0h,N\ge0h,N≥0, and every indexed family X0,…,XN−1∈RdX_0,\ldots,X_{N-1}\in\mathbb R^dX0​,…,XN−1​∈Rd, the following two conclusions hold together. Define C0(x,y)=d−1∑a=0d−1xaya+β2C_0(x,y)=d^{-1}\sum_{a=0}^{d-1}x_a y_a+\beta^2C0​(x,y)=d−1∑a=0d−1​xa​ya​+β2 and, recursively, Cr+1(x,y)=∫R2σ(u)σ(v) dG(Sr(x,y))(u,v)+β2C_{r+1}(x,y)=\int_{\mathbb R^2}\sigma(u)\sigma(v)\,dG(S_r(x,y))(u,v)+\beta^2Cr+1​(x,y)=∫R2​σ(u)σ(v)dG(Sr​(x,y))(u,v)+β2, where Sr(x,y)=(Cr(x,x)Cr(x,y)Cr(y,x)Cr(y,y))S_r(x,y)=\begin{pmatrix}C_r(x,x)&C_r(x,y)\\C_r(y,x)&C_r(y,y)\end{pmatrix}Sr​(x,y)=(Cr​(x,x)Cr​(y,x)​Cr​(x,y)Cr​(y,y)​). Here, for a finite real square matrix SSS, G(S)G(S)G(S) is the law of S1/2ZS^{1/2}ZS1/2Z for a standard Gaussian vector ZZZ when SSS is symmetric positive semidefinite; if SSS is not positive semidefinite, the constructor instead gives the point mass at zero. Singular positive semidefinite matrices are allowed. These integrals use the total integral convention, with value zero for a nonintegrable integrand. The first conclusion is that the N×NN\times NN×N matrix Aij=Ch(Xi,Xj)A_{ij}=C_h(X_i,X_j)Aij​=Ch​(Xi​,Xj​) is symmetric positive semidefinite: Aij=AjiA_{ij}=A_{ji}Aij​=Aji​ for all i,ji,ji,j, and ∑i,j=0N−1aiAijaj≥0\sum_{i,j=0}^{N-1}a_iA_{ij}a_j\ge0∑i,j=0N−1​ai​Aij​aj​≥0 for every a∈RNa\in\mathbb R^Na∈RN. The second, separately quantified conclusion is β2≤Ch(x,x)\beta^2\le C_h(x,x)β2≤Ch​(x,x) for every x∈Rdx\in\mathbb R^dx∈Rd, including inputs not in the chosen family. The quantifiers allow h=0h=0h=0, N=0N=0N=0, K=0K=0K=0, zero inputs, and repeated inputs; for N=0N=0N=0 the matrix conclusion is vacuous but the diagonal lower bound still applies to every input. No differentiability assumption on σ\sigmaσ, no normalization or distinctness requirement on the inputs, and no positive lower bound on NNN or hhh is present; d=0d=0d=0 and β≤0\beta\le0β≤0 are excluded.

Human review
  • Endorsed by Shuze Chen · Sep 26, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Minghui · Sep 26, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me