Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (4.18) (as proved): stability estimate for the viscous scalar conservation law

Proved
PINNGeneralization.vscl_energy_estimate

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

energy-estimatesgeneralization-errorpde-stabilityphysics-informed-neural-networksquadrature

Let ν>0\nu>0ν>0, T>0T>0T>0, k≥2k\ge2k≥2, f,uˉ∈Ck(R)f,\bar u\in C^k(\mathbb R)f,uˉ∈Ck(R), and let u∈Ck([0,1]×[0,T])u\in C^k([0,1]\times[0,T])u∈Ck([0,1]×[0,T]) be a classical solution of

ut+f(u)x=νuxx in (0,1)×(0,T),u(x,0)=uˉ(x),u(0,t)=u(1,t)=0.u_t+f(u)_x=\nu u_{xx}\ \text{in }(0,1)\times(0,T),\qquad u(x,0)=\bar u(x),\qquad u(0,t)=u(1,t)=0.ut​+f(u)x​=νuxx​ in (0,1)×(0,T),u(x,0)=uˉ(x),u(0,t)=u(1,t)=0.

Let u∗u^*u∗ be a neural network of (x,t)(x,t)(x,t) with a C∞C^\inftyC∞ activation, with residuals Rint,Rsb,0=u∗(0,⋅),Rsb,1=u∗(1,⋅),Rtb\mathcal R_{int},\mathcal R_{sb,0}=u^*(0,\cdot),\mathcal R_{sb,1}=u^*(1,\cdot),\mathcal R_{tb}Rint​,Rsb,0​=u∗(0,⋅),Rsb,1​=u∗(1,⋅),Rtb​. Let C=1+2Cf,u,u∗\mathbf C=1+2C_{f,u,u^*}C=1+2Cf,u,u∗​. Then

EG2≤(T+CT2eCT) C,\mathcal E_G^2\le\big(T+\mathbf CT^2e^{\mathbf CT}\big)\,\mathcal C,EG2​≤(T+CT2eCT)C,

where

C=∫01Rtb2 dx+∫0T ⁣ ⁣∫01Rint2 dx dt+2Cˉb[∫0TRsb,02 dt+∫0TRsb,12 dt]+2νCbT1/2[(∫0TRsb,02)1/2+(∫0TRsb,12)1/2],\mathcal C=\int_0^1\mathcal R_{tb}^2\,dx+\int_0^T\!\!\int_0^1\mathcal R_{int}^2\,dx\,dt+2\bar{\mathbf C}_b\Big[\int_0^T\mathcal R_{sb,0}^2\,dt+\int_0^T\mathcal R_{sb,1}^2\,dt\Big]+2\nu\mathbf C_bT^{1/2}\Big[\Big(\int_0^T\mathcal R_{sb,0}^2\Big)^{1/2}+\Big(\int_0^T\mathcal R_{sb,1}^2\Big)^{1/2}\Big],C=∫01​Rtb2​dx+∫0T​∫01​Rint2​dxdt+2Cˉb​[∫0T​Rsb,02​dt+∫0T​Rsb,12​dt]+2νCb​T1/2[(∫0T​Rsb,02​)1/2+(∫0T​Rsb,12​)1/2],

with Cf,u,u∗=max⁡∣s∣≤M∣f′′(s)∣ ∥ux∥∞C_{f,u,u^*}=\max_{|s|\le M}|f''(s)|\,\|u_x\|_\inftyCf,u,u∗​=max∣s∣≤M​∣f′′(s)∣∥ux​∥∞​, M=max⁡(∥u∥∞,∥u∗∥∞)M=\max(\|u\|_\infty,\|u^*\|_\infty)M=max(∥u∥∞​,∥u∗∥∞​), Cb=∥ux∥∞+∥ux∗∥∞\mathbf C_b=\|u_x\|_\infty+\|u^*_x\|_\inftyCb​=∥ux​∥∞​+∥ux∗​∥∞​ and Cˉb=max⁡∣s∣≤∥u∗∥∞∣f′(s)∣\bar{\mathbf C}_b=\max_{|s|\le\|u^*\|_\infty}|f'(s)|Cˉb​=max∣s∣≤∥u∗∥∞​​∣f′(s)∣, all sup norms over [0,1]×[0,T][0,1]\times[0,T][0,1]×[0,T].

This is the stability step of Theorem 4.1, obtained from the relative-entropy identity (4.13) and Grönwall's inequality.

Formalization Note The paper writes Cf,u,u∗=∣f′′(max⁡{∥u∥∞,∥u∗∥∞})∣ ∥ux∥∞C_{f,u,u^*}=|f''(\max\{\|u\|_\infty,\|u^*\|_\infty\})|\,\|u_x\|_\inftyCf,u,u∗​=∣f′′(max{∥u∥∞​,∥u∗∥∞​})∣∥ux​∥∞​. Its proof, through the Taylor remainder (4.14), needs f′′f''f′′ at intermediate points, so the maximum of ∣f′′∣|f''|∣f′′∣ over [−M,M][-M,M][−M,M] is used. The paper leaves Cˉb\bar{\mathbf C}_bCˉb​ as an unspecified function of ∥f′∥∞\|f'\|_\infty∥f′∥∞​ and ∥u∗∥C0\|u^*\|_{C^0}∥u∗∥C0​. The value used is the one its boundary computation produces. The hypothesis u∈Ck((0,T)×(0,1))u\in C^k((0,T)\times(0,1))u∈Ck((0,T)×(0,1)) is read as u∈Ck([0,1]×[0,T])u\in C^k([0,1]\times[0,T])u∈Ck([0,1]×[0,T]), as the boundary values and the constants require. It is written as the restriction of a CkC^kCk function on R2\mathbb R^2R2.

Preamble
import Mathlib
import Definitions.Def_PINNGeneralization_Basic

open MeasureTheory
Formal statement
namespace PINNGeneralization

theorem vscl_energy_estimate {k : ℕ} (hk : 2 ≤ k) (T ν : ℝ) (hT : 0 < T) (hν : 0 < ν)
    (f : ℝ → ℝ) (hf : ContDiff ℝ k f) (ubar : ℝ → ℝ) (hubar : ContDiff ℝ k ubar)
    (u : ℝ → ℝ → ℝ) (hu : ContDiff ℝ k (fun q : ℝ × ℝ => u q.1 q.2))
    (hsol : IsVSCLSolution T ν f ubar u)
    (σ : ℝ → ℝ) (hσ : ContDiff ℝ (⊤ : ℕ∞) σ) (ustar : ℝ → ℝ → ℝ) (hustar : IsPINN1D σ ustar) :
    genErrorL2 (Set.Ioo 0 1) T u ustar ^ 2 ≤
      (T + (1 + 2 * vsclCf T f u ustar) * T ^ 2 * Real.exp ((1 + 2 * vsclCf T f u ustar) * T)) *
        ((∫ x in Set.Ioo 0 1, vsclResTb ubar ustar x ^ 2) +
          (∫ t in Set.Ioo 0 T, ∫ x in Set.Ioo 0 1, vsclResInt ν f ustar x t ^ 2) +
          2 * vsclCbarb T f ustar *
            ((∫ t in Set.Ioo 0 T, ustar 0 t ^ 2) + (∫ t in Set.Ioo 0 T, ustar 1 t ^ 2)) +
          2 * ν * vsclCb T u ustar * Real.sqrt T *
            (Real.sqrt (∫ t in Set.Ioo 0 T, ustar 0 t ^ 2) +
              Real.sqrt (∫ t in Set.Ioo 0 T, ustar 1 t ^ 2))) := by sorry

end PINNGeneralization
Source
Mishra and Molinaro, Estimates on the generalization error of Physics Informed Neural Networks (PINNs) for approximating PDEs, arXiv:2006.16144v3 (2023), Section 4.3, proof of Theorem 4.1, eqs. (4.16)-(4.18), pp. 22-23
Read-back

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

Fix a natural number kkk with k≥2k \ge 2k≥2, and real numbers T>0T > 0T>0 (final time) and ν>0\nu > 0ν>0 (viscosity). Let the following be given:

  • a flux f:R→Rf : \mathbb{R} \to \mathbb{R}f:R→R that is kkk times continuously differentiable on all of R\mathbb{R}R;
  • an initial datum uˉ:R→R\bar u : \mathbb{R} \to \mathbb{R}uˉ:R→R that is CkC^kCk on all of R\mathbb{R}R;
  • a function u:R×R→Ru : \mathbb{R} \times \mathbb{R} \to \mathbb{R}u:R×R→R, (x,t)↦u(x,t)(x,t) \mapsto u(x,t)(x,t)↦u(x,t), that is jointly CkC^kCk on the whole plane R2\mathbb{R}^2R2 (not just on the rectangle).

Assume uuu is a classical solution of the viscous scalar conservation law in the following pointwise sense.

  • PDE. For every x∈(0,1)x \in (0,1)x∈(0,1) and t∈(0,T)t \in (0,T)t∈(0,T),
∂tu(x,t)+ddx[f(u(x,t))]=ν ∂x(∂xu)(x,t).\partial_t u(x,t) + \frac{d}{dx}\big[f(u(x,t))\big] = \nu\, \partial_x\big(\partial_x u\big)(x,t).∂t​u(x,t)+dxd​[f(u(x,t))]=ν∂x​(∂x​u)(x,t).
  • Initial condition. u(x,0)=uˉ(x)u(x,0) = \bar u(x)u(x,0)=uˉ(x) for every xxx in the open interval (0,1)(0,1)(0,1).
  • Boundary condition. u(0,t)=0u(0,t) = 0u(0,t)=0 and u(1,t)=0u(1,t) = 0u(1,t)=0 for every ttt in the closed interval [0,T][0,T][0,T].

All derivatives here are ordinary one-variable derivatives. Each is taken with the other variable held fixed.

Next, fix an activation σ:R→R\sigma : \mathbb{R} \to \mathbb{R}σ:R→R that is infinitely differentiable. Let u∗:R×R→Ru^* : \mathbb{R} \times \mathbb{R} \to \mathbb{R}u∗:R×R→R be the realization of a feed-forward neural network, meaning u∗(x,t)=g(x,t)u^*(x,t) = g(x,t)u∗(x,t)=g(x,t) for some map g:R2→R1g : \mathbb{R}^2 \to \mathbb{R}^1g:R2→R1 of the form

g=CK∘σ∘CK−1∘⋯∘σ∘C1.g = C_K \circ \sigma \circ C_{K-1} \circ \cdots \circ \sigma \circ C_1 .g=CK​∘σ∘CK−1​∘⋯∘σ∘C1​.

In this network:

  • there are K≥2K \ge 2K≥2 affine maps Cj(z)=Wjz+bjC_j(z) = W_j z + b_jCj​(z)=Wj​z+bj​ with arbitrary real weight matrices and bias vectors;
  • the layer widths are arbitrary, with input width 222 and output width 111; intermediate widths may even be 000;
  • σ\sigmaσ is applied componentwise after every affine map except the last.

Nothing else is assumed about u∗u^*u∗. In particular, it need not satisfy any initial or boundary condition.

All suprema below are taken over the closed rectangle [0,1]×[0,T][0,1] \times [0,T][0,1]×[0,T] unless stated otherwise. Since every function involved is continuous there, they are finite maxima. Define:

  • M=max⁡(sup⁡∣u∣, sup⁡∣u∗∣)M = \max\big(\sup |u|,\ \sup |u^*|\big)M=max(sup∣u∣, sup∣u∗∣);
  • Cf=(sup⁡s∈[−M,M]∣f′′(s)∣)⋅sup⁡∣∂xu∣C_f = \Big(\sup_{s \in [-M, M]} |f''(s)|\Big) \cdot \sup |\partial_x u|Cf​=(sups∈[−M,M]​∣f′′(s)∣)⋅sup∣∂x​u∣;
  • Cb=sup⁡∣∂xu∣+sup⁡∣∂xu∗∣C_b = \sup |\partial_x u| + \sup |\partial_x u^*|Cb​=sup∣∂x​u∣+sup∣∂x​u∗∣;
  • Cˉb=sup⁡s∈[−m,m]∣f′(s)∣\bar C_b = \sup_{s \in [-m, m]} |f'(s)|Cˉb​=sups∈[−m,m]​∣f′(s)∣, where m=sup⁡∣u∗∣m = \sup |u^*|m=sup∣u∗∣.

Also define two residuals of u∗u^*u∗.

  • The interior residual:
Rint(x,t)=∂tu∗(x,t)+ddx[f(u∗(x,t))]−ν ∂x(∂xu∗)(x,t).\mathcal R_{\mathrm{int}}(x,t) = \partial_t u^*(x,t) + \frac{d}{dx}\big[f(u^*(x,t))\big] - \nu\, \partial_x(\partial_x u^*)(x,t).Rint​(x,t)=∂t​u∗(x,t)+dxd​[f(u∗(x,t))]−ν∂x​(∂x​u∗)(x,t).
  • The temporal-boundary residual:
Rtb(x)=u∗(x,0)−uˉ(x).\mathcal R_{\mathrm{tb}}(x) = u^*(x,0) - \bar u(x).Rtb​(x)=u∗(x,0)−uˉ(x).

The theorem asserts the following inequality:

∫0T ⁣ ⁣∫01(u(x,t)−u∗(x,t))2 dx dt  ≤  (T+(1+2Cf) T2 e(1+2Cf)T)⋅(A1+A2+A3+A4),\int_0^T \!\!\int_0^1 \big(u(x,t) - u^*(x,t)\big)^2 \,dx\,dt \;\le\; \Big(T + (1 + 2C_f)\,T^2\, e^{(1+2C_f)T}\Big) \cdot \Big( A_1 + A_2 + A_3 + A_4 \Big),∫0T​∫01​(u(x,t)−u∗(x,t))2dxdt≤(T+(1+2Cf​)T2e(1+2Cf​)T)⋅(A1​+A2​+A3​+A4​),

where

A1=∫01Rtb(x)2 dx,A2=∫0T ⁣ ⁣∫01Rint(x,t)2 dx dt,A_1 = \int_0^1 \mathcal R_{\mathrm{tb}}(x)^2\,dx, \qquad A_2 = \int_0^T\!\!\int_0^1 \mathcal R_{\mathrm{int}}(x,t)^2\,dx\,dt,A1​=∫01​Rtb​(x)2dx,A2​=∫0T​∫01​Rint​(x,t)2dxdt, A3=2 Cˉb(∫0Tu∗(0,t)2 dt+∫0Tu∗(1,t)2 dt),A_3 = 2\,\bar C_b \left( \int_0^T u^*(0,t)^2\,dt + \int_0^T u^*(1,t)^2\,dt \right),A3​=2Cˉb​(∫0T​u∗(0,t)2dt+∫0T​u∗(1,t)2dt), A4=2 ν Cb T(∫0Tu∗(0,t)2 dt+∫0Tu∗(1,t)2 dt).A_4 = 2\,\nu\, C_b\, \sqrt{T} \left( \sqrt{\int_0^T u^*(0,t)^2\,dt} + \sqrt{\int_0^T u^*(1,t)^2\,dt} \right).A4​=2νCb​T​​∫0T​u∗(0,t)2dt​+∫0T​u∗(1,t)2dt​​.

Some details of how this is stated:

  • Left-hand side. Formally it is the square of ⋅\sqrt{\cdot}⋅​ of the double integral. Because the integrand is nonnegative, this equals the double integral itself.
  • Integrals. All integrals are Lebesgue integrals over the open intervals (0,1)(0,1)(0,1) and (0,T)(0,T)(0,T). By convention, any integral of a non-integrable function is assigned the value 000.
  • Prefactor. The constant multiplying the bracket is T+(1+2Cf)T2e(1+2Cf)TT + (1+2C_f)T^2e^{(1+2C_f)T}T+(1+2Cf​)T2e(1+2Cf​)T itself, with no square root.
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