Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4.4 (as proved, hypothesis (ii) with ∣⋅∣|\cdot|∣⋅∣ inside the sum): the NTK of a wide PINN stays constant during training

Proved
PINNNeuralTangent.ntk_constant_during_training

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

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

Take the model problem uxx=fu_{xx}=fuxx​=f on Ω=(a,b)\Omega=(a,b)Ω=(a,b), u=gu=gu=g on {a,b}\{a,b\}{a,b}, with boundary points xbi∈{a,b}x_b^i\in\{a,b\}xbi​∈{a,b} and collocation points xrj∈(a,b)x_r^j\in(a,b)xrj​∈(a,b). Let T>0T>0T>0, and for every width NNN let θN(t)\theta_N(t)θN​(t), t∈[0,T]t\in[0,T]t∈[0,T], be a gradient-flow trajectory of the PINN loss of the one-hidden-layer network. Assume:

  1. there is C>0C>0C>0, independent of NNN, with sup⁡t∈[0,T]∥θN(t)∥∞≤C\sup_{t\in[0,T]}\|\theta_N(t)\|_\infty\le Csupt∈[0,T]​∥θN​(t)∥∞​≤C;
  2. there is C>0C>0C>0, independent of NNN, with ∫0T∑i=1Nb∣u(xbi,θN(τ))−g(xbi)∣ dτ≤C\int_0^T\sum_{i=1}^{N_b}|u(x_b^i,\theta_N(\tau))-g(x_b^i)|\,d\tau\le C∫0T​∑i=1Nb​​∣u(xbi​,θN​(τ))−g(xbi​)∣dτ≤C and ∫0T∑j=1Nr∣uxx(xrj,θN(τ))−f(xrj)∣ dτ≤C\int_0^T\sum_{j=1}^{N_r}|u_{xx}(x_r^j,\theta_N(\tau))-f(x_r^j)|\,d\tau\le C∫0T​∑j=1Nr​​∣uxx​(xrj​,θN​(τ))−f(xrj​)∣dτ≤C;
  3. σ\sigmaσ is smooth and ∣σ(k)∣≤C|\sigma^{(k)}|\le C∣σ(k)∣≤C for k=0,1,2,3,4k=0,1,2,3,4k=0,1,2,3,4.

Then

lim⁡N→∞sup⁡t∈[0,T]∥K(t)−K(0)∥2=0,\lim_{N\to\infty}\sup_{t\in[0,T]}\|K(t)-K(0)\|_2=0,N→∞lim​t∈[0,T]sup​∥K(t)−K(0)∥2​=0,

where K(t)K(t)K(t) is the NTK of the PINN at θN(t)\theta_N(t)θN​(t) and ∥⋅∥2\|\cdot\|_2∥⋅∥2​ is the spectral norm.

This is the paper's key result: during training, a sufficiently wide PINN behaves like a kernel method with a fixed kernel.

Formalization Note This is the statement as proved. The printed hypothesis (ii) puts the absolute value outside the sums, ∫0T∣∑i(⋯ )∣ dτ≤C\int_0^T|\sum_i(\cdots)|\,d\tau\le C∫0T​∣∑i​(⋯)∣dτ≤C. With that hypothesis the theorem is false. In the odd, symmetric counterexample described under Lemma D.2, both sums vanish identically, (i) holds with C=1C=1C=1, and sup⁡t∥K(t)−K(0)∥2≈7.75\sup_t\|K(t)-K(0)\|_2\approx7.75supt​∥K(t)−K(0)∥2​≈7.75 for every NNN. The proof bounds ∣∑iri ∂u(xbi)/∂Wk∣|\sum_ir_i\,\partial u(x_b^i)/\partial W_k|∣∑i​ri​∂u(xbi​)/∂Wk​∣ by ∥∂u/∂W∥∞ ∣∑iri∣\|\partial u/\partial W\|_\infty\,|\sum_ir_i|∥∂u/∂W∥∞​∣∑i​ri​∣, which is valid only with the absolute value inside the sum. The paper does not state the initialization in this theorem. Under random N(0,1)\mathcal N(0,1)N(0,1) initialization, hypothesis (i) fails almost surely for large NNN, because max⁡k∣Wk(0)∣\max_k|W_k(0)|maxk​∣Wk​(0)∣ grows like 2log⁡N\sqrt{2\log N}2logN​. So the theorem is stated for deterministic families of trajectories, which is what the proof uses. The limit is written with explicit ε\varepsilonε and N0N_0N0​.

Preamble
import Mathlib
import Definitions.Def_PINNNeuralTangent_Basic

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

theorem ntk_constant_during_training (σ : ℝ → ℝ) (hσ : ActivationBounded4 σ)
    {Nb Nr : ℕ} (a b : ℝ) (xb : Fin Nb → ℝ) (xr : Fin Nr → ℝ) (hdata : IsModelData a b xb xr)
    (g f : ℝ → ℝ) (T : ℝ) (hT : 0 < T) (θ : (N : ℕ) → ℝ → PIdx N → ℝ)
    (hflow : ∀ N, IsGradFlow (modelLoss σ xb xr g f) (θ N) T)
    (h1 : ParamsUnifBounded T θ)
    (h2 : ResidualAbsSumBound σ xb xr g f T θ) :
    ∀ ε > 0, ∃ N₀ : ℕ, ∀ N ≥ N₀, ∀ t ∈ Set.Icc 0 T,
      specNorm (modelNTK σ xb xr (θ N t) - modelNTK σ xb xr (θ N 0)) ≤ ε := 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.4, eq. (4.8), p. 6; proof in Appendix D, pp. 23-28
Read-back

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

Setting. Let σ:R→R\sigma:\mathbb{R}\to\mathbb{R}σ:R→R be an activation function. Let Nb,Nr∈NN_b, N_r \in \mathbb{N}Nb​,Nr​∈N be the numbers of boundary and collocation points; either may be 000. Let a,b∈Ra, b \in \mathbb{R}a,b∈R, boundary points xb1,…,xbNb∈Rx_b^1,\dots,x_b^{N_b}\in\mathbb{R}xb1​,…,xbNb​​∈R, and collocation points xr1,…,xrNr∈Rx_r^1,\dots,x_r^{N_r}\in\mathbb{R}xr1​,…,xrNr​​∈R. Let g,f:R→Rg, f:\mathbb{R}\to\mathbb{R}g,f:R→R be arbitrary functions, with no regularity, measurability or integrability assumed. Let T∈RT\in\mathbb{R}T∈R.

For every width N∈NN \in \mathbb{N}N∈N, including N=0N = 0N=0, the parameter space is R3N+1\mathbb{R}^{3N+1}R3N+1, with coordinates

θ=(Wk(0), Wk(1), bk(0) (k=1,…,N), b(1)).\theta = \big(W^{(0)}_k,\ W^{(1)}_k,\ b^{(0)}_k\ (k=1,\dots,N),\ b^{(1)}\big).θ=(Wk(0)​, Wk(1)​, bk(0)​ (k=1,…,N), b(1)).

We are given, for each NNN, an arbitrary curve t↦θN(t)∈R3N+1t\mapsto \theta_N(t)\in\mathbb{R}^{3N+1}t↦θN​(t)∈R3N+1 defined for all t∈Rt\in\mathbb{R}t∈R. No initialization distribution or randomness is involved: θN(0)\theta_N(0)θN​(0) is an arbitrary deterministic vector.

The network and its derived quantities.

The network is

uN(x,θ)=1N∑k=1NWk(1) σ(Wk(0)x+bk(0))+b(1).u_N(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)}.uN​(x,θ)=N​1​k=1∑N​Wk(1)​σ(Wk(0)​x+bk(0)​)+b(1).

For N=0N=0N=0 the sum is empty and u0(x,θ)=b(1)u_0(x,\theta)=b^{(1)}u0​(x,θ)=b(1). The factor 1/01/\sqrt 01/0​ is taken to be 000.

The residual output is uxx(x,θ)u_{xx}(x,\theta)uxx​(x,θ), the second derivative in xxx of y↦uN(y,θ)y\mapsto u_N(y,\theta)y↦uN​(y,θ). Derivatives here follow the convention that a derivative which does not exist is set to 000.

The loss is

LN(θ)=12∑i=1Nb(uN(xbi,θ)−g(xbi))2+12∑j=1Nr(uxx(xrj,θ)−f(xrj))2.L_N(\theta) = \tfrac12\sum_{i=1}^{N_b}\big(u_N(x_b^i,\theta)-g(x_b^i)\big)^2 + \tfrac12\sum_{j=1}^{N_r}\big(u_{xx}(x_r^j,\theta)-f(x_r^j)\big)^2.LN​(θ)=21​i=1∑Nb​​(uN​(xbi​,θ)−g(xbi​))2+21​j=1∑Nr​​(uxx​(xrj​,θ)−f(xrj​))2.

For a function FFF of the parameters, ∂F/∂θp\partial F/\partial\theta_p∂F/∂θp​ denotes the ordinary one-variable derivative in the coordinate θp\theta_pθp​, with all other coordinates fixed. It is again set to 000 wherever it does not exist.

The NTK KN(θ)K_N(\theta)KN​(θ) is the (Nb+Nr)×(Nb+Nr)(N_b+N_r)\times(N_b+N_r)(Nb​+Nr​)×(Nb​+Nr​) block matrix

KN(θ)=(KuuKurKruKrr).K_N(\theta)=\begin{pmatrix}K_{uu} & K_{ur}\\ K_{ru} & K_{rr}\end{pmatrix}.KN​(θ)=(Kuu​Kru​​Kur​Krr​​).

Each entry is a sum over all 3N+13N+13N+1 parameters of products of partial derivatives, with Ui(θ)=uN(xbi,θ)U_i(\theta)=u_N(x_b^i,\theta)Ui​(θ)=uN​(xbi​,θ) and Rj(θ)=uxx(xrj,θ)R_j(\theta)=u_{xx}(x_r^j,\theta)Rj​(θ)=uxx​(xrj​,θ):

(Kuu)ij=∑p∂Ui∂θp∂Uj∂θp,(Kur)ij=∑p∂Ui∂θp∂Rj∂θp,(K_{uu})_{ij}=\sum_p \frac{\partial U_i}{\partial\theta_p}\frac{\partial U_j}{\partial\theta_p},\quad (K_{ur})_{ij}=\sum_p \frac{\partial U_i}{\partial\theta_p}\frac{\partial R_j}{\partial\theta_p},(Kuu​)ij​=p∑​∂θp​∂Ui​​∂θp​∂Uj​​,(Kur​)ij​=p∑​∂θp​∂Ui​​∂θp​∂Rj​​, (Kru)ij=∑p∂Ri∂θp∂Uj∂θp,(Krr)ij=∑p∂Ri∂θp∂Rj∂θp.(K_{ru})_{ij}=\sum_p \frac{\partial R_i}{\partial\theta_p}\frac{\partial U_j}{\partial\theta_p},\quad (K_{rr})_{ij}=\sum_p \frac{\partial R_i}{\partial\theta_p}\frac{\partial R_j}{\partial\theta_p}.(Kru​)ij​=p∑​∂θp​∂Ri​​∂θp​∂Uj​​,(Krr​)ij​=p∑​∂θp​∂Ri​​∂θp​∂Rj​​.

The spectral norm of a square matrix AAA is

∥A∥2=sup⁡{∥Av∥2:∥v∥2≤1},\|A\|_2=\sup\{\|Av\|_2 : \|v\|_2\le 1\},∥A∥2​=sup{∥Av∥2​:∥v∥2​≤1},

where ∥⋅∥2\|\cdot\|_2∥⋅∥2​ is the Euclidean norm. If Nb+Nr=0N_b+N_r=0Nb​+Nr​=0, the matrix is empty and its norm is 000.

Hypotheses.

  1. σ\sigmaσ is infinitely differentiable. Moreover, there is a constant C>0C>0C>0 such that ∣σ(k)(z)∣≤C|\sigma^{(k)}(z)|\le C∣σ(k)(z)∣≤C for all z∈Rz\in\mathbb{R}z∈R and k=0,1,2,3,4k=0,1,2,3,4k=0,1,2,3,4.

  2. The data satisfy all of the following:

    • a<ba<ba<b;
    • every boundary point xbix_b^ixbi​ equals aaa or bbb;
    • every collocation point lies in the open interval, xrj∈(a,b)x_r^j\in(a,b)xrj​∈(a,b).

    Nothing requires both endpoints to appear, or the points to be distinct.

  3. T>0T>0T>0.

  4. For every NNN, the curve θN\theta_NθN​ is a gradient flow of LNL_NLN​ on [0,T][0,T][0,T]. That is, at every t∈[0,T]t\in[0,T]t∈[0,T], θN\theta_NθN​ is differentiable relative to [0,T][0,T][0,T], which means one-sided at t=0t=0t=0 and t=Tt=Tt=T. Its derivative there is

θN′(t)=−(∂LN∂θp(θN(t)))p,\theta_N'(t) = -\Big(\frac{\partial L_N}{\partial\theta_p}(\theta_N(t))\Big)_p,θN′​(t)=−(∂θp​∂LN​​(θN​(t)))p​,

with the partial-derivative convention above. Nothing is assumed about θN\theta_NθN​ outside [0,T][0,T][0,T]. 5. There is a single C>0C>0C>0, independent of NNN, ttt and the parameter index ppp, such that every coordinate satisfies ∣θN(t)p∣≤C|\theta_N(t)_p|\le C∣θN​(t)p​∣≤C for all NNN and all t∈[0,T]t\in[0,T]t∈[0,T]. 6. There is a single C>0C>0C>0, independent of NNN, such that for every NNN both of the following hold:

∫0T∑i=1Nb∣uN(xbi,θN(τ))−g(xbi)∣ dτ≤C,\int_0^T\sum_{i=1}^{N_b}\big|u_N(x_b^i,\theta_N(\tau))-g(x_b^i)\big|\,d\tau\le C,∫0T​i=1∑Nb​​​uN​(xbi​,θN​(τ))−g(xbi​)​dτ≤C, ∫0T∑j=1Nr∣uxx(xrj,θN(τ))−f(xrj)∣ dτ≤C.\int_0^T\sum_{j=1}^{N_r}\big|u_{xx}(x_r^j,\theta_N(\tau))-f(x_r^j)\big|\,d\tau\le C.∫0T​j=1∑Nr​​​uxx​(xrj​,θN​(τ))−f(xrj​)​dτ≤C.

The absolute values are taken termwise, inside the sums. By the convention in use, an integral whose integrand is not integrable is assigned the value 000, and then the corresponding inequality holds automatically.

Conclusion. For every ε>0\varepsilon>0ε>0 there is N0∈NN_0\in\mathbb{N}N0​∈N such that for every width N≥N0N\ge N_0N≥N0​ and every time t∈[0,T]t\in[0,T]t∈[0,T],

∥KN(θN(t))−KN(θN(0))∥2≤ε.\big\|K_N(\theta_N(t)) - K_N(\theta_N(0))\big\|_2\le\varepsilon.​KN​(θN​(t))−KN​(θN​(0))​2​≤ε.

In words, the NTK along the training trajectory stays uniformly in time within ε\varepsilonε of its value at time 000, in spectral norm, once the width is large enough.

The statement asserts nothing about:

  • the value of KN(θN(0))K_N(\theta_N(0))KN​(θN​(0)) itself;
  • convergence of the kernel to any limiting kernel;
  • any probabilistic initialization.

The quantities ggg and fff enter only through the loss and hypothesis 6.

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