Theorem 4.1 (as proved): generalization error of PINNs for the viscous scalar conservation law
ProvedPINNGeneralization.vscl_generalization_error_boundAssume the setting of eq. (4.18): , , , , a classical solution of (4.1), and a neural network with a activation. Consider quadrature rules with points in , points (used at and at ), and points in , all with nonnegative weights. Assume they satisfy (3.9)-(3.11) on , and for functions of class , and , with constants and rates . With the training-error components of (4.7), , , as in eq. (4.18), and ,
where , , and ; these norms are taken over , , and respectively.
The constants blow up as when does (Remark 4.3).
Formalization Note The paper prints in the last term. Its proof bounds , which gives and not . For example, and give . This statement gives what the proof establishes. The constants and are those of eq. (4.18).
import Mathlib import Definitions.Def_PINNGeneralization_Basic open MeasureTheory
namespace PINNGeneralization
theorem vscl_generalization_error_bound {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)
(Qtb : QuadRule ℝ) (hQtb : Qtb.IsOn (Set.Ioo 0 1)) (hNtb : 0 < Qtb.N)
(Qsb : QuadRule ℝ) (hQsb : Qsb.IsOn (Set.Icc 0 T)) (hNsb : 0 < Qsb.N)
(Qint : QuadRule (ℝ × ℝ)) (hQint : Qint.IsOn (Set.Ioo 0 1 ×ˢ 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 (Set.Ioo 0 1) {g : ℝ → ℝ | ContDiff ℝ k g}
(ckNorm k (Set.Ioo 0 1)) Ctb atb Qtb)
(hqsb : QuadErrorBound volume (Set.Ioo 0 T) {g : ℝ → ℝ | ContDiff ℝ k g}
(ckNorm k (Set.Icc 0 T)) Csb asb Qsb)
(hqint : QuadErrorBound volume (Set.Ioo 0 1 ×ˢ Set.Ioo 0 T)
{g : ℝ × ℝ → ℝ | ContDiff ℝ (k - 2) g} (ckNorm (k - 2) (rect T)) Cint aint Qint) :
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)) *
(quadL2 Qtb (vsclResTb ubar ustar) ^ 2 +
quadL2 Qint (fun q => vsclResInt ν f ustar q.1 q.2) ^ 2 +
2 * vsclCbarb T f ustar *
(quadL2 Qsb (fun t => ustar 0 t) ^ 2 + quadL2 Qsb (fun t => ustar 1 t) ^ 2) +
2 * ν * vsclCb T u ustar * Real.sqrt T *
(quadL2 Qsb (fun t => ustar 0 t) + quadL2 Qsb (fun t => ustar 1 t))) +
(T + (1 + 2 * vsclCf T f u ustar) * T ^ 2 * Real.exp ((1 + 2 * vsclCf T f u ustar) * T)) *
(Ctb (ckNorm k (Set.Ioo 0 1) (fun x => vsclResTb ubar ustar x ^ 2)) *
(Qtb.N : ℝ) ^ (-atb) +
Cint (ckNorm (k - 2) (rect T) (fun q => vsclResInt ν f ustar q.1 q.2 ^ 2)) *
(Qint.N : ℝ) ^ (-aint) +
2 * vsclCbarb T f ustar *
((Csb (ckNorm k (Set.Icc 0 T) (fun t => ustar 0 t ^ 2)) +
Csb (ckNorm k (Set.Icc 0 T) (fun t => ustar 1 t ^ 2))) * (Qsb.N : ℝ) ^ (-asb)) +
2 * ν * vsclCb T u ustar * Real.sqrt T *
((Real.sqrt (Csb (ckNorm k (Set.Icc 0 T) (fun t => ustar 0 t ^ 2))) +
Real.sqrt (Csb (ckNorm k (Set.Icc 0 T) (fun t => ustar 1 t ^ 2)))) *
(Qsb.N : ℝ) ^ (-asb / 2))) := by sorry
end PINNGeneralizationRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a natural number, and let and be real numbers. The statement also fixes the following data.
The equation and its solution.
- (the flux) and (the initial datum) are both on all of .
- , written , is jointly as a function on .
- satisfies the following, where and are ordinary one-variable derivatives:
- for all and , both open intervals;
- for all in the open interval ;
- for all in the closed interval .
The network.
- is an arbitrary function.
- is a neural network with activation . Concretely, is the single output coordinate of a map built as follows:
- There are some , widths (intermediate widths may be any natural numbers, including ), arbitrary real matrices and biases .
- Set .
- For , set , with applied componentwise.
- The last layer is affine: .
- There is no bound on , the widths, or the size of the weights.
Three quadrature rules. In each rule the weights are only required to be nonnegative; nothing is assumed about their sum.
- has points in the open interval with weights .
- has points in the closed interval with weights .
- has points in the open rectangle with weights .
Write for the quadrature sum of a rule .
Quadrature error hypotheses. Let be arbitrary functions (not assumed positive, monotone or continuous), and let .
For a set and an integer , define
where is the -th Fréchet derivative, measured in operator norm. For maps on , the norm on is the max-norm.
The hypotheses are:
- For every function , is Lebesgue integrable on and
- For every function , is integrable on and
- For every function , is integrable on and
When , "" means merely continuous.
Constants. Let and . Define:
- ;
- ;
- ;
- .
Residuals and training errors. Define the residuals
and the training errors
Also abbreviate
The square root is read as if .
Conclusion. Under all of the above, the squared error
with both integrals taken over the open intervals, satisfies
where
Note that the factor appears as written, without a square root. The norm used inside is taken over the open interval , while the norms inside and are taken over the closed sets and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.