Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma D.2 (as proved, hypothesis (ii) with ∣⋅∣|\cdot|∣⋅∣ inside the sum): the parameters change little

Proved
PINNNeuralTangent.params_move_little

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

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

Assume the setting of Theorem 4.4, with hypothesis (ii) in the form the proof uses: ∫0T∑i∣u(xbi,θN(τ))−g(xbi)∣ dτ≤C\int_0^T\sum_i|u(x_b^i,\theta_N(\tau))-g(x_b^i)|\,d\tau\le C∫0T​∑i​∣u(xbi​,θN​(τ))−g(xbi​)∣dτ≤C and ∫0T∑j∣uxx(xrj,θN(τ))−f(xrj)∣ dτ≤C\int_0^T\sum_j|u_{xx}(x_r^j,\theta_N(\tau))-f(x_r^j)|\,d\tau\le C∫0T​∑j​∣uxx​(xrj​,θN​(τ))−f(xrj​)∣dτ≤C for all NNN. Then

lim⁡N→∞sup⁡t∈[0,T]∥1N(W(l)(t)−W(l)(0))∥2=0 (l=0,1),lim⁡N→∞sup⁡t∈[0,T]∥1N(b(0)(t)−b(0)(0))∥2=0.\lim_{N\to\infty}\sup_{t\in[0,T]}\Big\|\frac1{\sqrt N}\big(W^{(l)}(t)-W^{(l)}(0)\big)\Big\|_2=0\ (l=0,1),\qquad \lim_{N\to\infty}\sup_{t\in[0,T]}\Big\|\frac1{\sqrt N}\big(b^{(0)}(t)-b^{(0)}(0)\big)\Big\|_2=0.N→∞lim​t∈[0,T]sup​​N​1​(W(l)(t)−W(l)(0))​2​=0 (l=0,1),N→∞lim​t∈[0,T]sup​​N​1​(b(0)(t)−b(0)(0))​2​=0.

Formalization Note This is the statement as proved. With (ii) as printed, with the absolute value outside the sums, the lemma is false. Take σ=tanh⁡\sigma=\tanhσ=tanh, Ω=(−1,1)\Omega=(-1,1)Ω=(−1,1), xb=±1x_b=\pm1xb​=±1, xr=±12x_r=\pm\frac12xr​=±21​, g=f=0g=f=0g=f=0, and start from Wk(0)=Wk(1)=1W^{(0)}_k=W^{(1)}_k=1Wk(0)​=Wk(1)​=1, b=0b=0b=0. By oddness the residual sums vanish identically. Every neuron follows the same NNN-independent ODE, so ∥(W(0)(t)−W(0)(0))/N∥2\|(W^{(0)}(t)-W^{(0)}(0))/\sqrt N\|_2∥(W(0)(t)−W(0)(0))/N​∥2​ does not depend on NNN. The step of the proof that fails bounds ∣∑iri ∂u(xbi)/∂Wk∣|\sum_i r_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​∣. 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 params_move_little (σ : ℝ → ℝ) (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,
      l2norm (fun k : Fin N => (θ N t (idxW0 k) - θ N 0 (idxW0 k)) / Real.sqrt N) ≤ ε ∧
      l2norm (fun k : Fin N => (θ N t (idxW1 k) - θ N 0 (idxW1 k)) / Real.sqrt N) ≤ ε ∧
      l2norm (fun k : Fin N => (θ N t (idxB0 k) - θ N 0 (idxB0 k)) / Real.sqrt N) ≤ ε := 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), Appendix D, Lemma D.2, eqs. (D.1)-(D.2), pp. 24-25 (under the setting of Theorem 4.4, p. 6)
Read-back

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

Setting. Fix the following data:

  • An activation function σ:R→R\sigma:\mathbb{R}\to\mathbb{R}σ:R→R. It is assumed infinitely differentiable, and there is a constant Cσ>0C_\sigma>0Cσ​>0 such that ∣σ(k)(z)∣≤Cσ|\sigma^{(k)}(z)|\le C_\sigma∣σ(k)(z)∣≤Cσ​ for all z∈Rz\in\mathbb{R}z∈R and every k∈{0,1,2,3,4}k\in\{0,1,2,3,4\}k∈{0,1,2,3,4}. Here σ(0)=σ\sigma^{(0)}=\sigmaσ(0)=σ.

  • Natural numbers Nb,NrN_b, N_rNb​,Nr​. Either may be 000.

  • Reals a,ba,ba,b, 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. These satisfy:

    • a<ba<ba<b;
    • each xbix_b^ixbi​ equals aaa or bbb;
    • each xrjx_r^jxrj​ lies in the open interval (a,b)(a,b)(a,b).

    Repetitions among the points are allowed.

  • Arbitrary functions g,f:R→Rg,f:\mathbb{R}\to\mathbb{R}g,f:R→R. No regularity is assumed.

  • A time horizon T>0T>0T>0.

Parameters and network. For every width N∈NN\in\mathbb{N}N∈N, including N=0N=0N=0, a parameter vector θ\thetaθ consists of four groups:

  • first-layer weights Wk(0)W^{(0)}_kWk(0)​, for k=1,…,Nk=1,\dots,Nk=1,…,N;
  • output weights Wk(1)W^{(1)}_kWk(1)​, for k=1,…,Nk=1,\dots,Nk=1,…,N;
  • hidden biases bk(0)b^{(0)}_kbk(0)​, for k=1,…,Nk=1,\dots,Nk=1,…,N;
  • a single output bias b(1)b^{(1)}b(1).

So there are 3N+13N+13N+1 real numbers in total. 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).

When N=0N=0N=0 the sum is empty, so u=b(1)u=b^{(1)}u=b(1); the factor 1/01/\sqrt 01/0​ is taken to be 000. Write uxx(x,θ)u_{xx}(x,\theta)uxx​(x,θ) for the second derivative of x↦u(x,θ)x\mapsto u(x,\theta)x↦u(x,θ).

Loss. The loss is

LN(θ)=12∑i=1Nb(u(xbi,θ)−g(xbi))2+12∑j=1Nr(uxx(xrj,θ)−f(xrj))2.L_N(\theta)=\tfrac12\sum_{i=1}^{N_b}\big(u(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​​(u(xbi​,θ)−g(xbi​))2+21​j=1∑Nr​​(uxx​(xrj​,θ)−f(xrj​))2.

Here ∂LN/∂θp\partial L_N/\partial\theta_p∂LN​/∂θp​ means the ordinary derivative of LNL_NLN​ in the single coordinate θp\theta_pθp​, with the others frozen. Any derivative that fails to exist is taken to be 000.

Trajectories. We are given, for each N∈NN\in\mathbb{N}N∈N, a curve t↦θN(t)t\mapsto\theta_N(t)t↦θN​(t) in the width-NNN parameter space. The initial values θN(0)\theta_N(0)θN​(0) are arbitrary. No random initialization is assumed, and no relation between different NNN is imposed beyond the hypotheses below.

Hypotheses.

  1. Gradient flow. For every NNN and every t∈[0,T]t\in[0,T]t∈[0,T], θN\theta_NθN​ is differentiable at ttt relative to [0,T][0,T][0,T], with one-sided derivatives at the endpoints, and
θ˙N(t)p=−∂LN∂θp(θN(t))for every parameter p.\dot\theta_N(t)_p=-\frac{\partial L_N}{\partial\theta_p}(\theta_N(t))\quad\text{for every parameter } p.θ˙N​(t)p​=−∂θp​∂LN​​(θN​(t))for every parameter p.
  1. Uniform parameter bound. There is C1>0C_1>0C1​>0 such that ∣θN(t)p∣≤C1|\theta_N(t)_p|\le C_1∣θN​(t)p​∣≤C1​ for all NNN, all t∈[0,T]t\in[0,T]t∈[0,T] and all parameters ppp, including b(1)b^{(1)}b(1).
  2. Uniform residual bound. There is C2>0C_2>0C2​>0 such that for all NNN:
∫0T∑i=1Nb∣u(xbi,θN(τ))−g(xbi)∣ dτ≤C2,\int_0^T\sum_{i=1}^{N_b}\big|u(x_b^i,\theta_N(\tau))-g(x_b^i)\big|\,d\tau\le C_2,∫0T​i=1∑Nb​​​u(xbi​,θN​(τ))−g(xbi​)​dτ≤C2​, ∫0T∑j=1Nr∣uxx(xrj,θN(τ))−f(xrj)∣ dτ≤C2.\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_2 .∫0T​j=1∑Nr​​​uxx​(xrj​,θN​(τ))−f(xrj​)​dτ≤C2​.

The absolute values sit inside the sums. A non-integrable integrand would by convention give integral 000.

Conclusion. For every ε>0\varepsilon>0ε>0 there is N0∈NN_0\in\mathbb{N}N0​∈N such that for every N≥N0N\ge N_0N≥N0​ and every t∈[0,T]t\in[0,T]t∈[0,T], the following three inequalities hold simultaneously:

1N(∑k=1N(Wk(0)(t)−Wk(0)(0))2)1/2≤ε,\frac{1}{\sqrt N}\Big(\sum_{k=1}^N\big(W^{(0)}_k(t)-W^{(0)}_k(0)\big)^2\Big)^{1/2}\le\varepsilon,N​1​(k=1∑N​(Wk(0)​(t)−Wk(0)​(0))2)1/2≤ε, 1N(∑k=1N(Wk(1)(t)−Wk(1)(0))2)1/2≤ε,\frac{1}{\sqrt N}\Big(\sum_{k=1}^N\big(W^{(1)}_k(t)-W^{(1)}_k(0)\big)^2\Big)^{1/2}\le\varepsilon,N​1​(k=1∑N​(Wk(1)​(t)−Wk(1)​(0))2)1/2≤ε, 1N(∑k=1N(bk(0)(t)−bk(0)(0))2)1/2≤ε.\frac{1}{\sqrt N}\Big(\sum_{k=1}^N\big(b^{(0)}_k(t)-b^{(0)}_k(0)\big)^2\Big)^{1/2}\le\varepsilon .N​1​(k=1∑N​(bk(0)​(t)−bk(0)​(0))2)1/2≤ε.

Here Wk(0)(t)W^{(0)}_k(t)Wk(0)​(t) denotes the Wk(0)W^{(0)}_kWk(0)​-component of θN(t)\theta_N(t)θN​(t), and similarly for the others. Each left side is the Euclidean norm of the displacement vector, with every entry divided by N\sqrt NN​. When N=0N=0N=0 these are norms of empty vectors and equal 000.

The conclusion says nothing about the output bias b(1)b^{(1)}b(1). It also does not refer to the network outputs or to the kernel.

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