Theorem 3.1 (as proved): generalization error of PINNs for the semilinear parabolic equation
OpenPINNGeneralization.heat_generalization_error_boundAssume the setting of eq. (3.15): open, connected and bounded with boundary, , , globally Lipschitz with constant , , a classical solution of (3.1), and a neural network with a activation. Assume moreover . Consider quadrature rules with points in , points in and points in , all with nonnegative weights, satisfying (3.9)-(3.11): for every of class (respectively , ),
with the integral over (respectively over against , and over ) and . With the training-error components of (3.8),
where , , , and .
The bound shows that the boundary residual enters with a square root, and so carries more weight than the interior and initial residuals.
Formalization Note The paper prints . The proof establishes (see eq. (3.15)). The hypothesis is added because the paper uses to apply (3.11), and this fails for a merely Lipschitz . The exponent in (3.11) is taken to be , as the theorem's constant requires. norms on sets are computed from derivatives of functions defined on the whole space. The hyperparameter of the loss does not appear in the bound and is omitted.
import Mathlib import Definitions.Def_PINNGeneralization_Basic open MeasureTheory
namespace PINNGeneralization
theorem heat_generalization_error_bound {n k : ℕ} (hk : 2 ≤ k) (D : Set (Pt (n + 1)))
(hD : IsCkDomain k D) (T : ℝ) (hT : 0 < T) (f : ℝ → ℝ) (Cf : ℝ)
(hf : ∀ v w, |f v - f w| ≤ Cf * |v - w|) (hfk : ContDiff ℝ (k - 2) f)
(ubar : Pt (n + 1) → ℝ) (hubar : ContDiff ℝ k ubar)
(u : Pt (n + 1) → ℝ → ℝ) (hu : ContDiff ℝ k (fun q : Pt (n + 1) × ℝ => u q.1 q.2))
(hsol : IsHeatSolution D T f ubar u)
(σ : ℝ → ℝ) (hσ : ContDiff ℝ (⊤ : ℕ∞) σ)
(ustar : Pt (n + 1) → ℝ → ℝ) (hustar : IsPINN σ ustar)
(Qtb : QuadRule (Pt (n + 1))) (hQtb : Qtb.IsOn D) (hNtb : 0 < Qtb.N)
(Qsb : QuadRule (Pt (n + 1) × ℝ)) (hQsb : Qsb.IsOn (frontier D ×ˢ Set.Icc 0 T))
(hNsb : 0 < Qsb.N)
(Qint : QuadRule (Pt (n + 1) × ℝ)) (hQint : Qint.IsOn (D ×ˢ Set.Ioo 0 T))
(hNint : 0 < Qint.N)
(Ctb Csb Cint : ℝ → ℝ) (atb asb aint : ℝ) (hatb : 0 < atb) (hasb : 0 < asb)
(haint : 0 < aint)
(hqtb : QuadErrorBound volume D {g : Pt (n + 1) → ℝ | ContDiff ℝ k g} (ckNorm k D) Ctb atb Qtb)
(hqsb : QuadErrorBound (bdryTimeMeasure D T) Set.univ
{g : Pt (n + 1) × ℝ → ℝ | ContDiff ℝ k g} (ckNorm k (frontier D ×ˢ Set.Icc 0 T)) Csb asb Qsb)
(hqint : QuadErrorBound volume (D ×ˢ Set.Ioo 0 T)
{g : Pt (n + 1) × ℝ → ℝ | ContDiff ℝ (k - 2) g} (ckNorm (k - 2) (D ×ˢ Set.Ioo 0 T))
Cint aint Qint) :
genErrorL2 D T u ustar ≤
heatC1 T Cf *
(quadL2 Qtb (heatResTb ubar ustar) + quadL2 Qint (fun q => heatResInt f ustar q.1 q.2) +
Real.sqrt (2 * heatCbdry D T u ustar * Real.sqrt T) *
Real.sqrt (quadL2 Qsb (fun q => ustar q.1 q.2)) +
Real.sqrt (Ctb (ckNorm k D (fun x => heatResTb ubar ustar x ^ 2))) *
(Qtb.N : ℝ) ^ (-atb / 2) +
Real.sqrt (Cint (ckNorm (k - 2) (D ×ˢ Set.Ioo 0 T)
(fun q => heatResInt f ustar q.1 q.2 ^ 2))) * (Qint.N : ℝ) ^ (-aint / 2) +
Real.sqrt (2 * heatCbdry D T u ustar * Real.sqrt T) *
Csb (ckNorm k (frontier D ×ˢ Set.Icc 0 T) (fun q => ustar q.1 q.2 ^ 2)) ^ (1 / 4 : ℝ) *
(Qsb.N : ℝ) ^ (-asb / 4)) := by sorry
end PINNGeneralizationRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement concerns a spatial dimension (with arbitrary) and a regularity index with . Points of carry the Euclidean norm. Space–time points carry the product (max) norm .
Domain. is open, connected (in particular nonempty) and bounded. It has a " boundary" in the following sense. For every point of the topological boundary there exist:
- a radius ,
- a linear isometry of onto itself,
- a function ,
such that
Time and nonlinearity.
- is a real number.
- satisfies for all real . Here is a real constant, which is necessarily .
- is on all of .
Exact solution. The initial datum is on all of . The function is jointly on all of . It is a classical solution in the following sense:
- for all and ;
- for all ;
- for all and .
Here is the one-variable derivative in . The Laplacian is , where each is the one-variable derivative along the -th coordinate direction.
Network. is . The function is the realization of a feed-forward network , with . The network has the following structure:
- There are affine maps , , with arbitrary layer widths. The input width is and the output width is .
- is applied componentwise after each affine map except the last.
- The last affine map has no activation.
No other property of (for instance, how it was trained) is assumed.
Quadrature rules. There are three finite rules. Each has points and real weights :
- , with points ;
- , with points ;
- , with points .
There are also arbitrary functions and exponents .
For a set and , write
where is the -th Fréchet derivative with its operator norm. If this set is unbounded the expression is defined to be .
The three rules are assumed to satisfy these error bounds:
- : every function is Lebesgue-integrable on , and
- : every function on is integrable with respect to on , and the analogous bound holds with . Here is the -dimensional Hausdorff measure scaled by , where is the volume of the unit ball of .
- : every function on is Lebesgue-integrable on , and the analogous bound holds with .
These bounds concern only these three fixed rules. The functions are not required to work for any other number of points.
Residuals and training errors. Define
and the discrete quantities
each summed over the points of the corresponding rule.
Constants. Define
Here is the -measure of , taken to be if infinite. For or ,
where each supremum is over and is the Euclidean length of the full spatial gradient in . Each supremum is the real supremum of the set of values, with the junk value if that set is unbounded.
Conclusion.
The integrals on the left are Lebesgue integrals over the open interval and over ; a non-integrable integrand is assigned the value . Square roots of negative numbers are taken as ; this can occur on the right if some or value is negative. If the value is negative, its -power is the real-power convention , not a genuine fourth root.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.