Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2.1: bounded-weight networks converging in C0C^0C0 converge in CkC^kCk

Proved
PINNConvergence.nn_C0_convergence_implies_Ck

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

consistencyelliptic-pdesholder-regularizationmaximum-principlephysics-informed-neural-networks

Let U⊂RdU\subset\mathbb{R}^dU⊂Rd be a bounded domain and let Hn⃗NN\mathcal H^{NN}_{\vec n}HnNN​ be the class of scalar networks with a fixed architecture n⃗=(n0,…,nL)\vec n=(n_0,\dots,n_L)n=(n0​,…,nL​) and activation σ∈Ck′(R)\sigma\in C^{k'}(\mathbb{R})σ∈Ck′(R), where k<k′k<k'k<k′. Suppose that for each s∈{0,…,k}s\in\{0,\dots,k\}s∈{0,…,k} the derivative σ(s)\sigma^{(s)}σ(s) is bounded and Lipschitz continuous. Let u∈Ck(U‾)u\in C^k(\overline U)u∈Ck(U), and let hj∈Hn⃗NNh_j\in\mathcal H^{NN}_{\vec n}hj​∈HnNN​ be networks whose weights and biases are uniformly bounded in jjj, with hj→uh_j\to uhj​→u in C0(U‾)C^0(\overline U)C0(U). Then

hj→uin Ck(U‾),h_j\to u\quad\text{in } C^k(\overline U),hj​→uin Ck(U),

that is, sup⁡U∣Dshj−Dsu∣→0\sup_U|D^{\mathbf s}h_j-D^{\mathbf s}u|\to0supU​∣Dshj​−Dsu∣→0 for every multi-index with ∣s∣≤k|\mathbf s|\le k∣s∣≤k.

For networks of fixed size with bounded parameters, uniform convergence therefore upgrades to convergence of all derivatives that the activation controls.

Formalization Note Derivatives of order jjj are compared through the jjj-th Fréchet derivative within UUU with its operator norm. This gives the same convergence as the sup over multi-indices.

Preamble
import Mathlib
import Definitions.Def_PINNConvergence_Basic

open MeasureTheory Filter Topology
Formal statement
namespace PINNConvergence

theorem nn_C0_convergence_implies_Ck {d : ℕ} (U : Set (Rd d)) (hU : IsBoundedDomain U)
    (σ : ℝ → ℝ) (k k' : ℕ) (hkk' : k < k') (hσ : ContDiff ℝ k' σ)
    (hσb : ∀ s ≤ k, (∃ M : ℝ, ∀ t, |iteratedDeriv s σ t| ≤ M) ∧
      ∃ K : NNReal, LipschitzWith K (iteratedDeriv s σ))
    (L : ℕ) (n : ℕ → ℕ) (hn : IsArch L n) (u : Rd d → ℝ) (hu : IsCkClosure k U u)
    (W : ℕ → ∀ l, Matrix (Fin (n l)) (Fin (inWidth d n l)) ℝ) (b : ℕ → ∀ l, Fin (n l) → ℝ)
    (hbdd : ∃ M : ℝ, ∀ j, ParamsBounded L (W j) (b j) M)
    (hconv : TendstoUniformlyOn (fun j => nnEval σ d L n (W j) (b j)) u atTop (closure U)) :
    TendstoCk k U (fun j => nnEval σ d L n (W j) (b j)) u := by sorry

end PINNConvergence
Source
Shin, Darbon and Karniadakis, On the convergence of physics informed neural networks for linear second-order elliptic and parabolic type PDEs, arXiv:2004.01806v2 (2020), Section 2.2, Lemma 2.1, p. 8; proof in Appendix A (Claim A.1), pp. 19-21
Read-back

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

Setting. Fix a natural number ddd. Write Rd\mathbb{R}^dRd for ddd-dimensional Euclidean space with the Euclidean norm. Let U⊆RdU \subseteq \mathbb{R}^dU⊆Rd be a bounded domain, meaning UUU is:

  • bounded,
  • open, and
  • connected, which in particular requires UUU to be nonempty.

When d=0d = 0d=0, the space R0\mathbb{R}^0R0 is a single point, so UUU is that point.

Activation. Let σ:R→R\sigma : \mathbb{R} \to \mathbb{R}σ:R→R and let k<k′k < k'k<k′ be natural numbers.

  • σ\sigmaσ is k′k'k′ times continuously differentiable on all of R\mathbb{R}R. Since k′≥1k' \ge 1k′≥1, σ\sigmaσ is at least C1C^1C1.

  • For every order sss with 0≤s≤k0 \le s \le k0≤s≤k, the ordinary sss-th derivative σ(s)\sigma^{(s)}σ(s) satisfies both of the following:

    • it is bounded on R\mathbb{R}R: there is MsM_sMs​ with ∣σ(s)(t)∣≤Ms|\sigma^{(s)}(t)| \le M_s∣σ(s)(t)∣≤Ms​ for all t∈Rt \in \mathbb{R}t∈R;
    • it is globally Lipschitz on R\mathbb{R}R with some constant Ks≥0K_s \ge 0Ks​≥0.

    For s=0s = 0s=0 this says σ\sigmaσ itself is bounded and Lipschitz.

Architecture. Let L∈NL \in \mathbb{N}L∈N and widths n0,n1,n2,…n_0, n_1, n_2, \dotsn0​,n1​,n2​,… satisfy:

  • L≥1L \ge 1L≥1;
  • nl≥1n_l \ge 1nl​≥1 for all l<Ll < Ll<L;
  • nL−1=1n_{L-1} = 1nL−1​=1.

Networks. For each index j∈Nj \in \mathbb{N}j∈N there are weight matrices WjlW_j^{l}Wjl​ of size nl×mln_l \times m_lnl​×ml​ and bias vectors bjl∈Rnlb_j^{l} \in \mathbb{R}^{n_l}bjl​∈Rnl​, one for every layer l∈Nl \in \mathbb{N}l∈N. Here m0=dm_0 = dm0​=d and ml+1=nlm_{l+1} = n_lml+1​=nl​. The layer outputs are defined recursively:

zj0(x)=Wj0x+bj0,zjl+1(x)=Wjl+1 σ(zjl(x))+bjl+1,z_j^{0}(x) = W_j^{0} x + b_j^{0}, \qquad z_j^{l+1}(x) = W_j^{l+1}\,\sigma\big(z_j^{l}(x)\big) + b_j^{l+1},zj0​(x)=Wj0​x+bj0​,zjl+1​(x)=Wjl+1​σ(zjl​(x))+bjl+1​,

where σ\sigmaσ is applied entrywise. The jjj-th network is the sum of the entries of the last layer's output:

hj(x)=∑i=1nL−1(zjL−1(x))i,h_j(x) = \sum_{i=1}^{n_{L-1}} \big(z_j^{L-1}(x)\big)_i,hj​(x)=i=1∑nL−1​​(zjL−1​(x))i​,

which is a single entry because nL−1=1n_{L-1} = 1nL−1​=1. In total there are LLL affine maps, with σ\sigmaσ applied between consecutive ones and no activation after the last.

Uniform parameter bound. There is a single real number MMM, independent of jjj, such that for every jjj, every layer l<Ll < Ll<L, and every entry:

∣(Wjl)pq∣≤Mand∣(bjl)p∣≤M.|(W_j^{l})_{pq}| \le M \quad \text{and} \quad |(b_j^{l})_p| \le M.∣(Wjl​)pq​∣≤Mand∣(bjl​)p​∣≤M.

Since n0≥1n_0 \ge 1n0​≥1, the biases are nonempty, so in effect M≥0M \ge 0M≥0. Parameters of layers l≥Ll \ge Ll≥L are unconstrained and do not affect hjh_jhj​.

Target function. Let u:Rd→Ru : \mathbb{R}^d \to \mathbb{R}u:Rd→R satisfy:

  • uuu is kkk times continuously differentiable on UUU;
  • for each order 0≤i≤k0 \le i \le k0≤i≤k, there is a function FiF_iFi​ from Rd\mathbb{R}^dRd into the space of continuous iii-linear maps (Rd)i→R(\mathbb{R}^d)^i \to \mathbb{R}(Rd)i→R such that:
    • FiF_iFi​ is continuous on the closure U‾\overline{U}U, and
    • FiF_iFi​ agrees with the iii-th derivative DiuD^i uDiu (taken within UUU) at every point of UUU.

That is, each derivative of order at most kkk extends continuously to U‾\overline{U}U. Values of uuu outside U‾\overline{U}U play no role.

Convergence hypothesis. The networks converge to uuu uniformly on the closure:

sup⁡x∈U‾∣hj(x)−u(x)∣→0as j→∞.\sup_{x \in \overline{U}} |h_j(x) - u(x)| \to 0 \quad \text{as } j \to \infty.x∈Usup​∣hj​(x)−u(x)∣→0as j→∞.

Conclusion. For every order iii with 0≤i≤k0 \le i \le k0≤i≤k, the iii-th derivatives (taken within UUU) converge uniformly on UUU:

sup⁡x∈U∥Dihj(x)−Diu(x)∥→0as j→∞.\sup_{x \in U} \big\| D^i h_j(x) - D^i u(x) \big\| \to 0 \quad \text{as } j \to \infty.x∈Usup​​Dihj​(x)−Diu(x)​→0as j→∞.

Here ∥⋅∥\|\cdot\|∥⋅∥ is the operator norm on iii-linear maps (Rd)i→R(\mathbb{R}^d)^i \to \mathbb{R}(Rd)i→R. Because UUU is open, these derivatives within UUU coincide at points of UUU with the ordinary iii-th Fréchet derivatives.

Degenerate cases.

  • For k=0k = 0k=0, the conclusion is only uniform convergence hj→uh_j \to uhj​→u on UUU, which is contained in the hypothesis on U‾\overline{U}U.
  • For d=0d = 0d=0, every derivative of order i≥1i \ge 1i≥1 is the zero map on the zero space, so the conclusion again reduces to convergence at the single point.
Human review
  • Endorsed by Shuze Chen · Nov 23, 2026

    Confirmed by the moderator at approval.

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