Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4.1: uuu and uxxu_{xx}uxx​ of a wide network are Gaussian processes

Proved
PINNNeuralTangent.wide_network_gaussian_process

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

gaussian-processesgradient-flowinfinite-width-limitneural-tangent-kernelphysics-informed-neural-networks

Let σ\sigmaσ be smooth with bounded second derivative σ¨\ddot\sigmaσ¨. Let u(x,θ)u(x,\theta)u(x,θ) be the one-hidden-layer network of width NNN in NTK parameterization, with all parameters i.i.d. N(0,1)\mathcal N(0,1)N(0,1). Then, as N→∞N\to\inftyN→∞,

u(⋅,θ)→DGP(0,Σ(1)),uxx(⋅,θ)→DGP(0,Σxx(1)),Σxx(1)(x,x′)=Eu,v∼N(0,1)[u4σ¨(ux+v)σ¨(ux′+v)].u(\cdot,\theta)\xrightarrow{\mathcal D}\mathcal{GP}(0,\Sigma^{(1)}),\qquad u_{xx}(\cdot,\theta)\xrightarrow{\mathcal D}\mathcal{GP}(0,\Sigma^{(1)}_{xx}),\qquad \Sigma^{(1)}_{xx}(x,x')=E_{u,v\sim\mathcal N(0,1)}\big[u^4\ddot\sigma(ux+v)\ddot\sigma(ux'+v)\big].u(⋅,θ)D​GP(0,Σ(1)),uxx​(⋅,θ)D​GP(0,Σxx(1)​),Σxx(1)​(x,x′)=Eu,v∼N(0,1)​[u4σ¨(ux+v)σ¨(ux′+v)].

That is, for all points x1,…,xn∈Rx_1,\dots,x_n\in\mathbb Rx1​,…,xn​∈R, the law of (u(x1,θ),…,u(xn,θ))(u(x_1,\theta),\dots,u(x_n,\theta))(u(x1​,θ),…,u(xn​,θ)) converges weakly to N(0,[Σ(1)(xi,xj)]ij)\mathcal N(0,[\Sigma^{(1)}(x_i,x_j)]_{ij})N(0,[Σ(1)(xi​,xj​)]ij​), and the law of (uxx(x1,θ),…,uxx(xn,θ))(u_{xx}(x_1,\theta),\dots,u_{xx}(x_n,\theta))(uxx​(x1​,θ),…,uxx​(xn​,θ)) converges weakly to N(0,[Σxx(1)(xi,xj)]ij)\mathcal N(0,[\Sigma^{(1)}_{xx}(x_i,x_j)]_{ij})N(0,[Σxx(1)​(xi​,xj​)]ij​).

So at initialization, an infinitely wide PINN for the model problem has Gaussian-process outputs and residual operator outputs.

Formalization Note Convergence in distribution of the processes is read as weak convergence of the finite-dimensional distributions. Weak convergence is written as convergence of ∫F\int F∫F for every bounded continuous FFF. The Gaussian limit is identified by its characteristic function. The points range over all of R\mathbb RR.

Preamble
import Mathlib
import Definitions.Def_PINNNeuralTangent_Basic

open MeasureTheory ProbabilityTheory Filter Topology
open scoped ContDiff
Formal statement
namespace PINNNeuralTangent

theorem wide_network_gaussian_process (σ : ℝ → ℝ) (hσ : ContDiff ℝ ∞ σ)
    (hσ2 : ∃ C, ∀ z, |iteratedDeriv 2 σ z| ≤ C) {n : ℕ} (x : Fin n → ℝ) :
    (∃ γ : Measure (Fin n → ℝ), IsCenteredGaussian γ (Matrix.of fun i j => sigma1 σ (x i) (x j)) ∧
      ∀ F : BoundedContinuousFunction (Fin n → ℝ) ℝ,
        Tendsto (fun N : ℕ => ∫ θ, F (fun i => netU σ θ (x i)) ∂(initMeasure N)) atTop
          (𝓝 (∫ y, F y ∂γ))) ∧
    (∃ γ : Measure (Fin n → ℝ), IsCenteredGaussian γ (Matrix.of fun i j => sigmaXX σ (x i) (x j)) ∧
      ∀ F : BoundedContinuousFunction (Fin n → ℝ) ℝ,
        Tendsto (fun N : ℕ => ∫ θ, F (fun i => netUxx σ θ (x i)) ∂(initMeasure N)) atTop
          (𝓝 (∫ y, F y ∂γ))) := by sorry

end PINNNeuralTangent
Source
Wang, Yu and Perdikaris, When and why PINNs fail to train: A neural tangent kernel perspective, arXiv:2007.14527v1 (2020), Section 4, Theorem 4.1, eqs. (4.4)-(4.6), p. 5; Σ^(1) from eq. (2.4), p. 3; proof in Appendix B, p. 19
Read-back

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

The statement concerns a function σ:R→R\sigma:\mathbb{R}\to\mathbb{R}σ:R→R (the activation), a natural number nnn (which may be 000), and nnn real input points x1,…,xn∈Rx_1,\dots,x_n\in\mathbb{R}x1​,…,xn​∈R. It assumes only the following about σ\sigmaσ:

  • σ\sigmaσ is infinitely differentiable (C∞C^\inftyC∞) on R\mathbb{R}R;
  • its second derivative is bounded: there is a real CCC with ∣σ′′(z)∣≤C|\sigma''(z)|\le C∣σ′′(z)∣≤C for all z∈Rz\in\mathbb{R}z∈R.

Nothing is assumed about bounds on σ\sigmaσ, σ′\sigma'σ′, or higher derivatives.

The network. For each width N∈NN\in\mathbb{N}N∈N, the parameter vector θ\thetaθ has 3N+13N+13N+1 real coordinates Wk(0),Wk(1),bk(0)W^{(0)}_k, W^{(1)}_k, b^{(0)}_kWk(0)​,Wk(1)​,bk(0)​ for k=1,…,Nk=1,\dots,Nk=1,…,N, and a single b(1)b^{(1)}b(1). The network is

u(x,θ)=1N∑k=1NWk(1) σ ⁣(Wk(0)x+bk(0))+b(1).u(x,\theta)=\frac{1}{\sqrt N}\sum_{k=1}^{N} W^{(1)}_k\,\sigma\!\big(W^{(0)}_k x+b^{(0)}_k\big)+b^{(1)} .u(x,θ)=N​1​k=1∑N​Wk(1)​σ(Wk(0)​x+bk(0)​)+b(1).

For N=0N=0N=0 the sum is empty, so u=b(1)u=b^{(1)}u=b(1); the prefactor 1/01/\sqrt 01/0​ is set to 000 by convention. The quantity uxx(x,θ)u_{xx}(x,\theta)uxx​(x,θ) is the second derivative of y↦u(y,θ)y\mapsto u(y,\theta)y↦u(y,θ) evaluated at xxx. This is the ordinary second derivative because σ\sigmaσ is smooth; the formal derivative would be 000 at non-differentiable points.

The initialization law μN\mu_NμN​ is the product measure on R3N+1\mathbb{R}^{3N+1}R3N+1 under which all 3N+13N+13N+1 parameters are independent N(0,1)\mathcal{N}(0,1)N(0,1).

The kernels. Let w,bw,bw,b be independent standard Gaussians, and write E\mathbb{E}E for the integral against their joint law. These integrals are taken to be 000 if the integrand is not integrable. The two kernels are

Σ(1)(x,x′)=E[σ(wx+b) σ(wx′+b)]+1,Σxx(1)(x,x′)=E[w4 σ′′(wx+b) σ′′(wx′+b)].\Sigma^{(1)}(x,x')=\mathbb{E}\big[\sigma(wx+b)\,\sigma(wx'+b)\big]+1, \qquad \Sigma^{(1)}_{xx}(x,x')=\mathbb{E}\big[w^4\,\sigma''(wx+b)\,\sigma''(wx'+b)\big].Σ(1)(x,x′)=E[σ(wx+b)σ(wx′+b)]+1,Σxx(1)​(x,x′)=E[w4σ′′(wx+b)σ′′(wx′+b)].

Centred Gaussian. A measure γ\gammaγ on Rn\mathbb{R}^nRn is called a centred Gaussian with matrix MMM if it is a probability measure and, for every t∈Rnt\in\mathbb{R}^nt∈Rn,

∫Rne i∑itiyi dγ(y)=exp⁡ ⁣(−12∑i,jtitjMij).\int_{\mathbb{R}^n} e^{\,i\sum_{i} t_i y_i}\,d\gamma(y)=\exp\!\Big(-\tfrac12\sum_{i,j} t_i t_j M_{ij}\Big).∫Rn​ei∑i​ti​yi​dγ(y)=exp(−21​i,j∑​ti​tj​Mij​).

Such a γ\gammaγ can exist only if this right-hand side is a characteristic function. In that case γ=N(0,M)\gamma=\mathcal{N}(0,M)γ=N(0,M).

Conclusion. The theorem asserts the conjunction of two separate claims.

  1. There exists a measure γ\gammaγ on Rn\mathbb{R}^nRn that is a centred Gaussian with matrix (Σ(1)(xi,xj))i,j=1n\big(\Sigma^{(1)}(x_i,x_j)\big)_{i,j=1}^n(Σ(1)(xi​,xj​))i,j=1n​. Moreover, for every bounded continuous F:Rn→RF:\mathbb{R}^n\to\mathbb{R}F:Rn→R,
lim⁡N→∞∫F(u(x1,θ),…,u(xn,θ)) dμN(θ)=∫RnF dγ.\lim_{N\to\infty}\int F\big(u(x_1,\theta),\dots,u(x_n,\theta)\big)\,d\mu_N(\theta)=\int_{\mathbb{R}^n} F\,d\gamma .N→∞lim​∫F(u(x1​,θ),…,u(xn​,θ))dμN​(θ)=∫Rn​Fdγ.

That is, the vector of network outputs at the points xix_ixi​ converges in distribution to N(0,[Σ(1)(xi,xj)])\mathcal{N}\big(0,[\Sigma^{(1)}(x_i,x_j)]\big)N(0,[Σ(1)(xi​,xj​)]) as the width N→∞N\to\inftyN→∞.

  1. There exists a measure γ′\gamma'γ′ on Rn\mathbb{R}^nRn that is a centred Gaussian with matrix (Σxx(1)(xi,xj))i,j=1n\big(\Sigma^{(1)}_{xx}(x_i,x_j)\big)_{i,j=1}^n(Σxx(1)​(xi​,xj​))i,j=1n​. Moreover, for every bounded continuous F:Rn→RF:\mathbb{R}^n\to\mathbb{R}F:Rn→R,
lim⁡N→∞∫F(uxx(x1,θ),…,uxx(xn,θ)) dμN(θ)=∫RnF dγ′.\lim_{N\to\infty}\int F\big(u_{xx}(x_1,\theta),\dots,u_{xx}(x_n,\theta)\big)\,d\mu_N(\theta)=\int_{\mathbb{R}^n} F\,d\gamma' .N→∞lim​∫F(uxx​(x1​,θ),…,uxx​(xn​,θ))dμN​(θ)=∫Rn​Fdγ′.

That is, the vector of second xxx-derivatives at the points xix_ixi​ converges in distribution to N(0,[Σxx(1)(xi,xj)])\mathcal{N}\big(0,[\Sigma^{(1)}_{xx}(x_i,x_j)]\big)N(0,[Σxx(1)​(xi​,xj​)]).

Scope of the claims. The two convergences are stated separately, as marginal statements. Nothing is asserted about the joint law of (u(xi,θ))i\big(u(x_i,\theta)\big)_i(u(xi​,θ))i​ and (uxx(xj,θ))j\big(u_{xx}(x_j,\theta)\big)_j(uxx​(xj​,θ))j​. The same points x1,…,xnx_1,\dots,x_nx1​,…,xn​ are used in both parts.

The case n=0n=0n=0. Here R0\mathbb{R}^0R0 is a single point, both γ\gammaγ and γ′\gamma'γ′ are the unit point mass, and both parts hold trivially.

Human review
  • Endorsed by Shuze Chen · Nov 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 24, 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