Lemma 2.10: cumulative generalization error for random training points
ProvedPINNGeneralization.cumulative_generalization_error_boundLet the abstract PDE of Section 2.1 be posed on with , and let be its solution. For each training set , , let be the trained network, with residual . Training sets are drawn from . Assume there is a constant with
Assume also that is measurable, that is integrable on , that each is integrable, and that is square integrable on . Let the validation points be independent and uniformly distributed on . Then
with the cumulative errors , , the validation gap and the standard deviation of eqs. (2.24)-(2.30).
The lemma replaces the deterministic quadrature bound by a Monte Carlo bound on an independent validation set.
Formalization Note The map is arbitrary. The integrability and measurability hypotheses are implicit in the paper, which treats all these integrals as finite. is written as an integral over rather than as an expectation over one uniform random point, which is the same quantity.
import Mathlib import Definitions.Def_PINNGeneralization_Basic open MeasureTheory
namespace PINNGeneralization
theorem cumulative_generalization_error_bound {n m N : ℕ} {X : Type*} [NormedAddCommGroup X]
[NormedSpace ℝ X] [CompleteSpace X] [TopologicalSpace.SeparableSpace X]
(P : AbstractPDE n m X) (hP : P.Hyp) (hdom : P.dom = unitCube n) (hp : P.p = 1)
(hN : 0 < N) (u : X) (hu : P.IsSolution u)
(ustar : (Fin N → Pt n) → X) (hustar : ∀ S, ustar S ∈ P.Xs)
(Cpde : ℝ) (hC : 0 < Cpde)
(hstab : ∀ S, ‖u - ustar S‖ ≤ Cpde * lpNorm P.dom P.p (P.D u - P.D (ustar S)))
(hmeas : AEStronglyMeasurable (fun S => ‖u - ustar S‖) (trainLaw n N))
(hRint : Integrable (fun q : (Fin N → Pt n) × Pt n => ‖P.residual (ustar q.1) q.2‖)
((trainLaw n N).prod (volume.restrict (unitCube n))))
(hRtr : ∀ j, Integrable (fun S => ‖P.residual (ustar S) (S j)‖) (trainLaw n N))
(hRsq : MemLp (fun z => ∫ S, ‖P.residual (ustar S) z‖ ∂trainLaw n N) 2
(volume.restrict (unitCube n)))
{Ω : Type*} [MeasurableSpace Ω] (Pr : Measure Ω) [IsProbabilityMeasure Pr]
(zval : Fin N → Ω → Pt n) (hzm : ∀ j, Measurable (zval j))
(hind : ProbabilityTheory.iIndepFun zval Pr)
(hlaw : ∀ j, Pr.map (zval j) = volume.restrict (unitCube n)) :
cumGenError u ustar ≤
Cpde * (cumTrainError (fun S => P.residual (ustar S)) +
validationGap Pr (fun S => P.residual (ustar S)) zval +
residualStd (fun S => P.residual (ustar S)) / Real.sqrt N) := by sorry
end PINNGeneralizationRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix natural numbers with , and a real Banach space (complete normed real vector space) that is also separable. Points of and carry the Euclidean norm , and denotes the norm of .
The PDE data. We are given an abstract PDE consisting of:
- a set ;
- a real exponent ;
- a linear subspace ;
- a linear subspace of the space of all functions ;
- an arbitrary map , not assumed linear or continuous;
- a function .
It is assumed that and . It is further assumed that:
- is Lebesgue measurable;
- ;
- is closed in ;
- every is in , which includes almost-everywhere strong measurability;
- is -closed in the following sense. Suppose for every , , and . Then some equals a.e. on ;
- for every ;
- ;
- for every there is exactly one with a.e. on .
The solution. An element is given that solves the PDE: and almost everywhere on . The residual of is the function
The approximations. A completely arbitrary map is given, from -tuples to . It is not required to be a neural network or to arise from any training procedure. The only requirement is for every .
Stability hypothesis. There is a single real constant such that, for every (not only a.e.),
Here , with the convention that an infinite value is replaced by .
Training law. Write for the training law on . It is the -fold product of Lebesgue measure restricted to , i.e. i.i.d. uniform points in the unit cube. It is a probability measure.
Integrability hypotheses.
- is -a.e. strongly measurable. This is only measurability; integrability is not assumed.
- is integrable with respect to .
- For each , is -integrable.
- The function belongs to .
Validation points. Let be a probability space. Let be measurable and mutually independent, each with law equal to Lebesgue measure restricted to , i.e. uniform on the cube.
Conclusion. The theorem asserts
where the four quantities are defined as follows.
- The cumulative generalization error is
This is a Bochner integral. If the integrand is not -integrable, its value is by convention.
- The cumulative training error is
- The validation gap is
Again, this is by convention if the integrand in is not integrable.
- The residual standard deviation is
Edge cases.
- For , the cube is a single point of measure .
- For , all residuals are identically , so the right-hand side is .
- The hypothesis rules out division by zero in and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.